/*custom*/
/* Основные стили */
* {box-sizing:border-box;}

body {
    font-family: 'Rubik', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
}
.header-button, .main-nav a {white-space: nowrap;}
/* Общие стили */
.inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

/* Заголовки секций */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
    position: relative;
    display: inline-block;
}
.thumb-images img {cursor:pointer;}
.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #009036;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 15px auto 0;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
}

.primary-btn {
    background: #009036;
    color: #fff;
}

.primary-btn:hover {
    background: #026a29;
    transform: translateY(-3px);
}

.outline-btn {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.outline-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.whatsapp-btn {
    background: #009036;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.whatsapp-btn:hover {
    background: #026a29;
    transform: translateY(-3px);
}

/* Хедер */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
}

header.fixed {
    background: #fff;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

.top-contact-bar {
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 0;
    color: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 11;
    transition: all 0.3s ease;
}

.top-contact-bar .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.contact-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #009036;
}

.location {
    padding-left: 20px;
    background: url("../img/address.png") 0 50% no-repeat;
    background-size: 14px;
}

.phone {
    padding-left: 20px;
    background: url("../img/phone.png") 0 50% no-repeat;
    background-size: 14px;
}

.social-link {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-link img {
    width: 24px;
    height: 24px;
}

.main-header {
    padding: 15px 0;
    margin-top: 40px;
    overflow: hidden;
}

.main-header .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: #009036;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 22px;
}

.logo-text {
    font-size: 24px;
    font-weight: 600;
    color:#fff;
}

.logo-text span {
    color: #009036;
    font-weight: 700;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
}

.main-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: #009036;
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: #009036;
}

.main-nav a:hover:after {
    width: 100%;
}

.header-button {
    background: #009036;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.header-button:hover {
    background: #026a29;
    transform: translateY(-3px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    width: 30px;
    height: 20px;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) {
    top: 0px;
}

.menu-toggle span:nth-child(2) {
    top: 8px;
}

.menu-toggle span:nth-child(3) {
    top: 16px;
}

.menu-toggle.active span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.menu-toggle.active span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* Секция герой */
.hero-banner {
    background: url("../img/bg_promo.jpg") center center no-repeat;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-banner .inner {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-top:100px;
}

.hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* О нас секция */
.about-section {
    padding: 100px 0;
    background: #fff;
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 16px;
    margin-bottom: 30px;
    color: #666;
}

.about-features {
    margin: 40px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.feature-icon {
    margin-right: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 40px;
    height: 40px;
    filter: hue-rotate(330deg);
}

.feature-text h3 {
    font-size: 18px;
    margin: 0 0 5px;
}

.feature-text p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.about-gallery {
    flex: 1;
}

.main-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.gallery-image {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-image:hover .gallery-image {
    transform: scale(1.05);
}

.thumb-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.thumb-item {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.thumb-image {
    display: block;
    width: 100%;
    height: 100px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.thumb-item:hover .thumb-image {
    transform: scale(1.1);
}

.about-cta {
    margin-top: 30px;
}

/* Модели автомобилей */
.models-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.model-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.model-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: #009036;
    color: #fff;
}

.model-name {
    font-weight: 600;
    text-align: center;
}

.models-note {
    margin-top: 40px;
    text-align: center;
    color: #666;
}

/* FAQ секция */
.faq-section {
    padding: 100px 0;
    background: #fff;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background: #fff;
}

.faq-question {
    padding: 20px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.faq-item.active .faq-question {
    background: #009036;
    color: #fff;
}

.faq-toggle {
    width: 20px;
    height: 20px;
    position: relative;
}

.faq-toggle:before, 
.faq-toggle:after {
    content: '';
    position: absolute;
    background: #666;
    transition: all 0.3s ease;
}

.faq-item.active .faq-toggle:before, 
.faq-item.active .faq-toggle:after {
    background: #fff;
}

.faq-toggle:before {
    width: 100%;
    height: 2px;
    top: 9px;
    left: 0;
}

.faq-toggle:after {
    width: 2px;
    height: 100%;
    top: 0;
    left: 9px;
}

.faq-item.active .faq-toggle:after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    padding: 0;
    overflow: hidden;
    display: none;
}

.faq-answer {
    padding: 20px;
}

.faq-answer p {
    margin-top: 0;
    margin-bottom: 15px;
    color: #666;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 0 0 15px 0;
    padding-left: 20px;
    color: #666;
}

.faq-answer li {
    margin-bottom: 8px;
}

/* CTA секция */
.cta-section {
    padding: 100px 0;
    background: url("../img/bg_action.jpg") center center no-repeat;
    background-size: cover;
    position: relative;
    color: #fff;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.cta-section .inner {
    position: relative;
    z-index: 2;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Галерея секция */
.gallery-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.gallery-link {
    display: block;
    transition: all 0.3s ease;
}

.gallery-img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

/* Статистика секция */
.stats-section {
    padding: 100px 0;
    background: #fff;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 40px 30px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    margin-bottom: 20px;
}

.stat-icon img {
    width: 60px;
    height: 60px;
    filter: hue-rotate(330deg);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: #009036;
    margin-bottom: 10px;
}

.stat-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Процесс секция */
.process-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.process-steps {
    display: flex;
    gap: 30px;
}

.process-step {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 30px;
    height: 30px;
    background: #009036;
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.step-icon {
    margin-bottom: 20px;
}

.step-icon img {
    width: 60px;
    height: 60px;
    filter: hue-rotate(330deg);
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.step-text {
    font-size: 14px;
    color: #666;
}

/* Доставка секция */
.delivery-section {
    padding: 100px 0;
    background: #fff;
}

.delivery-options {
    display: flex;
    gap: 30px;
}

.delivery-option {
    flex: 1;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.delivery-option:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.option-icon {
    margin-bottom: 20px;
    color: #009036;
}

.option-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.option-price {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #666;
}

.option-price.highlighted {
    color: #009036;
}

.option-text {
    font-size: 14px;
    color: #666;
}

/* Карта секция */
.map-section {
    height: 500px;
}

/* Контакты секция */
.contacts-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.contacts-container {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.contact-card {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    margin-bottom: 20px;
    color: #009036;
}

.contact-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.contact-text {
    font-size: 16px;
    color: #666;
}

.contact-text a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: #009036;
}

/* Футер */
.main-footer {
    background: #222;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #009036;
}

.footer-contact .contact-item {
    margin-bottom: 15px;
}

.footer-contact a {
    color: #999;
    text-decoration: none;
}

.footer-contact .social-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #666;}

.copyright {
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .inner {
        max-width: 100%;
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 46px;
    }
    
    .models-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .section-title {
        font-size: 32px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text, .about-gallery {
        width: 100%;
    }
    
    .models-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-container, .process-steps, .delivery-options, .contacts-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-item, .process-step, .delivery-option, .contact-card {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-logo, .footer-nav, .footer-contact {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        margin-top: -15px;
    }
    .main-nav a {color: #000;}
    .main-nav ul {
        display: none;
    }
    
    .main-nav ul.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }
    
    .main-nav li {
        margin: 10px 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .models-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-container {
        grid-template-columns: 1fr 1fr;
    }
    .top-contact-bar .inner {
        gap: 10px;
    }
    .top-contact-bar .inner .location {display:none;}
    .main-header .inner {
        flex-wrap: wrap;
    }
    .menu-toggle span {background: #fff;}
    .logo {
        margin-bottom: 15px;
    }
    
    .header-action {
        margin-top: 15px;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .gallery-img {height: 120px;}
    .gallery-image {height: 250px;}
    .thumb-image {height: 80px;}
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .btn {
        width: 100%;
    }
    .top-contact-bar .location {display:none;}
    .cta-title {
        font-size: 28px;
        margin-top: 0;
    }
    section {padding: 40px 0 !important;}
    .cta-text {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .thumb-images {
        flex-wrap: wrap;
    }
}