/* Final mobile layout layer. Kept separate from legacy styles so phone geometry
   stays deterministic at every common viewport width. */
@media (max-width: 680px) {
  html,
  body {
    overflow-x: hidden;
  }

  .container,
  .product-landing .container {
    width: min(calc(100% - 32px), var(--max));
  }

  .header-inner,
  .header.is-scrolled .header-inner {
    min-height: 72px;
    height: 72px;
    gap: 12px;
  }

  .brand,
  .footer .brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
  }

  .brand-mark,
  .footer .brand-mark {
    position: relative !important;
    inset: auto !important;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
  }

  .brand-mark img,
  .footer .brand-mark img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
  }

  .brand-copy,
  .footer .brand-copy {
    position: static !important;
    display: grid !important;
    min-width: 0;
    line-height: 1;
  }

  .brand-copy strong,
  .footer .brand-copy strong {
    display: block;
    font-size: .88rem;
    line-height: 1;
    white-space: nowrap;
  }

  .header-actions {
    margin-left: auto;
    flex: 0 0 auto;
  }

  .mobile-menu {
    top: 72px;
  }

  .hero-grid {
    min-height: 640px;
  }

  .hero-copy {
    padding-top: 82px;
  }

  .hero-copy h1 {
    max-width: 340px;
  }

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

  .product-card,
  .product-card-content,
  .card-bottom {
    min-width: 0;
  }

  .product-card-content {
    padding: 20px;
  }

  .product-landing-hero {
    overflow: clip;
  }

  .product-hero-copy {
    padding-top: 106px;
  }

  .product-hero-copy h1 {
    max-width: 100%;
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  .product-hero-description {
    max-width: 100%;
  }

  .product-hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-hero-buy,
  .product-hero-buy .product-buy {
    width: 100%;
  }

  .product-hero-buy .product-buy {
    grid-template-columns: minmax(140px, 1fr) minmax(0, 1fr);
  }

  .product-hero-buy .product-buy-button {
    width: 100%;
    min-width: 0;
  }

  .product-hero-art {
    min-height: 350px;
  }

  .cart-page .cart-layout,
  .checkout-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-page .cart-item {
    min-width: 0;
  }

  .footer {
    padding-top: 38px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
    padding-bottom: 34px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer .brand {
    width: 100%;
    margin: 0;
  }

  .footer .brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .footer .brand-copy strong {
    font-size: .86rem;
  }

  .footer p {
    max-width: 280px;
    margin: 14px 0 0;
  }

  .footer h3 {
    margin-top: 0;
  }

  .footer a,
  .footer span,
  .footer-document {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 520px) {
  .about-page .about-hero { grid-template-columns: minmax(0,1fr); gap: 24px; padding-top: 32px; }
  .about-page .about-hero > div:first-child > p:not(.eyebrow,.lead) { font-size: 14px; line-height: 1.5; }
  .about-page .about-hero .lead { font-size: 17px; line-height: 1.35; }
  .about-page .about-points { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 20px; }
  .about-page .about-points span { gap: 7px; font-size: 12px; line-height: 1.35; }
  .about-page .about-points i { font-size: 16px; }
  .about-page .about-emblem { width: min(46vw,180px); margin: 0 auto; }

  .delivery-cards { gap: 14px; margin-top: 28px; }
  .delivery-cards article { min-height: 0; padding: 24px; }
  .delivery-cards i { font-size: 27px; }
  .delivery-cards h2 { margin: 14px 0 10px; font-size: 24px; }
  .delivery-cards p { margin-bottom: 24px; font-size: 14px; line-height: 1.5; }
  .delivery-cards article > .button { width: 100%; min-height: 52px; padding: 0 12px; font-size: 13px; line-height: 1.25; }
  .truck-banner { min-height: 220px; padding: 42px 0; background-position: 62% center; }
  .truck-banner .eyebrow { font-size: 10px; }
  .truck-banner h2 { max-width: 260px; font-size: clamp(22px,6vw,28px); line-height: 1.12; }
  .truck-banner span { font-size: 10px; }

  .cart-page .cart-item { align-items: start; }
  .cart-page .cart-item-actions { grid-column: 2 / 4; grid-row: 2; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-width: 0; }
  .cart-page .cart-item .cart-item-actions > strong { font-size: 14px; line-height: 1.25; white-space: normal; }
  .cart-page .cart-item .quantity { flex: none; }
  .cart-page .cart-remove-item { grid-column: 4; grid-row: 1; }

  .checkout-progress { justify-content: flex-start; gap: 13px; margin-bottom: 24px; padding-bottom: 8px; }
  .checkout-progress span { font-size: 12px !important; line-height: 1.4; white-space: nowrap; }
  .checkout-form input,.checkout-form textarea { min-height: 48px; font-size: 16px; }
}

/* Safari-safe brand lock-up. Unique classes bypass the conflicting grid
   declarations left by earlier logo iterations. */
@media (max-width: 800px) {
  .header .brand,
  .footer .brand,
  .header .brand .brand-lockup,
  .footer .brand .brand-lockup {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;
    height: 68px !important;
    margin: 0 !important;
    overflow: visible !important;
    transform: none !important;
  }

  .header .brand .brand-emblem,
  .footer .brand .brand-emblem {
    position: absolute !important;
    inset: 0 auto auto 0 !important;
    display: block !important;
    width: 70px !important;
    min-width: 70px !important;
    height: 68px !important;
    margin: 0 !important;
    transform: none !important;
  }

  .header .brand .brand-title,
  .footer .brand .brand-title {
    position: absolute !important;
    inset: 0 auto auto 5px !important;
    display: block !important;
    width: 60px !important;
    height: 11px !important;
    padding: 1px 3px !important;
    background: #fff !important;
    color: #07080a !important;
    font: 8.5px/9px Georgia, "Times New Roman", serif !important;
    letter-spacing: -.055em !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .header .brand .brand-emblem img,
  .footer .brand .brand-emblem img {
    position: absolute !important;
    inset: 10px auto auto 11px !important;
    display: block !important;
    width: 48px !important;
    height: 48px !important;
    max-width: none !important;
    object-fit: cover !important;
    clip-path: circle(49% at 50% 50%) !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    transform: none !important;
  }

  .header .brand .brand-tag,
  .footer .brand .brand-tag {
    position: absolute !important;
    inset: auto auto 0 0 !important;
    display: block !important;
    width: 70px !important;
    height: 7px !important;
    margin: 0 !important;
    color: #f2f4f5 !important;
    font: 800 5.25px/7px Manrope, Arial, sans-serif !important;
    letter-spacing: .015em !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .header .brand .brand-word,
  .footer .brand .brand-word {
    position: absolute !important;
    inset: 27px auto auto 80px !important;
    display: block !important;
    margin: 0 !important;
    color: #fff !important;
    font: 400 15px/1 "Russo One", Arial, sans-serif !important;
    letter-spacing: .025em !important;
    white-space: nowrap !important;
    transform: none !important;
  }
}

@media (max-width: 375px) {
  .container,
  .product-landing .container {
    width: calc(100% - 24px);
  }

  .header-inner,
  .header.is-scrolled .header-inner {
    min-height: 68px;
    height: 68px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand-copy strong {
    font-size: .8rem;
  }

  .mobile-menu {
    top: 68px;
  }

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

  .footer-grid > div:first-child {
    grid-column: auto;
  }

  .footer .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .product-hero-facts {
    grid-template-columns: 1fr;
  }

  .product-hero-buy .product-buy {
    grid-template-columns: 1fr;
  }

  .product-hero-buy .product-buy strong {
    min-height: 0;
  }
}

/* Override legacy compact-phone rules: all text and controls stay usable below 520px. */
@media (max-width: 520px) {
  body { font-size: 16px; }

  .container,
  .product-landing .container { width: calc(100% - 32px); }

  .header-inner,
  .header.is-scrolled .header-inner { min-height: 82px; height: 82px; }
  .mobile-menu { top: 82px; }
  .icon-button { width: 40px; height: 40px; font-size: 1.2rem; }
  .cart-badge { min-width: 17px; height: 17px; font-size: .58rem; }

  h1 { font-size: clamp(2.25rem, 12vw, 3.4rem); margin-bottom: 16px; }
  h2 { font-size: clamp(1.55rem, 8vw, 2.15rem); margin-bottom: 14px; }
  .eyebrow { margin-bottom: 9px; font-size: .68rem; }
  .lead { font-size: 1rem; }
  .button,
  .filter,
  .text-link { min-height: 46px; font-size: .82rem; }

  .hero,
  .hero-grid { min-height: 650px; }
  .hero-copy { padding: 95px 0 12px; }
  .hero-copy h1 { max-width: 350px; font-size: clamp(2.35rem, 11vw, 3.45rem); }
  .hero-offer { margin: 0 0 18px; font-size: .92rem; }
  .hero-benefits { gap: 9px; margin: 0 0 22px; font-size: .78rem; }
  .hero-visual { height: 350px; }
  .vehicle-list { grid-template-columns: repeat(2, 1fr); }
  .vehicle-item,
  .vehicle-item:nth-child(3),
  .vehicle-item:nth-child(4),
  .vehicle-item:nth-child(5) { min-height: 70px; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
  .vehicle-item i { font-size: 1.2rem; }
  .vehicle-item span { font-size: .62rem; line-height: 1.2; text-align:left; }

  .page { padding: 44px 0 64px; }
  .catalog-section { padding-top: 0; }
  .filters { gap: 8px; padding-bottom: 16px; margin-bottom: 16px; }
  .filter { min-height: 40px; padding: 8px 14px; border-radius: 22px; }
  .product-grid,
  .catalog-section .product-grid { grid-template-columns: 1fr; gap: 14px; }
  .catalog-section .product-art { min-height: 255px; }
  .catalog-section .product-card-content { padding: 20px; }
  .catalog-section .product-card h3 { margin-bottom: 8px; font-size: 1.08rem; }
  .catalog-section .product-card p { min-height: 0; margin-bottom: 17px; font-size: .88rem; line-height: 1.45; }
  .catalog-section .card-bottom { flex-direction: row; align-items: center; gap: 12px; }
  .catalog-section .card-bottom strong { font-size: .92rem; }
  .catalog-section .button-small { min-height: 42px; padding: 0 15px; border-radius: 9px; font-size: .78rem; }
  .art-name { left: 18px; bottom: 14px; font-size: .78rem; }
  .catalog-truck-banner { min-height: 210px; margin-top: 20px; padding: 24px; }
  .catalog-truck-banner h2 { max-width: 260px; font-size: 1.28rem; }
  .catalog-truck-banner p { max-width: 260px; font-size: .85rem; }

  .product-hero-copy { padding: 108px 0 28px; }
  .product-hero-copy h1 { font-size: clamp(3.25rem, 16vw, 4.5rem); }
  .product-hero-name { font-size: 1.15rem; }
  .product-hero-description { font-size: .9rem; }
  .product-hero-facts { gap: 10px; }
  .product-hero-facts li { font-size: .74rem; }
  .product-hero-art { min-height: 360px; }
  .product-hero-volumes { width: 100%; }
  .product-hero-volumes .volume { min-height: 58px; font-size: .76rem; }
  .product-hero-volumes .volume small { font-size: .64rem; }
  .product-intro-card,
  .product-atmosphere { min-height: 240px; }
  .product-benefit-card h3,
  .product-steps h3 { font-size: .96rem; }
  .product-benefit-card p,
  .product-steps p,
  .product-specs dl div,
  .product-vehicle-list span { font-size: .8rem; }

  .footer { padding-top: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding-bottom: 32px; }
  .footer p,
  .footer a,
  .footer span,
  .footer-document { font-size: .82rem; }
  .footer h3 { font-size: .9rem; }
}

/* 2026 mobile rebuild: this file is loaded last and is the single source of
   truth for phone geometry. Desktop rules remain untouched. */
@media (max-width: 800px) {
  :root { --mobile-header-h: 72px; }

  html {
    width: 100%;
    max-width: 100%;
    scroll-padding-top: var(--mobile-header-h);
    overflow-x: clip;
  }

  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  body.menu-open {
    height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
  }

  img,
  svg,
  video {
    max-width: 100%;
  }

  .header,
  body:has(.home-page) .header {
    position: sticky !important;
    z-index: 1000;
    top: 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,.1);
    background: rgba(6,7,9,.94) !important;
    box-shadow: 0 10px 28px rgba(0,0,0,.24);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    animation: none !important;
    transform: none !important;
  }

  .header-inner,
  .header.is-scrolled .header-inner,
  body:has(.home-page) .header-inner {
    width: calc(100% - 32px) !important;
    min-height: var(--mobile-header-h) !important;
    height: var(--mobile-header-h) !important;
    gap: 8px;
  }

  .desktop-nav,
  .search-button,
  .profile-button,
  body:has(.home-page) .search-button,
  body:has(.home-page) .profile-button {
    display: none !important;
  }

  .brand,
  body:has(.home-page) .brand {
    display: grid !important;
    width: auto !important;
    min-width: 0 !important;
    grid-template-columns: 48px max-content !important;
    grid-template-rows: 46px 8px !important;
    column-gap: 9px !important;
    row-gap: 0 !important;
    align-items: center;
    transform: none !important;
  }

  .brand .brand-symbol { display: contents !important; }

  .brand .brand-mark,
  .footer .brand .brand-mark {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    width: 46px !important;
    height: 46px !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    overflow: visible !important;
  }

  .brand .brand-mark img,
  .footer .brand .brand-mark img {
    position: absolute !important;
    top: 10px !important;
    right: 4px !important;
    bottom: auto !important;
    left: 4px !important;
    width: 38px !important;
    height: 38px !important;
    clip-path: circle(46% at 50% 48%);
    object-fit: contain !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    transform: none !important;
  }

  .brand .brand-mark::after,
  .footer .brand .brand-mark::after {
    left: 10.5% !important;
    top: 22% !important;
    width: 79% !important;
    height: 79% !important;
  }

  .brand .brand-label,
  .footer .brand .brand-label {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    padding: 1px 2px !important;
    font-size: 8px !important;
  }

  .brand .brand-slogan,
  .footer .brand .brand-slogan {
    position: static !important;
    display: block !important;
    width: max-content !important;
    max-width: none !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    justify-self: center;
    margin: 0 !important;
    color: #f3f4f5;
    font-size: 5px !important;
    line-height: 1 !important;
    letter-spacing: .055em !important;
    white-space: nowrap !important;
  }

  .brand .brand-copy,
  .footer .brand .brand-copy {
    position: static !important;
    display: grid !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0;
    align-self: center;
  }

  .brand .brand-copy strong,
  .footer .brand .brand-copy strong {
    font-size: .86rem !important;
    line-height: 1 !important;
    letter-spacing: .035em;
    white-space: nowrap;
  }

  .header-actions,
  body:has(.home-page) .header-actions {
    gap: 2px !important;
    margin-left: auto;
  }

  .header .icon-button,
  body:has(.home-page) .icon-button {
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px;
    border-radius: 12px;
  }

  .menu-button { display: inline-flex !important; }

  .ui-cart-icon,
  .ui-menu-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .cart-badge {
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    border: 2px solid #08090b;
    font-size: .57rem;
  }

  .menu-button::before,
  .menu-button::after {
    position: absolute;
    width: 23px;
    height: 1.5px;
    border-radius: 3px;
    background: #fff;
    content: '';
    opacity: 0;
    transition: transform .28s ease, opacity .2s ease;
  }

  .menu-button.is-open { background: rgba(255,255,255,.1); }
  .menu-button.is-open .ui-menu-icon { opacity: 0; }
  .menu-button.is-open::before { opacity: 1; transform: rotate(45deg); }
  .menu-button.is-open::after { opacity: 1; transform: rotate(-45deg); }

  .mobile-menu,
  body:has(.home-page) .mobile-menu {
    position: fixed;
    z-index: 999;
    top: var(--mobile-header-h) !important;
    right: 0;
    bottom: 0;
    left: 0;
    display: block !important;
    overflow-y: auto;
    padding: 0 20px max(24px,env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 92% 8%,rgba(255,255,255,.08),transparent 28%),
      linear-gradient(145deg,#111419,#050607 66%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-14px);
    transition: opacity .28s ease, transform .34s cubic-bezier(.22,1,.36,1);
  }

  .mobile-menu.open,
  body:has(.home-page) .mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .mobile-menu-inner {
    display: flex;
    width: min(100%,520px);
    min-height: calc(100dvh - var(--mobile-header-h));
    margin: 0 auto;
    flex-direction: column;
    padding: clamp(34px,8vh,72px) 0 26px;
  }

  .mobile-menu-kicker {
    margin: 0 0 18px;
    color: #8f969e;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .19em;
  }

  .mobile-menu nav { display: grid; }

  .mobile-menu nav a {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.12);
    color: #f7f7f6;
    font-family: "Russo One",Arial,sans-serif;
    font-size: clamp(1.35rem,6vw,1.85rem);
    line-height: 1;
  }

  .mobile-menu nav a::after {
    color: #8f969e;
    content: '↗';
    font-family: Manrope,Arial,sans-serif;
    font-size: 1rem;
    font-weight: 400;
  }

  .mobile-menu-contact {
    display: grid;
    gap: 5px;
    margin-top: auto;
    padding-top: 34px;
  }

  .mobile-menu-contact span {
    margin-bottom: 6px;
    color: #8f969e;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
  }

  .mobile-menu-contact a {
    width: fit-content;
    min-height: 34px;
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
  }
}

/* The footer is a grid, so its auto-sized brand link used to stretch to the
   whole column and could separate the wordmark from the emblem. */
@media (max-width: 800px) {
  .footer-grid > div:first-child { overflow: visible !important; }

  .footer .brand {
    display: flex !important;
    width: 190px !important;
    max-width: 100% !important;
    min-width: 190px !important;
    height: 64px !important;
    margin: 0 !important;
    flex: 0 0 190px !important;
    align-self: flex-start !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    transform: none !important;
  }

  .footer .brand .brand-symbol {
    position: relative !important;
    inset: auto !important;
    width: 70px !important;
    height: 64px !important;
    flex: 0 0 70px !important;
    transform: none !important;
  }

  .footer .brand .brand-copy {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    align-self: center !important;
    transform: none !important;
  }
}

/* Mobile content must remain visible even when an intersection animation does not fire. */
@media (max-width: 800px) {
  .reveal,
  .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 680px) {
  .catalog-section .filters {
    flex-wrap: wrap;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }

  .catalog-section .filter {
    min-height: 42px;
  }
}

/* Final mobile logo geometry. Kept last so no legacy phone rule can move it. */
@media (max-width: 800px) {
  .header .brand,
  .footer .brand,
  .header .brand .brand-lockup,
  .footer .brand .brand-lockup {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;
    height: 68px !important;
    margin: 0 !important;
    overflow: visible !important;
    transform: none !important;
  }

  .header .brand .brand-emblem,
  .footer .brand .brand-emblem {
    position: absolute !important;
    inset: 0 auto auto 0 !important;
    display: block !important;
    width: 70px !important;
    min-width: 70px !important;
    height: 68px !important;
    margin: 0 !important;
    transform: none !important;
  }

  .header .brand .brand-title,
  .footer .brand .brand-title {
    position: absolute !important;
    inset: 0 auto auto 5px !important;
    display: block !important;
    width: 60px !important;
    height: 11px !important;
    padding: 1px 3px !important;
    background: #fff !important;
    color: #07080a !important;
    font: 8.5px/9px Georgia, "Times New Roman", serif !important;
    letter-spacing: -.055em !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .header .brand .brand-emblem img,
  .footer .brand .brand-emblem img {
    position: absolute !important;
    inset: 10px auto auto 11px !important;
    display: block !important;
    width: 48px !important;
    height: 48px !important;
    max-width: none !important;
    object-fit: cover !important;
    clip-path: circle(49% at 50% 50%) !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    transform: none !important;
  }

  .header .brand .brand-tag,
  .footer .brand .brand-tag {
    position: absolute !important;
    inset: auto auto 0 0 !important;
    display: block !important;
    width: 70px !important;
    height: 7px !important;
    margin: 0 !important;
    color: #f2f4f5 !important;
    font: 800 5.25px/7px Manrope, Arial, sans-serif !important;
    letter-spacing: .015em !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .header .brand .brand-word,
  .footer .brand .brand-word {
    position: absolute !important;
    inset: 27px auto auto 80px !important;
    display: block !important;
    margin: 0 !important;
    color: #fff !important;
    font: 400 15px/1 "Russo One", Arial, sans-serif !important;
    letter-spacing: .025em !important;
    white-space: nowrap !important;
    transform: none !important;
  }
}

@media (max-width: 680px) {
  :root {
    --mobile-gutter: 16px;
    --mobile-section: 72px;
    --radius: 14px;
  }

  .container,
  .product-landing .container,
  body:has(.home-page) .header-inner {
    width: calc(100% - (var(--mobile-gutter) * 2)) !important;
    max-width: 100%;
  }

  body { font-size: 16px; }

  h1 { font-size: clamp(2.25rem,11vw,3.2rem); }
  h2 { font-size: clamp(1.75rem,8.5vw,2.45rem); line-height: 1.02; }
  h3 { font-size: 1rem; }
  .eyebrow { font-size: .72rem; line-height: 1.35; }
  .lead { font-size: 1rem; line-height: 1.5; }

  .button,
  .text-link,
  .filter,
  .volume,
  .footer-document {
    min-height: 44px;
  }

  .button {
    padding-inline: 20px;
    font-size: .84rem;
  }

  /* Mobile homepage hero: copy first, then a large uncropped BMW, then benefits. */
  .homepage-hero {
    display: flex;
    min-height: 0;
    padding-bottom: 42px;
    flex-direction: column;
    overflow: clip;
    background: #050607;
  }

  .homepage-hero::before {
    z-index: 1;
    background:
      linear-gradient(180deg,#050607 0 39%,rgba(5,6,7,.16) 50%,rgba(5,6,7,.05) 70%,#050607 92%),
      linear-gradient(90deg,rgba(5,6,7,.3),transparent 70%);
  }

  .homepage-shell {
    position: relative;
    z-index: 2;
    order: 1;
    width: calc(100% - (var(--mobile-gutter) * 2));
    padding-top: 36px;
  }

  .homepage-copy {
    width: 100%;
    max-width: none;
    text-align: left;
  }

  .homepage-overline {
    margin-bottom: 16px;
    font-size: clamp(11px,3vw,13px);
    line-height: 1.3;
    letter-spacing: .18em;
    white-space: normal;
  }

  .homepage-copy h1 {
    width: 100%;
    margin: 0;
    font-size: clamp(34px,10.45vw,46px);
    line-height: .94;
    letter-spacing: -.035em;
  }

  .homepage-copy h1 span {
    width: auto;
    max-width: 100%;
    white-space: nowrap;
  }

  .homepage-tagline {
    gap: 13px;
    margin: 22px 0 17px;
    font-size: clamp(18px,5vw,22px);
    line-height: 1.15;
    white-space: normal;
  }

  .homepage-tagline i {
    width: 44px;
    flex: 0 0 44px;
  }

  .homepage-description {
    color: #d5d8db;
    font-size: 16px;
    line-height: 1.45;
  }

  .homepage-cta-row {
    width: 100%;
    margin-top: 27px;
  }

  .homepage-catalog-button {
    width: 100%;
    min-height: 56px;
    padding: 0 20px 0 24px;
    border-radius: 30px;
    font-size: .82rem;
  }

  .homepage-catalog-button b { font-size: 1.8rem; }

  .homepage-bg {
    position: relative;
    z-index: 0;
    order: 2;
    width: 100%;
    height: clamp(330px,92vw,410px);
    margin-top: 22px;
    overflow: hidden;
  }

  .homepage-bg img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 84% center;
  }

  .homepage-benefits {
    position: relative;
    z-index: 2;
    order: 3;
    width: calc(100% - (var(--mobile-gutter) * 2));
    margin: -6px auto 0;
    padding-top: 26px;
    border-top: 1px solid rgba(255,255,255,.14);
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 26px 14px;
  }

  .homepage-benefits > div {
    gap: 10px;
    color: #e8eaec;
    font-size: .83rem;
    line-height: 1.3;
  }

  .home-feature-icon { width: 34px; height: 34px; }
  .homepage-slide-nav,
  .homepage-scroll-cue,
  .homepage-wall-mark { display: none !important; }

  .home-page .home-products {
    padding: var(--mobile-section) 0;
  }

  .home-page .section-heading,
  .home-compare .container {
    align-items: stretch;
    flex-direction: column;
  }

  .home-page .section-heading {
    gap: 18px;
    margin-bottom: 28px;
  }

  .home-page .section-heading p:not(.eyebrow) {
    margin: 10px 0 0;
    color: #aeb4bb;
    font-size: .95rem;
    line-height: 1.5;
  }

  .home-page .section-heading .text-link {
    width: fit-content;
    min-height: 44px;
    padding-top: 10px;
  }

  .home-grid,
  .home-page .product-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 18px;
  }

  .home-grid .product-card {
    width: 100%;
    border-radius: 16px;
  }

  .home-grid .product-art {
    min-height: clamp(290px,82vw,350px);
  }

  .home-grid .product-art .canister-stage { height: 98%; }
  .home-grid .product-card-content { padding: 21px; }
  .home-grid .product-card h3 { font-size: 1.18rem; }
  .home-grid .product-card p { min-height: 0; font-size: .93rem; line-height: 1.5; }
  .home-grid .card-bottom strong { font-size: .95rem; }
  .home-grid .button-small { min-height: 44px; padding-inline: 17px; font-size: .78rem; }

  .home-selector {
    display: grid;
    min-height: 0;
    gap: 28px;
    padding-block: var(--mobile-section);
  }

  .home-selector p:not(.eyebrow),
  .home-brand-story p:not(.eyebrow),
  .home-compare p,
  .home-contact-cta p:not(.eyebrow) {
    font-size: .96rem;
    line-height: 1.55;
  }

  .home-selector .button,
  .home-compare .button,
  .home-contact-cta .button {
    width: 100%;
    min-height: 54px;
  }

  .home-brand-story {
    grid-template-columns: minmax(0,1fr);
    gap: 32px;
    padding-block: 0 var(--mobile-section);
  }

  .home-brand-story > div:first-child { padding-left: 0; }

  .home-brand-photo {
    min-height: 280px;
    border-radius: 0;
    background-position: 67% center;
  }

  .home-compare { padding: var(--mobile-section) 0; }
  .home-compare .container { gap: 26px; padding-block: 0; }

  .home-contact-cta {
    padding: var(--mobile-section) 0;
    text-align: left;
  }

  .home-contact-cta .button { margin-top: 14px; }

  /* Shared phone layouts across catalog, products, comparison and checkout. */
  .page { padding: 48px 0 var(--mobile-section); }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 14px; }

  .product-grid,
  .catalog-section .product-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .product-card { width: 100%; }
  .catalog-section .product-art { min-height: clamp(285px,80vw,345px); }
  .catalog-section .product-card-content { padding: 21px; }
  .catalog-section .product-card h3 { font-size: 1.12rem; }
  .catalog-section .product-card p { font-size: .92rem; line-height: 1.5; }
  .catalog-section .button-small { min-height: 44px; font-size: .78rem; }

  .filters {
    margin-inline: calc(var(--mobile-gutter) * -1);
    padding: 0 var(--mobile-gutter) 18px;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { padding: 10px 17px; font-size: .78rem; }

  .product-hero-grid {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(0,1fr);
  }
  .product-hero-copy { max-width: 100%; padding: 46px 0 30px; }
  .product-hero-copy h1 { font-size: clamp(3rem,16vw,4.3rem); }
  .product-hero-name { font-size: 1.3rem; }
  .product-hero-description { font-size: .94rem; }
  .product-hero-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-hero-facts li { font-size: .76rem; }
  .product-hero-buy { align-items: stretch; flex-direction: column; }
  .product-hero-buy .product-buy { grid-template-columns: minmax(0,1fr) auto; }
  .product-hero-volumes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .product-hero-volumes .volume { min-width: 0; min-height: 58px; width: 100%; }
  .product-hero-art { min-height: 390px; }
  .product-hero-art img { max-width: 100%; max-height: 390px; }
  .product-hero-message { display: none; }
  .product-intro-grid,
  .product-benefit-grid,
  .product-details-grid,
  .product-bottom-grid { grid-template-columns: minmax(0,1fr); }
  .product-benefit-grid { gap: 12px; }
  .product-benefit-card { min-height: 180px; }

  .compare-table-wrap,
  .comparison-wrap {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .compare-table-wrap::before,
  .comparison-wrap::before {
    display: block;
    padding: 10px 14px;
    color: #aeb4bb;
    font-size: .75rem;
    content: 'Листайте для сравнения →';
  }

  .cart-page .cart-layout,
  .checkout-layout,
  .contacts-page,
  .delivery-cards,
  .form-grid { grid-template-columns: minmax(0,1fr); }
  .cart-page .cart-progress,
  .checkout-progress { max-width: 100%; overflow-x: auto; }

  .overlay { padding: 16px; }
  .dialog {
    width: calc(100vw - 32px);
    max-width: 520px;
    max-height: 90dvh;
    overflow-y: auto;
  }

  .footer {
    padding: 46px 0 max(8px,env(safe-area-inset-bottom));
  }

  .footer-grid {
    grid-template-columns: minmax(0,1fr) !important;
    gap: 34px;
    padding-bottom: 38px;
  }

  .footer-grid > div:first-child { grid-column: auto; }

  .footer .brand {
    display: grid !important;
    width: fit-content !important;
    grid-template-columns: 52px max-content !important;
    grid-template-rows: 50px 9px !important;
  }

  .footer .brand .brand-mark {
    width: 50px !important;
    height: 50px !important;
  }

  .footer .brand .brand-mark img {
    top: 11px !important;
    right: 4px !important;
    left: 4px !important;
    width: 42px !important;
    height: 42px !important;
  }

  .footer .brand .brand-copy strong { font-size: .95rem !important; }
  .footer p { max-width: 310px; margin-top: 18px; font-size: .9rem; line-height: 1.55; }
  .footer h3 { margin-bottom: 13px; font-size: .95rem; }
  .footer-grid > div:not(:first-child) a,
  .footer-grid > div:not(:first-child) span,
  .footer-document { min-height: 34px; margin-bottom: 4px; font-size: .87rem; line-height: 1.45; }
  .footer-bottom { padding-block: 20px; font-size: .74rem; }
}

@media (max-width: 360px) {
  :root { --mobile-gutter: 14px; --mobile-header-h: 68px; }
  .header .brand { grid-template-columns: 43px max-content !important; grid-template-rows: 42px 7px !important; column-gap: 7px !important; }
  .header .brand .brand-mark { width: 42px !important; height: 42px !important; }
  .header .brand .brand-mark img { top: 9px !important; right: 3px !important; left: 3px !important; width: 36px !important; height: 36px !important; }
  .header .brand .brand-label { font-size: 7px !important; }
  .header .brand .brand-slogan { font-size: 4.5px !important; }
  .header .brand .brand-copy strong { font-size: .78rem !important; }
  .header .icon-button { width: 42px !important; height: 42px !important; flex-basis: 42px; }
  .homepage-shell { padding-top: 31px; }
  .homepage-copy h1 { font-size: clamp(32px,10.1vw,36px); }
  .homepage-description { font-size: 15px; }
  .homepage-bg { height: 315px; }
}

@media (min-width: 400px) and (max-width: 680px) {
  :root { --mobile-gutter: 20px; }
}

/* Final mobile logo lock-up.  Older responsive layers used different grid
   heights for the mark, its label and the slogan, which made the emblem look
   cropped on product pages.  Keep the three parts in their own fixed tracks. */
@media (max-width: 800px) {
  :root { --mobile-header-h: 76px; }

  .header .brand {
    display: grid !important;
    width: auto !important;
    min-width: 0 !important;
    height: 64px;
    grid-template-columns: 56px max-content !important;
    grid-template-rows: 54px 10px !important;
    column-gap: 9px !important;
    row-gap: 0 !important;
    align-items: center;
    overflow: visible !important;
  }

  .header .brand .brand-mark {
    width: 56px !important;
    height: 54px !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    overflow: visible !important;
  }

  .header .brand .brand-mark img {
    top: 11px !important;
    right: 6px !important;
    bottom: auto !important;
    left: 6px !important;
    width: 44px !important;
    height: 44px !important;
    clip-path: circle(50% at 50% 50%) !important;
    filter: invert(1) contrast(1.08) !important;
  }

  .header .brand .brand-mark::after { display: none !important; }

  .header .brand .brand-label {
    top: 0 !important;
    left: 0 !important;
    width: 56px !important;
    min-height: 10px;
    padding: 1px 2px !important;
    overflow: hidden;
    font-size: 8px !important;
    line-height: 1.05 !important;
    letter-spacing: -.065em !important;
  }

  .header .brand .brand-slogan {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 70px !important;
    max-width: 70px !important;
    margin-left: -7px !important;
    overflow: visible;
    color: #f4f5f6;
    font-size: 5.5px !important;
    line-height: 1 !important;
    letter-spacing: .02em !important;
    text-align: center;
    white-space: nowrap !important;
  }

  .header .brand .brand-copy {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center;
  }

  .header .brand .brand-copy strong {
    font-size: .92rem !important;
    line-height: 1 !important;
  }

  .header .mobile-menu { top: var(--mobile-header-h) !important; }
}

/* Logo and menu polish: keep the real monochrome asset in its original colour
   and never rely on a platform glyph for navigation arrows (iOS renders ↗ as
   a coloured emoji). */
@media (max-width: 800px) {
  .header .brand,
  .footer .brand {
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    height: 64px;
    align-items: center;
    gap: 10px !important;
    overflow: visible !important;
  }

  .header .brand .brand-symbol,
  .footer .brand .brand-symbol {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    width: 70px !important;
    height: 64px !important;
    grid-template-rows: 54px 10px;
    flex: 0 0 70px !important;
    place-items: start center;
    overflow: visible !important;
  }

  .header .brand .brand-mark,
  .footer .brand .brand-mark {
    position: relative !important;
    display: block !important;
    width: 60px !important;
    height: 54px !important;
    grid-column: auto !important;
    grid-row: auto !important;
    justify-self: center;
    overflow: visible !important;
  }

  .header .brand .brand-mark img,
  .footer .brand .brand-mark img {
    position: absolute !important;
    top: 11px !important;
    right: 7px !important;
    bottom: auto !important;
    left: 7px !important;
    width: 46px !important;
    height: 46px !important;
    clip-path: circle(50% at 50% 50%) !important;
    filter: none !important;
    mix-blend-mode: normal !important;
  }

  .header .brand .brand-mark::after,
  .footer .brand .brand-mark::after { display: none !important; }

  .header .brand .brand-label,
  .footer .brand .brand-label {
    top: 0 !important;
    left: 0 !important;
    width: 60px !important;
    min-height: 10px;
    padding: 1px 2px !important;
    overflow: hidden;
    font-size: 8.5px !important;
    line-height: 1.05 !important;
    letter-spacing: -.065em !important;
  }

  .header .brand .brand-slogan,
  .footer .brand .brand-slogan {
    position: static !important;
    display: block !important;
    width: 70px !important;
    max-width: 70px !important;
    height: auto !important;
    margin: 0 !important;
    grid-column: auto !important;
    grid-row: auto !important;
    justify-self: center;
    overflow: visible;
    color: #f2f4f5;
    font-size: 5.5px !important;
    line-height: 1 !important;
    letter-spacing: .02em !important;
    text-align: center;
    white-space: nowrap !important;
  }

  .header .brand .brand-copy,
  .footer .brand .brand-copy {
    position: static !important;
    display: block !important;
    min-width: 0;
    align-self: center;
  }

  .header .brand .brand-copy strong,
  .footer .brand .brand-copy strong {
    display: block;
    font-size: .95rem !important;
    line-height: 1 !important;
    white-space: nowrap;
  }

  .mobile-menu nav a::after {
    width: 10px;
    height: 10px;
    border-top: 1.5px solid #aeb4bb;
    border-right: 1.5px solid #aeb4bb;
    color: transparent;
    content: '';
    font-size: 0;
    transform: rotate(45deg);
  }

  .footer-grid > div:first-child { overflow: visible !important; }

  .footer .brand {
    display: flex !important;
    width: 190px !important;
    max-width: 190px !important;
    min-width: 190px !important;
    height: 64px !important;
    margin: 0 !important;
    flex: 0 0 190px !important;
    align-self: flex-start !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    transform: none !important;
  }

  .footer .brand .brand-symbol {
    position: relative !important;
    inset: auto !important;
    width: 70px !important;
    height: 64px !important;
    flex: 0 0 70px !important;
    transform: none !important;
  }

  .footer .brand .brand-copy {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    align-self: center !important;
    transform: none !important;
  }
}
