/* =====================================================================
   StatusCase — landing styles (MVP prototype)
   Mobile-first. Brand palette below. Colour-vision safe (red-deficiency).
   No framework (Tailwind CDN removed): this file owns the brand system,
   layout (.container, section grids, breakpoints) and custom components
   (logo, step badges, hand-drawn arrows).
   ===================================================================== */

:root {
  /* --- Brand colour system (STRICT) ---
     White + red + blue, taken from the real StatusCase vending hardware.
     Each colour has ONE role. Palette is strictly white + red + blue + navy,
     chosen to be red-deficiency colour-vision safe.
       page bg .......... #FFFFFF
       surfaces/cards ... #F4F7FA
       body text ........ #1A1D24
       headings/brand ... #1B2F8C (navy)
       primary CTA ...... #E8332A (red), white text
       secondary/accent . #27AAE1 (sky blue)
       deep block/footer  #1B2F8C
       links ............ #27AAE1
     Contrast is carried by LIGHTNESS (dark ink / navy on light; white on
     saturated red/blue/navy), never by hue alone. */
  --sc-red: #E8332A;      /* primary CTA / main action */
  --sc-blue: #27AAE1;     /* secondary CTA / accent / links */
  --sc-navy: #1B2F8C;     /* headings, deep block, footer */
  --sc-white: #FFFFFF;    /* page background */

  /* Derived shades */
  --sc-red-dark: #C41F18;
  --sc-navy-deep: #15246B;
  --sc-ink: #1A1D24;      /* default body text — dark graphite */
  --sc-muted: #5A6172;    /* secondary / helper text */
  --sc-surface: #F4F7FA;  /* surfaces / cards */
  --sc-cloud: #F4F7FA;    /* light section background (alias of surface) */
  --sc-line: #E1E6EE;     /* hairline borders */

  --sc-radius: 18px;
  --sc-radius-sm: 12px;
  --sc-shadow: 0 10px 30px rgba(21, 36, 107, 0.12);
  --sc-shadow-lg: 0 22px 60px rgba(21, 36, 107, 0.22);
  --sc-header-h: 64px;
}

/* ------------------------------ Base ------------------------------ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--sc-ink);
  background: var(--sc-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

/* Respect users who don't want the smooth-scroll / motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* height:auto keeps the width/height-attribute aspect ratio when the image
   shrinks responsively (Tailwind preflight used to provide this). Class-level
   height:100% rules (cover tiles) override this by specificity. */
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-weight: 800; line-height: 1.08; margin: 0; }

a { color: inherit; }

/* Anchor offset so sticky header never covers section titles */
section[id] { scroll-margin-top: calc(var(--sc-header-h) + 10px); }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 18px; }

/* Visible focus ring for keyboard users (accessibility) */
:where(a, button, input, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--sc-navy);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Screen-reader-only helper */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------- Brand utilities ------------------------ */
.font-display { font-family: 'Inter', sans-serif; font-weight: 900; }

.text-red   { color: var(--sc-red); }
.text-blue  { color: var(--sc-blue); }
.text-navy  { color: var(--sc-navy); }
.text-muted { color: var(--sc-muted); }

.bg-red   { background: var(--sc-red); }
.bg-blue  { background: var(--sc-blue); }
.bg-navy  { background: var(--sc-navy); }
.bg-cloud { background: var(--sc-cloud); }

/* Highlight pill used inside headlines ("за 3 хвилини") — red bg, white text */
.hl {
  background: var(--sc-red);
  color: #fff;
  padding: 0.02em 0.32em;
  border-radius: 8px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  white-space: nowrap;
}

/* ------------------------------ Logo ------------------------------ */
/* Brand logo is a white wordmark PNG (assets/logo_white.png), so it needs
   a navy backing on light surfaces:
   - Header (light bg):  .logo--badge adds a navy pill behind it.
   - Footer (navy bg):   .logo--light sits directly on navy, no backing. */
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
/* width:auto + max-width:none keeps the wordmark's true ratio; flex:0 0 auto on
   .logo stops the header flexbox from squishing it when the mobile CTA is present.
   Smaller on mobile (30px) so logo + "Автомат" + burger fit down to 360px. */
.logo__img {
  height: 30px; width: auto; max-width: none; display: block;
}
/* Navy pill so the white logo reads on the light header */
.logo--badge { background: var(--sc-navy); border-radius: 12px; padding: 8px 16px; }
.logo--light .logo__img { height: 30px; }

/* ------------------------------ Header ---------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--sc-line);
}
.site-header__inner {
  height: var(--sc-header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.nav-links { display: none; gap: 22px; align-items: center; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--sc-ink); }
.nav-links a:hover { color: var(--sc-red); }
.header-cta { display: flex; align-items: center; gap: 8px; }
/* On mobile the header keeps only the logo + hamburger to avoid overflow.
   The two text CTAs live in the hero and the mobile menu instead.
   They reappear on desktop (>=860px) where the hamburger is hidden. */
.header-cta .btn { display: none; }
/* ...except the compact icon CTA — the mobile header's only action. */
.header-cta .header-cta__mobile { display: inline-flex; gap: 6px; padding: 9px 14px; }

/* Mobile menu toggle */
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 4px; justify-content: center;
  width: 42px; height: 42px; padding: 9px; border: 1px solid var(--sc-line);
  background: var(--sc-white); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2.5px; background: var(--sc-navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile dropdown panel */
.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--sc-line);
  background: var(--sc-white);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 14px 18px; text-decoration: none; font-weight: 600;
  border-top: 1px solid var(--sc-line); color: var(--sc-ink);
}
.mobile-menu a:first-child { border-top: 0; }

/* --------------------------- Buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; font-size: 15px; line-height: 1; text-decoration: none;
  padding: 13px 20px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--sc-red); color: #fff; box-shadow: 0 8px 20px rgba(232,51,42,.32); }
.btn--primary:hover { background: var(--sc-red-dark); }
.btn--blue { background: var(--sc-blue); color: #fff; box-shadow: 0 8px 20px rgba(39,170,225,.32); }
.btn--blue:hover { filter: brightness(0.96); }
.btn--navy { background: var(--sc-navy); color: #fff; }
.btn--navy:hover { background: var(--sc-navy-deep); }
.btn--ghost { background: transparent; color: var(--sc-navy); border-color: var(--sc-navy); }
.btn--ghost:hover { background: var(--sc-navy); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost-light:hover { background: #fff; color: var(--sc-navy); }
.btn--sm { padding: 9px 15px; font-size: 13px; }
.btn--lg { padding: 16px 28px; font-size: 17px; }
.btn--block { width: 100%; }

/* --------------------------- Sections ----------------------------- */
.section { padding: 56px 0; }
.section--tight { padding: 40px 0; }
.section-head { max-width: 720px; margin: 0 auto 34px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 6vw, 40px); }
.section-head p { color: var(--sc-muted); font-size: 16px; margin-top: 12px; }

/* 12px uppercase labels: one unified navy style on light backgrounds —
   red/sky-blue at this size failed WCAG AA contrast. */
.eyebrow {
  display: inline-block; font-weight: 800; font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sc-navy); margin-bottom: 10px;
}
.eyebrow--blue { color: var(--sc-navy); } /* unified with .eyebrow (kept for markup compat) */
/* Eyebrow on the navy deep block — near-white reads by lightness, AA-safe */
.eyebrow--white { color: rgba(255,255,255,.85); }

/* ------------------------------ Hero ------------------------------ */
.hero {
  position: relative; overflow: hidden;
  /* Store-like white base with light vending accents in the corners (kept subtle) */
  background:
    radial-gradient(1000px 480px at 92% -12%, rgba(39,170,225,.16), transparent 60%),
    radial-gradient(820px 460px at -8% 112%, rgba(232,51,42,.08), transparent 55%),
    var(--sc-white);
}
/* Longhand padding only: the shorthand would zero out .container's 18px side padding */
.hero__grid { display: grid; gap: 28px; padding-top: 30px; padding-bottom: 46px; align-items: center; }
.hero h1 {
  font-family: 'Inter', sans-serif; font-weight: 900;
  font-size: clamp(34px, 9.5vw, 64px); letter-spacing: -0.025em; color: var(--sc-ink);
}
.hero h1 .accent { color: var(--sc-red); display: block; }
.hero__sub { font-size: clamp(16px, 4.2vw, 20px); color: var(--sc-ink); margin-top: 18px; max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__trust {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  list-style: none; padding: 0; margin: 24px 0 0;
  font-size: 14px; color: var(--sc-muted);
}
.hero__trust li { white-space: nowrap; }
.hero__trust li + li::before { content: "·"; margin-right: 12px; color: var(--sc-blue); font-weight: 900; }
.hero__trust b { color: var(--sc-navy); }

/* Emotional hook badge "НЕ БУДЬ ЯК ВСІ" — mirrors the automat sticker.
   Navy badge, white text; the "ЯК ВСІ" span pops via a red inset (lightness
   + colour + its own pill shape, so emphasis isn't carried by hue alone). */
.hook-badge {
  display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  background: var(--sc-blue); color: #fff; font-weight: 900;
  padding: 8px 14px; border-radius: 12px; transform: rotate(-2deg);
  box-shadow: var(--sc-shadow); font-size: clamp(15px, 4.5vw, 20px); margin-bottom: 4px;
}
.hook-badge .yel { background: var(--sc-navy); color: #fff; padding: 0 8px; border-radius: 7px; }

/* Hero image (real automat photo) framed like a phone/standee */
.hero__media { position: relative; }
.hero__media img {
  width: 100%; max-width: 420px; margin: 0 auto;
  border-radius: 24px; box-shadow: var(--sc-shadow-lg);
  border: 6px solid #fff;
}
.hero__media-badge {
  position: absolute; right: 4%; bottom: -14px;
  background: var(--sc-red); color: #fff; font-weight: 900;
  padding: 10px 16px; border-radius: 14px; box-shadow: var(--sc-shadow);
  transform: rotate(3deg); font-size: 15px; text-align: center;
}

/* ================= HOOK — «Збережи емоцію» (#how) ==================
   Full-width emotional block right after the hero. White text over a
   photo; a navy overlay keeps contrast WCAG-safe on any image. The
   photo itself lives ONLY in .hook--photo — swap it in one line. */
.hook {
  position: relative; color: #fff; text-align: center;
  padding: 48px 0;
  background-color: var(--sc-navy); /* fallback while the photo loads */
  background-size: cover; background-position: center;
}
/* Background photo: generated mall shot (two girls + StatusCase automat).
   Mobile: even dark overlay, centered text; girls sit at ~60% of the frame,
   so we bias background-position right of center. Desktop overrides below
   switch to a left→right gradient with left-aligned copy. */
.hook--photo {
  background-image:
    linear-gradient(rgba(16,22,46,.74), rgba(16,22,46,.66)),
    url("assets/hook_bg.jpg");
  background-position: 62% center;
}
.hook__inner { display: grid; justify-items: center; }
.hook h2 {
  font-family: 'Inter', sans-serif; font-weight: 900; color: #fff;
  font-size: clamp(34px, 8vw, 52px); letter-spacing: -0.02em;
}
.hook__sub {
  margin: 12px 0 0; font-size: clamp(16px, 4.2vw, 19px);
  color: rgba(255,255,255,.92); max-width: 600px;
}

/* 3 steps as translucent pills. Mobile = compact vertical stack;
   desktop = one row with thin → arrows in the gaps (see 860px block). */
.hook__steps {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
  width: min(300px, 100%);
}
.hook__steps li {
  position: relative; display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; padding: 9px 18px 9px 9px;
  font-weight: 800; font-size: 16px; backdrop-filter: blur(3px);
}
.hook__steps b {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 16px; font-weight: 900;
}
/* Step numbers: red / sky blue / white-with-navy (colour-vision safe) */
.hook__steps li:nth-child(1) b { background: var(--sc-red); color: #fff; }
.hook__steps li:nth-child(2) b { background: var(--sc-blue); color: #fff; }
.hook__steps li:nth-child(3) b { background: #fff; color: var(--sc-navy); }
/* thin connector arrow between pills — shown only in the desktop row */
.hook__steps li + li::before {
  content: "\2192"; display: none; position: absolute; left: -26px; top: 50%;
  transform: translateY(-50%); color: rgba(255,255,255,.65);
  font-weight: 900; font-size: 19px;
}

/* 3 compact benefits with a blue check (colour-vision safe — no green) */
.hook__why {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 9px; align-items: flex-start;
}
.hook__why li {
  display: flex; gap: 9px; align-items: center; text-align: left;
  font-size: 15.5px; font-weight: 600; color: #fff;
}
.hook__why li::before {
  content: ""; flex: 0 0 auto; width: 18px; height: 18px; background: var(--sc-blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
}
.hook__inner > .btn { margin-top: 26px; }

/* --------------------- Case-type pricing cards --------------------
   Each card is a native <details>. Mobile (<860px): compact summary row
   (mini case visual + name/type + price + chevron), bullets revealed on
   tap. Desktop (>=860px): app.js forces every card open; the summary
   becomes a static centered column (chevron hidden, summary inert via
   pointer-events:none + tabindex=-1 set in app.js). */
.cases-grid { display: grid; gap: 12px; }
.case-card {
  position: relative; background: #fff; border: 2px solid var(--sc-line);
  border-radius: var(--sc-radius);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
}
@media (hover: hover) and (pointer: fine) {
  .case-card:hover { transform: translateY(-4px); box-shadow: var(--sc-shadow-lg); }
}
.case-card--featured { border-color: var(--sc-red); }

/* Summary row (mobile-first) */
.case-card__summary {
  display: flex; align-items: center; gap: 13px;
  padding: 12px 16px; cursor: pointer; list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.case-card__summary::-webkit-details-marker { display: none; }
.case-card__head { display: grid; gap: 1px; min-width: 0; }
.case-card__name {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-weight: 800; font-size: 16.5px; line-height: 1.2; color: var(--sc-ink);
}
.case-card__type { font-size: 12.5px; color: var(--sc-muted); font-weight: 700; }
.case-card__price { margin-left: auto; font-size: 19px; font-weight: 900; color: var(--sc-navy); white-space: nowrap; }
.case-card__price span { font-size: 12.5px; font-weight: 700; color: var(--sc-muted); }
.case-card__chev { flex: 0 0 auto; display: grid; place-items: center; color: var(--sc-navy); }
.case-card__chev svg { transition: transform .2s ease; }
.case-card[open] .case-card__chev svg { transform: rotate(180deg); }
.case-card__body { padding: 2px 16px 14px; }

/* Featured tag: small inline pill next to the name on mobile;
   floating top-center badge on desktop (see 860px block). */
.case-card__tag {
  display: inline-block; background: var(--sc-red); color: #fff; font-weight: 900;
  font-size: 10.5px; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px;
  white-space: nowrap;
}

/* Mini phone-case mockups built in CSS (no assets). Mobile ~44x76,
   desktop ~80x140 (overrides in the 860px block). */
.case-visual {
  flex: 0 0 auto; display: block; position: relative;
  width: 44px; height: 76px; border-radius: 10px;
  box-shadow: 0 4px 12px rgba(21, 36, 107, .18);
}
.case-visual--clear { background: linear-gradient(135deg, rgba(39,170,225,.18), rgba(255,255,255,.6)); border: 2px solid rgba(39,170,225,.5); }
.case-visual--black { background: linear-gradient(135deg, #2a2f3a, #11141b); }
.case-visual--magsafe { background: linear-gradient(135deg, #3a3f4b, #1a1d26); }
.case-visual::after { /* camera bump */
  content: ""; position: absolute; top: 5px; left: 5px; width: 16px; height: 16px;
  border-radius: 5px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
}
.case-visual--clear::after { /* visible camera cutout on the transparent case */
  background: rgba(39,170,225,.12); border: 1.5px solid rgba(39,170,225,.7);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}
.case-visual--magsafe::before { /* MagSafe ring */
  content: ""; position: absolute; left: 50%; top: 58%; transform: translate(-50%,-50%);
  width: 24px; height: 24px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.55);
}
/* hide non-informative photo captions (gallery + cases) */
.tile__cap, .case-tile__cap { display: none; }
.case-card ul { list-style: none; padding: 0; margin: 0; text-align: left; }
.case-card li { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; padding: 5px 0; color: var(--sc-ink); }
/* Blue check mark (colour-vision safe — avoids the usual checkmark hue) */
.case-card li::before {
  content: ""; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px;
  border-radius: 50%; background: var(--sc-blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Single shared CTA under the case-type cards */
.cases-cta { text-align: center; margin-top: 24px; }

/* ---- «Чи підійде для твого телефона?» — prominent models CTA card ----
   White card with a navy 2px border + shadow so it stands out from the
   page instead of blending in. Native <details>; summary = phone icon +
   title/subtitle + button-like "Перевірити" chevron pill. */
.models-box {
  max-width: 880px; margin: 28px auto 0;
  background: #fff; border: 2px solid var(--sc-navy);
  border-radius: var(--sc-radius); box-shadow: var(--sc-shadow);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .models-box:not([open]):hover { transform: translateY(-3px); box-shadow: var(--sc-shadow-lg); }
}
.models-summary {
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  gap: 10px 14px; padding: 16px 18px; cursor: pointer; list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.models-summary::-webkit-details-marker { display: none; }
.models-summary__ico {
  width: 46px; height: 46px; border-radius: 13px; align-self: start;
  background: rgba(39, 170, 225, .14); color: var(--sc-blue);
  display: grid; place-items: center;
}
.models-summary__txt { display: grid; gap: 3px; min-width: 0; }
.models-summary__title { font-weight: 800; font-size: 17px; line-height: 1.25; color: var(--sc-ink); }
.models-summary__sub { font-size: 13.5px; line-height: 1.45; color: var(--sc-muted); font-weight: 500; }
.models-summary__cta {
  grid-column: 2; justify-self: start;
  display: inline-flex; align-items: center; gap: 7px;
  border: 2px solid var(--sc-navy); color: var(--sc-navy); border-radius: 999px;
  padding: 7px 16px; font-weight: 800; font-size: 14px; line-height: 1;
  transition: background .15s ease, color .15s ease;
}
.models-summary__cta svg { transition: transform .2s ease; }
.models-box[open] .models-summary__cta svg { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .models-summary:hover .models-summary__cta { background: var(--sc-navy); color: #fff; }
}
.models-panel {
  border-top: 1px solid var(--sc-line); background: #fff;
  padding: 20px 18px 22px; display: grid; gap: 20px;
}
.models-panel .loc-note { margin: 0; }
.brand-block h4 { font-size: 15px; color: var(--sc-navy); margin: 0 0 10px; text-transform: uppercase; letter-spacing: .04em; }
.model-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.model-tags span {
  font-size: 14px; background: var(--sc-surface); border: 1px solid var(--sc-line);
  border-radius: 8px; padding: 4px 9px; color: var(--sc-ink);
}

/* ----------------------------- Gallery ---------------------------- */
/* Collage layout: one large hero tile + smaller supporting tiles.
   Mobile-first = 2 even columns (the large tile spans both). The asymmetric
   "big + small around it" mosaic kicks in at >=640px (see responsive block).
   overflow:hidden on each tile clips the hover zoom inside the rounded frame. */
.gallery-grid {
  display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: dense;
}
/* 3-automat gallery (К77 / К114 / К20): stack on mobile, 3-in-a-row on desktop */
.gallery-grid--three { grid-template-columns: 1fr; }
.tile__name {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  background: rgba(27,47,140,.92); color: #fff; font-weight: 700; font-size: 14px;
  padding: 6px 14px; border-radius: 9px; letter-spacing: .02em;
}
/* overlay badge on a case photo (e.g. "2 camera protectors included") */
.case-badge {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
  background: rgba(27,47,140,.92); color: #fff; font-weight: 700; font-size: 13px;
  text-align: center; padding: 8px 12px; border-radius: 9px; line-height: 1.25;
}
.tile {
  position: relative; border-radius: var(--sc-radius); overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--sc-cloud); border: 1px solid var(--sc-line);
  box-shadow: var(--sc-shadow);
  transition: box-shadow .35s ease, transform .35s ease;
}
.tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s ease;
  will-change: transform;
}
/* Hover-zoom: image scales up, frame clips it, shadow deepens (pointer devices
   with hover only — touch screens are excluded so taps don't get stuck zoomed). */
@media (hover: hover) and (pointer: fine) {
  .tile:hover { box-shadow: var(--sc-shadow-lg); }
  .tile:hover img { transform: scale(1.06); }
}
/* The lead/hero tile of the collage spans 2 columns on mobile so it stays large. */
.tile--lead { grid-column: span 2; aspect-ratio: 4 / 3; }
.tile--tall { aspect-ratio: 3 / 4; }
.tile--video { display: grid; place-items: center; text-align: center; color: var(--sc-navy); }
.tile--video .play {
  width: 54px; height: 54px; border-radius: 50%; background: var(--sc-red); color: #fff;
  display: grid; place-items: center; margin: 0 auto 10px; box-shadow: var(--sc-shadow);
}
.tile--video small { display: block; color: var(--sc-muted); font-size: 12px; margin-top: 4px; }
.tile__cap {
  position: absolute; left: 10px; bottom: 10px; background: rgba(27,47,140,.9); color: #fff;
  font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 8px;
  z-index: 2;
}

/* ------------------- Print-process videos (real) ------------------ */
/* Source clips are portrait 9:16. Cap each card's width and lock the
   aspect-ratio so layout doesn't jump while metadata loads. */
.video-grid {
  display: grid; gap: 16px; margin-top: 16px;
  grid-template-columns: 1fr; justify-items: center;
}
.video-card { margin: 0; width: 100%; max-width: 300px; }
.video-card__media { position: relative; cursor: pointer; }
.video-card video {
  width: 100%; aspect-ratio: 9 / 16; display: block; background: #11141b;
  border-radius: var(--sc-radius); box-shadow: var(--sc-shadow);
  border: 1px solid var(--sc-line); object-fit: cover;
}
/* Red play badge over the poster; fades out while the video is playing. */
.video-card__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--sc-red); color: #fff;
  display: grid; place-items: center; padding-left: 3px;
  box-shadow: var(--sc-shadow-lg); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.video-card.playing .video-card__play { opacity: 0; transform: translate(-50%, -50%) scale(.7); }
.video-card figcaption {
  margin-top: 10px; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--sc-navy);
}

/* ------- Real finished-case photos — mixed lifestyle + product grid -------
   A lively mosaic of real printed cases. Mobile = 2 columns; wide tiles
   (horizontal family shot, the trio-on-tree) span both columns. Vertical
   in-hand shots take a single column. Same hover-zoom mechanic as the
   gallery tiles: overflow clips a scale() on the image. */
.cases-mix {
  display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: dense;
}
.case-tile {
  position: relative; margin: 0; border-radius: var(--sc-radius); overflow: hidden;
  background: var(--sc-cloud); border: 1px solid var(--sc-line);
  box-shadow: var(--sc-shadow);
  aspect-ratio: 4 / 5;
  transition: box-shadow .35s ease;
}
.case-tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s ease;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .case-tile:hover { box-shadow: var(--sc-shadow-lg); }
  .case-tile:hover img { transform: scale(1.06); }
}
/* Wide tiles span both columns on mobile (horizontal photos). */
.case-tile--wide { grid-column: span 2; aspect-ratio: 16 / 10; }
/* Trio-on-tree is a tall-ish vertical source; give it a wide slot but a
   taller ratio so all three cases stay readable, not cropped to a sliver. */
.case-tile--trio { grid-column: span 2; aspect-ratio: 16 / 11; }
.case-tile__cap {
  position: absolute; left: 10px; bottom: 10px; right: 10px;
  background: rgba(27,47,140,.88); color: #fff;
  font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 8px;
  z-index: 2;
}
.cases-real__note {
  margin: 16px 0 0; font-size: 13px; color: var(--sc-muted); font-style: italic;
  text-align: center;
}

/* ---------------------------- Locations --------------------------- */
.loc-wrap { display: grid; gap: 22px; }
/* Real ТРЦ photo as the lead visual (replaces the old map placeholder).
   Same overflow+zoom treatment for a subtle hover lift. A navy gradient at
   the bottom carries the white caption pill (lightness contrast, not hue). */
.loc-photo {
  position: relative; margin: 0; border-radius: var(--sc-radius); overflow: hidden;
  border: 1px solid var(--sc-line); box-shadow: var(--sc-shadow);
  aspect-ratio: 16 / 9; background: var(--sc-cloud);
  transition: box-shadow .35s ease;
}
.loc-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s ease; will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .loc-photo:hover { box-shadow: var(--sc-shadow-lg); }
  .loc-photo:hover img { transform: scale(1.04); }
}
.loc-photo__cap {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; max-width: calc(100% - 28px);
  background: rgba(27,47,140,.92); color: #fff; font-size: 13px; font-weight: 700;
  padding: 8px 13px; border-radius: 10px; box-shadow: var(--sc-shadow);
}
.loc-photo__cap .pin {
  flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50% 50% 50% 0;
  background: var(--sc-red); transform: rotate(-45deg);
}
.loc-list { display: grid; gap: 12px; }
/* All location pins stay blue: red is reserved for actions (buttons/CTAs),
   not status markers — keeps the single "hot" colour meaningful. */
.loc-item {
  display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius-sm); padding: 16px 18px;
}
.loc-item .ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: var(--sc-blue); color: #fff; display: grid; place-items: center; }
.loc-item h4 { font-size: 16px; margin-bottom: 2px; }
.loc-item p { margin: 0; color: var(--sc-muted); font-size: 14px; }
.loc-note { font-size: 13px; color: var(--sc-muted); font-style: italic; }
/* Group sub-headings inside the location list (malls / shops) */
.loc-group {
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sc-navy); margin: 0 0 10px 2px;
}
/* "Open in Google Maps" link under each address */
.loc-map {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  min-height: 44px; padding: 9px 16px; font-size: 14px; font-weight: 700;
  color: var(--sc-navy); text-decoration: none;
  background: var(--sc-surface); border: 1.5px solid var(--sc-line); border-radius: 999px;
}
.loc-map:hover { border-color: var(--sc-blue); }

/* No-automat-in-your-city fallback — calm surface card with 3 alternatives. */
.loc-fallback {
  margin-top: 26px; background: var(--sc-surface); border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius); padding: 22px 24px; text-align: center;
}
.loc-fallback h3 { font-size: 18px; color: var(--sc-navy); margin-bottom: 14px; }
.loc-fallback__links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.loc-fallback__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px;
  background: #fff; border: 1.5px solid var(--sc-line); border-radius: 999px;
  font-weight: 700; font-size: 14px; color: var(--sc-navy); text-decoration: none;
}
.loc-fallback__links a:hover { border-color: var(--sc-blue); }

/* ===================================================================
   B2B BLOCK — one dense section: navy hook ribbon («ЗАРОБЛЯЙ НА
   ЕМОЦІЯХ»), then the K20 photo + ROI calculator pulled up over the
   navy, then a compact "printer & cartridges" line with tech-fact
   chips and the CTA to the lead form below.
   =================================================================== */
.b2b-hook {
  background: var(--sc-navy); color: #fff; text-align: center;
  padding: 38px 0 84px; position: relative; overflow: hidden;
}
.b2b-hook::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 300px at 80% 0%, rgba(39,170,225,.4), transparent 60%);
}
.b2b-hook .container { position: relative; }
.b2b-hook h2 {
  font-family: 'Inter', sans-serif; font-weight: 900; color: #fff;
  font-size: clamp(34px, 8vw, 52px); letter-spacing: -0.02em;
}
.b2b-hook__sub {
  color: rgba(255,255,255,.88); font-size: clamp(15px, 4vw, 17px);
  max-width: 780px; margin: 12px auto 0;
}

/* Core: photo + calculator card overlap the navy ribbon (pull-up) */
.b2b-core { padding-bottom: 40px; }
.b2b-core__grid { display: grid; gap: 14px; margin-top: -56px; position: relative; }

/* K20 photo: cropped 16/10 banner on mobile; on desktop it stretches
   to match the calculator column height (img is absolutely positioned
   so the figure adds no intrinsic height of its own). */
.b2b-photo {
  margin: 0; position: relative; overflow: hidden;
  border-radius: var(--sc-radius); box-shadow: var(--sc-shadow-lg);
  background: var(--sc-cloud); aspect-ratio: 16 / 10;
}
.b2b-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b2b-photo figcaption {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  background: rgba(27,47,140,.92); color: #fff; font-weight: 700; font-size: 13px;
  padding: 6px 12px; border-radius: 9px;
}

/* Compact calculator heading inside the white inputs column */
.calc__head { margin-bottom: 16px; }
.calc__head h3 { font-size: 20px; color: var(--sc-navy); }
.calc__head p { margin: 3px 0 0; font-size: 13px; color: var(--sc-muted); }

/* Narrow-column safety: let labels / result rows wrap, not overflow */
.b2b-core .field label,
.b2b-core .result-row { flex-wrap: wrap; }

/* Bottom strip: one-line model description + tech chips + CTA */
.b2b-foot { margin-top: 28px; text-align: center; }
.b2b-foot__txt { max-width: 680px; margin: 0 auto; font-size: 15.5px; color: var(--sc-ink); }
.b2b-chips {
  list-style: none; padding: 0; margin: 16px auto 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-width: 560px;
}
.b2b-chips li {
  display: flex; align-items: center; gap: 8px; text-align: left;
  background: var(--sc-surface); border: 1px solid var(--sc-line);
  border-radius: 12px; padding: 9px 12px;
  font-size: 12.5px; font-weight: 700; color: var(--sc-ink); line-height: 1.3;
}
.b2b-chips li::before {
  content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%;
  background: var(--sc-blue);
}
.b2b-foot__cta { margin-top: 22px; }

/* ------------------------ ROI Calculator -------------------------- */
/* Solid white card + 2px sky-blue border + deep shadow: separates the
   card both from the navy hook ribbon it overlaps and from the white
   page below (same border+shadow language as .models-box). */
.calc {
  background: #FFFFFF; border: 2px solid var(--sc-blue); border-radius: var(--sc-radius);
  box-shadow: var(--sc-shadow-lg); overflow: hidden;
}
.calc__grid { display: grid; gap: 0; }
.calc__inputs { padding: 26px 22px; }
.calc__results { padding: 26px 22px; background: var(--sc-navy); color: #fff; }
.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.field label .note { font-weight: 600; font-size: 12px; color: var(--sc-muted); }
.field__row { display: flex; align-items: center; gap: 12px; }
.field input[type="range"] { flex: 1; accent-color: var(--sc-red); height: 4px; }
.field .val-pill {
  min-width: 92px; text-align: center; font-weight: 800; background: var(--sc-cloud);
  border: 1px solid var(--sc-line); border-radius: 10px; padding: 9px 8px; font-size: 15px; color: var(--sc-navy);
}
.field input[type="number"] {
  width: 100%; font-size: 16px; font-weight: 700; padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--sc-line); color: var(--sc-navy); background: #fff;
}
.field input[type="number"]:focus { border-color: var(--sc-blue); outline: none; box-shadow: 0 0 0 3px rgba(39,170,225,.2); }
.field .hint { font-size: 12px; color: var(--sc-muted); margin-top: 6px; }

.result-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.result-row:last-of-type { border-bottom: 0; }
.result-row .lbl { font-size: 14px; color: rgba(255,255,255,.85); }
.result-row .amt { font-size: 22px; font-weight: 900; }
/* Hero revenue figure: white + larger/bolder so it dominates by lightness &
   size, not hue. Payback stays sky blue (distinct row, also labelled). */
.result-row--hero .amt { color: #fff; font-size: 30px; }
.result-row--payback .amt { color: var(--sc-blue); }
.calc__disclaimer {
  margin-top: 18px; font-size: 12.5px; color: rgba(255,255,255,.75); line-height: 1.5;
  background: rgba(255,255,255,.08); border-radius: 10px; padding: 12px 14px;
}

/* ------------- Partner section: perks list + lead form -------------
   Merged #partner-form section. Mobile: the form comes FIRST (DOM
   order), the perks list sits below it. Desktop (>=860px, see the
   responsive block): perks move to the LEFT column via order:-1. */
.partner-grid { display: grid; gap: 30px; max-width: 760px; margin: 0 auto; }
.partner-grid__perks h3 { font-size: 20px; color: var(--sc-navy); margin: 0 0 14px; }
.perks-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.perks-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 15px; line-height: 1.5; color: var(--sc-ink);
}
.perks-list li b { color: var(--sc-navy); }
/* Blue check mark — same colour-vision-safe mark as the hook list */
.perks-list li::before {
  content: ""; flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px;
  background: var(--sc-blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/18px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/18px no-repeat;
}

/* ------------------------------ Form ------------------------------ */
.lead-form { background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius); padding: 26px 22px; box-shadow: var(--sc-shadow); }
.lead-form .row { display: grid; gap: 16px; }
.form-field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; }
.form-field label .req { color: var(--sc-navy); }
.form-field input, .form-field textarea {
  width: 100%; font-size: 15px; padding: 12px 14px; border: 1px solid var(--sc-line);
  border-radius: 10px; font-family: inherit; color: var(--sc-ink); background: #fff;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--sc-blue); outline: none; box-shadow: 0 0 0 3px rgba(39,170,225,.2); }
.form-field input:invalid:not(:placeholder-shown) { border-color: var(--sc-red); }
.form-field textarea { resize: vertical; min-height: 92px; }
.form-success {
  display: none; align-items: center; gap: 12px; background: rgba(39,170,225,.12);
  border: 1px solid var(--sc-blue); color: var(--sc-navy); border-radius: 12px; padding: 16px;
  font-weight: 700;
}
.form-success.show { display: flex; }
.form-success .ico { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--sc-blue); color: #fff; display: grid; place-items: center; }
.contact-mini { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; font-size: 14px; }
.contact-mini a { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--sc-navy); text-decoration: none; }
.contact-mini a:hover { color: var(--sc-red); }

/* ------------------------------ FAQ ------------------------------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius-sm); overflow: hidden; }
.faq summary {
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
  padding: 18px 20px; cursor: pointer; font-weight: 700; font-size: 16px; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: 0 0 auto; font-size: 22px; color: var(--sc-navy); transition: transform .2s; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq .ans { padding: 0 20px 18px; color: var(--sc-muted); font-size: 15px; }

/* ----------------------------- Footer ----------------------------- */
.site-footer { background: var(--sc-navy); color: #fff; padding: 48px 0 26px; }
/* Final pre-footer CTA — full-width navy band, centered. */
.final-cta { background: var(--sc-navy); color: #fff; text-align: center; padding: 54px 0; }
.final-cta__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.final-cta h2 { font-size: 26px; max-width: 20ch; line-height: 1.15; }
.final-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.footer-grid { display: grid; gap: 28px; }
.footer-grid p { color: rgba(255,255,255,.8); font-size: 14.5px; }
.footer-col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.8); margin-bottom: 12px; }
.footer-col a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.92); text-decoration: none; font-size: 14.5px; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-col .links { display: grid; }
/* Cross-link to the main store — emphasized with the accent/link blue + weight */
.footer-store-link { font-weight: 800; color: var(--sc-blue) !important; }
.footer-store-link:hover { color: #fff !important; }
.footer-family {
  display: inline-flex; align-items: center; gap: 11px; margin-top: 14px;
  padding: 8px 15px 8px 11px; border-radius: 14px; max-width: 330px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.9); text-decoration: none; font-size: 13px; font-weight: 700;
  transition: background .15s, border-color .15s;
}
.footer-family:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.42); }
.footer-family__logo { height: 40px; width: auto; flex: 0 0 auto; display: block; }
.footer-family span { line-height: 1.3; }
.footer-family__ext { font-size: 15px; color: rgba(255,255,255,.65); align-self: flex-start; margin-left: -3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); margin-top: 30px; padding-top: 20px; font-size: 13px; color: rgba(255,255,255,.7); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* =========================== Responsive ============================ */
@media (min-width: 640px) {
  .hero__media img { max-width: 460px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .calc__grid { grid-template-columns: 1.05fr 1fr; }

  /* Automat collage: 3-col mosaic. Large lead tile takes 2x2; the three
     supporting tiles fill the remaining column + bottom row. */
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .tile--lead { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .tile--tall { aspect-ratio: 3 / 4; }

  /* Cases mix-grid: stays 2 cols but wide/trio tiles span both columns,
     vertical in-hand shots take one — produces the lively masonry feel. */
  .cases-mix { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px) {
  .section { padding: 78px 0; }
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .logo__img { height: 34px; } /* full size on desktop where there's room */
  .header-cta .btn { display: inline-flex; }
  .header-cta .header-cta__mobile { display: none; } /* desktop uses the text CTAs */

  .hero__grid { grid-template-columns: 1.05fr 0.95fr; padding-top: 56px; padding-bottom: 70px; }
  .hero__media img { max-width: 100%; }

  /* Hook block: steps go to one row with → arrows, benefits to one row.
     Desktop composition: copy sits LEFT over a left→right gradient so the
     girls on the right side of the photo stay visible; the automat on the
     far left dims under the text. */
  .hook { padding: 86px 0; text-align: left; }
  .hook--photo {
    background-image:
      linear-gradient(90deg, rgba(16,22,46,.92) 0%, rgba(16,22,46,.78) 34%, rgba(16,22,46,.34) 66%, rgba(16,22,46,.12) 100%),
      url("assets/hook_bg.jpg");
    background-position: center;
  }
  .hook__inner { justify-items: start; }
  .hook__sub { max-width: 520px; }
  .hook__steps { flex-direction: row; width: auto; gap: 38px; }
  .hook__steps li + li::before { display: block; }
  .hook__why { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 10px 28px; max-width: 760px; }

  /* Case-type cards: 3 open columns (forced open by app.js). The summary
     turns into the classic centered column; chevron hidden, toggling off. */
  .cases-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .case-card__summary {
    flex-direction: column; align-items: center; gap: 2px;
    padding: 22px 18px 0; text-align: center;
    pointer-events: none; cursor: default;
  }
  .case-card__head { justify-items: center; }
  .case-card__name { justify-content: center; font-size: 20px; }
  .case-card__type { font-size: 13px; }
  .case-card__price { margin: 12px 0 0; font-size: 30px; }
  .case-card__price span { font-size: 14px; }
  .case-card__chev { display: none; }
  .case-card__body { padding: 0 20px 20px; }
  .case-card ul { margin-top: 8px; }
  .case-card__tag {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    font-size: 12px; padding: 6px 14px;
  }
  .case-visual { width: 80px; height: 140px; border-radius: 18px; margin: 2px auto 12px; box-shadow: var(--sc-shadow); }
  .case-visual::after { top: 10px; left: 10px; width: 30px; height: 30px; border-radius: 9px; }
  .case-visual--clear::after { border-width: 2px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
  .case-visual--magsafe::before { width: 38px; height: 38px; border-width: 3px; top: 56%; }
  .cases-cta { margin-top: 30px; }

  /* Models CTA card: icon | text | button in one row; panel in 3 columns */
  .models-summary { grid-template-columns: auto 1fr auto; padding: 18px 22px; }
  .models-summary__ico { align-self: center; }
  .models-summary__cta { grid-column: auto; justify-self: end; }
  .models-summary__title { font-size: 19px; }
  .models-summary__sub { font-size: 14.5px; }
  .models-panel { grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 22px; }
  .models-panel .loc-note { grid-column: 1 / -1; }

  /* Cases mix-grid goes to 3 columns on desktop. Wide/horizontal tiles span
     2 of the 3; trio + family photo become hero-width feature rows. */
  .cases-mix { grid-template-columns: repeat(3, 1fr); }
  .case-tile--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
  .case-tile--trio { grid-column: span 2; aspect-ratio: 16 / 10; }

  .loc-wrap { grid-template-columns: 1.2fr 1fr; align-items: start; }
  /* Width comes from the grid track; height:100% here would make aspect-ratio
     derive the width from the row height and overflow the column */
  .loc-photo { aspect-ratio: 4 / 3; }
  /* B2B block: K20 photo (left) | calculator (right), deeper navy overlap */
  .b2b-hook { padding: 48px 0 118px; }
  .b2b-core { padding-bottom: 48px; }
  .b2b-core__grid { grid-template-columns: 0.72fr 1.28fr; gap: 24px; margin-top: -76px; align-items: stretch; }
  .b2b-photo { aspect-ratio: auto; }
  .b2b-foot { margin-top: 36px; }
  .b2b-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: none; }
  .b2b-chips li { border-radius: 999px; padding: 9px 16px; font-size: 13.5px; }
  /* Partner section: perks LEFT, form RIGHT (form stays first in DOM
     so it leads on mobile; order:-1 swaps the columns here). */
  .partner-grid { max-width: none; grid-template-columns: 0.85fr 1.15fr; gap: 46px; align-items: start; }
  .partner-grid__perks { order: -1; padding-top: 6px; }
  .partner-grid__perks h3 { font-size: 22px; margin-bottom: 18px; }
  .perks-list { gap: 16px; }
  .perks-list li { font-size: 15.5px; }
  .lead-form .row { grid-template-columns: 1fr 1fr; }
  .lead-form .row .full { grid-column: 1 / -1; }
  .final-cta { padding: 70px 0; }
  .final-cta h2 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1.1fr; }
}
