/* ==========================================================================
   МастерНаДом — design system (mobile-first)
   Motion: transform/opacity only, 120–280ms, strong ease-out, reduced-motion aware.
   ========================================================================== */

:root {
  --primary: #1D4ED8;
  --primary-hover: #1E40AF;
  --primary-50: #EFF6FF;
  --primary-100: #DBEAFE;
  --accent: #EA580C;
  --accent-hover: #C2410C;
  --accent-50: #FFF7ED;
  --navy: #0F172A;
  --navy-2: #1E293B;
  --success: #059669;
  --success-50: #ECFDF5;
  --warn: #B45309;
  --warn-50: #FFFBEB;
  --danger: #DC2626;
  --star: #F59E0B;

  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --subtle: #F1F5F9;
  --text: #0F172A;
  --muted: #64748B;
  --faint: #94A3B8;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 8px 20px -6px rgba(15, 23, 42, .12), 0 2px 6px -2px rgba(15, 23, 42, .06);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, .22);
  --ring: 0 0 0 3px rgba(29, 78, 216, .25);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-full: 999px;

  /* Motion tokens (Emil Kowalski curves) */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --t-press: 120ms;
  --t-fast: 160ms;
  --t-base: 220ms;
  --t-slow: 280ms;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font);
  --header-h: 60px;
  --dock-h: 64px;
  --max: 1200px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--primary); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
ul[class], ol[class] { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; letter-spacing: -.02em; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.75rem); font-weight: 800; }
h2, .h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem); font-weight: 800; }
h3, .h3 { font-size: 1.15rem; font-weight: 700; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); }
.skip-link:focus { top: 8px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: .9em; }
.center { text-align: center; }
[hidden] { display: none !important; }

.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--xs { width: 14px; height: 14px; }
.icon--inline { display: inline-block; vertical-align: -4px; width: 18px; height: 18px; margin-right: 6px; }
.icon--inline.ok { color: var(--success); }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 16px; }
.container--narrow { max-width: 820px; }
.section { padding-block: 48px; }
.section--tight { padding-block: 28px; }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.split { display: grid; gap: 28px; }
.split > * > h2 { margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.cards-2, .cards-3 { display: grid; gap: 16px; }
.prose { color: #334155; font-size: 1.02rem; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }

@media (min-width: 640px) {
  .container { padding-inline: 24px; }
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .section { padding-block: 72px; }
  .section--tight { padding-block: 40px; }
  .split { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .split--media { align-items: center; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- buttons ---------- */
.btn {
  --_bg: var(--surface); --_fg: var(--text); --_bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--r-md);
  background: var(--_bg); color: var(--_fg); border: 1px solid var(--_bd);
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent; position: relative;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn--primary, .btn-primary { --_bg: var(--primary); --_fg: #fff; --_bd: var(--primary); }
.btn--accent, .btn-accent { --_bg: var(--accent); --_fg: #fff; --_bd: var(--accent); box-shadow: 0 6px 16px -6px rgba(234, 88, 12, .55); }
.btn--outline, .btn-outline { --_bg: var(--surface); --_fg: var(--text); --_bd: var(--border-strong); }
.btn--ghost { --_bg: transparent; --_fg: var(--primary); --_bd: transparent; }
.btn--light { --_bg: #fff; --_fg: var(--navy); --_bd: #fff; }
.btn--sm, .btn-sm { min-height: 36px; padding: 6px 12px; font-size: .875rem; border-radius: var(--r-sm); }
.btn--lg, .btn-lg { min-height: 52px; padding: 14px 22px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover, .btn-primary:hover { --_bg: var(--primary-hover); --_bd: var(--primary-hover); }
  .btn--accent:hover, .btn-accent:hover { --_bg: var(--accent-hover); --_bd: var(--accent-hover); }
  .btn--outline:hover, .btn-outline:hover { --_bd: var(--primary); --_fg: var(--primary); }
  .btn--ghost:hover { --_bg: var(--primary-50); }
  .btn--light:hover { --_bg: var(--primary-50); }
}
.btn[disabled], .btn.is-loading { pointer-events: none; }
.btn .spinner { position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; opacity: 0; transform: scale(.6);
  transition: opacity var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.btn .btn__label { transition: opacity var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.btn.is-loading .btn__label { opacity: 0; transform: translateY(-4px); }
.btn.is-loading .spinner { opacity: 1; transform: scale(1); animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-btn { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .95rem; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover .icon { transform: translateX(3px); } }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); color: var(--text);
  transition: background-color var(--t-fast) var(--ease-out), transform var(--t-press) var(--ease-out); }
.icon-btn:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--subtle); } }

/* ---------- badges, tags, chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-full); font-size: .78rem; font-weight: 600; background: var(--primary-50); color: var(--primary); }
.badge--success { background: var(--success-50); color: var(--success); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .78rem; font-weight: 600; background: var(--primary-50); color: var(--primary); }
.tag--muted { background: var(--subtle); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 500; font-size: .92rem;
  transition: border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), transform var(--t-press) var(--ease-out); }
.chip .icon { width: 16px; height: 16px; color: var(--primary); }
.chip small { color: var(--faint); font-size: .78rem; }
.chip:hover { text-decoration: none; }
.chip:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { a.chip:hover { border-color: var(--primary); color: var(--primary); } }
.chip--static { cursor: default; }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #22C55E; display: inline-block; flex-shrink: 0; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22C55E; animation: ping 2s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- topbar + header ---------- */
.topbar { display: none; background: var(--navy); color: #CBD5E1; font-size: .84rem; }
.topbar__inner { display: flex; align-items: center; gap: 20px; min-height: 40px; }
.topbar__status { display: inline-flex; align-items: center; gap: 8px; }
.topbar__links { margin-left: auto; display: flex; gap: 18px; }
.topbar__links a { color: #CBD5E1; }
.topbar__links a:hover { color: #fff; }
.topbar .city-btn { color: #fff; }

.city-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; padding: 6px 8px; margin-left: -8px; border-radius: var(--r-sm);
  transition: background-color var(--t-fast) var(--ease-out); }
.city-btn .icon { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .city-btn:hover { background: rgba(255, 255, 255, .1); } }
.city-btn--block { width: 100%; margin: 0; padding: 12px 14px; justify-content: flex-start; background: var(--subtle); border-radius: var(--r-md); }
.city-btn--block span { flex: 1; text-align: left; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--border); transition: box-shadow var(--t-base) var(--ease-out); }
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo b { color: var(--primary); font-weight: 800; }
.logo__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--primary); color: #fff; }
.logo__mark .icon { width: 20px; height: 20px; }
.logo--light { color: #fff; }
.logo--light b { color: #93C5FD; }
.nav { display: none; }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.header__phone, .header__cta, .messengers--header { display: none; }
.header__call { color: var(--primary); }

@media (min-width: 1024px) {
  :root { --header-h: 72px; --dock-h: 0px; }
  .topbar { display: block; }
  .nav { display: flex; gap: 4px; margin-left: 24px; }
  .nav a { position: relative; padding: 8px 12px; border-radius: var(--r-sm); color: var(--text); font-weight: 500; font-size: .95rem; transition: color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out); }
  .nav a:hover { text-decoration: none; background: var(--subtle); }
  .nav a[aria-current="page"] { color: var(--primary); }
  .nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--primary); }
  .header__actions { gap: 16px; }
  .header__phone { display: flex; flex-direction: column; align-items: flex-end; color: var(--text); line-height: 1.2; }
  .header__phone:hover { text-decoration: none; color: var(--primary); }
  .header__phone-num { font-weight: 800; font-size: 1.05rem; font-family: var(--font-display); white-space: nowrap; }
  .header__phone-hint { font-size: .75rem; color: var(--muted); }
  .header__cta { display: inline-flex; }
  .messengers--header { display: flex; }
  .header__call, .header__burger { display: none; }
}

/* ---------- messengers ---------- */
.messengers { display: flex; flex-wrap: wrap; gap: 8px; }
.msg { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 40px; height: 40px; padding: 0 10px; border-radius: var(--r-md);
  color: #fff; font-weight: 600; font-size: .9rem; transition: transform var(--t-press) var(--ease-out), filter var(--t-fast) var(--ease-out); }
.msg:hover { text-decoration: none; }
.msg:active { transform: scale(.95); }
.msg .icon { width: 20px; height: 20px; }
.msg--telegram { background: #229ED9; }
.msg--vk { background: #0077FF; }
.msg--max { background: linear-gradient(135deg, #4F46E5, #7C3AED); }
.msg--whatsapp { background: #16A34A; }
@media (hover: hover) and (pointer: fine) { .msg:hover { filter: brightness(1.08); } }
.messengers--header .msg { padding: 0; width: 40px; }
.messengers--block { flex-direction: column; }
.messengers--block .msg { height: 48px; justify-content: flex-start; padding: 0 16px; }
.messengers--light .msg { background: rgba(255, 255, 255, .14); }

/* ---------- hero (main) ---------- */
.hero { position: relative; overflow: hidden; padding-block: 28px 40px; background:
  radial-gradient(900px 400px at 85% -10%, rgba(59, 130, 246, .14), transparent 60%),
  radial-gradient(600px 300px at -10% 110%, rgba(234, 88, 12, .08), transparent 60%), var(--surface); border-bottom: 1px solid var(--border); }
.hero__grid { display: grid; gap: 32px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: var(--r-full); background: var(--success-50); color: var(--success); font-weight: 600; font-size: .85rem; margin-bottom: 16px; }
.hero__title { margin-bottom: 14px; }
.hero__lead { font-size: 1.08rem; color: #475569; max-width: 560px; margin-bottom: 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.hero__actions .btn { flex: 1 1 auto; }
.hero__msg { margin-bottom: 22px; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.perk { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); line-height: 1.35; }
.perk b { display: block; color: var(--text); font-size: .95rem; }
.perk__icon { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: var(--primary-50); color: var(--primary); }
.perk__icon .icon { width: 18px; height: 18px; }
.hero__media { display: none; position: relative; }
.hero__media img { width: 100%; aspect-ratio: 1200 / 670; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.hero__badge { position: absolute; left: -16px; bottom: 24px; display: flex; gap: 12px; align-items: center; padding: 12px 16px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.hero__badge b { display: block; font-size: .95rem; }
.hero__badge small { color: var(--muted); font-size: .8rem; }
.hero__badge-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--success-50); color: var(--success); }
@media (min-width: 900px) {
  .hero { padding-block: 56px 72px; }
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .hero__media { display: block; }
  .hero__actions .btn { flex: 0 0 auto; }
}
/* hero entrance: first paint, once, short stagger. Content is visible without JS (pure CSS). */
.js .hero__content > *, .js .hero__media { animation: rise 520ms var(--ease-out) both; }
.js .hero__content > *:nth-child(2) { animation-delay: 40ms; }
.js .hero__content > *:nth-child(3) { animation-delay: 80ms; }
.js .hero__content > *:nth-child(4) { animation-delay: 120ms; }
.js .hero__content > *:nth-child(5) { animation-delay: 160ms; }
.js .hero__content > *:nth-child(6) { animation-delay: 200ms; }
.js .hero__media { animation-name: rise-media; animation-delay: 120ms; animation-duration: 640ms; }
.js .hero__badge { animation: rise 420ms var(--ease-out) 520ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes rise-media { from { opacity: 0; transform: translateY(14px) scale(.985); } }

/* ---------- page hero / head ---------- */
.page-head { padding-block: 20px 24px; background: var(--surface); border-bottom: 1px solid var(--border); }
.page-head h1 { margin-bottom: 10px; }
.page-head__lead { color: var(--muted); font-size: 1.04rem; max-width: 720px; }
.page-hero { padding-block: 20px 32px; background: linear-gradient(180deg, var(--surface), var(--bg)); border-bottom: 1px solid var(--border); }
.page-hero__grid { display: grid; gap: 24px; }
.page-hero__main h1 { margin-bottom: 14px; }
.page-hero__main > * + * { margin-top: 14px; }
.page-hero__lead { color: #475569; font-size: 1.04rem; max-width: 640px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.page-hero__media { display: none; }
@media (min-width: 960px) {
  .page-head { padding-block: 28px 36px; }
  .page-hero { padding-block: 28px 56px; }
  .page-hero__grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; }
  .page-hero__form { position: sticky; top: calc(var(--header-h) + 16px); }
  .page-hero__media { display: block; align-self: center; }
}
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; padding: 0; font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 8px; color: var(--faint); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.crumbs [aria-current] { color: var(--text); font-weight: 500; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.fact { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--border); font-size: .88rem; font-weight: 500; }
.fact .icon { width: 16px; height: 16px; color: var(--primary); }
.fact--price { background: var(--accent-50); border-color: #FED7AA; }
.price { font-weight: 800; font-family: var(--font-display); color: var(--text); white-space: nowrap; }
.price small { font-weight: 600; color: var(--muted); font-size: .8em; }
.fact--price .price { font-size: 1.05rem; color: var(--accent-hover); }
.price--ask { font-weight: 600; font-family: var(--font); color: var(--muted); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--warn-50); color: var(--warn); font-size: .9rem; }
.jump { display: flex; gap: 8px; overflow-x: auto; margin-top: 18px; padding-bottom: 4px; scrollbar-width: none; }
.jump::-webkit-scrollbar, .pills::-webkit-scrollbar { display: none; }
.pills { scrollbar-width: none; }
.jump a { flex-shrink: 0; padding: 6px 12px; border-radius: var(--r-full); background: var(--subtle); color: var(--text); font-size: .88rem; font-weight: 500; transition: background-color var(--t-fast) var(--ease-out); }
.jump a:hover { text-decoration: none; background: var(--primary-100); }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-xs); }
.card--form { padding: 20px; box-shadow: var(--shadow-md); }
.card--warn { background: var(--warn-50); border-color: #FDE68A; }
.card--warn h2 { color: var(--warn); display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.card--warn .btn { margin-top: 16px; }
@media (min-width: 640px) { .card { padding: 28px; } }

/* tiles (categories) */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), border-color var(--t-fast) var(--ease-out); }
.tile:hover { text-decoration: none; }
.tile:active { transform: scale(.98); }
.tile__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-50); color: var(--primary); margin-bottom: 4px;
  transition: background-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out); }
.tile__icon .icon { width: 22px; height: 22px; }
.tile__name { font-weight: 700; font-size: .98rem; line-height: 1.3; }
.tile__meta { font-size: .85rem; color: var(--muted); margin-top: auto; }
.tile__arrow { position: absolute; top: 18px; right: 16px; width: 18px; height: 18px; color: var(--faint); opacity: 0; transform: translateX(-4px);
  transition: opacity var(--t-fast) var(--ease-out), transform var(--t-base) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-100); }
  .tile:hover .tile__icon { background: var(--primary); color: #fff; }
  .tile:hover .tile__arrow { opacity: 1; transform: none; color: var(--primary); }
}
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 14px; } .tile { padding: 20px; } }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tiles--compact .tile { flex-direction: row; align-items: center; gap: 12px; }
.tiles--compact .tile__icon { margin: 0; width: 38px; height: 38px; }
.tiles--compact .tile__meta { margin: 0 0 0 auto; padding-right: 22px; }
@media (max-width: 639px) { .tiles--compact { grid-template-columns: 1fr; } }

/* steps */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step { position: relative; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.section--alt .step { background: var(--bg); }
.step__num { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-family: var(--font-display); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .94rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps--compact { grid-template-columns: 1fr !important; text-align: left; margin: 20px 0; }
.steps--compact .step { display: flex; gap: 12px; align-items: center; padding: 12px 14px; }
.steps--compact .step__num { margin: 0; width: 30px; height: 30px; font-size: .9rem; }
.steps--compact .step p { color: var(--text); }

/* checklist */
.checklist { display: grid; gap: 12px; list-style: none; padding: 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li > .icon { margin-top: 2px; color: var(--success); }
.card--warn .checklist li > .icon { color: var(--warn); }
.checklist small { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.checklist span { font-weight: 500; }

.media-frame img { width: 100%; border-radius: var(--r-xl); aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-md); }

/* service list cards */
.svc-grid { display: grid; gap: 10px; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 100%; padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-md); color: var(--text);
  transition: border-color var(--t-fast) var(--ease-out), transform var(--t-press) var(--ease-out), box-shadow var(--t-base) var(--ease-out); }
.svc:hover { text-decoration: none; }
.svc:active { transform: scale(.985); }
.svc__name { font-weight: 600; }
.svc__name small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
.svc__price { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; color: var(--text); font-size: .92rem; }
.svc__price small { color: var(--muted); font-weight: 500; }
.svc__price .icon { width: 16px; height: 16px; color: var(--faint); }
@media (hover: hover) and (pointer: fine) { .svc:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); } }
.result-list { display: grid; gap: 8px; margin-top: 12px; }

/* catalog (all services) */
.catalog { display: grid; gap: 16px; }
@media (min-width: 768px) { .catalog { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .catalog { grid-template-columns: repeat(3, 1fr); } }
.catalog__cat { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: calc(var(--header-h) + 16px); }
.catalog__head { display: flex; gap: 12px; align-items: center; }
.catalog__head .tile__icon { margin: 0; }
.catalog__head h2 { font-size: 1.12rem; }
.catalog__head h2 a { color: var(--text); }
.catalog__list { display: grid; gap: 2px; list-style: none; padding: 0; flex: 1; }
.catalog__list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: .93rem; }
.catalog__list a { color: var(--text); }
.catalog__list a:hover { color: var(--primary); }
.catalog__list .price { font-size: .88rem; font-weight: 700; }

/* price table */
.ptable-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.ptable { width: 100%; border-collapse: collapse; font-size: .94rem; }
.ptable th { text-align: left; padding: 12px 16px; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--subtle); font-weight: 600; }
.ptable td { padding: 12px 16px; border-top: 1px solid var(--border); vertical-align: top; }
.ptable td a { color: var(--text); font-weight: 500; }
.ptable td a:hover { color: var(--primary); }
.ptable__price { text-align: right; white-space: nowrap; font-weight: 700; }
.ptable__unit { color: var(--muted); white-space: nowrap; }
.ptable tbody tr { transition: background-color var(--t-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .ptable tbody tr:hover { background: var(--primary-50); } }
@media (max-width: 559px) { .ptable__unit { display: none; } .ptable th, .ptable td { padding: 10px 12px; } }
.price-sections { display: grid; gap: 36px; }
.price-section { scroll-margin-top: calc(var(--header-h) + 16px); }
.price-section .section-head { margin-bottom: 12px; }
.price-section h2 a { color: var(--text); }
.filter { margin-top: 18px; max-width: 560px; }
.filter__empty { margin-top: 12px; }

/* search input */
.search-input { position: relative; flex: 1; }
.search-input > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search-input .input { padding-left: 44px; }
.search-input--lg .input { min-height: 52px; font-size: 1.02rem; }
.search-form { display: flex; gap: 8px; margin-top: 16px; }

/* reviews */
.review { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.review__head { display: flex; gap: 12px; align-items: center; }
.review__head > div:nth-child(2) { flex: 1; min-width: 0; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary-100); color: var(--primary); font-weight: 800; flex-shrink: 0; }
.review__name { font-weight: 700; }
.review__meta { font-size: .82rem; color: var(--muted); }
.review__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.review__text { color: #334155; }
.review__photos { display: flex; gap: 8px; }
.review__photos img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-sm); }
.review__reply { padding: 12px 14px; border-radius: var(--r-md); background: var(--subtle); font-size: .92rem; border-left: 3px solid var(--primary); }
.review__reply strong { display: block; font-size: .82rem; color: var(--primary); margin-bottom: 4px; }
.stars { display: inline-flex; gap: 1px; color: var(--star); }
.stars .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.stars .icon.is-off { color: var(--border-strong); }
.stars--lg .icon { width: 22px; height: 22px; }
.rating-summary { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 16px 0; padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.rating-summary__big { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; line-height: 1; }
.rating-summary span { color: var(--muted); font-size: .9rem; }
.rating-summary__facts { display: flex; gap: 24px; margin-left: auto; }
.rating-summary__facts dt { font-size: .78rem; color: var(--muted); }
.rating-summary__facts dd { font-weight: 800; font-size: 1.1rem; margin: 0; }
@media (max-width: 639px) { .rating-summary__facts { margin-left: 0; width: 100%; justify-content: space-between; } }
.pills { display: flex; gap: 8px; overflow-x: auto; margin-top: 16px; padding-bottom: 4px; }
.pill { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: var(--r-full); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: .88rem; font-weight: 500;
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out); }
.pill:hover { text-decoration: none; border-color: var(--primary); }
.pill[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 24px; }

/* cases */
.case { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.case__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.case__photos figure { position: relative; }
.case__photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.case__photos figcaption { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(15, 23, 42, .7); color: #fff; font-size: .75rem; font-weight: 600; }
.case__body { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.case__title { font-size: 1.05rem; }
.case__text { color: var(--muted); font-size: .93rem; }
.case__facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: auto; }
.case__facts dt { font-size: .75rem; color: var(--muted); }
.case__facts dd { margin: 0; font-weight: 700; font-size: .93rem; }
.case__quote { margin: 0; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--accent-50); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .9rem; color: #334155; }
.case__quote cite { display: block; margin-top: 4px; font-style: normal; color: var(--muted); font-size: .82rem; }

/* FAQ — button + panel (markup parsed by SEO for FAQPage). Without JS every answer is visible. */
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-base) var(--ease-out); }
.faq__item:has(> [aria-expanded="true"]) { border-color: var(--primary-100); box-shadow: var(--shadow-sm); }
.faq .accordion-trigger { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; font-weight: 600; text-align: left; -webkit-tap-highlight-color: transparent; }
.faq .accordion-trigger .icon { color: var(--muted); transition: transform var(--t-base) var(--ease-out), color var(--t-fast) var(--ease-out); }
.faq .accordion-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); color: var(--primary); }
.faq .accordion-content { padding: 0 18px 18px; color: #475569; }
.js .faq .accordion-trigger[aria-expanded="false"] + .accordion-content { display: none; }
.js .faq .accordion-trigger[aria-expanded="true"] + .accordion-content { animation: reveal-down var(--t-base) var(--ease-out); }
@keyframes reveal-down { from { opacity: 0; transform: translateY(-6px); } }
@media (hover: hover) and (pointer: fine) { .faq .accordion-trigger:hover { color: var(--primary); } }
.disclosure { margin-top: 28px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.disclosure summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.disclosure[open] summary { margin-bottom: 16px; color: var(--text); }
.disclosure[open] > :not(summary) { animation: reveal-down var(--t-base) var(--ease-out); }

/* CTA band, offer, b2b */
.cta-band { display: grid; gap: 20px; padding: 28px 22px; border-radius: var(--r-xl); color: #fff; background:
  radial-gradient(600px 240px at 100% 0, rgba(59, 130, 246, .45), transparent 60%), linear-gradient(135deg, var(--navy) 0%, #1E3A8A 100%); }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #CBD5E1; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (min-width: 960px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 40px 44px; } .cta-band__actions { justify-content: flex-end; max-width: 520px; } }
.offer, .b2b { display: grid; gap: 16px; align-items: center; padding: 22px; border-radius: var(--r-xl); border: 1px solid var(--border); background: var(--surface); }
.offer { background: var(--accent-50); border-color: #FED7AA; }
.offer__icon, .b2b__icon, .promo__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent); color: #fff; }
.b2b__icon { background: var(--navy); }
.b2b p, .offer p { color: var(--muted); margin-top: 6px; }
@media (min-width: 768px) { .offer, .b2b { grid-template-columns: auto 1fr auto; padding: 28px 32px; } }
.promo { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 12px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.stat b { display: block; font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }
.reqs { display: grid; gap: 10px; margin: 12px 0; }
.reqs dt { font-size: .8rem; color: var(--muted); }
.reqs dd { margin: 0; font-weight: 600; }

/* contacts */
.contacts { display: grid; gap: 20px; }
@media (min-width: 960px) { .contacts { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.contact-cards { display: grid; gap: 12px; }
@media (min-width: 640px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
.contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); color: var(--text);
  transition: border-color var(--t-fast) var(--ease-out), transform var(--t-press) var(--ease-out); }
a.contact-card:hover { text-decoration: none; border-color: var(--primary); }
a.contact-card:active { transform: scale(.98); }
.contact-card small { display: block; color: var(--muted); font-size: .82rem; }
.contact-card b { display: block; font-size: 1.1rem; font-family: var(--font-display); margin: 2px 0; }
.contact-card .messengers { margin-top: 8px; }
.contact-card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-50); color: var(--primary); flex-shrink: 0; }

/* documents, cities */
.doc-list { display: grid; gap: 8px; }
.doc { display: flex; gap: 14px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); color: var(--text);
  transition: border-color var(--t-fast) var(--ease-out), transform var(--t-press) var(--ease-out); }
.doc:hover { text-decoration: none; border-color: var(--primary); }
.doc:active { transform: scale(.99); }
.doc__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--subtle); color: var(--primary); }
.doc__body { flex: 1; }
.doc__body small { display: block; color: var(--muted); font-size: .82rem; }
.doc__arrow { color: var(--faint); transition: transform var(--t-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .doc:hover .doc__arrow { transform: translateX(3px); color: var(--primary); } }
.regions { columns: 1; column-gap: 24px; }
@media (min-width: 640px) { .regions { columns: 2; } }
@media (min-width: 1024px) { .regions { columns: 3; } }
.region { break-inside: avoid; margin-bottom: 24px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.region h2 { margin-bottom: 10px; }
.region__list { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.region__list a { color: var(--text); }
.region__list a:hover, .region__list a[aria-current] { color: var(--primary); }

/* thanks, 404, empty */
.thanks { text-align: center; padding: 36px 22px; }
.thanks h1 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.1rem); margin-bottom: 8px; }
.thanks__lead { color: var(--muted); font-size: 1.05rem; }
.thanks .messengers { justify-content: center; margin: 12px 0; }
.thanks__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.nf { text-align: center; }
.nf__code { font-family: var(--font-display); font-size: clamp(4rem, 3rem + 6vw, 7rem); font-weight: 800; line-height: 1; letter-spacing: -.05em;
  background: linear-gradient(135deg, var(--primary), #60A5FA); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { margin: 8px 0; }
.nf .search-form { max-width: 560px; margin: 24px auto; }
.nf .chips { justify-content: center; margin: 12px 0 24px; }
.nf__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.empty { padding: 32px 20px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); }
.empty .btn, .empty .messengers { margin-top: 16px; }
.empty .messengers { justify-content: center; }
.empty__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

/* ---------- forms ---------- */
.lead-form, .mini-form { display: grid; gap: 14px; }
.lead-form__head { margin-bottom: 2px; }
.lead-form__title { font-size: 1.2rem; }
.lead-form__sub { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.lead-form__note { text-align: center; color: var(--muted); font-size: .8rem; }
.field { display: grid; gap: 6px; }
.field label, .radios legend, .rating-input legend { font-size: .85rem; font-weight: 600; color: #334155; }
.field-row { display: grid; gap: 14px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.req { color: var(--accent); margin-left: 2px; }
.input, .input-control, .form-input {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface);
  font-size: 1rem; /* >=16px: no iOS zoom */ color: var(--text);
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
textarea.input { resize: vertical; min-height: 72px; }
.input::placeholder { color: var(--faint); }
.input:hover { border-color: var(--faint); }
.input:focus, .input-control:focus, .form-input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.field.is-invalid .input { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(220, 38, 38, .15); }
.field.is-invalid .input { animation: nudge 280ms var(--ease-out); }
@keyframes nudge { 20% { transform: translateX(-4px); } 50% { transform: translateX(3px); } 80% { transform: translateX(-1px); } }
.field__error { color: var(--danger); font-size: .82rem; min-height: 0; }
.field__error:empty { display: none; }
.form-error { padding: 10px 14px; border-radius: var(--r-md); background: #FEF2F2; color: var(--danger); font-size: .9rem; }
.form-error:not([hidden]) { animation: reveal-down var(--t-base) var(--ease-out); }

.form-more { border: 1px dashed var(--border-strong); border-radius: var(--r-md); }
.form-more summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; list-style: none; font-weight: 600; font-size: .9rem; color: var(--primary); }
.form-more summary::-webkit-details-marker { display: none; }
.form-more summary .icon { width: 18px; height: 18px; transition: transform var(--t-base) var(--ease-out); }
.form-more[open] summary .icon { transform: rotate(180deg); }
.form-more__body { display: grid; gap: 14px; padding: 0 14px 14px; }
.form-more[open] .form-more__body { animation: reveal-down var(--t-base) var(--ease-out); }
.file-drop { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--subtle); cursor: pointer; font-weight: 400 !important;
  transition: background-color var(--t-fast) var(--ease-out); }
.file-drop:hover { background: var(--primary-50); }
.file-drop .icon { color: var(--primary); }
.file-drop small { display: block; color: var(--muted); font-size: .78rem; }
.file-drop strong { color: var(--text); font-size: .92rem; }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop:focus-within { box-shadow: var(--ring); }
.file-list { font-size: .82rem; color: var(--muted); }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: .92rem; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; width: 40px; height: 24px; border-radius: 12px; background: var(--border-strong); transition: background-color var(--t-base) var(--ease-out); flex-shrink: 0; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform var(--t-base) var(--ease-out); }
.switch input:checked + .switch__track { background: var(--primary); }
.switch input:checked + .switch__track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__track { box-shadow: var(--ring); }
.switch:active .switch__track::after { transform: scale(.92); }
.switch input:checked:active + .switch__track::after { transform: translateX(16px) scale(.92); }
.company__fields { display: none; margin-top: 12px; }
.company:has(input:checked) .company__fields { display: grid; animation: reveal-down var(--t-base) var(--ease-out); }

.consents { display: grid; gap: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); cursor: pointer; line-height: 1.4; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { display: grid; place-items: center; width: 20px; height: 20px; flex-shrink: 0; border: 1.5px solid var(--border-strong); border-radius: 6px; background: var(--surface);
  transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out); }
.check__box .icon { width: 14px; height: 14px; color: #fff; stroke-width: 3; opacity: 0; transform: scale(.6); transition: opacity var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.check input:checked + .check__box { background: var(--primary); border-color: var(--primary); }
.check input:checked + .check__box .icon { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { box-shadow: var(--ring); }
.check.is-invalid .check__box { border-color: var(--danger); }
.check a { color: inherit; text-decoration: underline; }
.radios { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.radios legend { margin-bottom: 6px; }
.radio { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.radio input { accent-color: var(--primary); width: 18px; height: 18px; }
.mini-form .btn { justify-self: start; }
.mini-form .btn--block { justify-self: stretch; }

.form-success { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 8px 0; }
.form-success:focus { outline: none; }
.form-success__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--success-50); color: var(--success); }
.form-success__icon .icon { width: 28px; height: 28px; stroke-width: 2.5; }
.form-success__icon--lg { width: 72px; height: 72px; margin: 0 auto 16px; }
.form-success__icon--lg .icon { width: 36px; height: 36px; }
.form-success p { color: var(--muted); }
.form-success .messengers { justify-content: center; }
.lead-form.is-done > :not(.form-success) { display: none; }
.lead-form.is-done .form-success { animation: pop-in var(--t-slow) var(--ease-out); }
.lead-form.is-done .form-success__icon { animation: pop-in 360ms var(--ease-out) 80ms both; }
@keyframes pop-in { from { opacity: 0; transform: scale(.94); } }

.rating-input { border: 0; padding: 0; text-align: center; }
.rating-input__stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin-top: 6px; }
.rating-input__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input__stars label { cursor: pointer; color: var(--border-strong); transition: color var(--t-fast) var(--ease-out), transform var(--t-press) var(--ease-out); }
.rating-input__stars label .icon { width: 36px; height: 36px; fill: currentColor; stroke: none; }
.rating-input__stars label:active { transform: scale(.9); }
.rating-input__stars input:checked ~ label, .rating-input__stars label:hover, .rating-input__stars label:hover ~ label { color: var(--star); }
.rating-input__stars input:focus-visible + label { outline: 2px solid var(--primary); border-radius: 6px; }

/* ---------- footer ---------- */
.footer { margin-top: 0; background: var(--navy); color: #94A3B8; padding-block: 44px 24px; font-size: .92rem; }
.footer a { color: #CBD5E1; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: 28px; }
.footer__brand p { margin: 14px 0; max-width: 360px; }
.footer__phone { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: #fff !important; }
.footer__sub { display: block; margin-top: 4px; }
.footer__brand .messengers { margin-top: 14px; }
.footer h3 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer__legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; display: grid; gap: 8px; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: 8px; }
.footer .link-btn { color: #CBD5E1; font-weight: 400; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }

/* ---------- mobile dock (call / message / form) ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--border);
  transition: transform var(--t-slow) var(--ease-drawer); }
.dock.is-hidden { transform: translateY(110%); }
.dock__btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; border-radius: var(--r-md);
  font-size: .75rem; font-weight: 600; color: var(--text); background: var(--subtle); transition: transform var(--t-press) var(--ease-out); }
.dock__btn:hover { text-decoration: none; }
.dock__btn:active { transform: scale(.96); }
.dock__btn .icon { width: 20px; height: 20px; color: var(--primary); }
.dock__btn--accent { flex: 1.6; flex-direction: row; gap: 8px; font-size: .92rem; background: var(--accent); color: #fff; }
.dock__btn--accent .icon { color: #fff; }
@media (min-width: 1024px) { .dock { display: none; } }

/* ---------- modal + drawer ---------- */
.modal, .drawer { position: fixed; inset: 0; z-index: 100; display: flex; }
.modal { align-items: flex-end; justify-content: center; }
.modal::before, .drawer::before { content: ""; position: absolute; inset: 0; background: rgba(15, 23, 42, .5); opacity: 0; transition: opacity var(--t-base) var(--ease-out); }
.modal.is-open::before, .drawer.is-open::before { opacity: 1; }
.modal__dialog { position: relative; width: 100%; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
  border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--shadow-lg); transform: translateY(100%); transition: transform var(--t-slow) var(--ease-drawer); }
.modal.is-open .modal__dialog { transform: none; }
.modal__close { position: absolute; top: 10px; right: 10px; }
.modal__title { font-size: 1.3rem; padding-right: 40px; }
.modal__sub { color: var(--muted); font-size: .92rem; margin: 4px 0 18px; }
@media (min-width: 640px) {
  .modal { align-items: center; padding: 24px; }
  .modal__dialog { max-width: 480px; border-radius: var(--r-xl); padding: 28px; opacity: 0; transform: translateY(8px) scale(.97); transition: transform var(--t-base) var(--ease-out), opacity var(--t-base) var(--ease-out); }
  .modal.is-open .modal__dialog { opacity: 1; transform: none; }
  .modal__dialog--sm { max-width: 380px; }
}
.drawer__panel { position: relative; display: flex; flex-direction: column; gap: 16px; width: min(340px, 88vw); height: 100%; overflow-y: auto; background: var(--surface); padding: 12px 16px calc(20px + env(safe-area-inset-bottom));
  transform: translateX(-100%); transition: transform var(--t-slow) var(--ease-drawer); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; }
.drawer__title { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.drawer__nav { display: grid; }
.drawer__nav a { padding: 12px 4px; border-bottom: 1px solid var(--border); color: var(--text); font-weight: 500; }
.drawer__foot { margin-top: auto; display: grid; gap: 10px; }
.city-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px; max-height: 50vh; overflow-y: auto; margin: 14px 0; }
.city-list a { display: block; padding: 10px 12px; border-radius: var(--r-sm); color: var(--text); transition: background-color var(--t-fast) var(--ease-out); }
.city-list a:hover { text-decoration: none; background: var(--subtle); }
.city-list a[aria-current] { background: var(--primary-50); color: var(--primary); font-weight: 600; }
body.is-locked { overflow: hidden; }

/* ---------- cookie banner ---------- */
.cookie { position: fixed; left: 12px; right: 12px; bottom: calc(var(--dock-h) + 12px + env(safe-area-inset-bottom)); z-index: 70; display: grid; gap: 12px; padding: 16px; background: var(--navy); color: #CBD5E1;
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); font-size: .88rem; }
.cookie a { color: #93C5FD; }
.cookie__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie .btn--outline { --_bg: transparent; --_fg: #fff; --_bd: rgba(255, 255, 255, .3); }
.js .cookie { animation: slide-up var(--t-slow) var(--ease-drawer) 600ms both; }
.cookie.is-leaving { transform: translateY(16px); opacity: 0; transition: transform var(--t-base) var(--ease-out), opacity var(--t-base) var(--ease-out); }
@keyframes slide-up { from { transform: translateY(24px); opacity: 0; } }
@media (min-width: 768px) { .cookie { left: auto; right: 24px; bottom: 24px; max-width: 420px; } }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 50%; top: 16px; z-index: 150; display: grid; gap: 8px; transform: translateX(-50%); width: min(420px, calc(100vw - 24px)); pointer-events: none; }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: var(--r-md); background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); font-size: .92rem;
  opacity: 0; transform: translateY(-8px) scale(.98); transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out); pointer-events: auto; }
.toast.is-in { opacity: 1; transform: none; }
.toast--error { background: var(--danger); }

/* ---------- scroll reveal (JS adds .js; without JS everything is visible) ---------- */
.reveal-ready .reveal:not(.is-in), .reveal-ready .reveal-group:not(.is-in) > * { opacity: 0; transform: translateY(14px); }
.reveal-ready .reveal, .reveal-ready .reveal-group > * { transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
.reveal-ready .reveal-group > *:nth-child(2) { transition-delay: 50ms; }
.reveal-ready .reveal-group > *:nth-child(3) { transition-delay: 100ms; }
.reveal-ready .reveal-group > *:nth-child(4) { transition-delay: 150ms; }
.reveal-ready .reveal-group > *:nth-child(5) { transition-delay: 200ms; }
.reveal-ready .reveal-group > *:nth-child(6) { transition-delay: 240ms; }
.reveal-ready .reveal-group > *:nth-child(7) { transition-delay: 270ms; }
.reveal-ready .reveal-group > *:nth-child(n+8) { transition-delay: 300ms; }
/* after reveal, hover transitions must not inherit the stagger delay */
.reveal-ready .reveal-group.is-done > * { transition-delay: 0ms; transition-duration: var(--t-base); }

/* ---------- reduced motion: keep fades, drop movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; }
  .reveal-ready .reveal:not(.is-in), .reveal-ready .reveal-group:not(.is-in) > * { transform: none; }
  .modal__dialog, .drawer__panel, .dock, .toast, .tile, .btn, .chip, .svc { transition-property: opacity, background-color, border-color, color !important; }
  .modal__dialog, .drawer__panel { transform: none !important; }
  .modal:not(.is-open) .modal__dialog, .drawer:not(.is-open) .drawer__panel { opacity: 0; }
  .live-dot::after { display: none; }
}

/* category hero: image in the left column fills space beside the sticky form */
.page-hero__main .media-frame { margin-top: 24px; }
.page-hero__main .media-frame img { aspect-ratio: 16 / 8; }
.header__city { margin-left: 4px; font-size: .85rem; color: var(--muted); min-width: 0; }
.header__city span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 96px; }
.header__city .icon { color: var(--primary); }
@media (max-width: 359px) { .logo__text { display: none; } }
@media (min-width: 1024px) { .header__city { display: none; } }
