/* ==========================================================================
   YRTA — design system
   Two colours only: navy #181F2B and paper #F4F6F9.
   Every other tone is one of them at a lower opacity.
   ========================================================================== */

/* Golos Text (SIL OFL 1.1), self-hosted; one variable file per alphabet covers weights 400–600 */
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/golos-text-cyrillic-ext.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/golos-text-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/golos-text-latin-ext.woff2) format("woff2"); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/golos-text-latin.woff2) format("woff2"); 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; }
/* Arial scaled to Golos metrics (measured), so text does not jump when the web font arrives */
@font-face { font-family: "Golos Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 104.8%; ascent-override: 93.5%; descent-override: 21%; line-gap-override: 0%; }

:root {
  --navy: #181f2b;
  --paper: #f4f6f9;

  --ink: var(--navy);
  --ink-70: rgb(24 31 43 / .72);
  /* Secondary text: 68% navy keeps 5.5:1 contrast on paper (WCAG AA needs 4.5:1) */
  --muted: rgb(24 31 43 / .68);
  /* Decorative only (lines, separators) — never for readable text */
  --ink-30: rgb(24 31 43 / .3);
  --line: rgb(24 31 43 / .12);
  --line-2: rgb(24 31 43 / .22);
  --tint: rgb(24 31 43 / .04);
  --tint-2: rgb(24 31 43 / .07);

  --p-70: rgb(244 246 249 / .72);
  --p-55: rgb(244 246 249 / .56);
  --p-line: rgb(244 246 249 / .16);
  --p-tint: rgb(244 246 249 / .08);

  --font: "Golos Text", "Golos Fallback", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1480px;
  --gut: clamp(16px, 3.2vw, 48px);
  --hdr: 64px;
  --r-xl: 32px;
  --r-lg: 24px;
  --r: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 24px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
::selection { background: var(--navy); color: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
sup { font-size: .32em; vertical-align: top; position: relative; top: .5em; margin-left: .2em; letter-spacing: 0; font-weight: 500; }
.i { flex: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt { margin-top: 24px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.section { margin-top: clamp(56px, 6vw, 96px); }
.section-sm { margin-top: clamp(24px, 3vw, 40px); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--navy); color: var(--paper); padding: 12px 18px; border-radius: 999px; }
.skip:focus { top: 12px; }

/* ---------- Type scale ---------- */
.d1 { font-size: clamp(34px, 5vw, 76px); line-height: 1.02; letter-spacing: -.03em; font-weight: 500; }
.d2 { font-size: clamp(26px, 3vw, 44px); line-height: 1.05; letter-spacing: -.025em; font-weight: 500; }
.d3 { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.1; letter-spacing: -.035em; font-weight: 500; }
.soft { color: var(--muted); }
.lbl { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lbl-light { color: var(--p-55); }

/* ---------- Buttons & small controls ---------- */
.btn { --bh: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--bh); padding: 0 6px 0 20px; border-radius: 999px; font-weight: 500; font-size: 14px; letter-spacing: -.01em; white-space: nowrap; border: 1px solid transparent; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.btn:not(:has(.arr)) { padding: 0 18px; }
.btn-sm { --bh: 36px; font-size: 13px; padding: 0 14px !important; gap: 8px; }
.btn-block { width: 100%; }
.arr { display: inline-grid; place-items: center; width: calc(var(--bh) - 12px); height: calc(var(--bh) - 12px); border-radius: 50%; transition: transform .45s var(--ease-out), background .3s; }
.arr svg { transition: transform .45s var(--ease-out); }
a:hover > .arr svg, button:hover > .arr svg, a:hover .arr svg { transform: rotate(45deg); }
.btn-dark { background: var(--navy); color: var(--paper); }
.btn-dark .arr { background: var(--paper); color: var(--navy); }
.btn-dark:hover { background: rgb(24 31 43 / .88); }
.btn-light { background: var(--paper); color: var(--navy); }
.btn-light .arr { background: var(--navy); color: var(--paper); }
.btn-light:hover { background: rgb(244 246 249 / .86); }
.btn-line { border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--navy); background: var(--navy); color: var(--paper); }
.btn-ghost-light { border-color: var(--p-line); color: var(--paper); }
.btn-ghost-light:hover { background: var(--paper); color: var(--navy); }
.circle { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink); transition: background .3s var(--ease), color .3s, border-color .3s; }
.circle:hover { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.circle-light { border-color: var(--p-line); color: var(--paper); }
.circle-light:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.link-arr { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; white-space: nowrap; --bh: 38px; }
.link-arr .arr { border: 1px solid var(--line-2); }
.link-arr:hover .arr { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; transition: background .25s, color .25s, border-color .25s; }
.chip { gap: 7px; }
button.chip { cursor: pointer; background: none; }
/* Share bar under articles */
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.share-bar .lbl { margin-right: 8px; }
.prose .share-bar a { text-decoration: none; color: var(--ink); }
.prose .btn { text-decoration: none; }
a.chip:hover, button.chip:hover {background: var(--navy); color: var(--paper); border-color: var(--navy); }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: rgb(244 246 249 / .82); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); border-bottom: 1px solid transparent; transition: border-color .3s, transform .4s var(--ease); }
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: var(--hdr); }
.hdr-brand { display: flex; align-items: center; gap: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); flex: none; }
/* Wordmark exactly as on yrta.kz: Arial Black weight, tight tracking */
.logo-word { font-family: Arial, Helvetica, sans-serif; font-weight: 900; font-size: 28px; letter-spacing: -.03em; line-height: 1; padding-right: .075em; }
.logo-light { color: var(--paper); }
.city-btn { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; transition: background .25s, color .25s, border-color .25s; }
.city-btn:hover { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.nav { display: flex; gap: 4px; }
.nav a { position: relative; padding: 8px 12px; font-size: 14px; font-weight: 500; color: var(--ink-70); transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.hdr-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }

.fav-count { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--navy); color: var(--paper); font: 600 11px/19px var(--font); text-align: center; }
.burger { display: none; }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 20px; font-size: 12px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
/* Separators are drawn by CSS: decorative, not part of the readable text */
.crumbs a::after { content: "/"; margin-left: 8px; color: var(--ink-30); }
.crumbs span[aria-current] { color: var(--ink); }

/* ---------- Duotone media: photos are rendered in navy only ---------- */
.duo-bg, .duo { position: relative; overflow: hidden; background: var(--navy); isolation: isolate; }
.duo-bg > img, .duo img { width: 100%; height: 100%; object-fit: cover; }
.duo-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(24 31 43 / .25) 0%, rgb(24 31 43 / 0) 28%, rgb(24 31 43 / 0) 40%, rgb(24 31 43 / .86)); pointer-events: none; z-index: 0; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(24px, 3vw, 44px); }
.hero-head { display: grid; gap: 18px; }
.hero-lbl { display: flex; gap: 22px; }
.hero-lbl span + span::before { content: "/"; margin-right: 22px; color: var(--ink-30); }
.hero-title { max-width: 20ch; }
.hero-title .soft { display: inline; }
.hero-media { margin-top: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); min-height: clamp(360px, 48vh, 520px); display: flex; align-items: flex-end; color: var(--paper); }
/* Pure CSS entrance (no JS needed, starts with the first paint) */
.hero-media > img { position: absolute; inset: 0; z-index: -1; animation: settle 1.6s var(--ease-out) both; }
@keyframes settle { from { transform: scale(1.06); } }
.hero-panel { position: relative; z-index: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: end; width: 100%; padding: clamp(20px, 2.6vw, 36px); }
.hero-lead { font-size: clamp(15px, 1.1vw, 17px); line-height: 1.4; color: var(--p-70); max-width: 440px; }
.hero-search { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 6px 0 20px; border-radius: 999px; background: rgb(244 246 249 / .1); border: 1px solid var(--p-line); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); color: var(--p-70); transition: background .3s, border-color .3s; }
.hero-search:focus-within { background: rgb(244 246 249 / .16); border-color: rgb(244 246 249 / .4); }
.hero-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--paper); font-size: 15px; }
.hero-search input::placeholder { color: var(--p-55); }
.hero-search .btn { --bh: 44px; }
.hero-find { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hero-req { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding-left: 20px; font-size: 14px; color: var(--p-70); transition: color .25s; }
.hero-req:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
/* Phones and tablets: the text sits over the middle of the photo, where the base gradient is still light
   (on a bright sky or facade it became unreadable), so the darkening starts higher and is denser */
@media (max-width: 960px) {
  .hero-media::after { background: linear-gradient(180deg, rgb(24 31 43 / .18) 0%, rgb(24 31 43 / 0) 18%, rgb(24 31 43 / .5) 42%, rgb(24 31 43 / .86) 64%, rgb(24 31 43 / .94) 100%); }
  .hero-lead, .hero-req { color: rgb(244 246 249 / .94); text-shadow: 0 1px 14px rgb(24 31 43 / .55); }
}
.hero-caption { position: absolute; top: clamp(20px, 2.6vw, 36px); right: clamp(24px, 3.4vw, 52px); z-index: 1; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--p-55); }

/* ---------- Marquee ---------- */
.marquee-wrap { position: relative; margin-top: clamp(40px, 4vw, 64px); }
/* Pause control: moving text must be stoppable (WCAG 2.2.2) */
.marquee-toggle { position: absolute; right: var(--gut); top: 50%; z-index: 1; transform: translateY(-50%); background: var(--paper); }
.marquee-toggle .i-play, .marquee-toggle[aria-pressed="true"] .i-pause { display: none; }
.marquee-toggle[aria-pressed="true"] .i-play { display: inline-flex; }
.marquee-toggle .i-pause { display: inline-flex; }
.marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee { padding: 14px 0; border-block: 1px solid var(--line); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: center; gap: 24px; padding-right: 24px; }
.marquee-set a { font-size: clamp(20px, 2vw, 30px); letter-spacing: -.03em; font-weight: 500; white-space: nowrap; color: var(--muted); transition: color .3s; }
.marquee-set a:hover { color: var(--ink); }
.marquee-set a::after { content: "/"; margin-left: 24px; font-weight: 300; color: var(--line-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section head ---------- */
.sh { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; padding-bottom: clamp(18px, 2vw, 26px); margin-bottom: clamp(18px, 2vw, 28px); border-bottom: 1px solid var(--line); }

.sh-t .lbl { margin-bottom: 10px; }
.sh .d2 { text-wrap: balance; }

/* ---------- Category index ---------- */
.cat-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 56px); counter-reset: none; }
.cat-index li { border-bottom: 1px solid var(--line); }
.cat-index a { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 44px; align-items: center; gap: 12px; min-height: 60px; padding: 0 10px; margin: 0 -10px; border-radius: var(--r-sm); isolation: isolate; transition: color .35s var(--ease); }
.cat-index a::before { content: ""; position: absolute; inset: 6px 0; z-index: -1; border-radius: var(--r); background: var(--navy); transform: scaleY(.4); opacity: 0; transition: transform .45s var(--ease-out), opacity .3s; }
.cat-index a:hover { color: var(--paper); }
.cat-index a:hover::before { transform: none; opacity: 1; }

.ci-ic { display: grid; place-items: center; color: var(--muted); transition: color .3s; }
.ci-name { font-size: clamp(15px, 1.15vw, 18px); letter-spacing: -.03em; font-weight: 500; }
.ci-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .3s; }
.cat-index .arr { --bh: 56px; border: 1px solid var(--line-2); justify-self: end; width: 32px; height: 32px; transition: transform .45s var(--ease-out), border-color .3s, background .3s, color .3s; }
.cat-index a:hover .ci-ic, .cat-index a:hover .ci-count { color: var(--p-70); }
.cat-index a:hover .arr { background: var(--paper); color: var(--navy); border-color: var(--paper); }

/* ---------- Company card ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cc { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 300px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .35s, background .35s var(--ease); }
.cc:hover { border-color: var(--line-2); background: var(--tint); }
.cc-featured { border-color: var(--navy); }
.cc-head { display: flex; align-items: center; gap: 12px; }
.cc-logo { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--navy); color: var(--paper); font-weight: 500; font-size: 15px; letter-spacing: -.02em; overflow: hidden; }
.cc-logo img { width: 100%; height: 100%; object-fit: contain; background: var(--paper); }
.cc-tags { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.cc-tags > * { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 500; background: var(--tint-2); color: var(--ink-70); white-space: nowrap; }
.cc-tags a:hover { background: var(--navy); color: var(--paper); }
.cc-tags .tag-inv { background: var(--navy); color: var(--paper); }
.cc-tags .tag-line { background: none; border: 1px dashed var(--ink-30); color: var(--muted); }
.fav-btn { position: relative; z-index: 2; margin-left: auto; display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; color: var(--muted); transition: color .25s, background .25s; }
.fav-btn:hover { color: var(--ink); background: var(--tint-2); }
.fav-btn[aria-pressed="true"] { color: var(--ink); }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }
.cc-name { margin-top: 28px; font-size: clamp(19px, 1.5vw, 23px); letter-spacing: -.03em; line-height: 1.02; display: flex; align-items: flex-start; gap: 8px; }
.cc-name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.verified { display: inline-flex; color: var(--ink); flex: none; margin-top: .1em; }
.cc-desc { margin-top: 8px; color: var(--ink-70); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cc-meta { display: flex; flex-direction: column; gap: 5px; margin-top: auto; padding-top: 20px; font-size: 13px; color: var(--muted); }
.cc-meta li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cc-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The address may take two lines, so the city at its end stays visible */
.cc-meta .cc-addr { align-items: flex-start; }
.cc-addr .i { margin-top: 2px; }
.cc-addr span { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.status i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
.status.is-open { color: var(--ink); }
.status.is-open i { background: currentColor; box-shadow: 0 0 0 4px var(--tint-2); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgb(24 31 43 / 0); } }
.cc-foot { display: flex; align-items: center; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.cc-foot .btn { position: relative; z-index: 2; }
/* Computers show the number itself (a tel: link does not dial there); phones show "Позвонить" */
.cc-foot .ph-call { display: none; }
.cc-foot .ph-num { font-variant-numeric: tabular-nums; }
.cc-go { margin-left: auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); transition: background .3s, color .3s, transform .45s var(--ease-out); }
.cc-share { position: relative; z-index: 2; margin-left: auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink-70); transition: background .3s, color .3s, border-color .3s; }
.cc-share:hover { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.cc-share + .cc-go { margin-left: 0; }
.cc:hover .cc-go { background: var(--navy); color: var(--paper); border-color: var(--navy); transform: rotate(45deg); }
/* Free plan: compact card without a page of its own */
.cc-basic { min-height: 0; }
.cc-basic:hover { background: none; border-color: var(--line); }
.cc-basic .cc-name { margin-top: 20px; }
.cc-basic .cc-meta { padding-top: 12px; }
.cc-basic .cc-share { margin-left: auto; }
.cc-meta .cc-links { flex-wrap: wrap; gap: 2px 16px; }
.cc-links a { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; padding: 3px 0; color: var(--ink-70); transition: color .2s; }
.cc-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cc:target { border-color: var(--navy); box-shadow: 0 0 0 3px var(--tint-2); scroll-margin-top: calc(var(--hdr) + 24px); }

/* ---------- Request to several companies ---------- */
.cc-acts { position: relative; z-index: 2; margin-left: auto; display: flex; gap: 2px; flex: none; }
.cc-acts .fav-btn { margin-left: 0; }
.req-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--muted); transition: color .25s, background .25s; }
.req-btn:hover { color: var(--ink); background: var(--tint-2); }
.req-btn[aria-pressed="true"] { background: var(--navy); color: var(--paper); }
[data-req] .i-on, [data-req][aria-pressed="true"] .i-off { display: none; }
[data-req][aria-pressed="true"] .i-on { display: contents; }
/* Icon-only button: the svg is a block, so no line box pushes it off the circle's centre */
.req-btn .i-off { display: contents; }
.req-btn svg { display: block; }
.co-req { display: flex; justify-content: center; width: 100%; padding: 10px 0 0; color: var(--p-70); font-size: 14px; }
.co-req > span { display: inline-flex; align-items: center; gap: 8px; }
.co-req:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.co-req[aria-pressed="true"] { color: var(--paper); }
.req-bar { position: fixed; left: 50%; bottom: 24px; z-index: 46; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--navy); color: var(--paper); box-shadow: 0 20px 60px rgb(24 31 43 / .3); transform: translateX(-50%); animation: pop .3s var(--ease-out); white-space: nowrap; }
.req-bar-t { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }
.req-bar-x { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--p-70); }
.req-bar-x:hover { color: var(--paper); background: var(--p-line); }
.req-hint { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; padding: 14px 16px 14px 20px; border-radius: var(--r); background: var(--tint); font-size: 14px; color: var(--ink-70); }
.req-hint p { flex: 1 1 360px; }
.req-hint b { color: var(--ink); font-weight: 500; }
.req-hint-ic { display: inline-grid; place-items: center; width: 20px; height: 20px; margin: 0 1px; border-radius: 50%; background: var(--tint-2); color: var(--ink); vertical-align: middle; }
.req-hint-ic svg { display: block; }
.beta-tag { display: inline-block; margin-right: 6px; padding: 2px 8px; border: 1px dashed var(--line-2); border-radius: 999px; font-size: 10px; font-weight: 500; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-70); vertical-align: 1px; white-space: nowrap; }
.lbl .beta-tag { margin: 0 0 0 8px; letter-spacing: .08em; vertical-align: 0; }
.picked { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: var(--r); background: var(--tint); }
.picked-list { display: flex; flex-direction: column; }
.picked-list:empty { display: none; }
.mini { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mini:last-child { border-bottom: 0; }
.mini .cc-logo { width: 40px; height: 40px; border-radius: 10px; font-size: 13px; }
.mini-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mini-t a { font-weight: 500; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-t a:hover { text-decoration: underline; }
.mini-t small { font-size: 12px; color: var(--muted); }
.mini-x { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--muted); flex: none; }
.mini-x:hover { background: var(--tint-2); color: var(--ink); }
.mini-act { display: flex; gap: 6px; flex: none; }
.picked-done { max-width: 640px; border-top: 1px solid var(--line); }
.lead-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 56px); align-items: start; }
.lead-text { margin-top: 10px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; letter-spacing: -.015em; }
.lead-name { font-size: 18px; font-weight: 500; }
.lead-contact { position: static; }

/* ---------- Company edits its own card (one-time link) ---------- */
.edit-form { max-width: 920px; gap: 28px; }
.edit-fixed { display: flex; flex-wrap: wrap; gap: 8px 40px; padding: 18px 20px; border-radius: var(--r); background: var(--tint); }
.edit-fixed p:not(.small) { display: flex; flex-direction: column; gap: 4px; }
.edit-fixed .small { flex-basis: 100%; }
.edit-fixed a { text-decoration: underline; }
.edit-sec { display: flex; flex-direction: column; gap: 22px; margin: 0; padding: 28px 0 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.edit-sec legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; }
.edit-sec legend + * { clear: both; }
.hours-in { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; }
.ph-prev { display: flex; align-items: center; gap: 16px; }
.ph-prev img { width: 200px; height: 50px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.ph-prev-sq img { width: 64px; height: 64px; object-fit: contain; background: var(--paper); }
.gal-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.gal-pick label { display: flex; flex-direction: column; gap: 8px; }
.gal-pick img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); }
.field input[type="file"] { height: auto; padding: 10px 0; border: 0; font-size: 14px; }

/* ---------- Empty band ---------- */
.empty-band { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; padding: clamp(20px, 2.6vw, 36px); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty-band .d3 span { color: var(--muted); }

/* ---------- Steps / calc row / rows ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { padding: 0 clamp(14px, 2vw, 28px) 0 0; }
.steps li + li { padding-left: clamp(14px, 2vw, 28px); border-left: 1px solid var(--line); }
.steps h3::before { content: ""; display: block; width: 24px; height: 2px; background: var(--navy); margin-bottom: 18px; }
.steps h3 { font-size: clamp(17px, 1.3vw, 20px); letter-spacing: -.02em; margin-bottom: 8px; }
.steps p { color: var(--ink-70); max-width: 34ch; font-size: 14px; }
.calc-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.calc-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 160px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); transition: background .4s var(--ease), color .4s, border-color .4s; --bh: 52px; }
.calc-tile small { color: var(--muted); font-size: 13px; transition: color .3s; }
.calc-tile .arr { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 1px solid var(--line-2); }
.calc-tile:hover { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.calc-tile:hover small { color: var(--p-55); }
.calc-tile:hover .arr { background: var(--paper); color: var(--navy); border-color: var(--paper); }
/* Lists get a top rule only when no section head (which already draws one) sits above them */
.rows { border-top: 1px solid var(--line); }
.sh + .rows, .sh + .faq { border-top: 0; }.rows li { border-bottom: 1px solid var(--line); }
.rows a { display: grid; grid-template-columns: 150px 130px minmax(0, 1fr) 36px; align-items: center; gap: 20px; min-height: 64px; transition: padding .45s var(--ease-out); --bh: 52px; }
.rows time, .rows-rub { font-size: 13px; color: var(--muted); }
.rows-rub { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.rows b { font-weight: 500; font-size: clamp(15px, 1.2vw, 18px); letter-spacing: -.03em; }
.rows .arr { width: 34px; height: 34px; border: 1px solid var(--line-2); }
.rows a:hover { padding-left: 16px; }
.rows a:hover .arr { background: var(--navy); color: var(--paper); border-color: var(--navy); }

/* ---------- Promo & CTA (navy panels) ---------- */
.promo { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title btn" "text btn"; gap: 6px 24px; align-items: end; min-height: 220px; padding: clamp(20px, 2.6vw, 36px); border-radius: var(--r-lg); color: var(--paper); align-content: end; }
.promo > img { position: absolute; inset: 0; z-index: -1; }
.promo .lbl { position: absolute; z-index: 1; top: clamp(18px, 2vw, 28px); left: clamp(20px, 2.6vw, 36px); }
.promo-title { grid-area: title; position: relative; z-index: 1; }
.promo-text { grid-area: text; color: var(--p-70); position: relative; z-index: 1; }
.promo .btn { grid-area: btn; position: relative; z-index: 1; }
.cta-biz { border-radius: var(--r-lg); color: var(--paper); min-height: clamp(340px, 36vw, 440px); display: flex; align-items: flex-end; }
.cta-img { position: absolute; inset: 0; z-index: -1; }
.cta-biz::after { background: linear-gradient(90deg, rgb(24 31 43 / .94) 30%, rgb(24 31 43 / .35)); }
.cta-in { position: relative; z-index: 1; padding: clamp(22px, 3vw, 44px); max-width: 680px; }
.cta-in .lbl { margin-bottom: 14px; }
.cta-text { margin-top: 14px; color: var(--p-70); font-size: 15px; max-width: 480px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

/* ---------- Posts ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.pc { position: relative; display: flex; flex-direction: column; gap: 8px; }
.pc-img { aspect-ratio: 16 / 10; border-radius: var(--r); margin-bottom: 6px; }
.pc-img img { transition: transform 1s var(--ease-out), opacity .5s; }
.pc:hover .pc-img img { transform: scale(1.05); opacity: .95; }
.pc-meta { display: flex; gap: 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.pc h3 { font-size: clamp(16px, 1.25vw, 19px); letter-spacing: -.02em; line-height: 1.2; }
.pc h3 a::after { content: ""; position: absolute; inset: 0; }
.pc p { color: var(--ink-70); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tabs-inline { display: inline-flex; gap: 6px; margin-top: 20px; }
.tabs-inline a { height: 36px; display: inline-flex; align-items: center; padding: 0 16px; font-size: 14px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 500; }
.tabs-inline a[aria-current] { background: var(--navy); color: var(--paper); border-color: var(--navy); }

/* ---------- Page head / listing ---------- */
.page-head { padding-top: clamp(20px, 2.6vw, 36px); }
.page-head .lbl { margin-bottom: 14px; }
/* Page titles use the full width (one line on desktop); on narrow screens lines are balanced */
.ph-title { text-wrap: balance; }
.ph-lead { margin-top: 16px; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.45; color: var(--ink-70); max-width: 640px; }
.cat-nav { margin-top: clamp(20px, 2.6vw, 32px); }
/* All directions are visible at once: chips wrap onto several lines, no hidden scrolling */
.cat-nav-in { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0; border-block: 1px solid var(--line); }
.cat-select { display: none; position: relative; align-items: center; }
.cat-select select { appearance: none; width: 100%; height: 46px; padding: 0 40px 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; }
.cat-select .i { position: absolute; right: 16px; pointer-events: none; }

.cat-nav a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--ink-70); transition: background .25s, color .25s; }

.cat-nav a:hover { background: var(--tint-2); color: var(--ink); }
.cat-nav a[aria-current] { background: var(--navy); color: var(--paper); border-color: var(--navy); }

.results-note { margin-bottom: 20px; color: var(--muted); }
.results-note a { text-decoration: underline; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.pager a, .pager span { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; font-size: 14px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 500; font-variant-numeric: tabular-nums; transition: background .25s, color .25s; }
.pager a:hover { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.pager span[aria-current] { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.pager .pager-gap { border: 0; }

/* ---------- Split (label left, content right) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 3vw, 56px); padding: clamp(24px, 2.6vw, 40px) 0; border-top: 1px solid var(--line); }
.split-l { display: flex; flex-direction: column; gap: 8px; align-self: start; position: sticky; top: calc(var(--hdr) + 32px); }

.split-r { min-width: 0; }
.tips { display: flex; flex-direction: column; }
.tips li { position: relative; padding-left: 28px !important; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: clamp(15px, 1.1vw, 17px); letter-spacing: -.01em; }
.tips li:first-child { padding-top: 0; }
.tips li::before { content: ""; position: absolute; left: 0; top: 1.3em; width: 18px; height: 1px; background: var(--navy); }
.tips li:first-child::before { top: .65em; }
.other-cities { margin-top: 48px; }
.other-cities .lbl { margin-bottom: 16px; }
.lbl + .chips { margin-top: 16px; }

/* ---------- Company page ---------- */
.co-hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(20px, 3vw, 56px); padding-top: clamp(20px, 2.6vw, 36px); align-items: start; }
.co-top { display: flex; align-items: center; gap: 16px; }
.co-logo { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--navy); color: var(--paper); font-size: 22px; font-weight: 500; letter-spacing: -.03em; overflow: hidden; flex: none; }
.co-logo img { width: 100%; height: 100%; object-fit: contain; background: var(--paper); }
.co-name { margin-top: clamp(18px, 2.4vw, 32px); display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; word-break: break-word; }
.co-name .verified { margin-top: .12em; }
.co-short { margin-top: 16px; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.35; letter-spacing: -.02em; color: var(--ink-70); max-width: 720px; }
.co-facts { display: flex; flex-wrap: wrap; gap: 0; margin-top: 26px; font-size: 14px; border-top: 1px solid var(--line); }
.co-facts > div { padding: 14px 24px 0 0; margin-right: 24px; }
.co-facts > div + div { padding-left: 24px; margin-right: 0; border-left: 1px solid var(--line); }
.co-facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 6px; }
.co-facts dd { font-weight: 500; }
.co-contact { position: sticky; top: calc(var(--hdr) + 20px); display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--r-lg); background: var(--navy); color: var(--paper); }
.co-phone { font-size: clamp(22px, 1.8vw, 27px); letter-spacing: -.03em; font-weight: 500; font-variant-numeric: tabular-nums; }
.co-phone:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.co-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.co-btns .btn { padding: 0 16px; }
.co-btns .btn:only-child { grid-column: 1 / -1; }
.co-icons { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 14px; border-top: 1px solid var(--p-line); }
.co-icons .fav-btn { margin: 0; width: 38px; height: 38px; color: var(--paper); }
/* On the dark panel the heart turns dark on a light circle, like the other round buttons */
.co-icons .fav-btn:hover { color: var(--navy); background: var(--paper); border-color: var(--paper); }
.co-note { font-size: 13px; color: var(--p-55); }
.co-cover { margin-top: 32px; height: clamp(180px, 22vw, 320px); border-radius: var(--r-lg); padding: 0; }
.co-cover img { position: absolute; inset: 0; }
.co-body { margin-top: clamp(40px, 4.4vw, 72px); }
.feat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 24px; margin-top: 22px; border-top: 1px solid var(--line); }
.feat-list li { display: flex; align-items: center; gap: 10px; padding: 12px 0; font-size: 14px; border-bottom: 1px solid var(--line); font-weight: 500; }
.svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; border-top: 1px solid var(--line); }
.svc-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; letter-spacing: -.02em; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery a { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--tint-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.gallery a:hover img { transform: scale(1.05); }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours th { text-align: left; color: var(--ink-70); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours small { margin-left: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; padding: 3px 8px; border-radius: 999px; background: var(--navy); color: var(--paper); }
.hours tr.today th, .hours tr.today td { color: var(--ink); font-weight: 500; }
.hours-box:has(.hours-more[open]) .hours-today { display: none; }
.hours-more summary { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 4px 0; cursor: pointer; list-style: none; font-size: 14px; font-weight: 500; color: var(--ink); }
.hours-more summary::-webkit-details-marker { display: none; }
.hours-more summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.hours-more summary .i { transition: transform .3s var(--ease-out); }
.hours-more[open] summary { margin: 0 0 6px; }
.hours-more[open] summary .i { transform: rotate(180deg); }
.hours-more .hm-close, .hours-more[open] .hm-open { display: none; }
.hours-more[open] .hm-close { display: inline; }
.kv { display: grid; gap: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 24px; padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); }
.kv dd { font-weight: 500; text-align: right; }
.addr-list { display: flex; flex-direction: column; }
.addr-list li { display: flex; flex-direction: column; gap: 4px; padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.addr-list b { font-weight: 500; font-size: clamp(16px, 1.2vw, 18px); letter-spacing: -.03em; }
.addr-list small { color: var(--muted); }
.addr-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; font-size: 13px; }
.addr-links a { color: var(--ink-70); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.addr-links a:hover { color: var(--ink); text-decoration-color: currentColor; }
.split-owner .split-r p { font-size: clamp(15px, 1.1vw, 17px); line-height: 1.45; color: var(--ink-70); max-width: 620px; }
.split-owner .small { font-size: 13px; margin-top: 24px; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.sticky-cta { display: none; }

/* ---------- Prose ---------- */
.prose { font-size: 16px; line-height: 1.7; color: var(--ink-70); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(20px, 1.7vw, 26px); line-height: 1.1; letter-spacing: -.035em; color: var(--ink); margin-top: 2em; }
.prose h3 { font-size: 18px; color: var(--ink); margin-top: 1.6em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul { list-style: none; padding: 0; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 1px; background: var(--navy); }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .5em; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 24px; border-left: 2px solid var(--navy); font-size: 18px; letter-spacing: -.01em; color: var(--ink); }
.prose img { border-radius: var(--r); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 0; text-align: left; }
.seo-text { color: var(--muted); font-size: 15px; }
.seo-text h2 { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--ink); margin-bottom: 16px; }
.seo-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; max-width: 1100px; }
.seo-text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Article ---------- */
.post-head { padding-top: clamp(20px, 2.6vw, 36px); }
.post-head .pc-meta { margin-bottom: 16px; }
.post-head h1 { max-width: 18ch; }
.post-lead { margin-top: 18px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.35; letter-spacing: -.02em; color: var(--ink-70); max-width: 760px; }
.post-by { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-70); }
.post-by .btn { margin-left: auto; }
.post-img { margin: 32px 0 0; aspect-ratio: 21 / 9; border-radius: var(--r-lg); }
.post-img img { position: absolute; inset: 0; }
.post-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 3vw, 56px); margin-top: clamp(32px, 3.6vw, 56px); }
.post-grid > .post-body:only-child { grid-column: 2; }
.post-body { max-width: 760px; }
.toc { position: sticky; top: calc(var(--hdr) + 32px); align-self: start; }
.toc .lbl { margin-bottom: 18px; }
.toc ol { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.toc a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); transition: color .2s, padding .4s var(--ease-out); }
.toc a:hover, .toc a.is-active { color: var(--ink); padding-left: 10px; }
.post-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 48px; padding: 24px; border-radius: var(--r-lg); background: var(--navy); color: var(--paper); }
.post-cta b { display: block; font-size: 19px; font-weight: 500; letter-spacing: -.03em; }
.post-cta p { color: var(--p-70); margin-top: 6px; }
.post-disclaimer { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ---------- Legal ---------- */
.legal { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 3vw, 56px); margin-top: clamp(28px, 3vw, 48px); }
.legal-nav { display: flex; flex-direction: column; position: sticky; top: calc(var(--hdr) + 32px); align-self: start; border-top: 1px solid var(--line); }
.legal-nav a { padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--line); color: var(--muted); transition: color .2s, padding .4s var(--ease-out); }
.legal-nav a:hover, .legal-nav a[aria-current] { color: var(--ink); padding-left: 10px; }
.legal .prose { max-width: 780px; }
.legal .prose h2:first-child { margin-top: 0; }

/* ---------- Placement ---------- */
.biz-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.biz-points li { padding: 20px clamp(14px, 1.6vw, 24px) 0 0; }
.biz-points li + li { padding-left: clamp(14px, 1.6vw, 24px); border-left: 1px solid var(--line); }
.biz-points .i { margin-bottom: 24px; }
.biz-points h3 { font-size: 17px; letter-spacing: -.02em; margin-bottom: 6px; }
.biz-points p { color: var(--ink-70); font-size: 14px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.plan h3 { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.plan-price b { display: block; font-size: clamp(26px, 2.2vw, 34px); font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.plan-price span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }
.plan ul { display: flex; flex-direction: column; flex: 1; border-top: 1px solid var(--line); }
.plan li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.plan-accent { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.plan-accent ul, .plan-accent li { border-color: var(--p-line); }
.plan-accent .plan-price span { color: var(--p-55); }
.plan-badge { position: absolute; top: 22px; right: 22px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--p-line); color: var(--p-70); }
.apply { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 3vw, 56px); align-items: start; }
.apply-info { position: sticky; top: calc(var(--hdr) + 32px); display: flex; flex-direction: column; gap: 24px; font-size: 14px; }
.apply-steps { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.apply-steps li { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }

.apply-steps b { font-weight: 500; }
.apply-steps small { color: var(--muted); font-size: 13px; }
.apply-contacts { display: flex; flex-direction: column; gap: 4px; font-size: 16px; letter-spacing: -.02em; }
.apply-contacts .lbl { margin-bottom: 8px; }
.apply-contacts a:hover { text-decoration: underline; }
.requisites { font-size: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
.requisites summary { cursor: pointer; font-weight: 500; list-style: none; }
.requisites summary::-webkit-details-marker { display: none; }
.requisites summary::after { content: " +"; color: var(--muted); }
.requisites[open] summary::after { content: " −"; }
.requisites dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin-top: 14px; }
.requisites dt { color: var(--muted); }
.requisites dd { word-break: break-all; }
.apply-form { display: flex; flex-direction: column; gap: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 4px; }
.field legend small { text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea { width: 100%; height: 44px; padding: 0; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: transparent; outline: 0; font-size: 16px; letter-spacing: -.02em; transition: border-color .3s; }
.field select { appearance: none; cursor: pointer; background: linear-gradient(45deg, transparent 50%, var(--navy) 50%) right 6px center / 6px 6px no-repeat, linear-gradient(-45deg, transparent 50%, var(--navy) 50%) right 0 center / 6px 6px no-repeat; background-size: 6px 6px; background-position: calc(100% - 6px) 50%, 100% 50%; }
.field textarea { height: auto; min-height: 110px; padding: 14px 0; resize: vertical; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--navy); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-30); }
.field small { font-size: 12px; color: var(--muted); }
.field-err { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 13px; font-weight: 500; }
.field-err::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--navy); color: var(--paper); font-size: 11px; }
.check-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chips label { position: relative; cursor: pointer; }
.check-chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.check-chips span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; transition: all .25s; }
.check-chips input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.check-chips input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.check-chips input:disabled + span { opacity: .35; cursor: not-allowed; }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14px; color: var(--ink-70); }
.check input { appearance: none; width: 20px; height: 20px; margin: 0; border: 1px solid var(--line-2); border-radius: 6px; flex: none; cursor: pointer; display: grid; place-items: center; }
.check input:checked { background: var(--navy); border-color: var(--navy); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--paper); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check a { color: var(--ink); text-decoration: underline; }
.form-msg { padding: 16px 20px; border-radius: var(--r-sm); font-weight: 500; background: var(--tint-2); }
.form-msg.is-error { background: var(--navy); color: var(--paper); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Validation hint for fields without a .field wrapper (search pills); replaces the browser tooltip */
.hero-search, .search-page, .search-box { position: relative; }
.v-tip { position: absolute; left: 14px; top: calc(100% + 10px); z-index: 5; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 28px); padding: 9px 14px 9px 10px; border-radius: 999px; background: var(--navy); color: var(--paper); font-size: 13px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; box-shadow: 0 10px 30px rgb(24 31 43 / .22); animation: v-tip .3s var(--ease-out); }
.v-tip::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--paper); color: var(--navy); font-size: 11px; font-weight: 600; }
.v-tip::after { content: ""; position: absolute; left: 22px; bottom: 100%; border: 6px solid transparent; border-bottom-color: var(--navy); }
.hero-search .v-tip { background: var(--paper); color: var(--navy); }
.hero-search .v-tip::before { background: var(--navy); color: var(--paper); }
.hero-search .v-tip::after { border-bottom-color: var(--paper); }
@keyframes v-tip { from { opacity: 0; transform: translateY(-4px); } }
.field [aria-invalid="true"] { border-bottom-color: var(--navy); }
.upd { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 3vw, 56px); align-items: end; padding: clamp(24px, 3vw, 40px); border-radius: var(--r); background: var(--tint-2); }
.upd > p { color: var(--ink-70); font-size: 15px; max-width: 420px; }
.upd-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; }
.upd-form .field { flex: 1 1 260px; }
.upd-form .form-msg { flex-basis: 100%; }
@media (max-width: 860px) { .upd { grid-template-columns: minmax(0, 1fr); } .upd-form .btn { width: 100%; justify-content: center; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; font-size: clamp(15px, 1.2vw, 18px); letter-spacing: -.01em; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; background: linear-gradient(var(--navy), var(--navy)) center / 100% 1.5px no-repeat, linear-gradient(var(--navy), var(--navy)) center / 1.5px 100% no-repeat; transition: transform .4s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding-bottom: 18px; color: var(--ink-70); max-width: 720px; font-size: 15px; }

/* ---------- Search page & empty states ---------- */
.search-page { display: flex; align-items: center; gap: 10px; margin-top: 24px; height: 56px; padding: 0 6px 0 20px; border: 1px solid var(--line-2); border-radius: 999px; max-width: 720px; color: var(--muted); }
.search-page:focus-within { border-color: var(--navy); }
.search-page input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 16px; color: var(--ink); }
.search-page .btn { --bh: 44px; }
.search-cats { margin-bottom: 28px; }
.results-count { color: var(--muted); margin-bottom: 24px; }
.results-count b { color: var(--ink); font-weight: 500; }
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: clamp(32px, 5vw, 72px) 0; }
.empty p { color: var(--ink-70); max-width: 560px; font-size: 16px; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.big404 { font-size: clamp(96px, 14vw, 200px); line-height: .8; letter-spacing: -.03em; font-weight: 500; }
.ok-mark { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--navy); color: var(--paper); }
.skeleton { height: 300px; border-radius: var(--r-lg); background: linear-gradient(90deg, var(--tint) 25%, var(--tint-2) 50%, var(--tint) 75%); background-size: 200% 100%; animation: sk 1.4s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Calculators ---------- */
.calc-wrap { margin-top: clamp(24px, 3vw, 44px); }
.calc-tabs { display: flex; gap: 6px; padding-bottom: 20px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.calc-tabs button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; font-size: 14px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 500; white-space: nowrap; transition: background .25s, color .25s; }
.calc-tabs button[aria-selected="true"] { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.calc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 22px clamp(20px, 3vw, 56px); padding-top: clamp(24px, 3vw, 40px); align-items: start; }
.calc > h2, .calc > .muted, .calc > .surfaces, .calc > .btn, .calc > .form-grid, .calc > .link-arr { grid-column: 1; }
.calc > h2 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -.035em; }
.calc-out { grid-column: 2; grid-row: 1 / span 6; position: sticky; top: calc(var(--hdr) + 32px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; padding: 24px; border-radius: var(--r-lg); background: var(--navy); color: var(--paper); }
.calc-out div { display: flex; flex-direction: column; gap: 4px; }
.calc-out span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--p-55); }
.calc-out b { font-size: clamp(24px, 2vw, 32px); line-height: 1; letter-spacing: -.03em; font-weight: 500; font-variant-numeric: tabular-nums; }
.calc-out .calc-total { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--p-line); }
.calc-out .calc-total b { font-size: clamp(30px, 2.8vw, 42px); }
.calc-out p { grid-column: 1 / -1; color: var(--p-70); font-size: 15px; }
.surfaces { display: flex; flex-direction: column; gap: 16px; }
.surface { display: grid; grid-template-columns: 1fr 1fr 38px; gap: 16px; align-items: end; }
.surface:only-child [data-remove] { visibility: hidden; }
.calc > .btn { justify-self: start; }
.calc-note { margin-top: 32px; max-width: 760px; }

/* ---------- Footer ---------- */
.ftr { margin-top: clamp(72px, 8vw, 120px); background: var(--navy); color: var(--p-70); border-radius: var(--r-lg) var(--r-lg) 0 0; padding-top: clamp(40px, 4.4vw, 64px); overflow: hidden; }
.ftr .lbl { color: var(--p-55); margin-bottom: 14px; }
.ftr-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: clamp(32px, 3.6vw, 52px); border-bottom: 1px solid var(--p-line); }
.ftr-claim { font-size: clamp(24px, 2.6vw, 38px); line-height: 1.05; letter-spacing: -.03em; color: var(--paper); font-weight: 500; }
.ftr-claim span { color: var(--p-55); }
.ftr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 40px 0 32px; }
.ftr-links { display: grid; gap: 2px; font-size: 14px; }
/* 3px above and below each link: the same 30px rhythm as before, but every tap target is at
   least 24px tall (WCAG 2.5.8), so neighbouring links are not hit by mistake on a phone */
.ftr-links a { display: inline-block; padding: 3px 0; transition: color .2s; }
.ftr-links a:hover, .ftr-social a:hover { color: var(--paper); }
.ftr-social { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 12px; font-size: 13px; color: var(--p-55); }
.ftr-social a { display: inline-block; padding: 3px 0; transition: color .2s; }
.ftr-social:empty { display: none; }
.ftr-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-bottom: 24px; }
.ftr-meta .ftr-langs { margin: 0; }
.install-btn { margin: 0; }

.ftr-bottom .logo-word { font-size: 22px; }
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 20px 0 calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--p-line); font-size: 12px; color: var(--p-55); }
.ftr-bottom a:hover { color: var(--paper); }

/* ---------- Dialogs ---------- */
.dlg { width: min(520px, calc(100% - 32px)); max-height: min(720px, calc(100% - 48px)); padding: 22px; border: 0; border-radius: var(--r-lg); background: var(--paper); color: var(--ink); box-shadow: 0 40px 120px rgb(24 31 43 / .35); }
.dlg::backdrop { background: rgb(24 31 43 / .55); backdrop-filter: blur(6px); }
.dlg:focus, .dlg:focus-visible { outline: none; }
.dlg[open] { animation: pop .4s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.dlg-head h2 { font-size: 24px; letter-spacing: -.035em; }
.dlg-form { display: flex; flex-direction: column; gap: 18px; }
.link-btn { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

/* ---------- Language ---------- */
.lang-sw { display: inline-grid; place-items: center; height: 38px; min-width: 46px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; transition: background .3s var(--ease), color .3s, border-color .3s; }
.lang-sw:hover { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.ftr-langs { display: flex; gap: 16px; margin: 18px 0 14px; font-size: 13px; }
.ftr-langs a { color: var(--p-55); }
.ftr-langs a:hover, .ftr-langs a[aria-current] { color: var(--paper); }
.menu-lang { display: inline-block; margin: 4px 0 16px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.lang-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--tint); font-size: 14px; color: var(--ink-70); }
.pc-lang { padding: 0 8px; border-radius: 999px; border: 1px dashed var(--ink-30); font-size: 11px; }
.city-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 4px 0 8px; max-height: 480px; overflow: auto; }
.city-list a { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); transition: padding .35s var(--ease-out); }
.city-list a:hover { padding-left: 8px; }
.city-list a[aria-current] span { text-decoration: underline; text-underline-offset: 5px; }
.city-list span { font-size: 15px; letter-spacing: -.02em; font-weight: 500; }
.city-list small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dlg-search { width: 100%; max-width: 100%; margin: 0; max-height: 82vh; padding: 0; border-radius: 0 0 var(--r-xl) var(--r-xl); }
.dlg-search[open] { animation: drop .45s var(--ease-out); }
@keyframes drop { from { transform: translateY(-40px); opacity: 0; } }
.search-box { display: flex; align-items: center; gap: 14px; max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gut); border-bottom: 1px solid var(--line); color: var(--muted); }
.search-box input { flex: 1; height: 52px; border: 0; outline: 0; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -.02em; color: var(--ink); background: none; min-width: 0; }
.search-box input::placeholder { color: var(--ink-30); }
.suggest { max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gut) 28px; max-height: 64vh; overflow: auto; }
.suggest .lbl { margin: 8px 0 16px; }
.sg-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); transition: padding .35s var(--ease-out); }
.sg-item:hover, .sg-item.is-active { padding-left: 10px; }
.sg-item .cc-logo { width: 36px; height: 36px; border-radius: 10px; font-size: 13px; }
.sg-item b { display: block; font-weight: 500; font-size: 15px; letter-spacing: -.02em; }
.sg-item small { color: var(--muted); font-size: 13px; }
.sg-all { display: inline-flex; margin-top: 24px; }
.dlg-menu { margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(380px, 100%); border-radius: var(--r-lg) 0 0 var(--r-lg); display: flex; flex-direction: column; gap: 18px; }
.dlg-menu:not([open]) { display: none; }
.dlg-menu[open] { animation: slide .45s var(--ease-out); }
.dlg-menu .dlg-head { margin-bottom: 8px; }
.ios-steps { display: flex; flex-direction: column; margin-bottom: 22px; border-top: 1px solid var(--line); }
.ios-steps li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.4; color: var(--ink-70); }
.ios-steps li[hidden] { display: none; }
.ios-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--tint-2); color: var(--ink); }
.ios-ic svg { display: block; }
.ios-ic-logo { background: var(--navy); color: var(--paper); font-family: Arial, Helvetica, sans-serif; font-weight: 900; font-size: 20px; }
.dlg-menu .logo-word { font-size: 40px; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.menu-nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-bottom: auto; }
.menu-nav a { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 22px; letter-spacing: -.03em; font-weight: 500; }

.lightbox { width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: rgb(24 31 43 / .96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--r); }
.lightbox .circle { position: absolute; border-color: var(--p-line); color: var(--paper); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; }
.lb-next { right: 20px; top: 50%; }
.toast { position: fixed; left: 50%; bottom: 32px; z-index: 90; transform: translateX(-50%); padding: 14px 22px; border-radius: 999px; background: var(--navy); color: var(--paper); font-weight: 500; box-shadow: 0 20px 60px rgb(24 31 43 / .3); animation: pop .3s var(--ease-out); max-width: calc(100% - 32px); text-align: center; }
/* Messages appear above the request bar, not on top of it */
body:has(.req-bar:not([hidden])) .toast { bottom: 92px; }
.tabbar { display: none; }

/* ---------- Scroll reveal ----------
   Nothing is hidden in advance. site.js adds .reveal to a block from below the fold just before
   it reaches the screen; the block fades in and rises. Blocks visible at load are left alone. */
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } }
[data-reveal].reveal { animation: reveal 1s var(--ease-out) backwards; animation-delay: var(--d, 0s); }
/* Items side by side in a grid appear one after another */
:is(.cards, .posts-grid, .calc-row, .steps, .biz-points, .plans) > :nth-child(3n+2) { --d: .08s; }
:is(.cards, .posts-grid, .calc-row, .steps, .biz-points, .plans) > :nth-child(3n) { --d: .16s; }
/* Lower sections are laid out only when they come near the screen, so the first paint does not
   wait for the whole page. The first section after the page head is excluded: it is often visible
   at once. site.js sets .cv-off when the visit jumps to a place on the page (#anchor, back/forward,
   reload) so the browser scrolls by real heights, not estimates. The clip margin keeps focus rings
   and the reveal slide from being cut at section edges; browsers without it render as before. */
@supports (overflow-clip-margin: content-box 1px) {
  html:not(.cv-off) main > :is(.section, .section-sm):not(:is(.hero, .marquee-wrap, .page-head, .cat-nav) + *) {
    content-visibility: auto; contain-intrinsic-size: auto 600px; overflow-clip-margin: 40px;
  }
}
/* Invisible 8px marker at the very top: when it leaves the screen the header gets its border */
.top-mark { position: absolute; top: 0; left: 0; width: 1px; height: 8px; pointer-events: none; }
/* Hero title lines slide up with CSS only (lines are split on the server) */
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .ln > span { display: inline-block; animation: line-up 1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * .08s); }
@keyframes line-up { from { transform: translateY(105%); } }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .nav { display: none; }
  .burger { display: inline-grid; }
  .hdr-in { grid-template-columns: 1fr auto; }
  .cards, .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-hero { grid-template-columns: minmax(0, 1fr) 360px; }
  .calc-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :root { --hdr: 58px; }
  .hide-m, .burger { display: none; }
  .hdr-in { gap: 12px; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); background: rgb(244 246 249 / .9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; font-size: 11px; font-weight: 500; color: var(--muted); }
  .tabbar [aria-current] { color: var(--ink); }
  .tabbar .fav-count { top: 0; right: calc(50% - 22px); }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .hero-panel { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hero-media { min-height: 420px; }
  .hero-search { height: 52px; padding-left: 16px; }
  .hero-search .btn { --bh: 40px; }
  .hero-search .btn .arr { display: none; }
  .hero-caption { display: none; }
  .sh { grid-template-columns: minmax(0, 1fr) auto; }
  .sh .link-arr { font-size: 0; gap: 0; }
  .hero-search { min-width: 0; width: 100%; }

  .cat-index { grid-template-columns: minmax(0, 1fr); }
  .cat-index a { grid-template-columns: minmax(0, 1fr) auto 32px; min-height: 54px; }
  .ci-ic { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .steps li + li { padding-left: 0; border-left: 0; }

  .rows a { grid-template-columns: minmax(0, 1fr) 42px; gap: 6px 16px; padding: 20px 0; }
  .rows time { grid-column: 1; order: -1; }
  .rows-rub { display: none; }
  .rows .arr { grid-row: 1 / 3; grid-column: 2; }
  .promo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "text" "btn"; min-height: 300px; }
  .promo .btn { justify-self: start; margin-top: 16px; }
  .split, .post-grid, .legal, .apply { grid-template-columns: minmax(0, 1fr); }
  .split-l, .toc, .legal-nav, .apply-info { position: static; }
  .post-grid > .post-body:only-child { grid-column: 1; }
  .co-hero { grid-template-columns: minmax(0, 1fr); }
  /* Full-width panel: number, buttons, icons and note all on the centre line */
  .co-contact { position: static; text-align: center; }
  .co-icons { justify-content: center; }
  .co-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-facts > div, .co-facts > div + div { padding: 16px 12px 16px 0; margin: 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .svc-list { grid-template-columns: minmax(0, 1fr); }
  .sticky-cta { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 44; display: flex; gap: 8px; padding: 8px; border-radius: 999px; background: rgb(244 246 249 / .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); transform: translateY(160%); transition: transform .5s var(--ease-out); }
  .sticky-cta.is-shown { transform: none; }
  /* The request bar sits above the tab bar, and above the call bar when that one is shown */
  .req-bar { bottom: calc(76px + env(safe-area-inset-bottom)); max-width: calc(100% - 24px); }
  body:has(.sticky-cta.is-shown) .req-bar { bottom: calc(146px + env(safe-area-inset-bottom)); }
  .lead-grid { grid-template-columns: minmax(0, 1fr); }
  .hours-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Pages with the call bar: the footer's last row (copyright, «Наверх») ends above the bar, not behind it */
  body:has(.sticky-cta) .ftr-bottom { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .cc-foot .ph-num { display: none; }
  .cc-foot .ph-call { display: inline; }
  .sticky-cta .btn { flex: 1; --bh: 42px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc-out { grid-column: 1; grid-row: auto; position: static; }
  .ftr { border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-cols { grid-template-columns: minmax(0, 1fr); }
  .city-list { grid-template-columns: minmax(0, 1fr); }
  .dlg-menu { border-radius: 0; width: 100%; }
  .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
  body:has(.req-bar:not([hidden])) .toast { bottom: calc(140px + env(safe-area-inset-bottom)); }
  .post-cta { flex-direction: column; align-items: flex-start; }
  .post-img { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
}
@media (max-width: 640px) {
  .city-btn { height: 32px; padding: 0 10px 0 12px; font-size: 13px; }
  .city-btn span { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .logo-word { font-size: 24px; }
  .hdr-brand { gap: 10px; }
  .hero-lbl { gap: 12px; font-size: 11px; }
  .hero-lbl span + span::before { margin-right: 12px; }
  .hero-media { min-height: 440px; }
  .cards, .posts-grid, .calc-row { grid-template-columns: minmax(0, 1fr); }
  .cat-nav-in { display: none; }
  .cat-select { display: flex; }
  .cc { min-height: 0; padding: 18px; }
  .cc-name { margin-top: 20px; }
  .calc-tile { min-height: 120px; gap: 24px; }
  .biz-points { grid-template-columns: minmax(0, 1fr); }
  .biz-points li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .co-btns { grid-template-columns: minmax(0, 1fr); }
  .ftr-grid { gap: 28px 16px; padding-top: 32px; }
  .surface { grid-template-columns: 1fr 1fr 40px; gap: 12px; }
  .search-page { height: 50px; padding-left: 16px; }
  .search-page .btn { --bh: 40px; }
  .dlg { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .marquee-toggle { display: none; }
}
@media print {
  .hdr, .ftr, .tabbar, .sticky-cta, .co-contact, .marquee, .marquee-toggle { display: none !important; }
  [data-reveal] { animation: none !important; }
  main > * { content-visibility: visible !important; }
}
