/* Стили для главной страницы */
.main-page {
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 706px;
    display: flex;
    align-items: center;
    overflow: visible;
    background: url('../images/back.png') center/cover;
}

.hero-background {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 1160px;
    max-width: calc(100% - 40px);
    height: calc(100% - 60px);
    background: url('/wp-content/uploads/2025/09/1screen.png') center/cover;
    border-radius: 0;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 2;
}

/* Хедер внутри hero секции */
.hero-header {
    position: absolute;
    top: 85px;
    left: 50%;
    transform: translateX(-50%);
    width: 1160px;
    max-width: calc(100% - 40px);
    z-index: 100000;
}

.hero-header .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 48px;
}

.hero-header .site-branding {
    display: flex;
    align-items: center;
}

.hero-header .site-logo {
    display: block;
    transition: opacity 0.3s ease;
}

.hero-header .site-logo:hover {
    opacity: 0.8;
}

.hero-header .site-logo img {
    height: auto;
    max-height: 77px;
    width: auto;
}

.hero-header .main-navigation {
    margin-left: auto;
}

.hero-header .nav-menu {
    display: flex;
    align-items: center;
    gap: 48px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-header .nav-menu li {
    position: relative;
}

.hero-header .nav-menu a {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.32;
    text-transform: uppercase;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 11px;
    transition: opacity 0.3s ease;
}

.hero-header .nav-menu a:hover {
    opacity: 0.7;
}

.hero-header .dropdown-arrow {
    font-size: 6.5px;
}

/* Добавляем стрелку для пунктов с подменю */
.hero-header .menu-item-has-children > a::after {
    content: " ▼";
    font-size: 6.5px;
    margin-left: 11px;
}

/* Скрываем мобильные элементы на десктопе */
.hero-header .mobile-menu-toggle,
.hero-header .mobile-menu-dropdown {
    display: none;
}

/* Выпадающее меню на десктопе */
.hero-header .menu-item-has-dropdown,
.hero-header .menu-item-has-children {
    position: relative;
}

.hero-header .dropdown-menu,
.hero-header .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(42, 27, 13, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 8px;
    padding: 23px;
    width: 204px;
    opacity: 0;
    visibility: hidden;
    flex-direction: column;
    gap: 22px;
    z-index: 999999;
    margin-top: 10px;
    list-style: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Создаем "мостик" для плавного перехода мыши */
.hero-header .menu-item-has-dropdown::before,
.hero-header .menu-item-has-children::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
    z-index: 999;
}

.hero-header .menu-item-has-dropdown:hover .dropdown-menu,
.hero-header .menu-item-has-children:hover .sub-menu,
.hero-header .dropdown-menu:hover,
.hero-header .sub-menu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Показываем меню при hover на родительском элементе или самом меню */
.hero-header .menu-item-has-dropdown:hover,
.hero-header .menu-item-has-children:hover {
    position: relative;
}

.hero-header .menu-item-has-dropdown:hover .dropdown-menu,
.hero-header .menu-item-has-children:hover .sub-menu {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Стили для WordPress подменю */
.hero-header .sub-menu {
    padding: 0;
    display: flex !important;
}

.hero-header .sub-menu li {
    width: 100%;
}

.hero-header .sub-menu a {
    color: var(--primary-color);
    font-family: var(--font-primary);
    font-size: 12px;
    line-height: 1.32;
    text-decoration: none;
    padding: 11px 23px;
    border-bottom: 0.2px solid var(--text-color);
    transition: opacity 0.3s ease;
    text-transform: none;
    font-weight: 400;
    display: block;
}

.hero-header .sub-menu li:last-child a {
    border-bottom: none;
}

.hero-header .sub-menu a:hover {
    opacity: 0.7;
}

.hero-header .dropdown-item {
    color: var(--primary-color);
    font-family: var(--font-primary);
    font-size: 12px;
    line-height: 1.32;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 0.2px solid var(--text-color);
    transition: opacity 0.3s ease;
    text-transform: none;
    font-weight: 400;
}

.hero-header .dropdown-item:last-child {
    border-bottom: none;
}

.hero-header .dropdown-item:hover {
    opacity: 0.7;
}

/* Consultation Section */
.consultation-section {
    padding: var(--section-padding) 0;
    background: var(--secondary-color);
}

.consultation-section .contact-form-section {
    max-width: 758px;
    margin: 0 auto;
    text-align: center;
}

.consultation-section .contact-form-header h2 {
    font-size: 30px;
    line-height: 1.22;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.consultation-section .contact-form-header p {
    font-size: 12px;
    line-height: 1.32;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.consultation-section .contact-form-wrapper {
    max-width: 384px;
    margin: 0 auto;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 243px 0 0 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 1160px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
}

.hero-text {
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: 60px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 5px 0;
    color: var(--primary-color);
    text-transform: none;
}

.hero-text .mixed-line {
    margin: 0 0 5px 0;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
    text-transform: none;
}

.hero-text .accent-text {
    font-family: 'mr_HamiltoneG Rus Regular', serif;
    font-size: 86px;
    line-height: 1.32;
    color: var(--primary-color);
    font-style: normal;
    font-weight: 400;
    text-transform: none;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 240px;
    margin-left: 60px;
}

/* Бегущая строка с акцией */
.promo-ticker-section {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.promo-ticker {
    background: rgba(161, 120, 86, 0.5);
    backdrop-filter: blur(65px);
    padding: 24px 17px;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 50px;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

.promo-content span {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.22;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: var(--primary-color);
    white-space: nowrap;
    margin-right: 50px;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Декоративный элемент - скрыт */
.hero-decoration {
    display: none;
}

/* Benefits Section */
.benefits-section {
    position: relative;
    height: 719px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: url('../images/back.png') center/cover;
}

.benefits-background {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1160px;
    max-width: calc(100% - 40px);
    height: 100%;
    z-index: 1;
}

.benefits-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 2;
}

.benefits-content {
    position: relative;
    z-index: 3;
    width: 1160px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
    height: 100%;
}

.benefit-item {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Позиционирование каждого пункта по макету */
.benefit-item:nth-child(1) {
    top: 105px;
    left: 36px;
    width: 517px;
}

.benefit-item:nth-child(2) {
    top: 200px;
    left: 36px;
    width: 491px;
}

.benefit-item:nth-child(3) {
    top: 361px;
    left: 36px;
    width: 471px;
}

.benefit-item:nth-child(4) {
    top: 478px;
    left: 36px;
    width: 553px;
}

.benefit-icon {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.benefit-circle {
    width: 14px;
    height: 14px;
    border: 0.9px solid var(--primary-color);
    border-radius: 50%;
    background: var(--primary-color);
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.benefit-line {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - 170px);
    height: 1px;
    background: var(--primary-color);
}

.benefit-item p {
    font-size: 18px;
    line-height: 1.21;
    color: var(--secondary-color);
    margin: 0;
    max-width: 180px;
}

/* Анимация появления пунктов */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Qualification Section */
.qualification-section {
    padding: var(--section-padding) 0;
    background: url('../images/back.png') center/cover;
    position: relative;
}

.qualification-content {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 140px;
    align-items: start;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.qualification-text h2 {
    font-size: 30px;
    line-height: 1.22;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-transform: uppercase;
}

.qualification-text p {
    font-size: 18px;
    line-height: 1.21;
    color: var(--text-color);
    margin-bottom: 20px;
}

.qualification-text ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.qualification-text li {
    font-size: 18px;
    line-height: 1.21;
    color: var(--text-color);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.qualification-text li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.qualification-footer {
    font-size: 18px;
    line-height: 1.21;
    color: var(--text-color);
    margin-top: 20px;
}

.qualification-certificates {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.certificate-item {
    background: var(--white);
    height: 61px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.certificate-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 25px;
}

.certificate-content span {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.32;
    color: var(--secondary-color);
    max-width: 290px;
}

.certificate-icon {
    width: 25px;
    height: 25px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: normal;
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.certificate-item:hover .certificate-icon {
    transform: rotate(45deg);
}

.certificate-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.certificate-item:hover {
    transform: translateY(-2px);
}

/* Попап для сертификатов */
.certificate-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(45px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.certificate-popup.active {
    display: flex;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

.popup-content {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 47px 55px;
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white);
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.popup-image {
    text-align: center;
    margin-bottom: 20px;
}

.popup-image img {
    max-width: 380px;
    max-height: 540px;
    width: auto;
    height: auto;
    border-radius: 4px;
}

.popup-controls {
    display: flex;
    justify-content: center;
    gap: 431px;
    align-items: center;
}

.popup-prev,
.popup-next {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 20px;
    cursor: pointer;
    width: 15px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.popup-prev:hover,
.popup-next:hover {
    opacity: 0.7;
}

/* Gallery Section */
.gallery-section {
    padding: var(--section-padding) 0;
    background: url('../images/back.png') center/cover;
    overflow: hidden;
    position: relative;
}

.gallery-section h2 {
    margin-bottom: 60px;
    font-size: 30px;
    color: var(--primary-color);
    text-transform: uppercase;
    text-align: left;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.gallery-slider {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    z-index: 2;
}

.gallery-images {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
    padding: 0 20px;
    width: fit-content;
}

.gallery-item {
    width: 360px;
    height: 360px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-controls {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    display: flex;
    gap: 40px;
    z-index: 10;
}

.gallery-prev,
.gallery-next {
    width: 25px;
    height: 22px;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 20px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    background: rgba(13, 13, 13, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-prev:hover,
.gallery-next:hover {
    opacity: 0.7;
    background: rgba(13, 13, 13, 0.9);
}

/* About Section */
.about-section {
    position: relative;
    padding: var(--section-padding) 0;
    background: var(--secondary-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 514px;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 1;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-text {
    padding-top: 80px;
}

.about-text h2 {
    font-size: 30px;
    line-height: 1.22;
    color: var(--primary-color);
    margin-bottom: 60px;
    text-transform: uppercase;
}

.about-description {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-quote {
    font-size: 18px;
    line-height: 1.21;
    color: var(--text-color);
    font-style: italic;
    margin: 0;
}

.about-description p {
    font-size: 18px;
    line-height: 1.21;
    color: var(--text-color);
    margin: 0;
}

.about-photo {
    height: 676px;
    border-radius: 8px;
    overflow: hidden;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Стили кнопок на главной странице */
.hero-buttons .btn {
    padding: 12px 19px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 0;
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: 100%;
    height: 41px;
}

.hero-buttons .btn:hover {
    background-color: rgba(230, 211, 179, 0.9);
    transform: translateY(-2px);
}

.hero-buttons .btn-feedback {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.hero-buttons .btn-feedback:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Адаптивность для 640px */
@media (max-width: 640px) {
    .hero-section {
        height: 811px;
        background: url('../images/back.png') center/cover;
    }
    
    .hero-background {
        top: 165px;
        left: 0;
        transform: none;
        width: 100%;
        max-width: none;
        height: 646px;
        background: url('../images/hero-main-2f1040.jpg') center/cover;
    }
    
    .hero-header {
        position: absolute;
        top: 25px;
        left: 10px;
        right: 10px;
        transform: none;
        width: auto;
        max-width: none;
        z-index: 4;
    }
    
    .hero-header .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0;
    }
    
    .hero-header .site-branding {
        flex: 0 0 auto;
    }
    
    .hero-header .main-navigation {
        margin-left: auto;
    }
    
    /* Скрываем обычное меню и показываем мобильную кнопку */
    .hero-header .nav-menu {
        display: none;
    }
    
    .hero-header .mobile-menu-toggle {
        display: flex;
        background: var(--white);
        border: none;
        padding: 0;
        border-radius: 4px;
        cursor: pointer;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .hero-header .mobile-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.9);
        transform: scale(1.05);
    }
    
    .hero-header .mobile-menu-toggle img {
        width: 25px;
        height: 20px;
        filter: brightness(0) saturate(100%) invert(77%) sepia(25%) saturate(438%) hue-rotate(359deg) brightness(91%) contrast(89%);
        transition: all 0.3s ease;
    }
    
    /* Выпадающее меню */
    .hero-header .mobile-menu-dropdown {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--secondary-color);
        padding: 140px 10px 40px;
        width: 100vw;
        height: 100vh;
        display: none;
        z-index: 9999;
        overflow-y: auto;
    }
    
    /* Показываем мобильные элементы только на мобильных */
    .hero-header .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-header .mobile-menu-dropdown.active {
        display: block;
    }
    
    .mobile-menu-header {
        position: absolute;
        top: 25px;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
    }
    
    .mobile-menu-logo img {
        height: auto;
        max-height: 77px;
        width: auto;
    }
    
    .mobile-menu-services {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-bottom: 60px;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .mobile-menu-item {
        padding: 15px 0;
        border-bottom: 0.2px solid var(--text-color);
        color: var(--primary-color);
        font-family: var(--font-primary);
        font-size: 12px;
        line-height: 1.32;
        text-decoration: none;
        transition: opacity 0.3s ease;
        text-align: left;
    }
    
    .mobile-menu-item:hover {
        opacity: 0.7;
    }
    
    .mobile-menu-item:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-contact {
        text-align: center;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .mobile-menu-contact h4 {
        font-size: 20px;
        color: var(--primary-color);
        margin-bottom: 32px;
        text-transform: uppercase;
        font-weight: 400;
    }
    
    .mobile-menu-contact p {
        font-size: 12px;
        color: var(--primary-color);
        line-height: 1.32;
        margin: 0 0 40px 0;
    }
    
    .mobile-menu-contact .social-links {
        display: flex;
        justify-content: center;
        gap: 16px;
        margin-bottom: 40px;
    }
    
    .mobile-menu-contact .social-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        background: transparent;
        color: var(--primary-color);
        transition: opacity 0.3s ease;
    }
    
    .mobile-menu-contact .social-link:hover {
        opacity: 0.7;
    }
    
    .mobile-menu-contact .social-link svg {
        width: 20px;
        height: 20px;
        fill: var(--primary-color);
    }
    
    .mobile-menu-contact .footer-legal {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 0;
    }
    
    .mobile-menu-contact .footer-legal a {
        font-size: 12px;
        color: var(--text-color);
        text-decoration: none;
        transition: opacity 0.3s ease;
        line-height: 1.32;
    }
    
    .mobile-menu-contact .footer-legal a:hover {
        opacity: 0.7;
    }
    
    .hero-content {
        padding: 265px 0 0 0;
        text-align: left;
        width: 100%;
        max-width: none;
        margin: 0;
    }
    
    .hero-text {
        margin-left: 32px;
        margin-right: 32px;
        max-width: none;
    }
    
    .hero-buttons {
        margin-left: 32px;
        margin-right: 32px;
        flex-direction: column;
        gap: 20px;
        width: auto;
    }
    
    .hero-buttons .btn {
        width: 240px;
        min-width: auto;
    }
    
    .hero-text h1 {
        font-size: 40px;
        line-height: 1.2;
        margin: 0 0 20px 0;
    }
    
    .hero-text .mixed-line {
        font-size: 40px;
        line-height: 1.2;
    }
    
    .hero-text .accent-text {
        font-size: 86px;
        line-height: 1.32;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: calc(100% - 40px);
        margin-left: 20px;
        margin-right: 20px;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        min-width: auto;
        width: 100%;
    }
    
    .promo-content {
    animation: marquee var(--promo-speed, 30s) linear infinite;
    gap: 50px;
}
    
    .promo-content span {
        font-size: 16px;
        margin-right: 50px;
        font-weight: 700;
        letter-spacing: 0.17em;
    }
    
    .promo-ticker {
        padding: 24px 17px;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
    
    /* Benefits Section адаптивность */
    .benefits-section {
        padding: 50px 0;
    }
    
    .benefits-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 100px 20px;
        max-width: none;
    }
    
    .benefit-item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 15px;
    }
    
    .benefit-icon {
        align-self: center;
        margin-bottom: 10px;
    }
    
    .benefit-item p {
        max-width: none;
        color: var(--primary-color);
    }
    
    /* Qualification Section адаптивность */
    .qualification-content {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 0 10px;
    }
    
    .qualification-text h2 {
        font-size: 24px;
        text-align: center;
    }
    
    .qualification-certificates {
        gap: 15px;
    }
    
    .certificate-content {
        padding: 15px 20px;
    }
    
    .certificate-content span {
        font-size: 11px;
        max-width: none;
    }
    
    /* Gallery Section адаптивность */
    .gallery-section h2 {
        font-size: 24px;
        text-align: center;
        padding: 0 10px;
    }
    
    .gallery-slider {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
    
    .gallery-images {
        gap: 10px;
        padding: 0 10px;
    }
    
    .gallery-item {
        width: 280px;
        height: 280px;
    }
    
    .gallery-controls {
        right: 20px;
        gap: 20px;
    }
    
    /* About Section адаптивность */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 10px;
    }
    
    .about-text {
        padding-top: 60px;
        text-align: center;
    }
    
    .about-text h2 {
        font-size: 24px;
    }
    
    .about-photo {
        height: 420px;
        order: -1;
    }
    
    .hero-decoration {
        display: none;
    }
}

@media (max-width: 320px) {
    .hero-header .nav-menu {
        gap: 16px;
    }
    
    .hero-header .nav-menu a {
        font-size: 12px;
    }
    
    .hero-section {
        height: 811px;
        background: url('../images/back.png') center/cover;
    }
    
    .hero-background {
        top: 165px;
        left: 0;
        transform: none;
        width: 100%;
        max-width: none;
        height: 646px;
        background: url('../images/hero-main-2f1040.jpg') center/cover;
    }
    
    .hero-header {
        top: 25px;
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
    }
    
    .hero-header .header-content {
        padding: 0;
        justify-content: space-between;
    }
    
    .hero-content {
        padding: 195px 0 0 0;
        width: 100%;
        max-width: none;
        margin: 0;
    }
    
    .hero-text {
        margin-left: 10px;
        margin-right: 10px;
        max-width: 280px;
    }
    
    .hero-text h1 {
        font-size: 36px;
        line-height: 1.2;
        margin: 0 0 2px 0;
    }
    
    .hero-text .mixed-line {
        font-size: 36px;
        line-height: 1.2;
        margin: 0 0 2px 0;
    }
    
    .hero-text .accent-text {
        font-size: 72px;
        line-height: 1.32;
    }
    
    .hero-buttons {
        margin-left: 40px;
        margin-right: 40px;
        flex-direction: column;
        gap: 20px;
        width: 240px;
        margin-top: 50px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        height: 41px;
        font-size: 12px;
        padding: 12px 19px;
    }
    
    .promo-content {
        animation: marquee 30s linear infinite;
        gap: 50px;
    }
    
    .promo-content span {
        font-size: 16px;
        margin-right: 50px;
        font-weight: 700;
        letter-spacing: 0.17em;
    }
    
    .promo-ticker {
        padding: 24px 17px;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
    
    /* Benefits Section для 320px */
    .benefits-section {
        padding: 40px 0;
    }
    
    .benefits-content {
        padding: 80px 10px;
        gap: 30px;
    }
    
    .benefit-item p {
        font-size: 16px;
        line-height: 1.3;
    }
    
    /* About Section для 320px */
    .about-photo {
        height: 420px;
    }
    
    .about-text h2 {
        font-size: 24px;
    }
    
    .about-description {
        gap: 30px;
    }
    
    .about-description p,
    .about-quote {
        font-size: 16px;
        line-height: 1.3;
    }
    
    /* Мобильное меню для 320px */
    .hero-header .mobile-menu-dropdown {
        padding: 120px 10px 40px;
    }
    
    .mobile-menu-services {
        max-width: 280px;
        margin-bottom: 80px;
    }
    
    .mobile-menu-contact {
        max-width: 280px;
    }
    
    .mobile-menu-contact h4 {
        font-size: 18px;
        margin-bottom: 24px;
    }
    
    .mobile-menu-contact p {
        font-size: 11px;
        margin-bottom: 32px;
    }
    
    .mobile-menu-contact .social-links {
        gap: 12px;
        margin-bottom: 32px;
    }
    
    .mobile-menu-contact .footer-legal {
        gap: 15px;
    }
    
    .mobile-menu-contact .footer-legal a {
        font-size: 11px;
    }
} 

/* Feedback Modal */
.feedback-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(45px); display: none; align-items: center; justify-content: center; z-index: 1000001; }
.feedback-modal.active { display: flex; }
.feedback-overlay { position: absolute; inset: 0; cursor: pointer; }
.feedback-content { position: relative; background: rgba(13,13,13,0.95); color: var(--primary-color); backdrop-filter: blur(10px); border-radius: 8px; padding: 47px 55px; max-width: 840px; width: calc(100% - 40px); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.feedback-close { position: absolute; top: 20px; right: 20px; background: var(--white); border: none; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; font-size: 16px; color: var(--secondary-color); display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.feedback-close:hover { background: var(--primary-color); color: var(--secondary-color); }
.feedback-form .contact-form-section { background: transparent; backdrop-filter: none; padding: 0; min-height: auto; border-radius: 0; }
.feedback-form .contact-form-header { text-align: center; }
.feedback-form .contact-form-wrapper { max-width: 520px; margin: 0 auto; } 

/* Consultation Modal */
.consultation-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(45px); display: none; align-items: center; justify-content: center; z-index: 1000001; }
.consultation-modal.active { display: flex; }
.consultation-overlay { position: absolute; inset: 0; cursor: pointer; }
.consultation-content { position: relative; background: rgba(13,13,13,0.95); color: var(--primary-color); backdrop-filter: blur(10px); border-radius: 8px; padding: 47px 55px; max-width: 840px; width: calc(100% - 40px); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.consultation-close { position: absolute; top: 20px; right: 20px; background: var(--white); border: none; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; font-size: 16px; color: var(--secondary-color); display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.consultation-close:hover { background: var(--primary-color); color: var(--secondary-color); }
.consultation-form .contact-form-section { background: transparent; backdrop-filter: none; padding: 0; min-height: auto; border-radius: 0; }
.consultation-form .contact-form-header { text-align: center; }
.consultation-form .contact-form-wrapper { max-width: 520px; margin: 0 auto; } 

@media (max-width: 640px) {
    /* Modals: feedback & consultation */
    .feedback-content,
    .consultation-content { 
        max-width: 100%; 
        width: calc(100% - 24px); 
        padding: 24px 16px; 
        border-radius: 8px; 
    }
    .feedback-close,
    .consultation-close { 
        top: 12px; 
        right: 12px; 
        width: 24px; 
        height: 24px; 
        font-size: 14px; 
    }
    .feedback-form .contact-form-wrapper,
    .consultation-form .contact-form-wrapper { 
        max-width: 100%; 
    }
    /* Ticker speed on mobile (<=640px) */
    .promo-content { animation-duration: 8s; }
} 

@media (max-width: 320px) {
    /* Modals: feedback & consultation (extra small) */
    .feedback-content,
    .consultation-content {
        max-width: 100%;
        width: calc(100% - 16px);
        padding: 20px 12px;
        border-radius: 8px;
    }
    .feedback-close,
    .consultation-close {
        top: 8px;
        right: 8px;
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    .feedback-form .contact-form-wrapper,
    .consultation-form .contact-form-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 320px) {
    /* Modals: feedback & consultation (extra small) */
    .feedback-content,
    .consultation-content {
        max-width: 100%;
        width: calc(100% - 16px);
        padding: 20px 12px;
        border-radius: 8px;
    }
    .feedback-close,
    .consultation-close {
        top: 8px;
        right: 8px;
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    .feedback-form .contact-form-wrapper,
    .consultation-form .contact-form-wrapper {
        max-width: 100%;
    }
    /* Ticker speed on extra small (<=320px) */
    .promo-content { animation-duration: 6s; }
} 

/* Mobile menu close and overlay */
.hero-header .mobile-menu-dropdown { position: fixed; }
.hero-header .mobile-menu-close { position: absolute; top: 20px; right: 20px; width: 32px; height: 32px; border: none; border-radius: 50%; background: var(--white); color: var(--secondary-color); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.hero-header .mobile-menu-close:hover { background: var(--primary-color); color: var(--secondary-color); }
.hero-header .mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.3); pointer-events: none; }
@media (max-width: 640px){
    .hero-header .mobile-menu-close{ top: 16px; right: 16px; width: 28px; height: 28px; font-size: 16px; }
} 

/* High-priority mobile ticker speed overrides */
@media (max-width: 640px) {
    .promo-content { animation: marquee 10s linear infinite !important; }
}

@media (max-width: 320px) {
    .promo-content { animation: marquee 8s linear infinite !important; }
} 

/* Certificate popup responsive fixes */
@media (max-width: 640px) {
    .certificate-popup .popup-content { max-width: calc(100% - 24px); width: calc(100% - 24px); max-height: 90vh; padding: 16px; overflow: auto; }
    .certificate-popup .popup-image img { width: 100%; height: auto; max-height: calc(90vh - 120px); object-fit: contain; }
    .certificate-popup .popup-controls { gap: 24px; }
}
@media (max-width: 320px) {
    .certificate-popup .popup-content { max-width: calc(100% - 16px); width: calc(100% - 16px); padding: 12px; }
    .certificate-popup .popup-image img { max-height: calc(90vh - 100px); }
    .certificate-popup .popup-prev, .certificate-popup .popup-next { width: 20px; height: 20px; font-size: 16px; }
} 

/* Girl zoom popup */
.girl-popup { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; z-index: 1000002; }
.girl-popup.active { display: flex; }
.girl-popup-overlay { position: absolute; inset: 0; cursor: pointer; }
.girl-popup-content { position: relative; background: rgba(13,13,13,0.95); border-radius: 8px; padding: 12px; max-width: 90vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.girl-popup-close { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border: none; border-radius: 50%; background: var(--white); color: var(--secondary-color); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.girl-popup-image img { max-width: 88vw; max-height: 84vh; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
@media (max-width: 640px){ .girl-popup-content{ max-width: 96vw; max-height: 92vh; } .girl-popup-image img{ max-width: 94vw; max-height: 86vh; } } 