/* Jelato Agency — дизайн-система сайту.
   Напрям «друкований річний звіт»: молочний папір, чорна фарба, вісь на початку 5-ї колонки (≈34%),
   суцільні поля кольору замість рамок. Розміри — п'ять кроків. Рух — у кінці файлу, лише під
   prefers-reduced-motion: no-preference. */

/* ---------- Шрифт: Inter з оптичним розміром (свій хостинг, кирилиця) ---------- */
@font-face { font-family: "Inter J"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-cyrillic-ext-opsz-normal.woff2") format("woff2-variations");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter J"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-cyrillic-opsz-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter J"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-latin-ext-opsz-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter J"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-latin-opsz-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Токени ---------- */
:root {
  --ground: #f1f0ec;
  --surface: #e5e3dc;
  --ink: #121211;
  --muted: #4a4843;
  --dark: #121211;
  --dark-surface: #1e1e1c;
  --dark-ink: #f1f0ec;
  --dark-muted: #a5a29b;
  --client: #185898;          /* поле кейсу ART AUTO — колір клієнта */
  --client-ink: #ffffff;
  --accent: var(--ink);
  --accent-ink: var(--ground);

  --font: "Inter J", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: var(--font);
  --font-text: var(--font);

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1rem, 0.96rem + 0.12vw, 1.0625rem);
  --step-lead: clamp(1.25rem, 0.95rem + 1vw, 1.875rem);
  --step-head: clamp(2.25rem, 1.1rem + 3.6vw, 4.5rem);
  --step-display: clamp(3.4rem, 0.6rem + 9.4vw, 9.75rem);

  --margin: clamp(20px, 2.6vw, 40px);
  --gutter: clamp(16px, 1.6vw, 24px);
  --space-section: clamp(104px, 11vw, 200px);
  --header-h: 72px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-exit: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  --t-press: 140ms; --t-hover: 180ms; --t-ui: 240ms; --t-reveal: 800ms; --t-open: 1200ms;
  --stagger-line: 90ms; --stagger-item: 70ms;
}

/* ---------- Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); color: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.is-smooth { scroll-behavior: auto; }
body { margin: 0; background: var(--ground); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; font-optical-sizing: auto; letter-spacing: -0.006em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: var(--ink); color: var(--ground); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 12px 18px; background: var(--ink); color: var(--ground); text-decoration: none; transform: translateY(-160%); transition: transform var(--t-ui) var(--ease-out); }
.skip:focus { transform: none; }

/* Шкала: п'ять розмірів */
.display { font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.052em; font-weight: 640; }
.head { font-size: var(--step-head); line-height: 0.98; letter-spacing: -0.042em; font-weight: 620; }
.lead { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.02em; font-weight: 450; }
.body { font-size: var(--step-body); }
.small { font-size: var(--step-small); line-height: 1.45; letter-spacing: 0; }
.muted { color: var(--muted); }
.statement { font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.022em; font-weight: 460; max-width: 46ch; }

/* ---------- Сітка й вісь ---------- */
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.axis { grid-column: 5 / -1; }
.left { grid-column: 1 / 5; }
.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: clamp(80px, 8vw, 128px); }
.chapter-dark { background: var(--dark); color: var(--dark-ink); --muted: var(--dark-muted); --surface: var(--dark-surface); --accent: var(--dark-ink); --accent-ink: var(--dark); }
.chapter-client { background: var(--client); color: var(--client-ink); --muted: #cfe0f2; --surface: #1d63a8; --accent: #ffffff; --accent-ink: var(--client); }
.chapter-surface { background: var(--surface); --surface: #d9d6ce; }
.section-head { margin-bottom: clamp(48px, 6vw, 96px); }
.section-head .head + p { margin-top: 24px; }
@media (max-width: 899px) {
  .axis, .left { grid-column: 1 / -1; }
}

/* ---------- Кнопки й посилання ---------- */
.button { --h: 56px; position: relative; display: inline-flex; align-items: center; gap: 14px; height: var(--h); padding: 0 26px; background: var(--accent); color: var(--accent-ink); font-size: var(--step-body); font-weight: 520; letter-spacing: -0.01em; text-decoration: none; border: 0; border-radius: 0; cursor: pointer; overflow: hidden; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; -webkit-tap-highlight-color: transparent; }
.button:active { transform: scale(0.97); }
.button__label { position: relative; display: block; overflow: hidden; height: 1.3em; line-height: 1.3; }
.button__label > span { display: block; transition: transform 380ms var(--ease-out); }
.button__label > span + span { position: absolute; inset: 100% 0 auto 0; }
.button__arrow { width: 18px; height: 18px; flex: none; transition: transform 380ms var(--ease-out); }
.button--small { --h: 44px; padding: 0 18px; font-size: var(--step-small); gap: 10px; }
.button--ghost { background: var(--surface); color: var(--ink); }
.button--wide { width: 100%; justify-content: space-between; }
@media (hover: hover) and (pointer: fine) {
  .button:hover .button__label > span { transform: translateY(-100%); }
  .button:hover .button__arrow { transform: translateX(4px); }
}
.link { text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.22em; text-decoration-color: color-mix(in oklab, currentColor 35%, transparent); transition: text-decoration-color var(--t-hover) ease; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 520; text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform 320ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
  .link-arrow:hover svg { transform: translateX(5px); }
  .link-arrow:hover .link-arrow__text { text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.22em; }
}

/* ---------- Шапка ---------- */
.site-header { --h-ink: var(--ink); --h-bg: var(--ground); position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); color: var(--h-ink); transition: color 300ms ease, background-color 300ms ease, transform 420ms var(--ease-out); }
.site-header__in { height: 100%; align-items: center; }
.site-header.on-dark { --h-ink: var(--dark-ink); --h-bg: var(--dark); }
.site-header.on-client { --h-ink: #fff; --h-bg: var(--client); }
.site-header.is-solid { background: var(--h-bg); }
.site-header.is-hidden { transform: translateY(-100%); }
.brand { grid-column: 1 / 4; display: inline-flex; align-items: center; width: max-content; color: inherit; text-decoration: none; }
.brand svg { width: 104px; height: auto; fill: currentColor; }
.nav { grid-column: 5 / 10; display: flex; gap: clamp(18px, 2.2vw, 36px); font-size: var(--step-small); font-weight: 500; }
.nav a { position: relative; text-decoration: none; padding-block: 8px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 360ms var(--ease-out); }
.nav a[aria-current="page"]::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav a:hover::after { transform: scaleX(1); transform-origin: left; } }
.header-end { grid-column: 10 / -1; justify-self: end; display: flex; align-items: center; gap: 18px; }
.lang { display: inline-flex; gap: 2px; font-size: var(--step-small); font-weight: 500; }
.lang a, .lang span { padding: 8px 6px; text-decoration: none; }
.lang span[aria-current] { opacity: 1; }
.lang a { opacity: 0.55; transition: opacity var(--t-hover) ease; }
.lang a:hover { opacity: 1; }
.site-header .button { background: var(--h-ink); color: var(--h-bg); transition: background-color 300ms ease, color 300ms ease, transform var(--t-press) var(--ease-out); }
.menu-toggle { display: none; align-items: center; gap: 10px; height: 44px; padding: 0 2px; background: none; border: 0; font-weight: 520; cursor: pointer; }
.menu-toggle__bars { position: relative; width: 22px; height: 10px; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform 300ms var(--ease-out); }
.menu-toggle__bars::before { top: 0; } .menu-toggle__bars::after { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 899px) {
  .nav, .header-end .lang, .header-end .button { display: none; }
  .brand { grid-column: 1 / 7; }
  .header-end { grid-column: 7 / -1; }
  .menu-toggle { display: inline-flex; }
}

/* Мобільне меню */
.menu { position: fixed; inset: 0; z-index: 45; background: var(--dark); color: var(--dark-ink); padding: calc(var(--header-h) + 24px) var(--margin) 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu__links { display: grid; gap: 4px; }
.menu__links a { font-size: var(--step-head); font-weight: 620; letter-spacing: -0.045em; line-height: 1.04; text-decoration: none; }
.menu__foot { display: grid; gap: 18px; font-size: var(--step-body); }
.menu__foot .lang a { opacity: 0.6; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { color: var(--dark-ink); background: transparent; }

/* ---------- Масковані рядки ---------- */
.lines .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.lines [data-line] { display: block; }

/* ---------- Головний екран (Narrow talk, wide headline) ---------- */
.hero { position: relative; padding-top: var(--header-h); }
.hero__head { min-height: calc(68svh - var(--header-h)); align-content: start; padding-top: clamp(24px, 5vh, 64px); }
.hero__title { grid-column: 5 / -1; grid-row: 1; }
.hero__talk { grid-column: 1 / 5; grid-row: 1; align-self: start; padding-top: clamp(96px, 16vh, 180px); padding-right: 12px; }
.hero__talk .lead { max-width: 26ch; line-height: 1.28; }
.hero__talk .button { margin-top: 32px; }
.hero__media { position: relative; }
.hero__stage { position: relative; }
.hero__frame { position: relative; margin-left: calc((100% - 2 * var(--margin) + var(--gutter)) / 3 + var(--margin)); margin-right: var(--margin); transform-origin: 100% 0; background: #dfe8f3; overflow: clip; }
.hero__frame img { width: 100%; }
.hero__stat { position: absolute; z-index: 2; top: 0; left: calc((100% - 2 * var(--margin) + var(--gutter)) / 3 + var(--margin)); width: 280px; padding: 22px 22px 24px; background: var(--ink); color: var(--ground); translate: 0 -50%; }
.hero__stat-figure { display: block; font-size: var(--step-head); line-height: 1; letter-spacing: -0.05em; font-weight: 620; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.hero__stat p { font-size: var(--step-small); line-height: 1.4; }
.hero__caption { margin: 16px var(--margin) 0 calc((100% - 2 * var(--margin) + var(--gutter)) / 3 + var(--margin)); }
@media (max-width: 899px) {
  .hero__head { min-height: 0; padding-top: 28px; }
  .hero__title, .hero__talk { grid-column: 1 / -1; grid-row: auto; }
  .hero__title.display { font-size: clamp(2.4rem, 12vw, 6rem); line-height: 0.9; }
  .hero__talk { padding-top: 24px; }
  .hero__talk .lead { max-width: 30ch; }
  .hero__talk .button { width: 100%; justify-content: space-between; }
  .hero__media { margin-top: 48px; }
  .hero__frame { margin: 0; aspect-ratio: 4 / 3; }
  .hero__frame img { width: 190%; max-width: none; height: auto; margin-left: -14%; }
  .hero__stat { top: auto; bottom: 0; left: var(--margin); width: 66%; padding: 16px; translate: 0 50%; }
  .hero__caption { margin-top: 72px; }

  .hero__caption { margin-inline: var(--margin); }
}

/* Внутрішній перший екран */
.page-hero { padding-top: calc(var(--header-h) + clamp(40px, 8vh, 96px)); padding-bottom: clamp(56px, 7vw, 112px); }
.page-hero__title { grid-column: 5 / -1; }
.page-hero__title.display { font-size: clamp(2.8rem, 0.6rem + 6.6vw, 7rem); }
.page-hero__title.display.is-small { font-size: var(--step-head); }

.page-hero__talk { grid-column: 1 / 5; align-self: end; padding-right: 12px; }
.page-hero__talk .lead { max-width: 26ch; line-height: 1.28; }
.page-hero__talk .button, .page-hero__talk .link-arrow { margin-top: 28px; }
.page-hero__below { grid-column: 5 / -1; margin-top: clamp(32px, 4vw, 56px); }
.page-hero__below .lead { max-width: 40ch; }
@media (max-width: 899px) {
  .page-hero__title, .page-hero__talk, .page-hero__below { grid-column: 1 / -1; }
  .page-hero__title.display { font-size: clamp(2.4rem, 11.4vw, 5.5rem); }
  .page-hero__title.display.is-small { font-size: clamp(2rem, 9vw, 3rem); }
  .page-hero__talk { order: 2; margin-top: 24px; }
}
.crumbs { grid-column: 1 / -1; margin-bottom: clamp(28px, 4vw, 48px); font-size: var(--step-small); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { margin-inline: 8px; opacity: 0.5; }

/* ---------- Медіа ---------- */
.media { position: relative; overflow: clip; background: var(--surface); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--top img { object-position: left top; }
.media--contain { background: #e3ebf4; }
.ratio-16x10 { aspect-ratio: 16 / 10; } .ratio-16x9 { aspect-ratio: 16 / 9; } .ratio-4x3 { aspect-ratio: 4 / 3; } .ratio-4x5 { aspect-ratio: 4 / 5; } .ratio-3x2 { aspect-ratio: 3 / 2; }
.caption { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }
.phone { width: 100%; max-width: 300px; aspect-ratio: 600 / 1298; border-radius: 34px; overflow: clip; background: #000; padding: 9px; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 26px; }

/* ---------- Вступ: абзац над чотирма колонками ---------- */
.intro { padding-block: clamp(80px, 8vw, 128px); }
.intro__lead { grid-column: 1 / -1; font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.024em; font-weight: 460; max-width: 54ch; }
.intro__cols { grid-column: 1 / -1; margin-top: 72px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px var(--gutter); }
.intro__cols p { font-size: var(--step-body); line-height: 1.5; color: var(--muted); }
.intro__cols b { color: var(--ink); font-weight: 600; }
@media (max-width: 899px) { .intro__cols { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 560px) { .intro__cols { grid-template-columns: 1fr; row-gap: 28px; } }

/* ---------- Рядок, що біжить ---------- */
.marquee { overflow: clip; padding-block: clamp(28px, 3vw, 48px); background: var(--ink); color: var(--ground); }
.marquee__track { display: flex; width: max-content; }
.marquee__group { display: flex; align-items: center; flex: none; gap: 0.5em; padding-right: 0.5em; font-size: var(--step-display); font-weight: 620; letter-spacing: -0.05em; line-height: 1; white-space: nowrap; }
.marquee__dot { width: 0.18em; height: 0.18em; border-radius: 50%; background: currentColor; flex: none; }
.marquee__pause { position: absolute; right: var(--margin); margin-top: -2px; }

/* ---------- Покажчик із прев'ю ---------- */
.index { position: relative; }
.index__head { grid-column: 1 / -1; }
.index__list { grid-column: 1 / -1; margin-top: clamp(40px, 5vw, 72px); }
.index__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: baseline; padding-block: clamp(14px, 1.6vw, 22px); text-decoration: none; color: inherit; transition: opacity 260ms ease; }
.index__list > li:nth-child(odd) .index__row { background: transparent; }
.index__name { grid-column: 1 / 8; font-size: var(--step-head); line-height: 1; letter-spacing: -0.045em; font-weight: 600; transition: transform 420ms var(--ease-out); }
.index__note { grid-column: 8 / 12; font-size: var(--step-body); color: var(--muted); max-width: 34ch; }
.index__go { grid-column: 12 / 13; justify-self: end; width: 28px; height: 28px; transition: transform 420ms var(--ease-out); }
.index__thumb { display: none; }
.index__frame { display: none; }
@media (hover: hover) and (pointer: fine) {
  .index__list:has(.index__row:hover, .index__row:focus-visible) .index__row:not(:hover, :focus-visible) { opacity: 0.4; }
  .index__row:hover .index__name { transform: translateX(14px); }
  .index__row:hover .index__go { transform: translateX(6px) rotate(-45deg); }
  .index__frame { display: block; position: absolute; top: 0; right: var(--margin); width: min(30vw, 440px); aspect-ratio: 4 / 3; z-index: 2; pointer-events: none; overflow: clip; background: var(--surface); clip-path: inset(100% 0 0 0); transition: clip-path 420ms var(--ease-out), transform 460ms var(--ease-out); }
  .index__frame.is-open { clip-path: inset(0); }
  .index__frame img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
  .index__note { grid-column: 8 / 12; }
}
@media (max-width: 899px) {
  .index__row { grid-template-columns: 1fr auto; row-gap: 10px; padding-block: 18px 28px; }
  .index__thumb { display: block; grid-column: 1 / -1; order: -1; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: left top; margin-bottom: 8px; background: var(--surface); }
  .index__name { grid-column: 1 / 2; }
  .index__go { grid-column: 2 / 3; }
  .index__note { grid-column: 1 / -1; }
}

/* ---------- Роботи: велике зображення й маленька група ---------- */
.works { overflow: clip; }
.work { align-items: end; }
.work + .work { margin-top: 140px; }
.work__visual { grid-column: 1 / 8; margin-left: calc(-1 * var(--margin)); height: 80svh; min-height: 460px; max-height: 860px; overflow: clip; position: relative; background: var(--surface); text-decoration: none; display: block; }
.work__visual img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, left top); transform-origin: var(--origin, left top); transition: transform 1200ms var(--ease-soft); }
.work--b .work__visual { height: 60svh; }
.work--c .work__visual { height: 90svh; max-height: 940px; }
.work__visual--field { display: grid; place-items: center; background: var(--surface); }
.work__visual--field .phone { max-width: min(320px, 70%); }
.work__visual--field img { transform: none; }
.work__cluster { grid-column: 9 / -1; }
.work__small { aspect-ratio: 16 / 10; }
.work__meta { margin-top: 28px; display: grid; gap: 14px; }
.work__title { font-size: var(--step-lead); line-height: 1.12; letter-spacing: -0.026em; font-weight: 600; }
.work__tags { font-size: var(--step-small); color: var(--muted); }
.work__desc { font-size: var(--step-body); line-height: 1.5; }
.textpage__body p, .chapter__text p, .work__meta p, .cap p, .system__intro, .rowscroll__item p, .stage p, .dl__item dd, .faq__body p { max-width: 62ch; }
@media (hover: hover) and (pointer: fine) { .work__visual:hover img { transform: scale(1.04); } }
@media (max-width: 899px) {
  .work + .work { margin-top: 88px; }
  .work__visual, .work--b .work__visual, .work--c .work__visual { grid-column: 1 / -1; margin-inline: calc(-1 * var(--margin)); height: auto; min-height: 0; max-height: none; aspect-ratio: 16 / 11; }
  .work__visual--field .phone { max-width: min(46%, 260px); }
  .work__cluster { grid-column: 1 / -1; display: flex; flex-direction: column; }
  .work__small { order: 3; width: 70%; align-self: flex-end; margin-top: 24px; }
  .work__meta { order: 2; }

}

/* ---------- Жива система: зафіксований результат і перемикачі ---------- */
.system { position: relative; }
.system__grid { align-items: start; }
.system__field { grid-column: 1 / 7; position: sticky; top: 0; height: 100svh; margin-left: calc(-1 * var(--margin)); background: var(--dark); color: var(--dark-ink); display: grid; place-items: center; padding: 32px; overflow: clip; }
.system__output { width: min(440px, 100%); }
.system__note { margin-top: 18px; text-align: left; font-size: var(--step-small); color: var(--dark-muted); }
.system__read { grid-column: 8 / -1; padding-top: 72px; padding-bottom: 20vh; max-width: 44ch; }
.system__read .head { margin-bottom: 28px; }
.system__intro { font-size: var(--step-body); }
.cap { padding-top: 22vh; }
.cap:first-of-type { padding-top: 14vh; }
.cap__title { font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.026em; font-weight: 600; }
.cap p { margin-top: 14px; }
.cap__control { margin-top: 22px; }
.system__end { padding-top: 22vh; }
@media (max-width: 899px) {
  .system { padding-top: var(--space-section); }
  .system__grid { display: flex; flex-direction: column; align-items: stretch; }
  .system__read { order: 1; padding: 0; max-width: none; display: contents; }
  .system__read > .head, .system__intro { order: 1; }
  .system__field { order: 2; position: relative; top: auto; height: auto; margin: 32px calc(-1 * var(--margin)) 0; padding: 40px var(--margin); place-items: center; }
  .cap { order: 3; padding-top: 40px; }
  .cap:first-of-type { padding-top: 40px; }
  .system__end { order: 4; padding-top: 48px; }
}

/* Елементи керування */
.segmented { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 0; border: 0; margin: 0; }
.segmented legend { padding: 0; margin-bottom: 10px; font-size: var(--step-small); color: var(--muted); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--surface); font-size: var(--step-small); font-weight: 520; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); cursor: pointer; }
.segmented input:checked + span { background: var(--ink); color: var(--ground); }
.segmented input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.segmented label:active span { transform: scale(0.97); }
.switch { display: inline-flex; align-items: center; gap: 14px; cursor: pointer; font-weight: 520; min-height: 44px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; width: 52px; height: 30px; border-radius: 30px; background: #c9c6be; transition: background-color var(--t-ui) ease; flex: none; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform var(--t-ui) var(--ease-out); }
.switch input:checked + .switch__track { background: var(--ink); }
.switch input:checked + .switch__track::after { transform: translateX(22px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--ink); outline-offset: 3px; }
.range { width: 100%; max-width: 360px; }
.range input { width: 100%; accent-color: var(--ink); height: 44px; }
.range output { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Повідомлення Telegram (фрагмент інтерфейсу) */
.tg[data-ui] { font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, var(--font); color: #0f1419; letter-spacing: 0; }
.tg__bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border-radius: 16px 16px 0 0; }
.tg__ava { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #121211; color: #fff; font-weight: 700; font-size: 15px; flex: none; }
.tg__who { display: grid; line-height: 1.2; }
.tg__who b { font-size: 15px; font-weight: 600; }
.tg__who span { font-size: 13px; color: #6b7785; }
.tg__chat { padding: 16px 12px 12px; background: #cfd8c9; border-radius: 0 0 16px 16px; display: grid; gap: 6px; }
.tg__msg { justify-self: start; max-width: 100%; background: #fff; border-radius: 4px 14px 14px 14px; padding: 10px 12px 8px; font-size: 14.5px; line-height: 1.42; box-shadow: 0 1px 1px rgba(0,0,0,.08); } /* taste-skill-ignore: фрагмент інтерфейсу Telegram (data-ui) */
.tg__msg b { font-weight: 650; }
.tg__row { display: block; overflow: hidden; }
.tg__row[hidden] { display: none; }
.tg__row + .tg__row { margin-top: 4px; }
.tg__sub { color: #4a5563; }
.tg__file { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.tg__file i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #3a8fd9; color: #fff; font-style: normal; font-size: 11px; font-weight: 700; flex: none; }
.tg__file span { display: grid; line-height: 1.25; font-size: 14px; }
.tg__file small { color: #6b7785; font-size: 12.5px; }
.tg__time { display: block; text-align: right; font-size: 12px; color: #8a96a3; margin-top: 4px; }
.tg__keys { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tg__keys span { display: grid; place-items: center; min-height: 38px; background: rgba(255,255,255,.55); border-radius: 10px; font-size: 14px; font-weight: 600; color: #1d3b2b; }
.tg__row.is-fresh { animation: tg-in 520ms var(--ease-out); }
@keyframes tg-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Колонка зі вставками (як іде проєкт) ---------- */
.runin__col { grid-column: 5 / span 6; max-width: 600px; }
.runin__col .head { margin-bottom: 48px; }
.stage + .stage { margin-top: 72px; }
.stage p { font-size: var(--step-body); line-height: 1.62; color: var(--muted); }
.stage p b { color: var(--ink); font-weight: 600; }
.stage__evidence { margin-top: 20px; }
.stage__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stage__row .media { height: 120px; }
@media (max-width: 899px) {
  .runin__col { grid-column: 1 / -1; }

  .stage + .stage { margin-top: 56px; }
  .stage__row .media { height: 88px; }
}

/* ---------- Таблиця перевірок ---------- */
.proof__head { grid-column: 1 / 8; }
.proof__head .line2 { display: block; padding-left: calc(2 * (100% + var(--gutter)) / 7); }
.proof__table { grid-column: 1 / -1; margin-top: 72px; width: 100%; border-collapse: collapse; font-size: var(--step-body); }
.proof__table th { text-align: left; font-size: var(--step-small); font-weight: 500; color: var(--muted); padding: 0 12px 14px; }
.proof__table td { padding: 16px 12px; vertical-align: baseline; }
.proof__table tbody tr:nth-child(odd) td { background: var(--surface); }
.proof__table td:first-child, .proof__table th:first-child { padding-left: 16px; width: 12%; }
.proof__table .num { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: 16px; }
.proof__table td:nth-child(2) { font-weight: 560; width: 28%; }
.proof__table td:nth-child(3) { color: var(--muted); }
@media (max-width: 760px) {
  .proof__table thead { display: none; }
  .proof__table, .proof__table tbody, .proof__table tr, .proof__table td { display: block; width: 100% !important; }
  .proof__table tr { padding: 14px 16px; }
  .proof__table tbody tr:nth-child(odd) { background: var(--surface); }
  .proof__table tbody tr:nth-child(odd) td { background: none; }
  .proof__table td { padding: 2px 0 !important; text-align: left !important; }
  .proof__table td:first-child { font-size: var(--step-small); color: var(--muted); }
}

/* ---------- Про студію: фото, кольорова плитка, факти ---------- */
.about__head { grid-column: 1 / -1; }
.about__lead { grid-column: 1 / 7; margin-top: 24px; }
.about__photo { grid-column: 1 / 9; margin-top: 72px; position: relative; }
.about__photo .media { aspect-ratio: 16 / 10; }
.about__over { position: absolute; top: 0; right: 0; width: 340px; padding: 20px 22px; background: var(--ground); font-size: var(--step-body); line-height: 1.45; }
.about__side { grid-column: 9 / -1; margin-top: 72px; display: grid; align-content: start; gap: 28px; }
.about__tile { background: var(--ink); color: var(--ground); aspect-ratio: 4 / 3.4; display: grid; align-content: space-between; padding: 24px; }
.about__clock { font-size: var(--step-head); font-weight: 620; letter-spacing: -0.05em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px var(--gutter); }
.facts dt { font-size: var(--step-small); color: var(--muted); }
.facts dd { font-size: var(--step-body); font-weight: 520; margin-top: 2px; }
@media (max-width: 899px) {
  .about__lead, .about__photo, .about__side { grid-column: 1 / -1; }
  .about__photo .media { aspect-ratio: 4 / 3; }
  .about__over { position: static; width: auto; padding: 16px 0 0; }
  .about__side { margin-top: 40px; }
  .about__tile { aspect-ratio: 3 / 2; }
}

/* ---------- Заклик: ідея знову, навиворіт ---------- */
.cta { min-height: 78svh; display: grid; grid-template-rows: 1fr auto; padding-block: clamp(96px, 12vh, 160px) 40px; }
.cta__title { grid-column: 1 / -1; align-self: start; }

.cta__bottom { align-items: end; margin-top: 64px; }
.cta__bottom p { grid-column: 1 / 6; font-size: var(--step-lead); line-height: 1.3; max-width: 26ch; }
.cta__bottom .button { grid-column: 9 / -1; justify-self: end; }
@media (max-width: 899px) {
  .cta { min-height: 0; }
  .cta__title.display { font-size: clamp(2.4rem, 11.4vw, 5rem); }
  .cta__bottom p { grid-column: 1 / -1; }
  .cta__bottom .button { grid-column: 1 / -1; justify-self: stretch; margin-top: 32px; justify-content: space-between; }
}

/* ---------- Підвал-завіса ---------- */
main { position: relative; z-index: 2; background: var(--ground); }
.site-footer { position: sticky; bottom: 0; z-index: 1; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: 40px var(--margin) 20px; background: var(--ground); color: var(--ink); }
.footer__cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 32px; }
.footer__col { grid-column: span 3; font-size: var(--step-body); display: grid; align-content: start; gap: 6px; }
.footer__col > :first-child { font-weight: 600; margin-bottom: 4px; }
.footer__col a { text-decoration: none; color: var(--muted); justify-self: start; overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.footer__col p { color: var(--muted); }
.footer__mark { align-self: end; margin-top: 40px; }
.footer__mark svg { width: 100%; height: auto; fill: currentColor; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 20px; font-size: var(--step-small); color: var(--muted); }
.footer__legal a { color: inherit; }
@media (max-width: 899px) {
  .footer__col { grid-column: span 6; }
  .site-footer { position: relative; min-height: 0; padding-top: 56px; }
  .footer__mark { margin-top: 96px; }
}

/* ---------- Список «що входить» ---------- */
.dl__head { grid-column: 1 / -1; margin-bottom: clamp(40px, 5vw, 72px); }
.dl__head > p { margin-left: 0; }

.dl__list { grid-column: 5 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 36px var(--gutter); }
.dl__item dt { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.dl__item dd { margin-top: 10px; color: var(--muted); font-size: var(--step-body); line-height: 1.55; }
@media (max-width: 899px) { .dl__head, .dl__list { grid-column: 1 / -1; } .dl__list { margin-top: 40px; } }
@media (max-width: 600px) { .dl__list { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Сценарії: ряд, що гортається ---------- */
.rowscroll__head { grid-column: 1 / 9; }
.rowscroll__nav { grid-column: 9 / -1; justify-self: end; align-self: end; display: flex; gap: 8px; }
.rowscroll__nav button { width: 52px; height: 52px; display: grid; place-items: center; background: var(--surface); border: 0; cursor: pointer; transition: background-color var(--t-hover) ease, opacity var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.rowscroll__nav button:hover { background: var(--ink); color: var(--ground); }
.rowscroll__nav button:active { transform: scale(0.95); }
.rowscroll__nav button[disabled] { opacity: 0.35; pointer-events: none; }
.rowscroll__nav svg { width: 20px; height: 20px; }
.rowscroll__track { display: flex; gap: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: var(--margin); padding: 0 0 8px; margin-top: clamp(36px, 4vw, 56px); scrollbar-width: none; overscroll-behavior-x: contain; }
.rowscroll__track::-webkit-scrollbar { display: none; }
.rowscroll__item { flex: 0 0 clamp(300px, 42vw, 680px); scroll-snap-align: start; }
.rowscroll__item--phone { flex-basis: clamp(220px, 22vw, 320px); }
.rowscroll__item .media { aspect-ratio: 16 / 10; }
.rowscroll__item--phone .media { aspect-ratio: auto; background: none; overflow: visible; }
.rowscroll__item h3 { margin-top: 18px; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.rowscroll__item p { margin-top: 8px; color: var(--muted); font-size: var(--step-body); max-width: 44ch; }
@media (max-width: 899px) { .rowscroll__head { grid-column: 1 / -1; } .rowscroll__nav { display: none; } .rowscroll__item { flex-basis: 84vw; } .rowscroll__item--phone { flex-basis: 64vw; } }

/* ---------- Питання ---------- */
.faq__head { grid-column: 1 / -1; margin-bottom: clamp(36px, 4vw, 56px); }

.faq__list { grid-column: 5 / -1; display: grid; gap: 6px; }
.faq__item { background: var(--surface); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 24px; cursor: pointer; font-size: var(--step-lead); font-weight: 560; letter-spacing: -0.02em; line-height: 1.25; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: currentColor; transition: transform var(--t-ui) var(--ease-out); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease-out); }
.faq__item[open] .faq__body { grid-template-rows: 1fr; }
.faq__body > div { overflow: hidden; }
.faq__body p { padding: 0 24px 24px; max-width: 64ch; color: var(--muted); }
@media (max-width: 899px) { .faq__head, .faq__list { grid-column: 1 / -1; } .faq__list { margin-top: 36px; } .faq__item summary { padding: 18px; } .faq__body p { padding: 0 18px 20px; } }

/* ---------- Розділ-розділ: заголовок на осі й текст ---------- */
.textpage__title { grid-column: 5 / -1; }
.textpage__body { grid-column: 5 / span 7; margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px var(--gutter); }
.textpage__body p { color: var(--muted); }
.textpage__body p b { color: inherit; }
.textpage__note { grid-column: 1 / 4; grid-row: 1 / span 2; font-size: var(--step-small); color: var(--muted); align-self: start; padding-top: 12px; }
.textpage--one .textpage__body { grid-template-columns: 1fr; max-width: 62ch; }
@media (max-width: 899px) { .textpage__title, .textpage__body, .textpage__note { grid-column: 1 / -1; grid-row: auto; } .textpage__body { grid-template-columns: 1fr; } .textpage__note { order: 10; margin-top: 20px; } }

/* ---------- Мозаїка без проміжків ---------- */
.mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 17vw, 300px); gap: 0; }
.mosaic > * { overflow: clip; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.mosaic .m-2x2 { grid-column: span 2; grid-row: span 2; } .mosaic .m-2x1 { grid-column: span 2; } .mosaic .m-1x1 { grid-column: span 1; } .mosaic .m-3x2 { grid-column: span 3; grid-row: span 2; } .mosaic .m-4x2 { grid-column: span 4; grid-row: span 2; } .mosaic .m-1x2 { grid-column: span 1; grid-row: span 2; }
.mosaic__tile { display: grid; align-content: end; padding: 20px; font-size: var(--step-small); }
.mosaic__tile--ink { background: var(--ink); color: var(--ground); }
.mosaic__tile--client { background: var(--client); color: #fff; }
.mosaic__tile--surface { background: var(--surface); }
.mosaic__tile b { display: block; font-size: var(--step-head); letter-spacing: -0.045em; line-height: 1; font-weight: 620; margin-bottom: 8px; }
@media (max-width: 899px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; } .mosaic .m-2x2, .mosaic .m-3x2, .mosaic .m-4x2 { grid-column: span 2; grid-row: span 2; } .mosaic .m-2x1 { grid-column: span 2; } .mosaic .m-1x2 { grid-column: span 1; grid-row: span 2; } }

/* ---------- Відкрите вікно (картинка на весь екран) ---------- */
.opening { position: relative; }
.opening__stage { height: 100svh; position: relative; }
.opening__pic { position: absolute; inset: 0; overflow: clip; background: var(--dark); }
.opening__pic img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.opening__caption { position: absolute; left: var(--margin); bottom: 24px; z-index: 2; padding: 14px 18px; background: var(--ground); color: var(--ink); font-size: var(--step-body); max-width: 46ch; }

/* ---------- Схема системи ---------- */
.flow { position: relative; }
.flow__svg { width: 100%; height: auto; margin-top: clamp(40px, 5vw, 72px); }
.flow__svg .node rect { fill: var(--ground); }
.flow__svg .node--ink rect { fill: var(--ink); }
.flow__svg .node text { font-family: var(--font); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; fill: var(--ink); }
.flow__svg .node--ink text { fill: var(--ground); }
.flow__svg .node .sub { font-size: 15px; font-weight: 450; fill: var(--muted); }
.flow__svg .node--ink .sub { fill: var(--dark-muted); }
.flow__svg .wire { fill: none; stroke: var(--ink); stroke-width: 3; }
.flow__svg .pulse { fill: var(--ink); }
.flow__list { display: none; }
@media (max-width: 760px) { .flow__svg { display: none; } .flow__list { display: grid; gap: 8px; margin-top: 36px; counter-reset: f; } .flow__list li { background: var(--ground); padding: 16px 18px; } .flow__list b { display: block; font-size: var(--step-lead); } .flow__list span { color: var(--muted); font-size: var(--step-body); } }

/* ---------- Кейс ---------- */
.case-hero { padding-top: calc(var(--header-h) + clamp(40px, 8vh, 96px)); padding-bottom: 0; }
.case-hero__logo { grid-column: 1 / 5; align-self: start; padding-top: 18px; }
.case-hero__logo img { width: min(240px, 80%); background: #fff; padding: 18px 20px; }
.case-hero__facts { grid-column: 1 / -1; margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px var(--gutter); }
.case-hero__facts dt { font-size: var(--step-small); color: var(--muted); }
.case-hero__facts dd { margin-top: 6px; font-size: var(--step-body); font-weight: 520; line-height: 1.45; }
@media (max-width: 899px) { .case-hero__logo { grid-column: 1 / -1; order: -1; margin-bottom: 24px; padding-top: 0; } .case-hero__facts { grid-template-columns: 1fr 1fr; } }
.screen-scroll { position: relative; }
.screen-scroll__frame { height: 86svh; overflow: clip; background: #e3ebf4; position: relative; }
.screen-scroll__frame img { width: 100%; }
.route { position: relative; }
.route__stage { min-height: 100svh; display: grid; align-content: center; gap: clamp(40px, 6vh, 72px); padding-block: 96px; }
.route.is-live { height: 230svh; }
.route.is-live .route__stage { position: sticky; top: 0; height: 100svh; }
@media (max-width: 899px) { .route__stage { min-height: 0; padding-block: var(--space-section); } }
.route__track { display: flex; gap: 10px; }
.route__seg { flex: 1 1 0; position: relative; height: clamp(84px, 9vw, 132px); }
.route__seg::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.14); transform: skewX(-12deg); }
.route__seg i { position: absolute; inset: 0; background: #fff; transform: skewX(-12deg) scaleX(var(--fill, 0)); transform-origin: left; }
.route__seg span { position: absolute; left: 22px; bottom: 14px; z-index: 1; font-weight: 620; font-size: var(--step-body); letter-spacing: -0.02em; color: #fff; transition: color 240ms ease; }
.route__seg.is-on span { color: var(--client); }
.route__count { font-size: var(--step-small); color: var(--muted); }
@media (max-width: 760px) { .route__track { flex-direction: column; gap: 8px; } .route__seg { height: 52px; } }
.swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
.swatch { aspect-ratio: 1 / 1.1; padding: 16px; display: grid; align-content: end; font-size: var(--step-small); line-height: 1.35; }
.swatch b { display: block; font-weight: 600; }
@media (max-width: 899px) { .swatches { grid-template-columns: repeat(3, 1fr); } }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px var(--gutter); }
.figure__value { font-size: var(--step-display); font-weight: 620; letter-spacing: -0.055em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.figure__label { margin-top: 14px; font-size: var(--step-body); color: var(--muted); max-width: 26ch; }
@media (max-width: 899px) { .figures { grid-template-columns: 1fr 1fr; } }

/* Колонка розділу кейсу: текст ліворуч від великого кадру */
.chapter__grid { align-items: start; }
.chapter__text { grid-column: 1 / 5; position: sticky; top: calc(var(--header-h) + 32px); }

.chapter__text p { margin-top: 20px; }
.chapter__text ul { margin-top: 24px; display: grid; gap: 10px; }
.chapter__text li { padding-left: 22px; position: relative; font-size: var(--step-body); line-height: 1.5; }
.chapter__text li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: currentColor; transform: skewX(-12deg); }
.chapter__media { grid-column: 6 / -1; display: grid; gap: var(--gutter); }
.chapter__media .media { aspect-ratio: 16 / 10; }
.chapter__pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: start; }
.chapter__phones { display: flex; gap: var(--gutter); justify-content: flex-start; }
.chapter__phones .phone { max-width: 240px; }
@media (max-width: 899px) { .chapter__text { grid-column: 1 / -1; position: static; } .chapter__media { grid-column: 1 / -1; margin-top: 40px; } .chapter__phones .phone { max-width: 46%; } }

/* ---------- Бриф ---------- */
.brief { padding-top: calc(var(--header-h) + clamp(40px, 7vh, 88px)); }
.brief__intro { grid-column: 1 / -1; }
.brief__form { grid-column: 1 / 8; margin-top: clamp(40px, 5vw, 72px); }
.brief__aside { grid-column: 9 / -1; margin-top: clamp(40px, 5vw, 72px); position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.q { border: 0; padding: 0; margin: 0 0 88px; }
.q > legend, .q__label { display: block; padding: 0; margin-bottom: 18px; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.q__hint { margin: -10px 0 16px; font-size: var(--step-small); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; background: var(--surface); font-weight: 500; font-size: var(--step-body); cursor: pointer; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.chip input:checked + span { background: var(--ink); color: var(--ground); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip:active span { transform: scale(0.97); }
.field { display: grid; gap: 8px; margin-bottom: 22px; }
.field label { font-size: var(--step-small); font-weight: 560; }
.field input, .field select, .field textarea { width: 100%; min-height: 56px; padding: 14px 16px; background: #fff; border: 1.5px solid #cfccc4; border-radius: 0; font-size: var(--step-body); transition: border-color var(--t-hover) ease; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #75736d; }
.field__err { font-size: var(--step-small); color: #b42318; min-height: 0; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: #b42318; }
.fields2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gutter); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: var(--step-body); line-height: 1.45; margin: 8px 0 28px; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: пастка для ботів */
.brief__status { margin-top: 18px; font-size: var(--step-body); }
.brief__status[data-state="error"] { color: #b42318; }
.summary { background: var(--surface); padding: 28px; }
.summary h2 { font-size: var(--step-lead); letter-spacing: -0.03em; }
.summary dl { margin-top: 20px; display: grid; gap: 14px; }
.summary dt { font-size: var(--step-small); color: var(--muted); }
.summary dd { font-size: var(--step-body); font-weight: 520; margin-top: 2px; }
.summary dd:empty::before { content: "—"; color: var(--muted); font-weight: 400; }
.next { margin-top: 28px; }
.next h3 { font-size: var(--step-body); letter-spacing: -0.015em; }
.next ol { margin-top: 12px; display: grid; gap: 10px; counter-reset: n; }
.next li { position: relative; padding-left: 34px; font-size: var(--step-body); line-height: 1.45; counter-increment: n; }
.next li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 22px; height: 22px; display: grid; place-items: center; background: var(--ink); color: var(--ground); font-size: 13px; font-weight: 600; transform: skewX(-12deg); }
.contact-alt { margin-top: 28px; display: grid; gap: 8px; font-size: var(--step-body); }
.done { grid-column: 1 / 8; margin-top: 56px; padding: 40px; background: var(--ink); color: var(--ground); }
.done[hidden] { display: none; }
.done h2 { font-size: var(--step-head); letter-spacing: -0.045em; }
.done p { margin-top: 16px; max-width: 48ch; }
@media (max-width: 899px) { .brief__form, .brief__aside, .done { grid-column: 1 / -1; } .brief__aside { position: static; } .fields2 { grid-template-columns: 1fr; } }

/* ---------- Документ (політика) ---------- */
.doc { grid-column: 5 / span 7; max-width: 68ch; }
.doc h2 { font-size: var(--step-lead); letter-spacing: -0.025em; margin: 48px 0 14px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 12px; }
.doc ul { margin-top: 12px; display: grid; gap: 8px; }
.doc li { padding-left: 20px; position: relative; }
.doc li::before { content: ""; position: absolute; left: 0; top: 0.66em; width: 7px; height: 7px; background: var(--ink); }
@media (max-width: 899px) { .doc { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; align-content: center; padding-top: var(--header-h); }

/* =========================================================
   РУХ — лише коли людина не просила його зменшити
   ========================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-leave 220ms var(--ease-exit) both; }
::view-transition-new(root) { animation: vt-arrive 420ms var(--ease-out) 60ms both; }
@keyframes vt-leave { to { opacity: 0; } }
@keyframes vt-arrive { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: no-preference) {
  /* Завантаження: рядки заголовка встають з-під своєї лінії */
  .js .lines--load [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-expo) forwards; animation-delay: calc(120ms + var(--i, 0) * 110ms); }
  .js .lines--wait [data-line] { transform: translateY(105%); }
  .js [data-load] { opacity: 0; transform: translateY(14px); animation: load-rise 600ms var(--ease-out) forwards; animation-delay: var(--d, 420ms); }
  .js [data-open] { clip-path: inset(0 0 100% 0); animation: load-open 1100ms var(--ease-in-out) 160ms forwards; }
  .js [data-open] img { transform: scale(1.08); animation: load-settle 1300ms var(--ease-expo) 120ms forwards; }

  /* Поява частин розділу */
  .js [data-reveal] { transform: translateY(var(--rise, 26px)); transition: opacity 760ms var(--ease-out), transform 960ms var(--ease-expo); transition-delay: calc(var(--i, 0) * var(--stagger-item)); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  /* На компʼютері частини ще й проявляються; на телефоні лише зсуваються, щоб текст ніколи не зникав */
  @media (min-width: 900px) { .js [data-reveal]:not(.is-in) { opacity: 0; } }
  .js [data-shutter] { clip-path: inset(0 0 24% 0); transition: clip-path 1150ms var(--ease-in-out); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-shutter] img { transform: scale(1.12); transition: transform 1600ms var(--ease-soft); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-shutter].is-in { clip-path: inset(0); }
  .js [data-shutter].is-in img { transform: none; }

  /* Рядки, що піднімаються під час прокрутки */
  [data-lines] .line { display: block; overflow: clip; padding-bottom: 0.12em; margin-bottom: -0.12em; }
  [data-lines] .line > span { display: block; }
  .is-split .line > span { transform: translateY(110%); }
  .is-split.is-in .line > span { transform: none; transition: transform 950ms var(--ease-expo) calc(var(--i) * var(--stagger-line)); }

  /* Рядок, що біжить */
  .marquee__track { animation: marquee 38s linear infinite; }
  .marquee:hover .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }

  /* Цифри, що прокручуються */
  .roll:not(.is-in) .roll__strip { transform: none; }
  .roll.is-in .roll__strip { transition: transform 1150ms var(--ease-expo) calc(var(--i) * var(--stagger-item)); }

  /* Фото про студію повільно дихає під прокрутку */
  @supports (animation-timeline: view()) {
    .drift img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .about__photo .media img { transform-origin: center; }
    /* Відкрите вікно */
    .opening.is-css { height: 210svh; view-timeline-name: --opening; }
    .opening.is-css .opening__stage { position: sticky; top: 0; }
    .opening.is-css .opening__pic { animation: opening-window linear both; animation-timeline: --opening; animation-range: contain 0% contain 72%; }
    .opening.is-css .opening__pic img { animation: opening-settle linear both; animation-timeline: --opening; animation-range: contain 0% contain 72%; }
    /* Заливка твердження */
    .is-filling > span { color: color-mix(in oklab, var(--fill, currentColor) 42%, transparent); animation: ink-fill linear both; animation-timeline: view(); animation-range: cover 18% cover 42%; }
  }
}
@keyframes line-up { to { transform: none; } }
@keyframes load-rise { to { opacity: 1; transform: none; } }
@keyframes load-open { to { clip-path: inset(0); } }
@keyframes load-settle { to { transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes drift { from { transform: scale(1.1) translateY(-3%); } to { transform: scale(1.1) translateY(3%); } }
@keyframes opening-window { from { clip-path: inset(var(--inset-y, 18%) var(--inset-x, 26%)); } to { clip-path: inset(0); } }
@keyframes opening-settle { from { transform: scale(1.16); } to { transform: none; } }
@keyframes ink-fill { to { color: var(--fill, currentColor); } }
@media (max-width: 760px) { .opening { --inset-y: 16%; --inset-x: 7%; } }

.roll__digits { display: inline-flex; line-height: 1; font-variant-numeric: tabular-nums; }
.roll__col { display: inline-block; height: 1em; overflow: clip; }
.roll__strip { display: flex; flex-direction: column; transform: translateY(calc(var(--d) * -1em)); }
.roll__strip > span { height: 1em; display: block; }
.roll__strip > span::before { content: attr(data-n); }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
}

/* ---------- Послуги: огляд напрямів ---------- */
.svcs { padding-block: clamp(40px, 5vw, 80px) var(--space-section); }
.svc { align-items: center; }
.svc + .svc { margin-top: clamp(96px, 10vw, 160px); }
.svc__text { grid-column: 1 / 6; }
.svc__text .head a:hover { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }
.svc__text p { margin-top: 24px; max-width: 46ch; }
.svc__list { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px var(--gutter); color: var(--muted); }
.svc__list li { padding-left: 16px; position: relative; }
.svc__list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; background: var(--ink); border-radius: 50%; }
.svc__text .link-arrow { margin-top: 28px; }
.svc__pic { grid-column: 7 / -1; margin-right: calc(-1 * var(--margin)); aspect-ratio: 16 / 10; overflow: clip; background: var(--surface); display: block; }
.svc__pic img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform 1200ms var(--ease-soft); }
.svc__pic--phone { display: grid; place-items: center; }
.svc__pic--phone .phone { max-width: 220px; }
.svc__pic--phone img { object-fit: cover; }
.svc:nth-child(even) .svc__text { grid-column: 8 / -1; grid-row: 1; }
.svc:nth-child(even) .svc__pic { grid-column: 1 / 7; grid-row: 1; margin-right: 0; margin-left: calc(-1 * var(--margin)); }
@media (hover: hover) and (pointer: fine) { .svc__pic:hover img { transform: scale(1.04); } }
@media (max-width: 899px) {
  .svc__text, .svc:nth-child(even) .svc__text { grid-column: 1 / -1; grid-row: 2; margin-top: 28px; }
  .svc__pic, .svc:nth-child(even) .svc__pic { grid-column: 1 / -1; grid-row: 1; margin: 0 calc(-1 * var(--margin)); }
}
.svc-hero-pic { padding-inline: var(--margin); }
.svc-hero-pic .media { height: min(78svh, 820px); }
.svc-hero-pic .media img { object-position: left top; }
.svc-hero-phone { display: flex; justify-content: flex-start; }
.svc-hero-phone .phone { max-width: 280px; }
.next-practice { display: flex; align-items: center; justify-content: space-between; gap: 24px; text-decoration: none; }
.next-practice .index__go { width: 40px; height: 40px; flex: none; transition: transform 420ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .next-practice:hover .index__go { transform: translateX(8px); } .next-practice:hover .head { text-decoration: underline; text-decoration-thickness: 0.05em; text-underline-offset: 0.12em; } }
@media (max-width: 899px) { .svc-hero-pic .media { height: auto; aspect-ratio: 4 / 3; } .svc-hero-pic { padding: 0; } }

/* ---------- Закріплена історія: етапи ---------- */
.story { align-items: start; }
.story__title { grid-column: 1 / 5; position: sticky; top: calc(var(--header-h) + 40px); }
.story__list { grid-column: 5 / -1; display: grid; gap: 0; }
.story__item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: var(--gutter); padding-block: clamp(28px, 3vw, 44px); }
.story__item:nth-child(odd) { background: var(--dark-surface); padding-inline: 24px; margin-inline: -24px; }
.story__item > p.small { grid-column: 1; grid-row: 1 / span 2; padding-top: 6px; }
.story__name { grid-column: 2; font-weight: 600; }
.story__item > p:last-child { grid-column: 2; margin-top: 10px; color: var(--dark-muted); max-width: 52ch; }
@media (max-width: 899px) {
  .story__title { grid-column: 1 / -1; position: static; margin-bottom: 32px; }
  .story__list { grid-column: 1 / -1; }
  .story__item { grid-template-columns: 1fr; }
  .story__item > p.small, .story__name, .story__item > p:last-child { grid-column: 1; grid-row: auto; }
  .story__item:nth-child(odd) { padding-inline: 16px; margin-inline: -16px; }
}
.proof__table.std td:nth-child(2) { font-weight: 400; width: auto; color: var(--muted); }
.proof__table.std td:first-child { font-weight: 560; width: 22%; color: var(--ink); font-size: var(--step-body); }

/* ---------- Що ви отримуєте ---------- */
.handover { align-items: start; row-gap: 32px; }
.handover__text { grid-column: 1 / 5; }
.handover__text p { max-width: 62ch; }
.handover__a { grid-column: 5 / 9; aspect-ratio: 3 / 3.5; }
.handover__b { grid-column: 9 / -1; aspect-ratio: 3 / 3.5; margin-top: 96px; }
@media (max-width: 899px) { .handover__text, .handover__a, .handover__b { grid-column: 1 / -1; margin-top: 0; } }
.photo-band { grid-column: 1 / -1; aspect-ratio: 21 / 8; }
.photo-band img { object-position: center 45%; }
@media (max-width: 899px) { .photo-band { aspect-ratio: 4 / 3; } }

/* ---------- Агенція ---------- */
.founder-links { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: var(--step-lead); font-weight: 500; }
.contact { align-items: stretch; row-gap: 40px; }
.contact__main { grid-column: 1 / 8; }
.contact__list { margin-top: 40px; display: grid; gap: 18px; }
.contact__list li { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: baseline; gap: 4px 16px; }
.contact__list a { font-size: var(--step-head); font-weight: 600; letter-spacing: -0.045em; line-height: 1; text-decoration: none; width: max-content; max-width: 100%; overflow-wrap: anywhere; }
.contact__list a:hover { text-decoration: underline; text-decoration-thickness: 0.05em; text-underline-offset: 0.12em; }
.contact__tile { grid-column: 9 / -1; aspect-ratio: auto; min-height: 320px; }
@media (max-width: 899px) { .contact__main, .contact__tile { grid-column: 1 / -1; } .contact__list a { font-size: clamp(1.5rem, 7vw, 2.5rem); } }
.phone--rec { aspect-ratio: 480 / 853; padding: 0; border-radius: 0; background: none; }
.phone--rec img { border-radius: 0; }

@media (max-width: 599px) {
  .work__visual, .work--b .work__visual, .work--c .work__visual { aspect-ratio: 4 / 5; }
  .work__visual--field .phone { max-width: 62%; }
}

.next-label { }
@media (max-width: 899px) { .next-label { display: none; } }

.brief__pics { margin-top: 32px; }
.brief__note { max-width: 62ch; color: var(--muted); }
.brief__pics .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
.brief__pics .mosaic > * { grid-column: span 1 !important; grid-row: span 1 !important; }
.brief__pics p { margin-bottom: 12px; }
@media (max-width: 560px) { .contact__list li { grid-template-columns: 1fr; } .contact__list li > span { order: 2; } }
.task__doc { grid-column: 1 / 4; grid-row: 2 / span 2; align-self: start; margin-top: 24px; aspect-ratio: 3 / 3.5; }
@media (max-width: 899px) { .task__doc { grid-column: 1 / -1; grid-row: auto; order: 11; aspect-ratio: 4 / 3; } }

/* =========================================================
   v4.1 — стіна робіт на першому екрані, політ крізь роботи, нові сторінки
   ========================================================= */
.wall { position: relative; height: clamp(540px, 96svh, 1000px); overflow: clip; perspective: 1700px; perspective-origin: 50% 0%; background: var(--ground); }
.wall__plane { --rx: 44deg; --rz: -13deg; --s: 1; --ty: 0px; position: absolute; left: -14%; right: -14%; top: 2%; height: 170%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 22px); transform-origin: 50% 0; transform: translateY(var(--ty)) rotateX(var(--rx)) rotateZ(var(--rz)) scale(var(--s)); transform-style: preserve-3d; will-change: transform; }
.wall__col { min-width: 0; }
.wall__track { display: grid; gap: clamp(12px, 1.4vw, 22px); }
.wall__shot { aspect-ratio: 16 / 10; overflow: clip; background: var(--surface); }
.wall__shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.hero__media .hero__stat { top: 0; }
@media (prefers-reduced-motion: no-preference) {
  .wall__track { animation: wall-up 80s linear infinite; }
  .wall__col--down .wall__track { animation-direction: reverse; animation-duration: 96s; }
  .wall.is-paused .wall__track { animation-play-state: paused; }
}
@keyframes wall-up { to { transform: translateY(calc(-50% - 11px)); } }
@media (max-width: 899px) {
  .wall { height: 74svh; }
  .wall__plane { left: -40%; right: -40%; --rx: 38deg; }
}

/* Політ крізь роботи */
.fly { position: relative; background: var(--dark); color: var(--dark-ink); --muted: var(--dark-muted); --surface: var(--dark-surface); }
.fly__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-top: var(--space-section); }
.fly__count { color: var(--dark-muted); font-variant-numeric: tabular-nums; }
.fly__space { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px var(--gutter); padding: clamp(40px, 5vw, 72px) var(--margin) var(--space-section); }
.fly__frame { display: block; color: inherit; text-decoration: none; }
.fly__shot { display: block; aspect-ratio: 16 / 10; background: var(--dark-surface); }
.fly__cap { display: block; margin-top: 14px; font-size: var(--step-body); color: var(--dark-muted); }
.fly__cap b { color: var(--dark-ink); font-weight: 600; margin-right: 8px; }
.fly.is-live { height: 560svh; }
.fly.is-live .fly__stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
.fly.is-live .fly__head { position: absolute; inset: 0 0 auto 0; z-index: 5; padding-top: calc(var(--header-h) + 28px); pointer-events: none; }
.fly.is-live .fly__space { position: absolute; inset: 0; display: block; padding: 0; perspective: 1100px; perspective-origin: 50% 45%; transform-style: preserve-3d; }
.fly.is-live .fly__frame { position: absolute; left: 50%; top: 50%; width: min(62vw, 1000px); transform: translate(-50%, -50%) translate3d(var(--x, 0), var(--y, 0), var(--z, 0)); will-change: transform, opacity; }
.fly.is-live .fly__cap { font-size: var(--step-lead); }
@media (max-width: 899px) { .fly__space { grid-template-columns: 1fr; } }

/* Мітки-посилання (галузі, повʼязані сторінки) */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--surface); text-decoration: none; font-size: var(--step-body); font-weight: 500; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.tags a:hover { background: var(--ink); color: var(--ground); }

/* Галузі: болі, телефон, кейс */
.pains { display: grid; gap: 28px; margin-top: 8px; }
.pains li { padding-left: 32px; position: relative; max-width: 40ch; }
.pains li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); }
.split-phone { align-items: center; row-gap: 48px; }
.split-phone__text { grid-column: 1 / 7; }
.split-phone__text p { max-width: 48ch; }
.split-phone__pic { grid-column: 8 / -1; display: grid; place-items: center; background: var(--surface); padding: clamp(32px, 4vw, 64px); }
.split-phone__pic .phone { max-width: 300px; }
.case-teaser { align-items: center; row-gap: 32px; }
.case-teaser__pic { grid-column: 1 / 8; aspect-ratio: 16 / 10; display: block; }
.case-teaser__text { grid-column: 9 / -1; }
@media (max-width: 899px) { .split-phone__text, .split-phone__pic, .case-teaser__pic, .case-teaser__text { grid-column: 1 / -1; } }

/* Блог */
.posts { display: grid; gap: clamp(56px, 6vw, 96px); }
.post-card { align-items: start; row-gap: 20px; }
.post-card__pic { grid-column: 1 / 5; aspect-ratio: 16 / 10; display: block; }
.post-card__text { grid-column: 5 / -1; max-width: 62ch; }
.post-card__title { font-weight: 600; margin: 10px 0 12px; }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.14em; }
.post__title { grid-column: 5 / -1; }
.post__meta { grid-column: 5 / -1; margin-top: 20px; }
.post__pic { margin: 0 0 clamp(40px, 5vw, 72px); }
.post__pic .media { aspect-ratio: 21 / 9; }
.post__body { grid-column: 5 / span 7; max-width: 68ch; padding-bottom: clamp(56px, 6vw, 96px); }
.post__body p, .post__body li { font-size: var(--step-body); line-height: 1.65; }
.post__body p + p { margin-top: 16px; }
.post__body h2 { font-size: var(--step-lead); letter-spacing: -0.025em; margin: 48px 0 16px; line-height: 1.2; }
.post__body ul { display: grid; gap: 10px; margin: 16px 0; }
.post__body li { padding-left: 22px; position: relative; }
.post__body li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 7px; height: 7px; background: var(--ink); border-radius: 50%; }
.post__body a { text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 899px) { .post-card__pic, .post-card__text, .post__title, .post__meta, .post__body { grid-column: 1 / -1; } }

/* Кейс AMATI: пісочне поле бренду */
.chapter-amati { background: #dfdbcc; color: #15130f; --muted: #4c483d; --surface: #d2cdbb; }
.case-hero__shot { aspect-ratio: 16 / 9; margin-inline: calc(-1 * var(--margin)); }
@media (max-width: 899px) { .case-hero__shot { aspect-ratio: 4 / 3; } }
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px var(--gutter); }
.review blockquote { margin: 0; }
.review figcaption { margin-top: 18px; color: var(--muted); }
.review figcaption b { color: var(--ink); font-weight: 600; margin-right: 6px; }
@media (max-width: 899px) { .reviews { grid-template-columns: 1fr; } }

.fly.is-live .fly__cap { opacity: 0; transition: opacity 260ms ease; }
.fly.is-live .fly__frame.is-current .fly__cap { opacity: 1; }
.chapter__text .head { font-size: clamp(2rem, 1rem + 2.2vw, 3.25rem); overflow-wrap: anywhere; }
.strip { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 0; }
.strip > * { min-width: 0; margin: 0; }
.strip > * { aspect-ratio: 16 / 10; overflow: clip; }
.strip img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
@media (max-width: 899px) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .strip > :first-child { grid-column: 1 / -1; } .strip > :nth-child(4) { display: none; } }
.post__lead { grid-column: 5 / -1; margin-top: 20px; max-width: 46ch; }
@media (max-width: 899px) { .post__lead { grid-column: 1 / -1; } }
