/* ============================================
   LOCAL FONTS
   ============================================ */

/* Inter Font Family */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-600.woff2') format('woff2');
}

/* Montserrat Font Family */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/montserrat-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/montserrat-800.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('../fonts/montserrat-900.woff2') format('woff2');
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}
body {
    font-family: 'Inter', sans-serif;
    width: 100%;
}

h1, h2, h3, .font-montserrat { 
    font-family: 'Montserrat', sans-serif; 
}

.accent-color { 
    color: #7D9E70; 
}

.bg-accent {
    background-color: #7D9E70;
}

/* Half section header - десктоп */
#half-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (min-width: 1440px) {
    .snap-container {
        height: 100vh;
        overflow-y: scroll;
        overflow-x: hidden;
        scroll-snap-type: y mandatory;
    }
    .snap-section {
        scroll-snap-align: start;
        scroll-snap-stop: always;
        height: 100vh;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
    }

    /* FAQ: внутренний скролл для всей секции */
    #faq {
        scroll-snap-align: start;
        scroll-snap-stop: always;
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        justify-content: flex-start;
    }

    /* Секции с возможным внутренним скроллом */
    #catalog,
    #half,
    #cooperation,
    #delivery,
    #application {
        justify-content: center;
        overflow-y: auto;
        overflow-x: hidden;
    }
}

/* 920–1439px: сайдбар есть, снэп выключен */
@media (min-width: 920px) and (max-width: 1439px) {
    .snap-container {
        height: auto;
        overflow-y: visible;
        scroll-snap-type: none;
    }
    .snap-section {
        min-height: 100vh;
        min-height: 100svh; /* TG WebView: svh не меняется при show/hide navigation bar */
        padding: 40px 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
    }

    /* Hero - уменьшить шрифты */
    #hero h1 {
        font-size: 36px !important;
        line-height: 1.15 !important;
    }

    #hero p {
        font-size: 17px !important;
    }

    /* Панели на заказ - форма 55% */
    #custom .flex-1.w-full {
        width: 55% !important;
        max-width: 55%;
    }
}

/* < 920px: без сайдбара, без снэпа */
@media (max-width: 919px) {
    /* ===== 1. SNAP CONTAINER: отключаем снэп-скролл ===== */
    .snap-container {
        height: auto;
        overflow-y: visible;
        overflow-x: hidden;
    }

    /* ===== 2. СЕКЦИИ: единственный источник внешних отступов (18px) ===== */
    .snap-section {
        min-height: 0;
        padding: 18px !important;
        display: block;
        width: 100%;
        scroll-margin-top: 60px;
    }

    /* ===== 3. HERO: исключение — остаётся 100vh ===== */
    #hero {
        min-height: 100vh;
        min-height: 100svh;
        padding: 40px 0 !important;
    }

    /* ===== 4. ОБЁРТКИ: убираем height/padding/flex-centering ===== */
    #custom > div,
    #cooperation > div {
        height: auto;
        padding: 0 !important;
    }
    #contacts-wrapper {
        height: auto;
    }

    /* ===== 5. ЗАГОЛОВКИ: единообразный отступ после h2 ===== */
    .section-title {
        margin-bottom: 16px !important;
    }

    /* ===== 6. CATALOG / HALF: убить inline margin-bottom: 32px ===== */
    #catalog > div:first-child,
    #half-header {
        margin-bottom: 16px !important;
    }

    /* ===== 7. ВНУТРЕННИЕ ГЭПЫ: нормализация ===== */

    /* About: gap-16 (64px) → 24px */
    #about > div {
        gap: 24px !important;
    }

    /* Custom & Cooperation: inline gap: 100px → 24px */
    #custom .max-w-7xl > div,
    #cooperation .max-w-7xl > div {
        gap: 24px !important;
    }

    /* Mounting-care: gap-12 (48px) → 16px */
    #mounting-care .max-w-7xl > div:last-child {
        gap: 16px !important;
    }

    /* Delivery: gap-12 (48px) → 16px */
    #delivery .max-w-7xl > div {
        gap: 16px !important;
    }

    /* Delivery payment block: mb-10 (40px) → 16px */
    #delivery .mb-10 {
        margin-bottom: 16px !important;
    }

    /* Application: tab buttons mb-12 (48px) → 16px, grid mt-12 (48px) → 16px */
    #application .mb-12 {
        margin-bottom: 16px !important;
    }
    #application .mt-12 {
        margin-top: 16px !important;
    }

    /* Stats grid */
    #stats .grid {
        gap: 12px !important;
    }
    #stats .font-montserrat {
        margin-bottom: 8px !important;
    }
    #video .font-montserrat {
        margin-bottom: 8px !important;
    }

    /* ===== 8. ТИПОГРАФИКА ===== */
    .video-player {
        aspect-ratio: 9/16 !important;
    }
    h1 {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }
    h2 {
        font-size: 24px;
    }
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.custom-scrollbar::-webkit-scrollbar { 
    width: 4px; 
}

.custom-scrollbar::-webkit-scrollbar-track { 
    background: transparent; 
}

.custom-scrollbar::-webkit-scrollbar-thumb { 
    background: #7D9E70; 
    border-radius: 10px; 
}

.slider-container { 
    display: flex; 
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

#gallery-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 -10px;
    width: calc(100% + 20px);
}

#projects-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 -10px;
    width: calc(100% + 20px);
}


.gallery-item { 
    flex: 0 0 33.333%; 
    min-width: 0;
    padding: 0 10px; 
    box-sizing: border-box; 
}

/* Проекты - 3 в ряд (квадратные) */
.projects-item {
    flex: 0 0 33.333%;
    min-width: 0;
    padding: 0 10px;
    box-sizing: border-box;
}

/* ≥ 1200px - 3 в ряд */
@media (min-width: 1200px) {
    .gallery-item {
        flex: 0 0 33.33%;
    }

    .projects-item {
        flex: 0 0 33.33%;
    }
}

/* 920–1199px - 2 в ряд (сайдбар + экран меньше 1200px) */
@media (min-width: 920px) and (max-width: 1199px) {
    .gallery-item {
        flex: 0 0 50% !important;
    }
    .projects-item {
        flex: 0 0 50% !important;
    }
    .video-slide {
        flex: 0 0 50% !important;
    }
}

/* 560–919px - 2 в ряд */
@media (min-width: 560px) and (max-width: 919px) {
    .gallery-item {
        flex: 0 0 50%;
    }

    .projects-item {
        flex: 0 0 50%;
    }
}

/* Стрелки галереи - зеленые */
.slider-arrow {
    background-color: #7D9E70;
    color: white;
}

.slider-arrow:hover {
    background-color: #6b8660;
}

/* Кнопки галереи - на десктопе за пределами, на мобильной на границе */
#gallery .gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

/* Десктоп - кнопки за пределами галереи */
@media (min-width: 768px) {
    /* Увеличиваем боковые отступы секции, чтобы вместить кнопки */
    #gallery {
        padding-left: 100px !important;
        padding-right: 100px !important;
    }

    #gallery .gallery-nav-btn.left {
        left: -70px;
    }

    #gallery .gallery-nav-btn.right {
        right: -70px;
    }
}

/* Мобильная версия - кнопки за пределами фото */
@media (max-width: 767px) {
    #gallery {
        padding-left: 60px !important;
        padding-right: 60px !important;
        overflow: visible !important;
    }

    #gallery .gallery-nav-btn.left {
        left: -50px;
    }

    #gallery .gallery-nav-btn.right {
        right: -50px;
    }
}

/* Кнопки production-2 - аналогично галерее */
#production-2 .production-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

@media (min-width: 768px) {
    #production-2 {
        padding-left: 100px !important;
        padding-right: 100px !important;
    }

    #production-2 .production-nav-btn.left {
        left: -70px;
    }

    #production-2 .production-nav-btn.right {
        right: -70px;
    }
}

@media (max-width: 767px) {
    #production-2 {
        padding-left: 60px !important;
        padding-right: 60px !important;
        overflow: visible !important;
    }

    #production-2 .production-nav-btn.left {
        left: -50px;
    }

    #production-2 .production-nav-btn.right {
        right: -50px;
    }
}

/* Кнопки projects - аналогично галерее */
#projects .projects-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

@media (min-width: 768px) {
    #projects {
        padding-left: 100px !important;
        padding-right: 100px !important;
    }

    #projects .projects-nav-btn.left {
        left: -70px;
    }

    #projects .projects-nav-btn.right {
        right: -70px;
    }
}

@media (max-width: 767px) {
    #projects {
        padding-left: 60px !important;
        padding-right: 60px !important;
        overflow: visible !important;
    }

    #projects .projects-nav-btn.left {
        left: -50px;
    }

    #projects .projects-nav-btn.right {
        right: -50px;
    }

    /* (moved to top of @media block) */

    /* Отключаем scale-анимацию на тайлах галерей при тапе */
    #gallery-slider img,
    #projects-slider img,
    #production-slider img {
        transform: none !important;
        transition: none !important;
    }
}

@media (max-width: 559px) {
    .gallery-item {
        flex: 0 0 100%;
        padding: 0 10px;
    }

    .projects-item {
        flex: 0 0 100%;
        padding: 0 30px;
    }

    #gallery-slider,
    #projects-slider {
        margin: 0;
    }
    
    /* Наши проекты - унифицированные отступы */
    #projects {
        padding: 80px 24px 40px 24px !important;
    }

    #projects .overflow-visible {
        padding-bottom: 0 !important;
    }

    /* Контакты - отступ сверху для хедера, без боковых паддингов (карта во всю ширину) */
    #contacts {
        padding: 80px 0 0 0 !important;
    }

    /* Применение - отступы как у других секций */
    #application {
        padding: 80px 24px 40px 24px !important;
    }
    
    /* О компании - фото производства на мобилке: квадрат под текстом 300x300 */
    #about .relative {
        width: 100% !important;
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Упрощаем структуру: внутренний контейнер ведем как обычный блок */
    #about .relative > div {
        position: relative !important;
        width: 100% !important;
        height: 300px !important;
    }
    
    #about #about-production-img {
        display: block;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }
    
    /* Монтаж, обрезка, уход - отступы как у других секций, без ограничения высоты на мобилке */
    #mounting-care {
        padding: 80px 24px 40px 24px !important;
        min-height: auto !important;
        display: block !important;
    }
    
    #mounting-care > div {
        min-height: auto !important;
        max-height: none !important;
    }

    /* На мобилке mounting-care не должен использовать absolute-раскладку (иначе наезжает на следующие секции) */
    #mounting-care .w-full.relative {
        position: static !important;
    }
    #mounting-care .mounting-care-content {
        position: static !important;
        inset: auto !important;
    }
    #mounting-care .mounting-care-content.hidden {
        display: none !important;
    }
    
    /* Доставка - на мобилке без ограничения высоты */
    #delivery {
        min-height: auto !important;
        padding: 48px 24px 32px 24px !important;
        position: relative;
        overflow: hidden;
        height: auto !important;
    }
    
    /* Мобилка: 1 строка russia, 2 строка - 3 delivery в линию */
    .delivery-gallery {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        width: 100%;
        flex-wrap: nowrap !important;
    }
    
    .delivery-item {
        overflow: hidden;
        border-radius: 24px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        flex-shrink: 0;
    }
    
    .delivery-square {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
    }
    
    .delivery-vertical {
        width: auto !important;
        height: auto !important;
    }
    
    .delivery-vertical-wrapper {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        width: 100%;
    }

    .delivery-vertical-wrapper > .delivery-vertical {
        flex: 1;
        aspect-ratio: 188 / 250;
        min-width: 0;
    }
    
    .delivery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Карта в контактах на мобилке без отступов слева/справа */
    #map-container {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100vw !important;
        margin-left: 50%;
        transform: translateX(-50%);
    }
}

/* Sidebar - компактный размер шрифта на десктопе для Safari */
@media (min-width: 920px) {
    #sidebar .nav-link {
        font-size: 14px !important;
        padding-top: 6px;
        padding-bottom: 6px;
    }
}
@media (min-width: 1440px) {
    #sidebar .nav-link {
        font-size: 16px !important;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

    /* На десктопе для секции mounting-care - центрирование по вертикали и горизонтали */
@media (min-width: 920px) {
    #mounting-care {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* Доставка на десктопе - min-height 100vh, может расти */
    #delivery {
        min-height: 100vh !important;
        height: auto !important;
        padding: 48px 32px 32px 32px !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .delivery-gallery {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center;
        justify-content: center;
        gap: 16px;
    }

    .delivery-vertical-wrapper {
        display: flex !important;
        flex-direction: row !important;
        gap: 16px;
        flex-shrink: 0;
    }

    .delivery-square {
        width: 250px !important;
        height: 250px !important;
        flex-shrink: 0;
    }

    .delivery-vertical {
        width: 188px !important;
        height: 250px !important;
        flex-shrink: 0;
    }

    /* На мобилке фото в 2 колонки (2 в ряд, 2 линии) */
    #application-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}

/* Панели под заказ - белый фон */
#custom {
    background-color: white !important;
}


/* Hero секция */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Правая картинка hero как background: высота 100vh, картинка прижата к правому краю.
   Контент центрируется по ширине оставшейся части (100vw - ширина картинки). */
/* Hero layout и видео */
.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
}

@media (min-width: 920px) {
  /* Отступы секции: 5% слева и справа */
  #hero {
    padding: 0 5%;
  }

  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 5.5%; /* ≈5% от ширины секции (5% / 90% inner) */
    height: auto;
    padding: 0 !important; /* отменяем critical CSS padding: 0 48px */
  }

  /* Текстовый блок: 55% от ширины секции = 61% от hero-inner (90%) */
  .hero-text-col {
    flex: 0 0 61%;
    max-width: 61%;
    min-width: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
    align-items: flex-start !important;
    justify-content: center !important;
  }

  .hero-text-col .hero-text-inner {
    width: 100%;
    max-width: 100%;
  }

  /* Видео: 30% от ширины секции = 33% от hero-inner (90%) */
  .hero-video-col {
    flex: 0 0 33%;
    max-width: 33%;
  }

  .hero-video-wrapper {
    /* Вертикальное видео 640×1162, максимум 80vh по высоте */
    aspect-ratio: 640 / 1162;
    height: 80vh;
    max-height: 80vh;
    width: auto;
  }

  .hero-video-wrapper video.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Hero heading - fixed px for cross-browser consistency */
  #hero h1 {
    font-size: 38px !important;
    line-height: 1.2 !important;
  }
}

/* Мобильная версия hero */
@media (max-width: 919px) {
  /* Уменьшаем боковые отступы секции до 10px */
  #hero {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  /* Единый вертикальный ритм */
  .hero-text-inner h1 {
    margin-bottom: 12px !important;
  }
  .hero-text-inner p,
  .hero-buttons {
    margin-bottom: 16px !important;
  }

  .hero-mobile-video {
    margin-top: 0 !important;
    margin-bottom: 24px !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 24px !important;
  }

  .hero-mobile-video > div {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 50vh;
    aspect-ratio: 640 / 1162;
  }

  .hero-mobile-video-el {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Скрываем controls если они появляются */
  .hero-mobile-video-el::-webkit-media-controls {
    display: none !important;
  }

  .hero-mobile-video-el::-webkit-media-controls-enclosure {
    display: none !important;
  }
}

/* Hero кнопки - белые с черным текстом, hover = зеленый текст */
.hero-btn {
    background: white;
    color: black;
    transition: color 0.3s ease;
}

.hero-btn:hover {
    background: white;
    color: #7D9E70;
}

@media (max-width: 640px) {
    #hero {
        min-height: 100vh;
    }
}

/* Video slider */
#video-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 -10px;
    width: calc(100% + 20px);
}

.video-slide {
    flex: 0 0 33.333%;
    min-width: 0;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

/* Video slider wrapper - flexbox for symmetric arrows */
.video-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

/* Video nav buttons */
.video-nav-btn {
    background: #7D9E70;
    border: none;
    color: white;
    cursor: pointer;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    opacity: 0.9;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.video-nav-btn:hover {
    opacity: 1;
    transform: scale(1.05);
}

.video-nav-btn svg {
    width: 24px;
    height: 24px;
}

@media (min-width: 920px) {
    #video {
        padding-left: 100px !important;
        padding-right: 100px !important;
    }
    #video .video-nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }
    #video .video-nav-btn.left {
        left: -70px;
    }
    #video .video-nav-btn.right {
        right: -70px;
    }
    #video .video-nav-btn:hover {
        transform: translateY(-50%) scale(1.05);
    }
}

@media (min-width: 560px) and (max-width: 919px) {
    #video {
        padding-left: 60px !important;
        padding-right: 60px !important;
    }
    #video .video-nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }
    #video .video-nav-btn.left {
        left: -50px;
    }
    #video .video-nav-btn.right {
        right: -50px;
    }
    #video .video-nav-btn:hover {
        transform: translateY(-50%) scale(1.05);
    }

    .video-slide {
        flex: 0 0 50%;
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    /* О компании: текст слева, картинка справа (макс. 40%) */
    #about > div {
        flex-direction: row !important;
        gap: 32px !important;
        align-items: center !important;
    }
    #about > div > div:first-child {
        flex: 1 1 0% !important;
        min-width: 0 !important;
    }
    #about > div > div:last-child {
        flex: 0 0 38% !important;
        max-width: 40% !important;
    }

    /* Преимущества: карточка 90% */
    .benefits-header-wrapper {
        width: 90% !important;
    }
    .benefits-card-container {
        width: 90% !important;
    }
}

/* Video player styles */
.video-player {
    position: relative;
    background: #000;
    max-height: 70vh;
    aspect-ratio: 9/16;
    min-width: 0;
}

/* Видео монтажа в блоке mounting-care */
#mounting-care .mounting-care-video-container {
    height: 50vh !important;
    aspect-ratio: 1 / 1 !important;
    flex-shrink: 0 !important;
}

#mounting-care .mounting-care-video.video-player {
    aspect-ratio: 1 / 1 !important;
    height: 100% !important;
    width: 100% !important;
    max-height: none !important;
    flex: none !important;
}

#mounting-care .mounting-care-video {
    aspect-ratio: 1 / 1 !important;
    height: 100% !important;
    width: 100% !important;
}

@media (max-width: 640px) {
    #content-mounting .video-player {
        width: 100%;
        max-width: 300px;
        aspect-ratio: 1 / 1;
        margin: 0 auto;
    }

    #mounting-care .mounting-care-video-container {
        height: 50vh !important;
        aspect-ratio: 1 / 1 !important;
    }

    #mounting-care .mounting-care-video {
        aspect-ratio: 1 / 1 !important;
        height: 100% !important;
        width: 100% !important;
    }
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Выравнивание заголовка video по левой границе первого видео */
.video-title {
    text-align: left;
}

/* На мобилке видео - будет переопределено ниже */
@media (max-width: 640px) {
    .video-nav-btn svg {
        width: 24px;
        height: 24px;
    }

    .video-player {
        max-height: none !important;
    }
}

/* About картинка на мобилке - отступы от краев */
@media (max-width: 919px) {
    .about-image-container {
        max-width: calc(100% - 48px) !important;
    }
}

/* Production-1 видео слайдер на мобилке */
@media (max-width: 640px) {
    #production-1 #production1-video-slider {
        border-width: 4px !important;
        border-radius: 24px !important;
    }

    #production-1 .video-nav-btn.left {
        left: -44px !important;
    }

    #production-1 .video-nav-btn.right {
        right: -44px !important;
    }
}

/* Production-1 buttons need absolute positioning */
#production-1 .video-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
#production-1 .video-nav-btn:hover {
    transform: translateY(-50%) scale(1.05);
}

@media (max-width: 919px) {
    #production-1 .video-nav-btn.left {
        left: -48px !important;
    }

    #production-1 .video-nav-btn.right {
        right: -48px !important;
    }
}

.video-preview {
    position: absolute;
    inset: 0;
    cursor: pointer;
    transition: opacity 0.3s;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-preview.playing {
    opacity: 0;
    pointer-events: none;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #7D9E70;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.video-preview:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Футер мобильный */
.mobile-footer {
    background: #000;
    color: #ffffff;
    padding: 32px 24px;
    text-align: center;
    margin-top: 0 !important;
}

@media (max-width: 640px) {
    .mobile-footer {
        padding: 0;
        margin-top: 0 !important;
    }
}

.mobile-footer a {
    color: #7D9E70;
    text-decoration: underline;
}

/* Карта на мобилке - 100% ширины без отступов */
@media (max-width: 919px) {
    /* Sidebar - телефон и корзина в одну линию в мобильном меню */
    #sidebar-phone-cart {
        flex-direction: row !important;
        align-items: stretch !important;
    }

    /* Телефон - компактная версия в стиле корзины */
    #sidebar-phone-cart > a {
        flex: 0 0 auto !important;
        width: auto !important;
        padding: 16px !important;
        display: block !important;
        background: #E5ECE3 !important;
        border: 1px solid #E5ECE3 !important;
        border-radius: 16px !important;
    }

    #sidebar-phone-cart > a .sidebar-phone-full {
        display: none !important;
    }

    #sidebar-phone-cart > a .sidebar-phone-compact {
        display: block !important;
    }

    /* Корзина - компактная версия (только сумма), ограниченная ширина */
    #sidebar-phone-cart > #sidebar-cart {
        flex: 1 !important;
        max-width: 200px !important;
    }

    #sidebar-phone-cart > #sidebar-cart .sidebar-cart-full {
        display: none !important;
    }

    #sidebar-phone-cart > #sidebar-cart .sidebar-cart-compact {
        display: block !important;
    }

    #contacts {
        padding: 0 !important;
        overflow: visible !important;
    }

    #contacts-wrapper {
        display: block !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: auto !important;
        margin-left: calc(-50vw + 50%) !important;
        position: relative !important;
    }

    #contacts-info {
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 32px 24px !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    #contacts-info > div {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
    }

    #map-container {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 400px !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        transform: none !important;
    }

    #yandex-map {
        width: 100% !important;
        height: 100% !important;
    }
}

/* ============================================
   CONTACTS — 920–1439px
   min-height: секция может вырасти > 100vh
   ============================================ */
@media (min-width: 920px) and (max-width: 1439px) {
    #contacts {
        min-height: 100vh !important;
        height: auto !important;
    }
    #contacts-wrapper {
        min-height: 100vh !important;
    }
}

/* ============================================
   CONTACTS & BENEFITS — 920–1023px
   Tailwind lg: = 1024px, поэтому вручную задаём
   desktop-layout для диапазона 920–1023px
   ============================================ */
@media (min-width: 920px) and (max-width: 1023px) {
    /* Контакты: горизонтальный layout как на десктопе */
    #contacts-wrapper {
        flex-direction: row !important;
    }
    #contacts-info {
        width: 50% !important;
        flex-shrink: 0 !important;
    }
    #map-container {
        flex: 1 1 auto !important;
        height: 100% !important;
        min-height: 400px !important;
    }

    /* Преимущества: компактнее при узком контенте */
    .benefits-section {
        padding: 40px 20px 48px !important;
    }
    .benefits-title {
        font-size: 26px !important;
    }
    .benefits-subtitle {
        font-size: 13px !important;
        margin-bottom: 24px !important;
    }
    .benefits-header-wrapper {
        width: 95% !important;
    }
    .benefits-card-container {
        width: 95% !important;
    }
}

/* FAQ аккордеон - компактная версия */
.faq-block {
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* На десктопе FAQ блоки — 100% ширины faq-container */
@media (min-width: 920px), (min-width: 641px) and (orientation: landscape) {
    .faq-block {
        width: 100%;
        max-width: 100%;
    }

    .faq-block-header,
    .faq-question,
    .faq-answer {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

.faq-block:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-color: #7D9E70;
}

.faq-block-header {
    background: linear-gradient(135deg, #7D9E70 0%, #6b8660 100%);
    color: white;
    padding: 16px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.faq-block-header:hover {
    background: linear-gradient(135deg, #6b8660 0%, #5a7550 100%);
}

.faq-block-header span:first-child {
    flex: 1;
}

.faq-question {
    border-top: 1px solid #e5e7eb;
    padding: 14px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: white;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.faq-question:hover {
    background: #f9fafb;
    color: #7D9E70;
}

.faq-answer {
    padding: 0 24px 16px 24px;
    color: #4b5563;
    line-height: 1.6;
    background: #fafafa;
    width: 100%;
    box-sizing: border-box;
}

/* Мобильные стили FAQ */
@media (max-width: 640px) {
    .faq-block {
        width: 100%;
    }
    
    .faq-block-header {
        padding: 14px 20px;
        font-size: 15px;
    }

    .faq-question {
        padding: 12px 20px;
        font-size: 14px;
    }

    .faq-answer {
        padding: 0 20px 14px 20px;
        font-size: 14px;
    }
}
img[data-src] {
    background: #f0f0f0;
}

/* Кнопки корзины */
.cart-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.cart-qty-btn:active {
    background-color: #7D9E70;
    color: white;
    transform: scale(0.95);
}

@media (min-width: 640px) {
    .cart-qty-btn:hover {
        background-color: #e5e7eb;
    }
}

/* (удалён блок с ограничением высоты FAQ — секция теперь может быть выше 100vh) */

/* Утилитарные классы */
.section-title {
    font-size: 32px;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.05em;
}

.card-shadow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card-shadow:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.rounded-card {
    border-radius: 24px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .rounded-card {
        border-radius: 32px;
    }
}

.btn-primary {
    background-color: #7D9E70;
    color: white;
    padding: 16px 32px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(125, 158, 112, 0.3);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(125, 158, 112, 0.4);
}

.btn-secondary {
    background: white;
    color: black;
    padding: 16px 32px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.btn-secondary:hover {
    color: #7D9E70;
}
/* Кнопка "Купить" в каталоге */
.btn-buy {
    width: 100%;
    background-color: #7D9E70;
    color: white;
    font-weight: 900;
    padding: 10px;
    border-radius: 12px;
    font-size: 10px;
    letter-spacing: 0.1em;
    transition: all 0.2s;
}

.btn-buy:hover {
    filter: brightness(1.1);
}

.btn-buy:active {
    transform: scale(0.95);
}

@media (min-width: 768px) {
    .btn-buy {
        padding: 16px;
        font-size: 12px;
    }
}

/* Кнопка отправки формы */
.btn-submit {
    width: 100%;
    background-color: #7D9E70;
    color: white;
    padding: 24px;
    border-radius: 16px;
    font-weight: 900;
    font-size: 20px;
    box-shadow: 0 25px 50px -12px rgba(125, 158, 112, 0.25);
    transition: all 0.3s;
}

.btn-submit:hover {
    filter: brightness(1.1);
}

/* Hero секция - зеленый фон */
#hero {
    background-color: #7D9E70;
}

/* Черно-белая карта */
.grayscale {
    filter: grayscale(100%);
}

.grayscale:hover {
    filter: grayscale(80%);
}

/* Карта - pointer-events управляется через JS */

/* ============================================
   CATALOG SECTION - NEW DESIGN
   ============================================ */

#catalog,
#half {
    background: #E5ECE3 !important;
    padding: 28px 40px 28px !important;
}

.catalog-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: #1a1a1a;
    letter-spacing: -0.03em;
    margin-bottom: 2px;
}

.catalog-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #777;
    margin-bottom: 8px;
}
@media (min-width: 1440px) {
    p.catalog-subtitle {
        font-size: 20px;
    }
}

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

/* Карточка товара */
.product-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(125,158,112,0.08), 0 0 1px rgba(0,0,0,0.03);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: visible;
    opacity: 1;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(125,158,112,0.14), 0 2px 6px rgba(0,0,0,0.04);
    z-index: 2;
}

/* Слайдер фото */
.product-image-slider {
    position: relative;
    margin: 16px auto 0;
    max-width: calc(100% - 32px);
}

.product-image-slider.dragging {
    cursor: grabbing;
}

.product-image-slider.dragging .product-image-track {
    cursor: grabbing;
}

.product-image-viewport {
    aspect-ratio: 3/4; /* по умолчанию для catalog (600×799) */
    height: 45vh;
    max-height: 600px;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

/* Другая пропорция для половинок (400×600) */
#half .product-image-viewport {
    aspect-ratio: 2/3;
}

.product-image-track {
    display: flex;
    height: 100%;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    cursor: grab;
    user-select: none;
}

.product-image-track.no-transition {
    transition: none !important;
}

.product-image-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.product-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
    display: block;
}

/* Стрелки */
.product-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.product-arrow svg {
    color: #1a1a1a;
}

.product-arrow.left {
    left: -18px;
}

.product-arrow.right {
    right: -18px;
}

.product-card:hover .product-arrow {
    opacity: 1;
}

.product-arrow:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-50%) scale(1.1);
}

.product-arrow:active {
    transform: translateY(-50%) scale(1.0);
}

/* Dots индикатор */
.product-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 5;
}

.product-dot {
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-dot:not(.active) {
    width: 6px;
}

.product-dot.active {
    width: 18px;
    background: rgba(255,255,255,1);
}

.product-dot:hover {
    background: rgba(255,255,255,0.8);
}

/* Контент карточки */
.product-content {
    padding: 12px 16px 16px;
    overflow: hidden;
    border-radius: 0 0 16px 16px;
}

.product-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.product-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #7D9E70;
    margin-bottom: 6px;
}

.product-price .currency {
    font-size: 16px;
    font-weight: 500;
}

.product-qty-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
    display: block;
}

.product-qty-selector {
    display: inline-flex;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    margin-bottom: 14px;
}

.product-qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    user-select: none;
}

.product-qty-btn:first-child {
    border-radius: 10px 0 0 10px;
}

.product-qty-btn:last-child {
    border-radius: 0 10px 10px 0;
}

.product-qty-btn:hover {
    background: #e5e7eb;
}

.product-qty-btn:active {
    background: #e8e8e6;
}

.product-qty-value {
    width: 44px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-left: 1px solid #e2e2e2;
    border-right: 1px solid #e2e2e2;
}

/* Селектор диаметра */
.product-diameter-selector {
    display: inline-flex;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
}

.diameter-btn {
    height: 40px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    color: #555;
}

.diameter-btn:first-child {
    border-radius: 10px 0 0 10px;
    border-right: 1px solid #e2e2e2;
}

.diameter-btn:last-child {
    border-radius: 0 10px 10px 0;
}

.diameter-btn:hover {
    background: #e5e7eb;
}

.diameter-btn.active {
    background: #7D9E70;
    color: #fff;
}

/* Компактные контролы в #half — чтобы количество + диаметр помещались в 1 строку */
#half .product-qty-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
}

#half .product-qty-value {
    width: 34px;
    height: 32px;
    font-size: 13px;
}

#half .diameter-btn {
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
}

#half .product-qty-label {
    font-size: 11px;
}

.product-buy-btn {
    width: 100%;
    border: 1.5px solid #7D9E70;
    background: transparent;
    color: #7D9E70;
    border-radius: 10px;
    padding: 12px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-buy-btn:hover {
    background: #7D9E70;
    color: #fff;
}

.product-buy-btn:active {
    transform: scale(0.98);
}

.product-buy-btn.added {
    background: #7D9E70;
    color: #fff;
    border-color: #7D9E70;
}

/* 920–1439px: 2 колонки */
@media (max-width: 1439px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* < 560px: 1 колонка */
@media (max-width: 559px) {
    #catalog,
    #half {
        padding: 40px 20px 44px !important;
    }

    .catalog-title {
        font-size: 28px;
    }

    .catalog-subtitle {
        font-size: 14px;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .product-arrow {
        width: 28px;
        height: 28px;
    }

    .product-arrow svg {
        width: 14px;
        height: 14px;
    }
}

/* Секция "Применение" */
.application-tab {
    background: white;
    color: #7D9E70;
    border: 2px solid #7D9E70;
}

.application-tab:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(125, 158, 112, 0.2);
}

.application-tab.active {
    background: #7D9E70;
    color: white;
    border-color: #7D9E70;
}

.application-tab.active:hover {
    background: #6b8660;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(125, 158, 112, 0.3);
}

/* Application container - 90% ширины секции */
.application-container {
    width: 90%;
    max-width: 90%;
    margin: 0 auto;
}

/* Application photo containers */
.application-photo-container {
    height: 35vh;
    max-height: 300px;
    aspect-ratio: 1 / 1;
    width: 100%;
}

/* На десктопе фото в 4 колонки */
@media (min-width: 768px) {
    #application-gallery {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: clamp(16px, 3vw, 48px) !important;
    }
}

/* На мобилке фото меньше */
@media (max-width: 767px) {
    #application-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .application-photo-container {
        height: auto;
        width: 100%;
    }
}

/* Application и Delivery — компактнее на десктопе для Safari */
@media (min-width: 920px) {
    #application .section-title {
        font-size: 40px;
        margin-bottom: 24px !important;
    }
    #application .application-tab {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
    .application-photo-container {
        height: 25vh;
        max-height: 220px;
    }
    #application .application-container > .grid {
        margin-top: 24px !important;
        font-size: 14px;
    }
    #delivery .section-title {
        font-size: 40px;
        margin-bottom: 8px !important;
    }
    #delivery .text-base {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin-bottom: 6px !important;
    }
    #delivery .mb-10 {
        margin-bottom: 24px !important;
    }
}

/* ============================================
   BENEFITS SECTION - VS TABLE
   ============================================ */

.benefits-section {
    background-color: #1a2332 !important;
    padding: 56px 40px 64px;
}

.benefits-container {
    max-width: 880px;
    margin: 0 auto;
}

.benefits-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 38px;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: -0.03em;
    text-align: left;
    margin-bottom: 12px;
}

.benefits-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: rgba(255,255,255,0.45);
    text-align: left;
    max-width: 480px;
    margin: 0 0 48px 0;
}

/* Icons */
.benefits-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.benefits-icon-check {
    background: rgba(125,158,112,0.15);
    color: #8fb882;
}

.benefits-icon-cross {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.35);
}

/* Animations */
@keyframes benefitsFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes benefitsPopIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.benefits-row.visible,
.benefits-card-mobile.visible {
    animation: benefitsFadeUp 0.5s ease-out forwards;
}

.benefits-row.visible .benefits-icon,
.benefits-card-mobile.visible .benefits-icon {
    animation: benefitsPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Desktop: VS Table */
.benefits-table-desktop {
    display: block;
}

.benefits-stack-mobile {
    display: none;
}

.benefits-header {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    margin-bottom: 20px;
    gap: 0;
}

.benefits-header-left,
.benefits-header-right {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.benefits-header-left {
    color: #8fb882;
    text-align: right;
    padding-right: 20px;
}

.benefits-header-vs {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.2);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefits-header-right {
    color: rgba(255,255,255,0.5);
    text-align: left;
    padding-left: 20px;
}

.benefits-row {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 0;
    padding: 16px 20px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.benefits-row-even {
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
}

.benefits-row:hover {
    background: rgba(255,255,255,0.08);
    border-radius: 14px;
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.benefits-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefits-cell-ours {
    justify-content: flex-end;
    text-align: right;
    flex-direction: row-reverse;
}

.benefits-cell-theirs {
    justify-content: flex-start;
    text-align: left;
}

.benefits-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.benefits-cell-ours .benefits-text {
    color: rgba(255,255,255,0.9);
}

.benefits-cell-theirs .benefits-text {
    color: rgba(255,255,255,0.6);
}

.benefits-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.benefits-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    min-height: 24px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* Mobile: Card Stack */
@media (max-width: 767px) {
    .benefits-section {
        padding: 40px 20px 48px;
    }

    .benefits-title {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .benefits-subtitle {
        font-size: 14px;
        margin-bottom: 32px;
    }

    .benefits-table-desktop {
        display: none;
    }

    .benefits-stack-mobile {
        display: block;
    }

    .benefits-card-mobile {
        border-radius: 16px;
        overflow: hidden;
        margin-bottom: 12px;
        opacity: 0;
    }

    .benefits-card-ours {
        padding: 14px 16px;
        background: linear-gradient(90deg, rgba(125,158,112,0.18), rgba(125,158,112,0.06));
        border-bottom: 1px solid rgba(125,158,112,0.1);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .benefits-card-ours .benefits-text {
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        color: rgba(255,255,255,0.92);
        font-weight: 500;
        line-height: 1.4;
    }

    .benefits-card-theirs {
        padding: 12px 16px;
        background: rgba(255,255,255,0.02);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .benefits-card-theirs .benefits-text {
        font-family: 'Inter', sans-serif;
        font-size: 13px;
        color: rgba(255,255,255,0.55);
        line-height: 1.4;
    }
}
/* ============================================
   BENEFITS SECTION - NEW CARD DESIGN
   ============================================ */

/* Header wrapper - aligned with card */
.benefits-header-wrapper {
    width: 70%;
    margin: 0 auto 32px auto;
}

/* Белая карточка-контейнер */
.benefits-card-container {
    background: #ffffff;
    border-radius: 24px;
    width: 70%;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
}

/* Заголовок внутри белого блока */
.benefits-inner-header {
    display: grid !important;
    grid-template-columns: 1fr 48px 1fr !important;
    padding: 24px 32px 16px 32px !important;
    border-bottom: 2px solid #f0f0f0 !important;
    background: #fff !important;
}

.benefits-inner-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #1a1a1a !important;
    line-height: 1.4 !important;
}

.benefits-inner-title:first-child {
    text-align: right !important;
}

.benefits-inner-title:last-child {
    text-align: left !important;
}

.benefits-inner-vs {
    text-align: center !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #bbb !important;
    letter-spacing: 0.1em !important;
}

/* Зелёная шапка карточки */
.benefits-card-header {
    background: linear-gradient(135deg, #7D9E70 0%, #6b8d5e 100%);
    padding: 28px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.benefits-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin: 0;
}

.benefits-card-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
    margin-bottom: 0;
}

/* Табло счёта */
.benefits-score-board {
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 10px 20px;
    text-align: center;
}

.benefits-score-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.benefits-score-label {
    font-size: 10px;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* Контейнер строк сравнения */
.benefits-rows-container {
    flex: 1;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Строка сравнения */
.benefits-comparison-row {
    display: grid;
    grid-template-columns: 1fr 48px 1fr;
    padding: 0 32px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

/* Левая ячейка (БАМБУКОФФ) */
.benefits-cell-left {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
    text-align: right;
    padding: 16px;
    border-radius: 12px 0 0 12px;
    transition: all 0.3s ease;
}

.benefits-comparison-row:hover .benefits-cell-left {
    background: rgba(125,158,112,0.08);
}

.benefits-cell-left .benefits-row-text {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #555;
    font-weight: 400;
}

.benefits-comparison-row:hover .benefits-cell-left .benefits-row-text {
    color: #1a1a1a;
    font-weight: 600;
}

/* Центральная ячейка (VS) */
.benefits-cell-center {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.benefits-vs-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 800;
    color: #bbb;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.benefits-comparison-row:hover .benefits-vs-circle {
    background: #7D9E70;
    color: #fff;
}

/* Вертикальная линия между кружками */
.benefits-cell-center::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 16px;
    background: #eee;
}

.benefits-comparison-row:last-child .benefits-cell-center::after {
    display: none;
}

/* Правая ячейка (КОНКУРЕНТЫ) */
.benefits-cell-right {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 0 12px 12px 0;
    transition: all 0.3s ease;
}

.benefits-comparison-row:hover .benefits-cell-right {
    background: rgba(200,60,60,0.04);
}

.benefits-cell-right .benefits-row-text {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #374151;
}

.benefits-comparison-row:hover .benefits-cell-right .benefits-row-text {
    color: #1f2937;
}

/* Иконки */
.benefits-icon-check-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(125,158,112,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefits-icon-cross-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(200,60,60,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Мобильная версия */
@media (max-width: 767px) {
    .benefits-header-wrapper {
        width: 100%;
        margin-bottom: 24px;
    }

    .benefits-card-container {
        width: 100%;
        border-radius: 20px;
        min-height: auto;
    }

    .benefits-inner-header {
        grid-template-columns: auto auto auto;
        padding: 20px 16px 12px 16px;
        gap: 8px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .benefits-inner-title,
    .benefits-inner-title:first-child,
    .benefits-inner-title:last-child {
        text-align: center !important;
        font-size: 13px !important;
        padding: 0 6px !important;
        flex: 1 !important;
        white-space: nowrap !important;
    }

    .benefits-inner-header {
        justify-content: center !important;
        text-align: center !important;
        padding: 16px 16px !important;
        gap: 8px !important;
    }

    .benefits-inner-vs {
        display: block !important;
        font-size: 10px !important;
        padding: 0 6px !important;
        flex-shrink: 0 !important;
    }

    .benefits-card-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .benefits-card-title {
        font-size: 22px;
    }

    .benefits-score-board {
        align-self: center;
    }

    .benefits-rows-container {
        padding: 4px 0;
    }

    .benefits-comparison-row {
        grid-template-columns: 1fr;
        padding: 0 16px;
        margin-bottom: 12px;
    }

    /* Скрываем центральный VS-кружок на мобильной */
    .benefits-cell-center {
        display: none;
    }

    /* Вертикальный блок - все элементы по левому краю */
    .benefits-comparison-row .benefits-cell-left,
    .benefits-comparison-row .benefits-cell-right {
        padding: 14px 16px !important;
        justify-content: flex-start !important;
        text-align: left !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
    }

    /* Иконка в левой ячейке: переместить перед текстом */
    .benefits-comparison-row .benefits-cell-left .benefits-icon-check-circle {
        order: -1 !important;
    }

    .benefits-comparison-row .benefits-cell-left {
        background: rgba(125,158,112,0.06) !important;
        border-radius: 12px 12px 0 0 !important;
    }

    .benefits-comparison-row .benefits-cell-right {
        background: #fafafa !important;
        border-radius: 0 0 12px 12px !important;
    }

    /* Icons fixed width for alignment - круглые */
    .benefits-comparison-row .benefits-icon-check-circle,
    .benefits-comparison-row .benefits-icon-cross-circle {
        flex-shrink: 0 !important;
        width: 20px !important;
        height: 20px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }


    /* Текст в мобильной версии - 14px, выровнен по левому краю */
    .benefits-comparison-row .benefits-cell-left .benefits-row-text,
    .benefits-comparison-row .benefits-cell-right .benefits-row-text {
        font-size: 14px !important;
        text-align: left !important;
        word-spacing: normal !important;
        letter-spacing: normal !important;
        line-height: 1.4 !important;
        flex: 1 !important;
    }

    .benefits-comparison-row:hover .benefits-cell-left {
        background: rgba(125,158,112,0.06);
    }

    .benefits-comparison-row:hover .benefits-cell-right {
        background: #fafafa;
    }
}

/* Cookie Consent Popup */
#cookie-consent {
    animation: slideInFromBottom 0.4s ease-out;
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность для мобильных */
@media (max-width: 559px) {
    #cookie-consent {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
    }

    /* Privacy modal - уменьшаем заголовок */
    #privacy-modal h2 {
        font-size: 20px !important;
        line-height: 1.3;
    }

    /* Видео - показывать 1 видео за раз */
    #video {
        padding-left: 40px !important;
        padding-right: 40px !important;
        overflow: hidden !important;
    }

    #video .video-nav-btn {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        z-index: 10 !important;
    }

    #video .video-nav-btn:hover {
        transform: translateY(-50%) scale(1.05) !important;
    }

    #video .video-nav-btn.left {
        left: -36px !important;
    }

    #video .video-nav-btn.right {
        right: -36px !important;
    }

    #video .video-nav-btn svg {
        width: 20px !important;
        height: 20px !important;
    }

    .video-slide {
        flex: 0 0 100% !important;
    }

    /* Projects - стрелки ближе к контенту */
    #projects {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    #projects .projects-nav-btn.left {
        left: -35px !important;
    }

    #projects .projects-nav-btn.right {
        right: -35px !important;
    }

    /* Cooperation - фиксируем размер изображений в сетке 2x2 */
    #cooperation .grid.grid-cols-2 {
        gap: 12px !important;
        max-width: 320px;
        margin: 0 auto;
    }

    #cooperation .grid.grid-cols-2 img {
        max-width: none !important;
        min-width: auto !important;
        width: 100% !important;
    }

    /* Contacts - карта 100% ширины экрана */
    #map-container {
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        width: 100vw !important;
        max-width: 100vw !important;
        transform: none !important;
    }

    /* Half section - кнопка "Монтаж половинок" под текстом */
    #half .catalog-title {
        font-size: 24px !important;
    }

    /* Half section - кнопка под текстом на мобилке */
    #half-header {
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
    }

    #half-header > div {
        width: 100% !important;
    }

    #half-header > button {
        width: 100% !important;
        white-space: normal !important;
        margin-top: 16px !important;
    }

    /* Benefits - уменьшаем отступы секции и таблицы сравнения */
    #benefits {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .benefits-card-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .benefits-inner-header {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .benefits-comparison-row {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* Production-1 video - убираем отступы, видео на всю рамку */
    #production1-video-slider {
        border-radius: 24px !important;
    }

    #production1-video-slider .video-player {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 24px !important;
    }

    #production1-video-slider video {
        border-radius: 24px !important;
        object-fit: cover !important;
    }

    /* Video section - уменьшаем ширину видео для стрелок */
    #video-slider {
        margin: 0 -5px !important;
        width: calc(100% + 10px) !important;
    }

    .video-slide {
        padding: 0 5px !important;
    }

    .video-player {
        width: 90% !important;
        margin: 0 auto !important;
    }
}

/* ============================================
   ФОРМ ФОКУС - Выделение при фокусе и наведении
   ============================================ */
form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="tel"]:focus,
form textarea:focus {
    box-shadow: 0 0 0 2px rgba(125, 158, 112, 0.5) !important;
    outline: none !important;
}

form input[type="text"]:hover,
form input[type="email"]:hover,
form input[type="tel"]:hover,
form textarea:hover {
    box-shadow: 0 0 0 2px rgba(125, 158, 112, 0.5) !important;
}

/* ============================================
   HERO - Горизонтальная ориентация 560-919px
   Текст слева, картинка справа (макс. 40%)
   ============================================ */
@media (min-width: 560px) and (max-width: 919px) {
    .hero-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 16px !important;
        padding: 32px 24px !important;
    }

    .hero-text-col {
        flex: none !important;
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
    }

    /* Показываем субтитр в этом диапазоне */
    #hero .hero-subtitle {
        display: block !important;
    }

    /* Картинка под текстом — как на экранах <560px */
    .hero-mobile-image {
        flex: none !important;
        max-width: 70% !important;
        width: 70% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .hero-mobile-image img {
        width: 100% !important;
        height: auto !important;
        max-height: 50vh !important;
        object-fit: contain !important;
    }

    .hero-text-inner h1 {
        font-size: 28px !important;
        margin-bottom: 12px !important;
    }

    .hero-text-inner p {
        font-size: 15px !important;
        margin-bottom: 16px !important;
    }

    .hero-btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
}

/* ============================================
   IMAGE LOADING SPINNER
   ============================================ */

.img-placeholder {
    position: relative;
    background: #f0f0f0;
}

.img-placeholder::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(125,158,112,0.2);
    border-top-color: #7D9E70;
    border-radius: 50%;
    animation: img-spin 0.8s linear infinite;
    z-index: 1;
}

@keyframes img-spin {
    to { transform: rotate(360deg); }
}

img[data-src] {
    opacity: 0;
}

img.img-loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ============================================
   MOBILE: touch-action для слайдеров и картинок
   ============================================ */

/* Touch/select — полезно и на планшетах в диапазоне 920–1439px */
@media (max-width: 1439px) {
    /* Слайдеры: вертикальный скролл разрешен, горизонтальный — JS */
    .product-image-slider {
        touch-action: pan-y;
    }

    /* Отключаем масштабирование картинок (Telegram и др.) */
    img {
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }
}

/* Только мобилка (без сайдбара): hover-эффекты и анимации */
@media (max-width: 919px) {
    /* Отключаем hover-анимацию карточки товара на мобилке */
    .product-card:hover {
        transform: none !important;
        box-shadow: 0 1px 4px rgba(125,158,112,0.08), 0 0 1px rgba(0,0,0,0.03) !important;
        z-index: auto !important;
    }

    /* Отключаем hover-эффекты в преимуществах */
    .benefits-comparison-row:hover .benefits-cell-left {
        background: rgba(125,158,112,0.06) !important;
    }
    .benefits-comparison-row:hover .benefits-cell-left .benefits-row-text {
        color: #555 !important;
        font-weight: 400 !important;
    }
    .benefits-comparison-row:hover .benefits-cell-right {
        background: #fafafa !important;
    }
    .benefits-comparison-row:hover .benefits-cell-right .benefits-row-text {
        color: #374151 !important;
    }
    .benefits-comparison-row:hover .benefits-vs-circle {
        background: #f0f0f0 !important;
        color: #bbb !important;
    }

    /* Hero mobile image — не растягивать */
    .hero-mobile-image {
        width: 100% !important;
        flex-shrink: 0 !important;
    }

    /* Benefits: шрифт строк 16px на мобилке */
    .benefits-cell-left .benefits-row-text,
    .benefits-cell-right .benefits-row-text {
        font-size: 16px !important;
    }

    /* Cooperation: изображения на всю ширину ячейки, без min/max-width из inline-стилей */
    #cooperation .grid.grid-cols-2 {
        width: 100% !important;
        max-width: 100% !important;
    }
    #cooperation .grid.grid-cols-2 img {
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
    }
}

/* ============================================
   920–1439px: финальные переопределения
   (блок должен быть ПОСЛЕДНИМ для 920–1439px,
    чтобы перекрыть все ранние объявления)
   ============================================ */
@media (min-width: 920px) and (max-width: 1439px) {
    /* --- Hero: 5% отступы секции, текст 61%, gap 5.5%, видео 33% --- */
    #hero {
        padding: 0 5% !important;
    }
    .hero-inner {
        gap: 5.5% !important;
        padding: 0 !important;
    }
    .hero-text-col {
        flex: 0 0 61% !important;
        max-width: 61% !important;
        min-width: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .hero-video-col {
        flex: 0 0 33% !important;
        max-width: 33% !important;
    }
    .hero-video-wrapper {
        width: 100% !important;
        height: auto !important;
        max-height: 80vh !important;
    }

    /* --- Benefits: 80% ширины --- */
    .benefits-card-container {
        width: 80% !important;
    }
    .benefits-header-wrapper {
        width: 80% !important;
    }

    /* --- FAQ: 80% ширины --- */
    .faq-container {
        width: 80% !important;
        margin: 0 auto !important;
    }
    .faq-block,
    .faq-block-header,
    .faq-question,
    .faq-answer {
        width: 100% !important;
    }

    /* --- Cooperation: уменьшаем разрыв между формой и картинками --- */
    #cooperation .max-w-7xl > div {
        gap: clamp(20px, 4vw, 60px) !important;
    }

    /* --- Доставка: min-height вместо фиксированного 100vh --- */
    #delivery {
        height: auto !important;
        min-height: 100vh !important;
    }

    /* --- Benefits: шрифт строк 16px --- */
    .benefits-cell-left .benefits-row-text,
    .benefits-cell-right .benefits-row-text {
        font-size: 16px !important;
    }

    /* --- Min-width для FAQ и Benefits контейнеров --- */
    .faq-container {
        min-width: 600px !important;
    }
    .benefits-card-container {
        min-width: 600px !important;
    }
}

/* ============================================
   1024–1439px: О компании
   горизонтальный layout (60% текст / 40% картинка)
   ============================================ */
@media (min-width: 1024px) and (max-width: 1439px) {
    /* О компании: текст 50% слева, картинка 50% справа */
    #about > div {
        gap: 32px !important;
    }
    #about > div > div:first-child {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    #about > div > div:last-child {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    .about-image-container {
        width: 100% !important;
    }
}

/* ============================================
   1200–1439px: Production-1
   горизонтальный layout (60% текст / 40% видео)
   Используем flex-grow вместо %-basis, чтобы gap
   не вызывал переполнение (overflow стрелки справа).
   inner-div сужен до 80% для равных отступов под стрелки.
   При <1200px видео-слайдер уходит под текст.
   ============================================ */
@media (min-width: 1200px) and (max-width: 1439px) {
    #production-1 > div {
        width: 80% !important;
    }
    #production-1 > div > div > div:first-child {
        flex: 3 1 0 !important;
        max-width: none !important;
        width: auto !important;
    }
    #production-1 > div > div > div:last-child {
        flex: 2 1 0 !important;
        max-width: none !important;
        width: auto !important;
    }
}

/* ============================================
   CONTACTS ≥920px: фиксированный 100vh,
   два столбца 50/50, левый — внутренний скролл
   ============================================ */
@media (min-width: 920px) {
    #contacts {
        height: 100vh !important;
        min-height: 100vh !important;
        overflow: hidden !important;
    }
    #contacts-wrapper {
        flex-direction: row !important;
        height: 100% !important;
        min-height: unset !important;
    }
    #contacts-info {
        width: 50% !important;
        flex-shrink: 0 !important;
        height: 100vh !important;
        overflow-y: auto !important;
        align-items: center !important;
        justify-content: center !important;
    }
    #map-container {
        flex: 1 1 auto !important;
        height: 100vh !important;
        min-height: unset !important;
    }

    /* Убираем отступы секции — карта должна касаться краёв */
    #contacts {
        padding: 0 !important;
    }
}

/* ============================================
   920–1199px: Production-1 — видео под текстом
   Tailwind lg:flex-row (1024px) перебивается явно
   ============================================ */
@media (min-width: 920px) and (max-width: 1199px) {
    #production-1 > div > div {
        flex-direction: column !important;
    }
    #production-1 > div > div > div:first-child,
    #production-1 > div > div > div:last-child {
        flex: none !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* ============================================
   920–1199px: Contacts h2 — шрифт 32px
   ============================================ */
@media (min-width: 920px) and (max-width: 1199px) {
    #contacts .section-title {
        font-size: 32px !important;
    }
}

/* ============================================
   1024–1199px: mounting-care — колонка вместо строки
   Tailwind lg:flex-row (1024px) → переносим порог на 1200px
   ============================================ */
@media (min-width: 1024px) and (max-width: 1199px) {
    #mounting-care > div > div {
        flex-direction: column !important;
    }
}

/* ============================================
   920–1023px: Contacts — показываем футер внутри
   contacts-info (class="hidden lg:flex" скрыт
   Tailwind'ом ниже 1024px, нужно вернуть)
   ============================================ */
@media (min-width: 920px) and (max-width: 1023px) {
    #contacts-info > div > div:last-child {
        display: flex !important;
    }
}

/* ============================================
   Hero: субтитр и буллеты на всех устройствах
   На ≤559px: снимаем display:none с критического CSS,
   даём секции расти за пределы 100vh
   ============================================ */
@media (max-width: 559px) {
    #hero .hero-subtitle {
        display: block !important;
    }
    /* Разрешаем герою вырасти под контент */
    #hero {
        height: auto !important;
    }
    #hero .hero-inner {
        height: auto !important;
    }
}

/* Hero: нулевые отступы у текстового блока */
.hero-content-wrapper {
    padding: 0 !important;
}

/* Hero: линия под субтитром шириной текста (как подчёркивание) */
@media (min-width: 920px) {
    .hero-subtitle {
        width: fit-content;
        border-bottom: 1px solid white;
        padding-bottom: 8px;
    }
}

/* Hero: стили для блока с буллетами */
.hero-features ul {
    padding-left: 0;
    margin: 0;
}

/* Hero features: скрыть на мобильных */
@media (max-width: 919px) {
    .hero-features {
        display: none !important;
    }
}

/* Hero: 920–1199px — h1 и li меньше */
@media (min-width: 920px) and (max-width: 1199px) {
    #hero h1 { font-size: 30px !important; }
    .hero-features ul { font-size: 13px !important; }
}

/* Hero: ≥1200px — h1 48px */
@media (min-width: 1200px) {
    #hero h1 { font-size: 48px !important; }
}
@media (min-width: 1440px) and (max-width: 1600px) {
    #hero h1 { font-size: 54px !important; }
}
@media (min-width: 1601px) {
    #hero h1 { font-size: 60px !important; }
}

/* Hero features: размер текста li на десктопе */
@media (min-width: 1200px) and (max-width: 1439px) {
    .hero-features ul {
        font-size: 14px;
    }
}
@media (min-width: 1440px) and (max-width: 1600px) {
    .hero-features ul {
        font-size: 15px;
    }
}
@media (min-width: 1601px) {
    .hero-features ul {
        font-size: 16px;
    }
}

/* Hero: размеры .text-sm и .text-xl по брейкпоинтам */
@media (min-width: 1200px) and (max-width: 1439px) {
    #hero .text-sm {
        font-size: 16px !important;
        line-height: 20px !important;
    }
    #hero .text-xl {
        font-size: 18px !important;
        line-height: 20px !important;
    }
}
@media (min-width: 1440px) and (max-width: 1600px) {
    #hero .text-sm {
        font-size: 18px !important;
        line-height: 25px !important;
    }
    #hero .text-xl {
        font-size: 20px !important;
        line-height: 25px !important;
    }
}
@media (min-width: 1601px) {
    #hero .text-sm {
        font-size: 20px !important;
        line-height: 40px !important;
    }
    #hero .text-xl {
        font-size: 25px !important;
        line-height: 30px !important;
    }
}

/* ============================================
   ФИКСИРОВАННЫЕ РАЗМЕРЫ ШРИФТОВ (px)
   для кроссбраузерной консистентности
   ============================================ */

/* H2 section-title по брейкпоинтам */
@media (max-width: 559px) {
    .section-title { font-size: 26px !important; }
}
@media (min-width: 920px) and (max-width: 1439px) {
    .section-title { font-size: 32px !important; }
}
@media (min-width: 1440px) {
    .section-title { font-size: 32px !important; }
}

/* H2 benefits — override Tailwind text-3xl/text-5xl */
#benefits h2 { font-size: 32px !important; }

@media (min-width: 1600px) {
    .section-title { font-size: 42px !important; }
    .catalog-title { font-size: 42px !important; }
    #benefits h2 { font-size: 42px !important; }
}

/* H2 вторичный: модалки и формы (корзина, оформление, сотрудничество) */
#cart h2, #order-modal h2, #cooperation h2,
#privacy-modal h2, #mounting-modal h2,
#trimming-modal h2, #care-modal h2 {
    font-size: 28px;
}
@media (max-width: 919px) {
    #cart h2, #order-modal h2, #cooperation h2,
    #privacy-modal h2, #mounting-modal h2,
    #trimming-modal h2, #care-modal h2 {
        font-size: 22px !important;
    }
}

/* H3 подзаголовки в секциях */
#application h3 {
    font-size: 20px;
}
@media (max-width: 559px) {
    #application h3 { font-size: 16px !important; }
}

/* P основной текст абзацев */
@media (min-width: 1440px) {
    #about p, #production-1 p, #mounting-care p, #delivery p, #faq .faq-answer {
        font-size: 18px !important;
    }
}
@media (min-width: 920px) and (max-width: 1439px) {
    #about p, #production-1 p, #mounting-care p, #delivery p {
        font-size: 15px !important;
    }
}
@media (max-width: 919px) {
    #about p, #production-1 p, #mounting-care p, #delivery p, #faq .faq-answer {
        font-size: 15px !important;
    }
}

/* mounting-care: p в блоке flex-1 — 16px на всех размерах */
#mounting-care .flex-1 p { font-size: 16px !important; }

/* delivery: p в текстовом блоке — 14px на всех размерах */
#delivery p { font-size: 14px !important; }

/* FAQ: точные размеры шрифтов по брейкпоинтам */
@media (min-width: 920px) and (max-width: 1199px) {
    #faq .faq-answer { font-size: 13px !important; }
    .faq-block-header { font-size: 14px !important; }
}
@media (min-width: 1200px) and (max-width: 1439px) {
    #faq .faq-answer { font-size: 15px !important; }
    .faq-block-header { font-size: 16px !important; }
}
@media (min-width: 1440px) {
    #faq .faq-answer { font-size: 18px !important; }
}

/* FAQ: faq-answer-1-1 — 15px на всех размерах */
#faq-answer-1-1 { font-size: 15px !important; }

/* FAQ: контейнер — ширина по брейкпоинтам */
#faq > div { max-width: 80% !important; width: 80% !important; }
@media (max-width: 919px) {
    #faq > div { max-width: 90% !important; width: 90% !important; }
}
@media (min-width: 1600px) {
    #faq > div { max-width: 70% !important; width: 70% !important; }
}

/* Contacts: contact detail text — 18px bold */
#contacts-info .text-xl.font-black.text-black {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 20px !important;
}

/* ============================================
   Contacts: 920–1250px — вертикальный layout
   (карта уходит вниз под contacts-info)
   ============================================ */
@media (min-width: 920px) and (max-width: 1250px) {
    #contacts {
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
    }
    #contacts-wrapper {
        flex-direction: column !important;
        height: auto !important;
        min-height: 100vh !important;
    }
    #contacts-info {
        width: 100% !important;
        height: auto !important;
        overflow-y: visible !important;
        padding: 40px 48px !important;
    }
    #map-container {
        width: 100% !important;
        height: 400px !important;
        min-height: 400px !important;
        flex: none !important;
    }
}

/* ============================================
   About: явный 50/50 split на ≥1440px snap
   ============================================ */
@media (min-width: 1440px) {
    #about > div > div:first-child {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    #about > div > div:last-child {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* FAQ: faq-answer — 14px на всех размерах */
#faq .faq-answer { font-size: 14px !important; }

/* Contacts: max-w-xl контейнер — 100% ширины при <1251px */
@media (max-width: 1250px) {
    #contacts-info .max-w-xl {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* FAQ: faq-container без min-width на мобилке (снимаем десктопное ограничение) */
@media (max-width: 919px) {
    .faq-container { min-width: 0 !important; }
}

/* ============================================
   ≥1440px: ограничение ширины контент-контейнеров до 80%
   ============================================ */
@media (min-width: 1440px) {
    #about .max-w-6xl,
    #stats .max-w-6xl {
        max-width: 80% !important;
        width: 80% !important;
    }

    #production-1 > div {
        max-width: 80% !important;
        width: 80% !important;
    }

    #video .max-w-7xl,
    #mounting-care .max-w-7xl,
    #delivery .max-w-7xl {
        max-width: 80% !important;
        width: 80% !important;
    }

    /* Benefits: текст строк сравнения — 20px */
    .benefits-cell-left .benefits-row-text,
    .benefits-cell-right .benefits-row-text {
        font-size: 20px !important;
    }
}

/* ============================================
   Batch 4: custom, about, faq, sidebar
   ============================================ */

/* --- Custom: контент и картинка не выходят за рамки max-w-7xl --- */
@media (min-width: 1024px) {
    #custom .max-w-7xl > div > div:first-child {
        min-width: 0 !important;
        flex: 1 1 0% !important;
    }
    #custom .max-w-7xl > div > div:last-child {
        flex-shrink: 1 !important;
        min-width: 0 !important;
    }
}

/* --- About: контент слева 60%, картинка справа — остаток, без overflow --- */
@media (min-width: 920px) {
    #about > div > div:first-child {
        flex: 0 0 60% !important;
        max-width: 60% !important;
        min-width: 0 !important;
    }
    #about > div > div:last-child {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}

/* --- FAQ: faq-container внутри max-w-4xl, без overflow --- */
/* 920–1439px: снимаем вложенные 80% + min-width, которые вызывают overflow */
@media (min-width: 920px) and (max-width: 1439px) {
    .faq-container {
        width: 100% !important;
        min-width: 0 !important;
    }
}


/* --- Sidebar: nav авторастяжение, пункты меню не выходят за экран --- */
#sidebar {
    overflow: hidden !important;
}
#sidebar nav {
    min-height: 0 !important;
}

/* ============================================
   Fixes: delivery text-base, about, faq width
   ============================================ */

/* About: max-w-6xl 80% на 920–1439px (аналогично ≥1440px из batch 3) */
@media (min-width: 920px) and (max-width: 1439px) {
    #about .max-w-6xl,
    #stats .max-w-6xl {
        max-width: 80% !important;
        width: 80% !important;
    }
}

/* FAQ: faq-container и faq-block не шире родителя (920–1439px) */
@media (min-width: 920px) and (max-width: 1439px) {
    #faq > div {
        overflow: hidden !important;
    }
    .faq-container {
        max-width: 100% !important;
        overflow: hidden !important;
    }
    .faq-block {
        max-width: 100% !important;
        overflow: hidden !important;
    }
}

/* Delivery: text-base 14px — максимальная специфичность, без media query */
#delivery p.text-base {
    font-size: 14px !important;
}


/* ============================================
   About + Stats 920–1023px
   ============================================ */

/* About: колонка (фото уходит вниз) + div flex-1 → 90% ширины */
@media (min-width: 920px) and (max-width: 1023px) {
    #about > div {
        flex-direction: column !important;
        gap: 24px !important;
    }
    #about > div > div:first-child {
        width: 90% !important;
        max-width: 90% !important;
        flex: none !important;
    }
    #about > div > div:last-child {
        width: 90% !important;
        max-width: 90% !important;
        flex: none !important;
    }
}

/* About + Stats 920–1023px: max-w-6xl → 90% */
@media (min-width: 920px) and (max-width: 1023px) {
    #about .max-w-6xl,
    #stats .max-w-6xl {
        max-width: 90% !important;
        width: 90% !important;
    }
}

/* About 920–1023px: шрифт абзацев 15px */
@media (min-width: 920px) and (max-width: 1023px) {
    #about p {
        font-size: 15px !important;
    }
}

/* Stats 920–1023px: заголовок секции 30px + цифры (text-3xl md:text-5xl) → 30px вместо 3rem */
@media (min-width: 920px) and (max-width: 1023px) {
    #stats .section-title {
        font-size: 30px !important;
    }
    #stats .font-montserrat {
        font-size: 30px !important;
    }
}

/* ============================================
   ≥1440px: custom — ширина контента
   ============================================ */
@media (min-width: 1440px) {
    #custom .max-w-7xl {
        max-width: 80%;
    }
}

/* ============================================
   ≥1600px: увеличенные размеры шрифтов
   ============================================ */
@media (min-width: 1600px) {
    /* Custom: ширина контента */
    #custom .max-w-7xl {
        max-width: 90%;
    }

    /* Основной текст абзацев */
    #about p, #production-1 p, #mounting-care p, #delivery p, #faq .faq-answer {
        font-size: 20px !important;
    }

    .text-base {
        font-size: 20px !important;
    }

    /* mounting-care: текст в flex-1 блоках */
    #mounting-care .flex-1 p {
        font-size: 20px !important;
    }

    /* application: текст сетки */
    #application .application-container > .grid {
        font-size: 16px;
    }

    /* delivery: text-base — 16px (override группового правила) */
    #delivery p.text-base {
        font-size: 16px !important;
    }

    /* FAQ */
    .faq-block-header {
        font-size: 20px;
    }
    .faq-question {
        font-size: 18px;
    }
    #faq .faq-answer {
        font-size: 18px !important;
    }

    /* Contacts */
    #contacts-info .text-xl.font-black.text-black {
        font-size: 20px !important;
    }

    /* Карточки товаров */
    .product-name {
        font-family: 'Montserrat', sans-serif;
        font-size: 18px;
    }
    .product-price {
        font-size: 32px;
    }
    .product-qty-label {
        font-size: 12px;
    }

    /* Stats: text-[10px] — 16px, строчные (scope #stats перебивает Tailwind uppercase) */
    #stats .text-\[10px\] {
        font-size: 16px !important;
        text-transform: lowercase !important;
    }

    /* Video / mounting-care / delivery: ширина контента 90% */
    #video .max-w-7xl,
    #mounting-care .max-w-7xl,
    #delivery .max-w-7xl {
        max-width: 90% !important;
        width: 90% !important;
    }

    /* Cooperation: ширина контента 80% */
    #cooperation .max-w-7xl {
        max-width: 80%;
    }

    /* Sidebar: телефон — 16px (18px не влезает в 250px сайдбар) */
    #sidebar-phone {
        font-size: 16px !important;
    }

    /* Contacts: ширина блока контактов 80% */
    #contacts-info .max-w-xl {
        max-width: 80%;
    }

    /* Инпуты: размер шрифта 18px */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        font-size: 18px !important;
    }
}

/* ===== Scroll-to-top button (mobile only) ===== */
#scroll-to-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #7D9E70;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#scroll-to-top-btn.visible {
    display: flex;
    opacity: 1;
}
@media (min-width: 920px) {
    #scroll-to-top-btn {
        display: none !important;
    }
}

/* ===== Lightbox ===== */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* iOS Safari: touch-action must be on every element, not just the parent */
#lightbox,
#lightbox * {
    touch-action: none;
}
#lightbox.hidden {
    display: none;
}
#lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
}
#lightbox-content {
    position: relative;
    z-index: 1;
    max-height: 90vh;
    max-width: 90vw;
    display: flex;
    align-items: center;
    justify-content: center;
}
#lightbox-img {
    max-height: 90vh;
    max-width: 90vw;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}
#lightbox-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: white;
    transition: background 0.2s;
}
#lightbox-close:hover {
    background: rgba(255,255,255,0.3);
}
#lightbox-prev,
#lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: white;
    transition: background 0.2s;
}
#lightbox-prev:hover,
#lightbox-next:hover {
    background: rgba(255,255,255,0.3);
}
#lightbox-prev {
    left: 12px;
}
#lightbox-next {
    right: 12px;
}
#gallery-slider img,
#projects-slider img,
#production-slider img {
    cursor: pointer;
}

/* ===== Cooperation: мобильная высота (0–559px) ===== */
@media (max-width: 559px) {
    /* Убираем большой gap между формой и изображениями */
    #cooperation .max-w-7xl > div {
        gap: 24px !important;
    }
    /* Уменьшаем высоту textarea */
    #cooperation textarea {
        height: 80px !important;
    }
    /* Уменьшаем отступ под вводным абзацем */
    #cooperation .text-xl {
        margin-bottom: 16px !important;
    }
}
