/* Tengri Align — public site, direction A «клиническая редакция» (owner's choice 23.10.2026):
   warm light paper, serif headlines in sentence case, thin rules, no glow, no gradients.
   Fonts are self-hosted (fontsource, OFL): Source Serif 4 and Inter with Cyrillic and Kazakh letters. */

@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/source-serif-4-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/source-serif-4-cyrillic-400.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/source-serif-4-cyrillic-ext-400.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/source-serif-4-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/source-serif-4-cyrillic-600.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/source-serif-4-cyrillic-ext-600.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/inter-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/inter-cyrillic-400.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/inter-cyrillic-ext-400.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/inter-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/inter-cyrillic-500.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/inter-cyrillic-ext-500.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/inter-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/inter-cyrillic-600.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/inter-cyrillic-ext-600.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

:root {
  --paper: #f7f6f2;        /* page */
  --white: #ffffff;        /* alternating sections, cards */
  --sand: #efede6;         /* footer, quiet panels */
  --ink: #1d1d1f;
  --ink-2: #5f5f64;        /* secondary text: 5.9:1 on paper */
  --line: #e3e1da;
  --line-strong: #cfccc2;
  --accent: #007c74;       /* buttons, links, small marks */
  --accent-hover: #006a63;
  --accent-soft: #e5f1ef;
  --ivory: #efe6d6;        /* teeth in the setup illustration */
  --ivory-edge: #b9a98f;
  --error: #b42318;
  --serif: "Source Serif 4", "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Consolas", "Liberation Mono", monospace;
  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--sans); color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 400; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); font-size: .8125em; letter-spacing: 0; }
.muted { color: var(--ink-2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; border: 1px solid var(--line); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* type */
.display { font-family: var(--serif); font-size: clamp(36px, 4.4vw, 56px); line-height: 1.07; letter-spacing: -0.012em; }
.h2 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; letter-spacing: -0.01em; }
.h3 { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.eyebrow { font: 500 13px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 34em; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: var(--r); font: 500 16px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost { background: var(--white); border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--link { color: var(--ink); padding: 0 6px; }
.btn--link:hover { color: var(--accent); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(247, 246, 242, .94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header__row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; white-space: nowrap; font: 400 21px/1 var(--serif); }
.brand img { width: 34px; height: 34px; }
.brand b { font-weight: 400; color: var(--accent); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--accent); }
.header__tools { display: flex; align-items: center; gap: 14px; }
.langs { display: flex; border: 1px solid var(--line-strong); border-radius: var(--r); }
.langs a { display: inline-grid; place-items: center; min-width: 44px; min-height: 40px; color: var(--ink-2); text-decoration: none; font: 500 13px/1 var(--sans); letter-spacing: .04em; }
.langs a + a { border-left: 1px solid var(--line); }
.langs a[aria-current="page"] { color: var(--ink); background: var(--white); box-shadow: inset 0 -2px 0 var(--accent); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 12px; width: 20px; height: 1.5px; background: currentColor; content: ""; }
.burger span { top: 21px; } .burger span::before { top: -6px; left: 0; } .burger span::after { top: 6px; left: 0; }

/* sections */
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section--white { background: var(--white); }
.section__head { max-width: 760px; margin-bottom: 40px; }
.section__head .muted { margin-top: -4px; }

/* hero */
.hero { padding: 72px 0 0; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: start; }
.hero__text { padding-top: 12px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }

/* hero video (HyperFrames render, 960x1200) */
.hero__media { position: relative; }
.hero__video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: #0b3a40; }

/* trust bar */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); margin: 72px 0 0; border-top: 1px solid var(--line); }
.trust__item { padding: 28px 24px 40px 0; }
.trust__item + .trust__item { padding-left: 24px; border-left: 1px solid var(--line); }
.trust dt { font: 400 clamp(30px, 3vw, 40px)/1.1 var(--serif); margin-bottom: 8px; color: var(--accent); }
.trust dd { margin: 0; color: var(--ink-2); font-size: 15px; }

/* process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.step { padding: 28px 28px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step__n { color: var(--accent); display: block; margin-bottom: 18px; }
.step h3 { font: 600 18px/1.3 var(--sans); margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-2); font-size: 16px; }
.step .step__time { color: var(--accent); font-weight: 500; margin-bottom: 6px; }

/* prices (CRM catalog) */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan { background: var(--paper); border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; }
.plan--accent { background: var(--white); border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.plan__name { font: 600 17px/1.3 var(--sans); margin-bottom: 18px; }
.plan__price { font: 400 clamp(36px, 3.6vw, 48px)/1 var(--serif); margin: 0 0 24px; white-space: nowrap; }
.plan__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.plan__list li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); position: relative; font-size: 16px; }
.plan__list li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 10px; height: 1.5px; background: var(--accent); }
.plans__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.plans__extra { margin: 0; color: var(--ink-2); }

/* before/after */
.case-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.compare { position: relative; margin: 0; overflow: hidden; border-radius: var(--r); user-select: none; touch-action: pan-y; }
.compare__img { display: block; width: 100%; height: auto; }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.compare__tag { position: absolute; top: 12px; padding: 4px 10px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); font-size: 13px; font-weight: 500; border-radius: var(--r); }
.compare__tag--before { left: 12px; }
.compare__tag--after { right: 12px; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); pointer-events: none; }
.compare__handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--accent); border: 1px solid var(--line-strong); font-size: 18px; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare__range:focus-visible + * , .compare:focus-within .compare__handle span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* benefits */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.ruled { list-style: none; margin: 16px 0 0; padding: 0; }
.ruled li { padding: 14px 0; border-top: 1px solid var(--line); }
.ruled li:last-child { border-bottom: 1px solid var(--line); }

/* table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 16px; }
.table th, .table td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { font: 500 13px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); background: var(--paper); }
.table tbody th { font-weight: 500; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table td:last-child { font-weight: 500; }
.table thead th:last-child { color: var(--accent); }
.conclusion { margin: 40px 0 0; padding: 0 0 0 24px; border-left: 2px solid var(--accent); max-width: 820px; }
.conclusion__title { font: 500 13px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.conclusion p:last-child { font: 400 clamp(19px, 1.8vw, 23px)/1.45 var(--serif); margin: 0; }

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.review { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 2px; text-decoration: none; }
.review img { width: 100%; height: 100%; object-fit: cover; }
.review__play { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 14px; font-weight: 500; border-top: 1px solid var(--line); }
.review:hover .review__play { color: var(--accent); }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 400 20px/1.35 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 300 26px/1 var(--sans); color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); margin: 0 0 22px; max-width: 46em; }

/* apply */
.apply { background: var(--sand); }
.apply__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.start { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line-strong); }
.start li { display: flex; gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line-strong); font-size: 18px; }
.start .mono { color: var(--accent); }
.offer { margin-top: 28px; font: 400 21px/1.45 var(--serif); }
.apply__contact { color: var(--ink-2); }
.apply__img { display: block; width: 100%; max-width: 420px; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 45%; margin-top: 28px; border-radius: var(--r); }
.form { background: var(--white); border: 1px solid var(--line); padding: 36px; display: grid; gap: 16px; }
.form .h3 { margin: 0; }
.form .muted { margin: 0 0 4px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: 14px; font-weight: 500; padding: 0; }
.field i, .consent i, .form__hint i { color: var(--error); font-style: normal; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); min-height: 48px; }
.field input:hover, .field textarea:hover { border-color: #a9a59a; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); outline-offset: 0; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: 13px; font-weight: 500; }
.field__error[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { position: relative; }
.chip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line-strong); cursor: pointer; font-size: 15px; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); align-items: flex-start; }
.consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.form__hint { margin: 0; font-size: 13px; color: var(--ink-2); }
.form__status { margin: 0; min-height: 1.4em; font-weight: 500; }
.form__status.is-ok { color: #067647; }
.form__status.is-error { color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* legal pages */
.legal { padding-top: 64px; border-top: 0; }
.legal .h3 { font-size: 22px; margin-top: 36px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 22px; display: grid; gap: 6px; }

/* footer */
.footer { background: var(--sand); border-top: 1px solid var(--line-strong); padding: 56px 0 40px; font-size: 15px; color: var(--ink-2); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer a, .footer .linklike { color: var(--ink); text-decoration: none; }
.footer a:hover, .footer .linklike:hover { color: var(--accent); }
.brand--light { color: var(--ink); }
.footer__h { font: 500 13px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 12px; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__legal, .footer__copy { margin: 16px 0 0; }

/* cookie notice */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin-inline: auto; display: flex; gap: 16px; align-items: center;
  padding: 16px 18px; background: var(--white); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r); box-shadow: 0 8px 24px rgba(29, 29, 31, .08); font-size: 14px; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1; }
.cookie__actions { display: flex; gap: 8px; flex: none; }

/* mockup notes (only in --mockup builds) */
.mockup-bar { background: #fff3c4; color: #5c4400; font-size: 13px; padding: 8px 16px; text-align: center; }
.mockup-bar span { margin-left: 8px; font-weight: 600; }
.todo { background: #fff3c4; color: #5c4400; border: 1px dashed #d6a700; padding: 8px 12px; font-size: 13px; font-weight: 600; margin: 0 0 16px; }
.todo::before { content: "⚑ "; }
.todo--inline { display: inline; padding: 2px 8px; }

/* responsive */
@media (max-width: 1100px) {
  .hero__grid { gap: 40px; }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan:last-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .burger { display: block; }
  .header__cta { display: none; }
  .nav { position: fixed; inset: 69px 0 auto 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 4px 16px 12px; display: none; margin: 0; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .header__tools { margin-left: auto; }
  .hero { padding-top: 48px; }
  .hero__grid, .apply__grid, .two-col, .case-grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; }
  .trust { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .trust__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand span { display: none; }
  .section { padding: 56px 0; }
  .steps, .plans, .field-row { grid-template-columns: 1fr; }
  .plan:last-child { grid-column: auto; }
  .trust__item:nth-child(odd) { padding-right: 12px; }
  .plan { padding: 24px; }
  .reviews { grid-template-columns: repeat(5, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .review { scroll-snap-align: start; }
  .form { padding: 24px 18px; }
  .cookie { flex-direction: column; align-items: stretch; }
  .cookie__actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* topic pages */
.topic { padding-bottom: 56px; border-top: 0; }
.crumbs { font-size: 14px; color: var(--ink-2); margin-bottom: 24px; }
.crumbs a { color: var(--ink-2); }
.display--page { font-size: clamp(34px, 4vw, 52px); max-width: 18em; }
.topic__img { display: block; width: 100%; max-width: 440px; aspect-ratio: 4 / 3; object-fit: cover; margin-top: 24px; border-radius: var(--r); }
.topic__img--tall { aspect-ratio: 4 / 5; max-width: 480px; justify-self: end; }
.topic__h { margin-top: 40px; }
.note { margin-top: 16px; }
.facts-table { margin: 16px 0 0; border-top: 1px solid var(--line); }
.facts-table div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts-table dt { color: var(--ink-2); }
.facts-table dd { margin: 0; font-weight: 500; }
.topic-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.topic-links a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; border-radius: var(--r); }
.topic-links a:hover { border-color: var(--accent); }
.topic-links__title { font: 400 22px/1.2 var(--serif); }
.topic-links__text { color: var(--ink-2); font-size: 15px; flex: 1; }
.topic-links__more { color: var(--accent); font-weight: 500; font-size: 15px; }
.apply--short { padding: 64px 0; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band .h3 { max-width: 28em; }
@media (max-width: 960px) { .topic-links { grid-template-columns: 1fr 1fr; } .topic__img--tall { justify-self: start; } }
@media (max-width: 640px) { .topic-links { grid-template-columns: 1fr; } .facts-table div { grid-template-columns: 1fr; gap: 2px; } }
.topic__img { object-position: 50% 68%; }
@media (max-width: 1240px) and (min-width: 961px) {
  .header__row { gap: 18px; }
  .nav { gap: 16px; }
  .nav a { font-size: 14px; }
  .header__cta { display: none; }
}
/* accent text on the sand background needs the darker teal for 4.5:1 */
.apply .eyebrow, .apply .mono, .apply a:not(.btn), .footer .eyebrow { color: var(--accent-hover); }
.apply .eyebrow::before { background: var(--accent-hover); }

/* application block: the left column stretches to the form's height and the photo fills the rest,
   so its bottom edge lines up with the bottom of the form (owner, 23.10) */
@media (min-width: 961px) {
  .apply__grid { align-items: stretch; }
  .apply__intro { display: flex; flex-direction: column; }
  .apply__img { flex: 1 1 0; height: 0; min-height: 260px; aspect-ratio: auto; object-position: 50% 50%; }
}
