/**
 * media-queries.css — Toptrail responsive
 * Об'єднано з двох файлів. Desktop (>1024px) не змінюється.
 * Підключити ПІСЛЯ style.css
 */

/* ================================================================
   GLOBAL FIX: info-card-popup — прихований якщо не .is-visible
   ================================================================ */
.info-card-popup            { display: none; }
.info-card-popup.is-visible { display: block; }
.icp-popup                  { opacity: 0; pointer-events: none; }
.icp-popup.is-visible       { opacity: 1; pointer-events: all; }

/* ================================================================
   1100px
   ================================================================ */
@media (max-width: 1100px) {

/*  .swiper-products .swiper-slide { width: calc((100% - 24px) / 2); }*/
 
  .about-img { order: -1; }
/*  .journal-grid { grid-template-columns: 1fr; gap: 32px; }*/
  .faq-inner { grid-template-columns: 1fr; gap: 40px; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-side-img { display: none; }
  .footer-top { grid-template-columns: 1fr 140px 180px; column-gap: 40px; }

   .about-hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 32px 15px 48px;
  }

  .about-hero-left { order: 1; }
  .about-hero-photos { order: 0; }
  .about-hero-desc { max-width: 100%; }

  .mission-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mission-photo-card { aspect-ratio: 16/9; border-radius: var(--r-xl); }
  .mission-photo { align-self: auto; }

  .mission-stats { grid-template-columns: repeat(3, 1fr); }

  .gallery-section { padding: 60px 0; }
  .contact-section { padding: 60px 0 80px; }


  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-area  { padding: 40px 0 56px; }
  .blog-hero  { padding: 40px 0 0; }
  .blog-tabs-wrap { padding: 0 24px; }

  .post-related { padding: 0 24px 56px; }
  .post-related-grid { grid-template-columns: 1fr 1fr; }
  .post-content { padding: 0 24px 48px; }
  .post-hero-img { padding: 0 24px; }
  .post-header { padding: 36px 24px 32px; }


  .cta-section .cta-inner {
    grid-template-columns: 200px 1fr 200px;
    column-gap: 24px;
  }
 
  .cta-photo { width: 200px; height: 240px; }
  .cta-photo--right { margin-top: 80px; }
 
  .cta-section .cta-title { font-size: 40px; }


  .about-hero {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .about-hero-left {
    grid-column: 1 / -1; /* займає всю ширину */
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
    justify-content: space-between;
  }

  .about-hero-title,
  .about-hero-desc { max-width: 48%; }

  .about-photo--main { height: 400px; }
  .about-photo--side { height: 190px; }

  /* Mission */
  .mission-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 64px;
  }

  .mission-photo { width: 100%; height: 280px; }
  .mission-content { max-width: 100%; }

}

/* ================================================================
   1024px — TABLET
   ================================================================ */
@media (max-width: 1024px) {

  .site-nav, #menu-main-menu{ gap: 15px }
  .site-nav a, #menu-main-menu a{ font-size: 15px; }
  /* ── Header ── */
  .header-inner { padding: 0 15px; }
  .announcement-bar { padding: 10px 48px; font-size: 13px; }

  /* ── Hero ── */
  .hero { min-height: 680px; }
  .hero-inner { padding: 0 24px; }
  .hero-title { font-size: 44px; max-width: 480px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-car-btn { min-width: 260px; }
  .hero-trust { margin-left: 0; margin-top: 0;align-items: flex-start; }

  /* ── Categories ── */
  .categories-section { padding: 60px 24px 120px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .cat-card-title { font-size: 22px; }

  /* ── Configurator strip ── */
  .configurator-section { padding: 40px 0 0; }
  .config-features { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .config-feature { padding: 12px 12px 16px; }

  /* ── Products swiper ── */
  .products-section { padding: 60px 0; }
  .products-header { padding: 0 24px; }
  .products-swiper-wrap { padding: 0 24px; }

  /* ── Trust bar ── */
  .trust-bar { padding: 60px 24px 0; }
  .trust-inner { gap: 16px; flex-wrap: wrap; justify-content: center; }

  /* ── Testimonials ── */
  .testimonials-section { padding: 60px 0; }
  .testimonials-header { margin-bottom: 48px; }

  /* ── About section (homepage) ── */
  .about-section { padding: 60px 0 }
/*  .about-inner { grid-template-columns: 1fr; gap: 40px; }*/
  .about-img { order: -1; }
  .about-title { font-size: 32px; }

  /* ── FAQ inline ── */
  .faq-section { padding: 60px 0; }
  .faq-inner { grid-template-columns: 1fr; gap: 40px; }
  .faq-side-title { font-size: 32px; }

  /* ── CTA ── */
  .cta-section { padding: 60px 24px; }
  .cta-inner { grid-template-columns: 200px 1fr 200px; column-gap: 24px; }
  .cta-photo { width: 200px; height: 240px; }
  .cta-photo--right { margin-top: 80px; }
  .cta-title { font-size: 40px; }
  .cta-deco { display: none; }

  /* ── Social ── */
  .social-section { padding: 60px 0; }
  .social-header { padding: 0 24px; flex-wrap: wrap; gap: 16px; }

  /* ── Journal ── */
  .journal-section { padding: 80px  0 60px; }
/*  .journal-grid { grid-template-columns: 1fr; gap: 28px; }*/

  /* ── Footer ── */
/*  .footer-top { grid-template-columns: 1fr 140px 180px; column-gap: 40px; }*/
/*  .site-footer { padding: 56px 24px 32px; }*/

  /* ── About page: hero ── */
/*  .about-hero-section { padding: 0 24px; }*/
  .about-hero {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-bottom: 48px;
  }
  .about-hero-left {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
    justify-content: space-between;
  }
  .about-hero-title {max-width: 48%; }
  .about-hero-title, .blog-hero-title, .faq-page-title,
  .contacts-title, .post-title, .post-related-title,
  .products-title, .testimonials-title, .config-title,   .product-title{ font-size: 36px; line-height: 1.2; }


   .post-content h2 { font-size: 36px;  }
  .post-content h3 { font-size: 34px;  }

  .about-hero-desc  { max-width: 48%; }
  .about-photo--main { height: 400px; }
  .about-photo--side { height: 190px; }

  /* ── About page: mission ── */
  .mission-section { padding: 80px 24px 140px; }
  .mission-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .mission-photo { width: 100%; height: 280px; }
  .mission-content { max-width: 100%; }
  .mission-title { font-size: 36px; }
  .mission-stats { grid-template-columns: repeat(3, 1fr); padding-top: 60px; }
  .stat-value { font-size: 40px; }

  /* ── About page: gallery ── */
  .gallery-section { padding: 60px 24px; }
  .gallery-grid { grid-template-rows: 260px 200px; }

  /* ── Shop/Products page ── */
  .tt-cat-hero { padding: 48px 24px 40px; }
  .tt-cat-hero__title { font-size: 36px; }
  .tt-cat-tabs__nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: wrap;
    padding: 0 24px;
  }
  .tt-cat-tabs__nav::-webkit-scrollbar { display: none; }
  .tt-cat-products { padding: 0 0 48px; }
  .tt-product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* ── Product configurator ── */
/*  .product-layout {*/
/*    grid-template-columns: 1fr;*/
/*    gap: 0;*/
/*    padding: 0 0 48px;*/
/*    max-width: 100%;*/
/*  }*/
/*  .product-options {*/
/*    border-left: none;*/
/*    border-top: 1px solid var(--border);*/
/*    padding: 32px 0 40px;*/
/*  }*/
  .toptrail-configurator-form { width: 100%; }
/*  .add-to-cart-btn { width: 100% !important; }*/
/*  .product-heading { padding: 40px 0 0; }*/
  .product-title { font-size: 36px; }
/*  .gallery-main { margin: 0 16px; }*/
  /*.gallery-thumbs { margin: 0 16px; }*/
  .gallery-inspire { margin: 8px 16px 12px; }

  /* ── Info card — center bottom on tablet ── */
  .icp-popup {
    position: fixed;
/*    bottom: 16px;*/
    left: 50%;
    top: auto;
    transform: translateX(-50%) translateY(10px);
    width: min(240px, calc(100vw - 32px));
  }
  .icp-popup.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  /* ── додано з попереднього файлу ── */
/*  .header-inner { padding: 0 24px; }*/

  /* cfg car dropdown */
  .cfg-car-selector { padding: 0 }

  /* ── Shop / Archive ── */
  .tt-cat-hero { padding: 48px 24px 40px; }

/*  .footer-inner {
    padding: 60px 24px 60px;
  }*/

 

  .footer-desc { max-width: 100%; margin-top: 24px; }

  .footer-col { gap: 24px; }

  .footer-col ul { gap: 24px; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-legal { flex-wrap: wrap; gap: 16px; }

  .footer-legal a + a { margin-left: 0; }

  /* ── FAQ page ── */
  .faq-group-inner { grid-template-columns: 1fr; gap: 32px; }

  .faq-group-left { max-width: 100%; }

  .faq-group-title { font-size: 28px; }

  /* ── Contact block ── */
  .contact-block__inner { max-width: 100%; padding: 0 24px; }

  /* ── Info card — mobile position fix ── */
  .icp-popup {
    position: fixed;
/*    bottom: 16px;*/
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    top: auto;
    width: min(240px, calc(100vw - 32px));
  }

  /* ── 404 ── */
  .tt-404-number { font-size: clamp(80px, 18vw, 160px); }

  .tt-404-cats-grid { grid-template-columns: repeat(2, 1fr); }

  /* ── Shop filter ── */
  .shop-filter-bar { position: static; }

  .shop-filters-inner { flex-direction: column; align-items: flex-start; gap: 12px; }

  .shop-model-pills { overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: 4px; }

  .faq-group {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 60px 24px 48px;
  }

  .faq-group-left p { max-width: 100%; }

  .faq-page-hero  { padding: 40px 24px 0; }

  .faq-tabs-wrap  { padding: 0 24px; }

  .product-layout { gap: 32px;  }

  .similar-grid   { grid-template-columns: repeat(2, 1fr); }

  .about-hero-photos {
    order: 0;
    height: clamp(280px, 55vw, 440px);
  }

  .mission-photo-card {
    aspect-ratio: 16 / 9;
  }

  .contacts-hero { padding: 40px 24px 56px; }
 
  .contacts-hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contacts-hero-photo {
    aspect-ratio: 16 / 9;
    order: -1;
  }

  .contacts-desc { max-width: 100%; }

  .contact-step3-split {
    grid-template-columns: 1fr;
  }

  .contact-step3-image {
    min-height: 280px;
  }

  .contact-step3-image img {
    position: static;
    width: 100%;
    height: 280px;
    object-fit: cover;
  }

  .contact-step3-form {
    padding: 36px 24px 40px;
  }

  .hero-van-icon{ height: 50px;width: 80px; }
  .product-slide-price{ font-size: 22px; }
}

/* ================================================================
   980px
   ================================================================ */
@media (max-width: 980px) {
    .site-nav { display: none; }
  .hamburger-btn { display: flex; }
  .cart-wrap{ margin-left: auto; }
   .about-inner { grid-template-columns: 1fr; gap: 48px; }
   .hero-trust{     margin: 25px 0px 0;align-items: flex-start; }
/*   .site-nav, #menu-main-menu{ gap: 15px }*/
   .hero-title{      font-size: clamp(40px, 5.5vw, 56px); }
   .cat-card-title{ font-size: clamp(20px, 1.6vw, 32px); }
   .config-title{      font-size: clamp(32px, 4vw, 48px); }
   .testimonials-title{    font-size: clamp(40px, 5.5vw, 56px); }
   .about-title, .faq-side-title, .cta-section .cta-title, .social-title, .journal-title{   
    font-size: clamp(32px, 4vw, 48px); 
    }
   .about-title br{ display: none; }
   .config-feature-title{ font-size: 20px; }
   .config-van-area{ align-items: normal; }
   .product-slide-title, .product-slide-price{ font-size: 20px; }
   .product-slide-model{ font-size: 12px; }
    .product-layout { grid-template-columns: 1fr; gap: 32px; padding: 32px 15px; }
   .footer-desc, .footer-col a, .footer-col-nav a, .footer-col-legal a{ font-size: 14px; }
 
}

/* ================================================================
   860px
   ================================================================ */
@media (max-width: 860px) {

  .legal-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 24px 64px;
  }

  .legal-sidebar { position: static; }

  .legal-sidebar-nav {
    flex-direction: row;
    border-bottom: 1.5px solid var(--border);
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0;
    margin-bottom: 4px;
  }

  .legal-sidebar-nav::-webkit-scrollbar { display: none; }

  .legal-sidebar-link {
    border-left: none;
    border-bottom: 2.5px solid transparent;
    border-radius: 0;
    padding: 10px 20px;
    white-space: nowrap;
    margin-bottom: -1.5px;
    background: none !important;
    flex-shrink: 0;
  }

  .legal-sidebar-link.active {
    border-left: none;
    border-bottom-color: var(--orange);
  }

}

/* ================================================================
   768px — MOBILE
   ================================================================ */
@media (max-width: 768px) {


  /* ── Header ── */
  .header-inner { justify-content: space-between; }
  .cart-link{ padding: 9px 5px 9px 5px; }
  .car-model-selector{ margin-right: 0; }
  .logo { margin-right: 0; }
  .announcement-bar { padding: 9px 40px; font-size: 12px; min-height: 36px; }

  /* ── Hero ── */
/*  .hero { min-height: 580px; padding-top: 0; }*/
  .hero-inner { padding: 0 16px; }
  .hero-title { font-size: 36px; max-width: 100%; line-height: 1.2; }
  .hero-subtitle { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-car-btn { min-width: 240px; }
  .hero-van-icon { width: 70px; height: 58px; }
  .btn-hero, .btn-orange-pill { font-size: 15px; padding: 3px 3px 3px 18px; }
  .btn-hero .btn-circle, .btn-orange-pill .pill-circle { width: 48px; height: 48px; }
  .hero-trust { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 12px; }

  /* ── Categories ── */
  .categories-section { padding: 48px 0 120px; }
  .categories-grid { grid-template-columns: 1fr; gap: 12px; }
  .cat-card { aspect-ratio: 16/9; }
  .cat-card-title { font-size: 24px; }

  /* ── Configurator strip ── */
  .configurator-section { padding: 40px 0 0; }
  .config-features { grid-template-columns: 1fr; gap: 10px; }
  .config-feature-icon{ margin: 0; }
  .config-feature { max-width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; }

  /* ── Products swiper ── */
  .products-section { padding: 48px 0 48px; }
  .products-header {
    padding: 0 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
  }
  .products-swiper-wrap { padding: 0 16px; }
  .swiper-products .swiper-slide { width: 260px; }

  /* ── Trust bar ── */
  .trust-bar { padding: 40px 16px 0; }
  .trust-inner { flex-wrap: wrap; gap: 16px; justify-content: center; }
  .trust-item { gap: 8px; }
  .trust-label { font-size: 12px; }

  /* ── Testimonials ── */
  .testimonials-section { padding: 48px 0; }
  .testimonials-header { padding: 0 16px; margin-bottom: 36px; }
  .swiper-reviews-row .swiper-slide { width: 280px; }

  /* ── About section (homepage) ── */
  .about-section { padding: 48px 0 60px; }
  .about-title { font-size: 28px; }
  .about-body { max-width: 100%; }

  /* ── FAQ inline ── */
  .faq-section { padding: 45px  0; }
  .faq-inner { grid-template-columns: 1fr; gap: 32px; }
  .faq-side-title { font-size: 26px; }
  .faq-list { gap: 0; }

  /* ── CTA ── */
  .cta-section .cta-inner{         grid-template-columns: 1fr;gap: 20px; }
  .cta-section { padding: 48px 16px; }
  .cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 48px 24px;
    gap: 28px;
  }
  .cta-section:before, .cta-section:after{     background-repeat: repeat; }
  .cta-photo { width: 100%; height: 200px; max-width: 300px; margin: 0 auto; }
  .cta-photo--right { margin-top: 0; }
  .cta-title { font-size: 32px; }
  .cta-body  { font-size: 15px; }
  .cta-deco  { display: none; }

  /* ── Social ── */
  .social-section { padding: 48px 0 60px; }
  .social-header { padding: 0 16px; flex-wrap: wrap; gap: 16px; }
  .social-title { max-width: 100%; }
  .social-photos-wrap { padding: 0 16px; }
  .swiper-social .swiper-slide { width: 180px; }
  .social-photo { width: 180px; height: 220px; }

  /* ── Journal ── */
  .journal-section { padding: 56px 0 48px; }
  .journal-grid { grid-template-columns: 1fr; gap: 24px; }

  /* ── Footer ── */
  .footer-top { 
/*    grid-template-columns: 1fr; gap: 32px; */
            gap: 30px 0px;
        display: flex;
        flex-wrap: wrap;
  }
  .footer-col {
        gap: 24px;
        max-width: 50%;
        display: flex;
        width: 50%;
    }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
/*  .site-footer { padding: 0 16px 0; }*/
  .footer-brand { max-width: 100%; }

  /* ── About page: hero ── */
  .about-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 15px 48px;
    min-height: auto;
  }
  .about-hero-left {
    flex-direction: column;
    gap: 20px;
    grid-column: 1;
  }
  .about-hero-title {   line-height: 1.25; max-width: 100%; }
    .about-hero-title, .blog-hero-title, .faq-page-title,
  .contacts-title, .post-title, .post-related-title, 
  .products-title, .testimonials-title, .config-title,   .product-title{ font-size: 32px;   }

  .post-content h2 { font-size: 32px;  }
  .post-content h3 { font-size: 30px;  }

  .post-related-viewall, .view-all{ font-size: 14px; }

  .about-hero-desc  { max-width: 100%; }
  .about-photo--main { height: 320px; }
  .about-photo--side { height: 200px; }
/*  .about-hero-section { padding: 0 16px; }*/

  /* ── About page: mission ── */
  .mission-section { padding: 60px 16px 100px; }
  .mission-title { font-size: 32px; line-height: 1.3; }
  .mission-stats {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 48px;
  }
  .mission-stat + .mission-stat {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-left: 0;
    padding-top: 28px;
    margin-top: 28px;
  }
  .stat-value { font-size: 40px; }

  /* ── About page: gallery ── */
  .gallery-section { padding: 48px 16px; }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 12px;
  }
  .gallery-item-tall { grid-column: 1; grid-row: 1; aspect-ratio: 4/3; }
  .gallery-item-right-top  { grid-column: 1; grid-row: 2; }
  .gallery-item-right-bottom { grid-column: 1; grid-row: 3; }

  /* ── Shop/Products page ── */
  .tt-cat-hero { padding: 40px 0 32px; }
  .tt-cat-hero__title { font-size: 28px; }
  .tt-cat-tabs__nav { padding: 0  ; }
  .tt-cat-products { padding: 0 0 40px; }
  .tt-product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .tt-product-card__title { font-size: 15px; }

  /* ── Product configurator ── */
  .product-layout { padding: 0 15px 32px; }
  .product-heading { padding: 0 0 0; }
  .product-title { font-size: 28px; }
  .product-options { padding: 24px 0 32px; }
/*  .gallery-main { margin: 0 8px; }*/
  .gallery-thumbs {   gap: 6px; }
  .gallery-thumb { width: 64px; height: 50px; }
  .price-amount { font-size: 24px; }
  .product-qty-cart { gap: 10px; }

  /* ── Similar products ── */
  .similar-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .similar-section { padding: 40px 16px 56px; }

  /* ── Trust bar product page ── */
  .product-trust-bar { padding: 0 16px; }

  /* ── додано з попереднього файлу ── */
  .hero { min-height: 580px; padding: 80px 0 48px; }

  /* ── Contacts hero ── */
  .contacts-title { font-size: 36px; }

  .contacts-detail-value { font-size: 22px; }

  .contacts-bank-title { font-size: 20px; }

  /* ── CF7 multi-step ── */
  .contact-block { min-height: auto; }

  .contact-block__inner { padding: 0 16px; }

  .contact-title { font-size: 36px !important; }

  /* Step 3 split */
  .cf-step[data-step="3"] {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    margin-left: 0 !important;
    left: auto !important;
  }

  .cf-step3-left { min-height: 220px; }

  .cf-step3-right { padding: 32px 16px; }

  .cf-measure-row { grid-template-columns: 1fr; gap: 12px; }

  /* Step 4 */
  .cf-s4-title { font-size: 36px; }

  .cf-s4-desc  { font-size: 18px; }

  /* ── Product page ── */
  .product-title { font-size: 28px; }

  /* Price section */
  .price-amount { font-size: 24px; }

  .price-section { margin-top: 20px; padding-top: 20px; }

  /* ── WC Addons ── */
  .wc-pao-addon-container { padding: 20px 0; }

  /* ── Blog ── */
  .blog-hero { padding: 32px 16px 0; }

  .blog-area  { padding: 32px 16px 48px; }

  .blog-grid  { grid-template-columns: 1fr; gap: 24px; }

  /* ── FAQ inline section ── */
  .faq-inner { flex-direction: column; gap: 32px; padding: 48px 16px; }

  /* ── Archive products ── */
  .tt-product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }

  /* ── 404 ── */
  .tt-404-hero { padding: 48px 0 40px; }

  .tt-404-title { font-size: 32px; }

  .tt-404-desc  { font-size: 16px; }

  .tt-404-actions { flex-direction: column; align-items: stretch; }

  .tt-404-btn { justify-content: center; }

  .header-inner {   justify-content: space-between; }

  .car-selector-btn { min-width: unset; }

  .car-selector-btn .sel-label { display: none; }

   
  /* Mission */
  .mission-title  { font-size: 32px; line-height: 1.3; }
  
  .product-gallery .gallery-thumb { width: 120px;   height: 90px;}
}

/* ================================================================
   680px
   ================================================================ */
@media (max-width: 680px) {
   .cart-badge{     position: absolute;    top: 0px; }
  .footer-inner{ padding-top: 20px;    padding-bottom: 20px; }
  .footer-bottom {
        gap: 20px;
        margin-top: 30px;
        flex-direction: column-reverse;
    }
  .about-hero-photos {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .hero-photo-main { grid-column: 1; grid-row: 1; aspect-ratio: 3/2; }
  .hero-photo-top  { grid-column: 1; grid-row: 2; }
  .hero-photo-bottom { grid-column: 1; grid-row: 3; }

  .mission-stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mission-stat + .mission-stat {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-left: 0;
    padding-top: 24px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .gallery-item-tall {
    grid-column: 1; grid-row: 1; aspect-ratio: 3/2;
  }
  .gallery-item-right-top  { grid-column: 1; grid-row: 2; }
  .gallery-item-right-bottom { grid-column: 1; grid-row: 3; }

  .mission-notch { height: 32px; }
  .mission-notch::after { width: 70px; height: 32px; }


  .blog-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .blog-tabs { justify-content: flex-start; overflow-x: auto; }
  .blog-tab  { padding: 16px 18px; flex-shrink: 0; }
  .blog-pagination { flex-wrap: wrap; gap: 12px; }

   .post-header { padding: 28px 16px 24px; }
  .post-hero-img { padding: 0 16px; margin-bottom: 32px; }
  .post-content { padding: 0 16px 40px; }
  .post-related { padding: 0 16px 48px; }
  .post-related-grid { grid-template-columns: 1fr; }
  .post-meta { flex-wrap: wrap; gap: 10px; }

}

/* ================================================================
   640px — MOBILE SMALL
   ================================================================ */
@media (max-width: 640px) {


  /* ── Hero ── */
  .hero { min-height: 560px; }
  .hero-title { font-size: 30px; }
  .hero-car-btn { width: 100%; min-width: unset; }

  /* ── Categories: 1 col ── */
  .categories-grid { grid-template-columns: 1fr; gap: 10px; }
  .cat-card { aspect-ratio: 16/8; }
  .cat-card-title { font-size: 22px; }

  /* ── Config features: 1 col ── */
  .config-features { grid-template-columns: 1fr; }
  .config-van-area{ min-height: 230px; }
  /* ── Products swiper ── */
  .swiper-products .swiper-slide { width: 240px; }

  /* ── About hero: 1 col ── */
  .about-hero-photos {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    height: auto;
  }
  .about-photo { border-radius: var(--r-md); }
  .about-photo--main { grid-column: 1; grid-row: 1; height: auto; aspect-ratio: 4/3; }
  .about-photo--side { grid-column: 1; grid-row: 2; height: auto; aspect-ratio: 4/3; }
  .mission-section:after{ height: 60px; }
  /* ── Mission stats: 1 col ── */
  .mission-stats { grid-template-columns: 1fr; }
  .stat-value { font-size: 36px; }

  /* ── Shop: 1 col ── */
  .tt-product-grid { grid-template-columns: 1fr; gap: 16px; }

  /* ── Product configurator ── */
  .gallery-thumbs { gap: 5px; }
  .gallery-thumb { width: 56px; height: 44px; }
  .product-qty-cart { flex-direction: column; }
/*  .add-to-cart-btn { width: 100% !important; }*/

  /* ── Similar: 1 col ── */
  .similar-grid { grid-template-columns: 1fr; gap: 16px; }

  /* ── CF7 multi-step ── */
  .contact-block { min-height: auto; }
  .contact-title { font-size: 32px !important; }
  .contact-block__inner { padding: 0 16px; }

  /* Step 3 split → stack */
  .cf-step[data-step="3"] {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    margin-left: 0 !important;
    left: auto !important;
  }
  .cf-step3-left  { min-height: 200px; }
  .cf-step3-right { padding: 28px 16px; }
  .cf-measure-row { grid-template-columns: 1fr; gap: 10px; }

  /* Step nav */
  .cf-step-nav { flex-wrap: wrap; gap: 10px; }
  .cf-step-nav .btn-send { width: 100%; justify-content: center; }
  .cf-step-nav .cf-back  { width: 100%; }
  .cf-dots { width: 100%; margin-top: 4px; }

  /* Step 4 */
  .cf-s4-title { font-size: 32px; }
  .cf-s4-desc  { font-size: 16px; }

  /* ── Footer ── */
  .site-footer { padding: 40px 0 20px; }

  /* ── FAQ page ── */
  .faq-page-title { font-size: 26px; }
  .faq-group-title { font-size: 22px; }
  .faq-group { padding: 40px 16px 32px; }
  .faq-page-hero { padding: 28px 16px 0; }
  .faq-tabs-wrap { padding: 0 16px; }
  .faq-tabs { overflow-x: auto; flex-wrap: wrap; scrollbar-width: none; }
  .faq-tabs::-webkit-scrollbar { display: none; }
  .faq-tab { padding: 14px 16px; flex-shrink: 0; }

  /* ── Blog ── */
  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .blog-area  { padding: 28px 16px 44px; }
  .blog-hero  { padding: 28px 16px 0; }
  .blog-tabs  { overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; }
  .blog-tab   { padding: 14px 16px; flex-shrink: 0; }

  /* ── Info card — full width ── */
  .icp-popup {
    width: calc(100vw - 32px);
    left: 16px !important;
    transform: translateY(8px);
  }
  .icp-popup.is-visible { transform: translateY(0); }

  /* ── додано з попереднього файлу ── */
  /* ── Archive products ── */
  .tt-product-grid { grid-template-columns: 1fr; gap: 16px; }

  /* ── Shop page ── */
  .shop-products ul.products { grid-template-columns: 1fr !important; }

  /* ── Product configurator ── */
/*  .product-layout { padding: 0 0 32px; }*/

/*  .footer-inner { padding: 48px 16px 48px; }*/

  .footer-legal { gap: 12px; }

  /* ── Contact multi-step ── */
  .cf-step-nav { flex-wrap: wrap; gap: 12px; }

  .faq-item { padding: 0; }

  /* ── Similar ── */
  .similar-grid { grid-template-columns: 1fr; }

  /* ── Info card — full width on small screens ── */
  .icp-popup {
    width: calc(100vw - 32px);
    left: 16px;
    transform: translateY(8px);
  }

  .product-layout { padding: 20px 15px; }

  .product-details, .similar-section, .trust-bar { padding-left: 16px; padding-right: 16px; }

  .trust-inner    { gap: 20px; justify-content: center; }

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

/*  .about-hero {*/
/*    padding: 40px 16px 0;*/
/*    gap: 32px;*/
/*  }*/

  .about-hero-photos {
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .hero-photo-main {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 4/3;
    height: auto;
  }

  .hero-photo-top  { grid-column: 1; grid-row: 2; aspect-ratio: 4/3; }

  .hero-photo-bottom { grid-column: 1; grid-row: 3; aspect-ratio: 4/3; }

  .mission-section { padding: 0 20px 64px; }

  .mission-inner { gap: 24px; margin-bottom: 32px; }

  .mission-section { padding: 40px 20px 48px; }

  .mission-stats { grid-template-columns: 1fr; gap: 0; }

  .mission-stat, .mission-stat + .mission-stat { padding: 20px 0; border-left: none; border-top: 1px solid rgba(255,255,255,0.12); }

  .mission-stat:first-child { border-top: none; padding-top: 0; }

  .gallery-section { padding: 48px 0; }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .gallery-item-tall { grid-row: auto; aspect-ratio: 4/3; }

  .contacts-hero { padding: 40px 0; }

  .contacts-hero-inner { grid-template-columns: 1fr; gap: 32px; }

/*  .contacts-hero { padding: 28px 0 48px; }*/

  .cf-field-row { grid-template-columns: 1fr; gap: 14px; }

  .fancybox__content .contact-section { padding: 40px 20px 48px; }

  .contact-step3-form {
    padding: 28px 16px 36px;
  }
  
   .product-gallery .gallery-thumb { width: 80px;   height: 70px;}
   .wc-pao-addon-image-swatch img{     max-width: 100%;     max-height: 100%; }
   .single-product-wrap .breadcrumb {    margin: 25px 0;}
   
   
   
   .hero-bg-poster{     background-position: 70% center; }
   .hero-bg-video{     object-position: 70% center; }
}

/* ================================================================
   480px — MOBILE XS
   ================================================================ */
@media (max-width: 480px) {

  .logo .site-header-logo-light img, .logo .site-header-logo-dark img{
    height: 25px;
  }
  /* ── Hero ── */
  .hero-title    { font-size: 26px; }
  .hero-subtitle { font-size: 14px; }
  .btn-hero, .btn-orange-pill { font-size: 14px; padding: 3px 3px 3px 16px; }
  .btn-hero .btn-circle , .btn-orange-pill .pill-circle{ width: 42px; height: 42px; }

  /* ── Announcement ── */
  .announcement-bar { padding: 8px 32px; font-size: 11px; }

  /* ── Categories ── */
  .cat-card-title { font-size: 20px; }

  /* ── CTA ── */
  .cta-title { font-size: 26px; }
  .cta-body  { font-size: 14px; }

  /* ── Contacts ── */
/*  .contacts-title       { font-size: 28px; }*/
    .about-hero-title, .blog-hero-title, .faq-page-title,
  .contacts-title, .post-title, .post-related-title, 
  .products-title, .testimonials-title, .config-title,   .product-title{ font-size: 28px;   }

    .post-content h2 { font-size: 27px;  }
  .post-content h3 { font-size: 26px;  }

  .contacts-detail-value { font-size: 20px; }
  .contacts-bank-title  { font-size: 18px; }


  /* ── CF7 ── */
  .contact-title { font-size: 26px !important; }

  /* ── Gallery thumbs ── */
  .gallery-thumbs { gap: 4px; }
  .gallery-thumb  { width: 48px; height: 38px; }

  /* ── WC Addons swatches ── */
  .wc-pao-addon-image-swatch          { width: 34px !important; height: 34px !important; }
  .wc-pao-addon-image-swatch.selected { width: 38px !important; height: 38px !important; }

  /* ── Trust bar ── */
  .trust-inner {  gap: 14px; align-items: flex-start; }
    .trust-item{         max-width: 47%;         width: 47%; }
  /* ── Stats ── */
  .stat-value   { font-size: 32px; }
  .mission-stat { padding: 20px 0; }

  /* ── Footer ── */
  .footer-top { gap: 24px; }
/*  .footer-bottom { gap: 8px; }*/

  /* ── додано з попереднього файлу ── */
  .hero-car-btn { min-width: unset; }

  .hero-trust { margin-top: 12px; }

  /* ── WC Addons ── */
  .wc-pao-addon-image-swatch { width: 34px !important; height: 34px !important; }

  /* ── 404 ── */
  .tt-404-number { font-size: 80px; }

  .tt-404-cats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  .legal-wrap { padding: 20px 16px 48px; }

  .cta-section .cta-title { font-size: 28px; }

  .cta-section .cta-body  { font-size: 14px; }
}

/* ================================================================
   375px — MOBILE MINIMUM
   ================================================================ */
@media (max-width: 375px) {


  /* ── Hero ── */
  .hero-title { font-size: 24px; }
  .hero-car-btn { min-width: unset; }

  /* ── Header ── */
  .header-inner { padding: 0 12px; }

  /* ── Product ── */
  .product-title { font-size: 22px; }
  .price-amount  { font-size: 20px; }

  /* ── CF7 ── */
  .contact-title { font-size: 22px !important; }

  /* ── Section eyebrow + title ── */
  .section-title  { font-size: 24px; }
  .section-eyebrow { font-size: 12px; }

  /* ── Shop ── */
  .tt-cat-hero__title { font-size: 22px; }
  .tt-product-card__title { font-size: 14px; }

  /* ── CTA ── */
  .cta-title { font-size: 22px; }

}





/* ============================================================
   PROSE — заголовки h1–h6
   Desktop: h1=56 h2=48 h3=40 h4=32 h5=24 h6=16
   Пропорційне зменшення по breakpoints
   ============================================================ */
 
@media (max-width: 1024px) {
  .prose h1 { font-size: 48px; margin: 36px 0 26px; }
  .prose h2 { font-size: 40px; margin: 28px 0 18px; }
  .prose h3 { font-size: 34px; margin: 26px 0 12px; }
  .prose h4 { font-size: 28px; margin: 24px 0 10px; }
  .prose h5 { font-size: 22px; margin: 22px 0 8px; }
  .prose h6 { font-size: 15px; margin: 18px 0 10px; }
  .prose > h1:first-child { margin-top: 0; }
}
 
@media (max-width: 768px) {
  .prose h1 { font-size: 36px; line-height: 1.15; margin: 32px 0 20px; }
  .prose h2 { font-size: 30px; line-height: 1.2;  margin: 24px 0 16px; }
  .prose h3 { font-size: 26px; line-height: 1.25; margin: 22px 0 12px; }
  .prose h4 { font-size: 22px; line-height: 1.3;  margin: 20px 0 10px; }
  .prose h5 { font-size: 19px; line-height: 1.35; margin: 18px 0 8px; }
  .prose h6 { font-size: 14px; line-height: 1.4;  margin: 16px 0 8px; }
  .prose > h1:first-child { margin-top: 0; }
}
 
@media (max-width: 640px) {
  .prose h1 { font-size: 30px; line-height: 1.2;  margin: 28px 0 16px; }
  .prose h2 { font-size: 26px; line-height: 1.22; margin: 22px 0 14px; }
  .prose h3 { font-size: 22px; line-height: 1.25; margin: 20px 0 10px; }
  .prose h4 { font-size: 20px; line-height: 1.3;  margin: 18px 0 8px; }
  .prose h5 { font-size: 18px; line-height: 1.35; margin: 16px 0 6px; }
  .prose h6 { font-size: 14px; line-height: 1.4;  margin: 14px 0 6px; }
  .prose > h1:first-child { margin-top: 0; }
}
 
@media (max-width: 480px) {
  .prose h1 { font-size: 26px; line-height: 1.22; margin: 24px 0 14px; }
  .prose h2 { font-size: 22px; line-height: 1.25; margin: 20px 0 12px; }
  .prose h3 { font-size: 20px; line-height: 1.28; margin: 18px 0 8px; }
  .prose h4 { font-size: 18px; line-height: 1.3;  margin: 16px 0 8px; }
  .prose h5 { font-size: 16px; line-height: 1.35; margin: 14px 0 6px; }
  .prose h6 { font-size: 13px; line-height: 1.4;  margin: 12px 0 6px; }
  .prose > h1:first-child { margin-top: 0; }
}