/* ЖКУ МО — стили сайта. Токены из брендбука https://claude.ai/artifact/JBJPVdEsgLMbf36m7utdCF */
@font-face { font-family: "Dela Gothic One"; src: url("/s/fonts/dela-cyr.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Dela Gothic One"; src: url("/s/fonts/dela-lat.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; src: url("/s/fonts/onest-cyr.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url("/s/fonts/onest-lat.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ground: #ffffff; --surface: #f3f5f9; --surface-2: #e9eef6;
  --ink: #14213d; --ink-2: #44506a; --line: #e3e7ef; --line-strong: #d5dbe6;
  --on-ink: #ffffff; --on-ink-2: #c5cee0; --ink-raised: #1e2d4f;
  --coral: #c93c1b; --coral-ink: #a8321a; --coral-tint: #ffe4da;
  --display: "Dela Gothic One", "Onest", sans-serif;
  --text: "Onest", "Segoe UI", system-ui, sans-serif;
  --r-sm: 12px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px;
  --gutter: 56px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.6 var(--text); caret-color: var(--coral); }
::selection { background: var(--coral-tint); color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: var(--coral-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--coral); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: 60px; line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-size: 40px; line-height: 1.08; }
h3 { font-size: 21px; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
.num, .price { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1680px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.lead { font-size: 19px; color: var(--ink-2); max-width: 620px; }
.muted { color: var(--ink-2); }
.section { padding-block: 80px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* кнопки */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: var(--r-md); font: 700 17px/1.2 var(--text); text-decoration: none; border: 0; cursor: pointer; transition: background .15s ease, box-shadow .15s ease; }
.btn-coral { background: var(--coral); color: var(--on-ink); }
.btn-coral:hover { background: #b23416; color: var(--on-ink); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: #22325a; color: var(--on-ink); }
.btn-ghost { background: var(--ground); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn .count { background: var(--on-ink); color: var(--coral); border-radius: 999px; min-width: 24px; height: 24px; padding: 0 6px; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }

/* шапка */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 32px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-name { font-family: var(--display); font-size: 22px; line-height: 1; white-space: nowrap; }
.logo-sub { display: block; font: 500 12px/1.2 var(--text); color: var(--ink-2); margin-top: 3px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; font-weight: 600; font-size: 16px; }
.nav > a, .nav-btn { color: var(--ink); text-decoration: none; padding: 9px 14px; border-radius: var(--r-sm); background: none; border: 0; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.nav > a:hover, .nav-btn:hover, .nav-btn[aria-expanded="true"] { background: var(--surface); color: var(--ink); }
.top-phone { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.top-tg { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; flex: none; }
.top-tg:hover { background: var(--surface-2); color: var(--coral-ink); }
.spacer { flex: 1; }
.burger { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); border: 0; background: var(--surface); align-items: center; justify-content: center; cursor: pointer; }

/* мегаменю */
.mega { position: absolute; left: 0; right: 0; top: 76px; background: var(--ground); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(20,33,61,.5); display: none; }
.mega.open { display: block; }
.mega-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 300px; gap: 26px 36px; padding-block: 30px 36px; }
.mega-col { display: flex; flex-direction: column; gap: 3px; }
.mega-col a { color: var(--ink); text-decoration: none; padding: 3px 0; }
.mega-col a:hover { color: var(--coral-ink); }
.mega-col .mega-head { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 20px; margin-bottom: 6px; }
.mega-col .mega-head img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.mega-col .all { font-weight: 700; color: var(--coral-ink); }
.mega-side { grid-row: span 2; display: flex; flex-direction: column; gap: 10px; }
.mega-side a { text-decoration: none; color: var(--ink); background: var(--surface); border-radius: 20px; padding: 16px 18px; display: block; }
.mega-side a strong { display: block; }
.mega-side a span { font-size: 14.5px; color: var(--ink-2); }
.mega-side .dark { background: var(--ink); color: var(--on-ink); }
.mega-side .dark span { color: var(--on-ink-2); }

/* мобильное меню */
.mmenu { position: fixed; inset: 0; z-index: 60; background: var(--ground); overflow-y: auto; padding: env(safe-area-inset-top) 16px 120px; display: none; }
.mmenu.open { display: block; }
.mmenu-head { display: flex; align-items: center; height: 68px; }
.mmenu details { background: var(--surface); border-radius: 18px; margin-bottom: 6px; }
.mmenu summary { list-style: none; display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 14px; font-weight: 700; font-size: 18px; cursor: pointer; }
.mmenu summary::-webkit-details-marker { display: none; }
.mmenu summary .dot { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.mmenu details a { display: block; padding: 8px 14px 8px 38px; color: var(--ink); text-decoration: none; }
.mmenu details a.all { font-weight: 700; color: var(--coral-ink); padding-bottom: 14px; }
.mmenu .links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.mmenu .links a { padding: 10px 14px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--ink); text-decoration: none; font-weight: 600; }

/* нижняя панель телефона */
.bbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px max(12px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); gap: 8px; }
.bbar .btn { flex: 1; min-height: 50px; font-size: 16px; }
.bbar .btn-ghost { flex: 0 0 auto; }

/* первый экран */
.hero { padding-block: 28px 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) min(46vw, 720px); grid-template-rows: auto 1fr; grid-template-areas: "head photo" "tools photo"; gap: 20px 56px; align-items: stretch; }
.hero-head { grid-area: head; display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.hero-tools { grid-area: tools; display: flex; flex-direction: column; gap: 14px; }
.hero-tools .hero-cta { margin-top: auto; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.photo { grid-area: photo; position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-xl); overflow: hidden; background: #ecebea; align-self: start; }
.photo-in { position: absolute; inset: 0; }
.photo-in > img { width: 100%; height: 100%; object-fit: cover; }
.hero-tools .zones { display: none; }
.pin { position: absolute; transform: translate(-18px, -50%); display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 0; background: rgba(255,255,255,.94); color: var(--ink); font: 700 14.5px/1 var(--text); cursor: pointer; box-shadow: 0 10px 24px -10px rgba(20,33,61,.55); transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.pin:hover { transform: translate(-18px, -50%) scale(1.04); }
.pin .mark { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font: 700 14px/1 var(--text); display: flex; align-items: center; justify-content: center; }
.pin.has .mark { background: var(--coral); }
.pin[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.pin[aria-pressed="true"] .mark { background: #33456f; }
.pin[aria-pressed="true"].has .mark { background: var(--coral); }
.zone-panel { background: var(--surface); border-radius: var(--r-lg); padding: 18px; }
.zone-panel h2 { font-size: 22px; line-height: 1.15; margin: 2px 4px 12px; }
.tasks { display: flex; flex-direction: column; gap: 6px; }
.task { font: 600 15.5px/1.3 var(--text); min-height: 48px; padding: 6px 12px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--ground); color: var(--ink); cursor: pointer; display: flex; gap: 10px; align-items: center; text-align: left; width: 100%; }
.task:hover { border-color: var(--ink); }
.task .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.task .name { flex: 1; }
.task .who { font-weight: 500; font-size: 13.5px; color: var(--ink-2); }
.task .ico-check { display: none; }
.task[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.task[aria-pressed="true"] .who { color: var(--on-ink-2); }
.task[aria-pressed="true"] .ico-plus { display: none; }
.task[aria-pressed="true"] .ico-check { display: block; }
.zones { display: flex; gap: 6px; flex-wrap: wrap; }
.zones button { font: 600 15px/1 var(--text); padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--ground); color: var(--ink); cursor: pointer; }
.zones button:hover { border-color: var(--ink); }
.zones button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

/* список дел */
.ticket { background: var(--ink); color: var(--on-ink); border-radius: var(--r-lg); padding: 22px 24px; }
.ticket-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.ticket-head h2 { font-size: 24px; }
.ticket-head span { color: var(--on-ink-2); font-weight: 600; }
.ticket-empty { color: var(--on-ink-2); margin: 6px 0 2px; }
.ticket-item { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px dashed #3a4b72; }
.ticket-item .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ticket-item .name { flex: 1; font-weight: 600; }
.ticket-item .who { font-size: 13.5px; color: var(--on-ink-2); }
.ticket-item button { width: 32px; height: 32px; border-radius: 10px; border: 0; background: var(--ink-raised); color: var(--on-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.ticket-foot { margin-top: 12px; color: var(--on-ink-2); font-size: 14.5px; }
.ticket .btn { width: 100%; margin-top: 14px; }
.picker details { background: var(--surface); border-radius: var(--r-lg); margin-bottom: 8px; }
.picker summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 12px 16px; cursor: pointer; font-family: var(--display); font-size: 21px; }
.picker summary::-webkit-details-marker { display: none; }
.picker summary img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.picker summary .chev { margin-left: auto; transition: transform .2s ease; }
.picker details[open] summary .chev { transform: rotate(180deg); }
.picker .tasks { padding: 0 16px 16px; }
.order-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.order-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }

/* мастера */
.masters { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.mt { background: var(--surface); border-radius: var(--r-xl); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.mt:hover { color: var(--ink); }
.mt-photo { aspect-ratio: 16 / 10; overflow: hidden; }
.mt-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.mt:hover .mt-photo img { transform: scale(1.03); }
.mt-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mt-name { font-family: var(--display); font-size: 32px; line-height: 1.05; }
.mt-text { color: var(--ink-2); }
.mt-more { font-weight: 700; color: var(--coral-ink); margin-top: auto; padding-top: 6px; }
.mt-big { grid-column: span 6; }
.mt-big .mt-photo { aspect-ratio: 16 / 9; }
.mt-big .mt-name { font-size: 40px; }
.mt-mid { grid-column: span 4; }
.mt-sm { grid-column: span 3; }
.mt-sm .mt-body { padding: 22px 24px 24px; }
.mt-sm .mt-name { font-size: 28px; }
.mt-wide { grid-column: span 12; flex-direction: row; align-items: stretch; }
.mt-wide { min-height: 240px; }
.mt-wide .mt-photo { width: 34%; aspect-ratio: auto; flex: none; position: relative; }
.mt-wide .mt-photo img { position: absolute; inset: 0; }
.mt-wide .mt-body { justify-content: center; }

/* переписка */
.chat-sec { background: var(--surface); }
.chat-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.chat-steps { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.chat-steps div { display: flex; gap: 14px; align-items: baseline; }
.chat-steps b { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--coral); }
.chat { background: var(--ground); border-radius: var(--r-xl); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.chat-top { display: flex; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-weight: 700; }
.bubble { max-width: 80%; padding: 12px 16px; border-radius: 20px; }
.bubble.me { align-self: flex-end; background: var(--ink); color: var(--on-ink); border-bottom-right-radius: 6px; }
.bubble.us { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 6px; }

/* авария */
.alarm { background: var(--ink); color: var(--on-ink); border-radius: var(--r-xl); padding: 36px 40px; display: flex; gap: 30px; align-items: center; }
.alarm-ico { width: 68px; height: 68px; border-radius: 20px; background: var(--coral); flex: none; display: flex; align-items: center; justify-content: center; }
.alarm h2 { font-size: 32px; line-height: 1.1; }
.alarm p { color: var(--on-ink-2); margin-top: 8px; }
.alarm .btn { background: var(--ground); color: var(--ink); }

/* хаб и услуга */
.crumbs { font-size: 15px; color: var(--ink-2); padding-top: 20px; }
.crumbs a { color: var(--ink-2); }
.hub-hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; padding-block: 16px 72px; }
.hub-card { background: var(--surface); border-radius: var(--r-xl); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 480px; }
.hub-text { padding: 44px; display: flex; flex-direction: column; gap: 18px; }
.hub-text h1 { font-size: 52px; }
.hub-text .hero-cta { margin-top: auto; }
.hub-photo img { width: 100%; height: 100%; object-fit: cover; }
.side { display: flex; flex-direction: column; gap: 16px; }
.box { background: var(--surface); border-radius: var(--r-lg); padding: 24px; }
.box h2, .box h3 { font-size: 22px; margin-bottom: 12px; }
.svc-groups { columns: 3; column-gap: 16px; }
.svc-groups > .box { break-inside: avoid; margin-bottom: 16px; }
.svc-row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.svc-row:last-child { border-bottom: 0; }
.svc-row > a { flex: 1; color: var(--ink); font-weight: 600; text-decoration: none; }
.svc-row > a:hover { color: var(--coral-ink); }
.svc-row .price { color: var(--ink-2); font-size: 15px; text-align: right; max-width: 48%; line-height: 1.3; }
.svc-price { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.svc-price b { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.1; color: var(--ink); }
.svc-price span { color: var(--ink-2); font-size: 15.5px; }
.svc-trust { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 14px; }
.svc-trust span { font-size: 14px; font-weight: 600; color: var(--ink); background: var(--surface); border-radius: 999px; padding: 6px 12px; }
.terms { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px 24px; }
.terms dt { font-weight: 700; margin-bottom: 4px; }
.terms dd { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.cond-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.cond-row:last-child { border-bottom: 0; }
.cond-row span { min-width: 0; }
.cond-row b { text-align: right; max-width: 55%; }
/* подпозиции под услугой на /ceny/ (база prices/prices.json) */
.price-sub { padding: 0 0 10px 14px; border-bottom: 1px solid var(--line); }
.price-sub .cond-row { padding: 5px 0; border-bottom: 0; font-size: 15px; }
.price-sub .cond-row span { color: var(--ink-2); }
.add { width: 38px; height: 38px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--ground); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.add .ico-check { display: none; }
.add[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.add[aria-pressed="true"] .ico-plus { display: none; }
.add[aria-pressed="true"] .ico-check { display: block; }
.dark-sec { background: var(--ink); color: var(--on-ink); }
.dark-sec .muted { color: var(--on-ink-2); }
.tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.tri > div { background: var(--ink-raised); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.tri b { font-size: 19px; }
.tri p { color: var(--on-ink-2); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps > div { background: var(--surface); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.steps b { font-size: 19px; color: var(--ink); }
.steps p { color: var(--ink-2); }
.steps .n { font-family: var(--display); font-size: 28px; color: var(--coral); line-height: 1; }
.cross { display: flex; flex-wrap: wrap; gap: 10px; }
.cross a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 12px 16px; border-radius: 16px; background: var(--surface); }
.cross a:hover { background: var(--surface-2); color: var(--ink); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 48px; }
.faq { background: var(--surface); border-radius: var(--r-lg); padding: 6px 28px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { font-weight: 700; font-size: 18px; cursor: pointer; }
.faq details p { margin-top: 8px; color: var(--ink-2); }
.cta-band { border-radius: var(--r-xl); padding: 40px 44px; display: flex; gap: 28px; align-items: center; background: var(--ink); color: var(--on-ink); }
.cta-band h2 { font-size: 34px; }
.cta-band .muted { color: var(--on-ink-2); }
.svc-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 48px; padding-block: 18px 64px; align-items: start; }
.svc-hero .hero-cta { margin-top: 24px; }
.svc-art { border-radius: var(--r-xl); aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.svc-art img { width: 100%; height: 100%; object-fit: cover; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards > div { background: var(--surface); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.cards b { font-size: 19px; }
.cards p { color: var(--ink-2); }
.pp { padding: 12px 0; border-bottom: 1px solid var(--line); }
.pp:last-child { border-bottom: 0; }
.pp p { color: var(--ink-2); margin-top: 2px; }
.check-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { padding-left: 30px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 6px; background: var(--ground); box-shadow: inset 0 0 0 1.5px var(--line-strong); }

/* форма */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.form input[type="text"], .form textarea { font: 400 17px/1.4 var(--text); border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 13px 15px; background: var(--ground); color: var(--ink); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; color: var(--ink-2); }
.form .check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--coral); flex: none; }
.form .hp { position: absolute; left: -9999px; }
.form-msg { border-radius: 14px; padding: 14px 16px; font-weight: 600; }
.form-msg.ok { background: #e2f3e6; color: #1f5c39; }
.form-msg.err { background: var(--coral-tint); color: #8e2911; }

/* блог */
.blog-bar { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.rubrics { display: flex; gap: 8px; flex-wrap: wrap; }
.rubrics a { text-decoration: none; color: var(--ink); background: var(--surface); padding: 9px 14px; border-radius: 999px; font-weight: 600; }
.rubrics a[aria-current="page"] { background: var(--ink); color: var(--on-ink); }
.tabs { display: inline-flex; background: var(--surface); border-radius: 999px; padding: 4px; }
.tabs button { font: 600 15px/1 var(--text); border: 0; background: none; color: var(--ink-2); padding: 10px 16px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ground); color: var(--ink); box-shadow: 0 2px 8px -4px rgba(20,33,61,.35); }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.post:hover { color: var(--ink); }
.post-cover { aspect-ratio: 16 / 9; overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.post-meta { font-size: 13.5px; color: var(--ink-2); display: flex; gap: 10px; flex-wrap: wrap; }
.post-title { font-weight: 700; font-size: 19px; line-height: 1.3; }
.empty { background: var(--surface); border-radius: var(--r-lg); padding: 40px; text-align: center; color: var(--ink-2); }
.article { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 1fr); gap: 56px; padding-block: 16px 64px; }
.article-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.article-head h1 { font-size: 48px; }
.article-cover { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 28px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 18px; line-height: 1.7; }
.prose h2 { font-size: 30px; margin: 40px 0 14px; }
.prose h3 { margin: 28px 0 10px; }
.prose p, .prose ul, .prose ol, .prose table, .prose blockquote { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--surface); }
.prose blockquote { border-radius: var(--r-md); background: var(--surface); padding: 16px 20px; }
.article-side { display: flex; flex-direction: column; gap: 16px; }
.prose a { color: var(--coral-ink); text-underline-offset: 3px; }
.prose a:hover { color: var(--coral); }
.prose h2 { scroll-margin-top: 96px; }

/* оглавление статьи: справа на компьютере, свёрнутое на телефоне */
.toc { position: sticky; top: 96px; padding: 4px 0 4px 18px; border-left: 2px solid var(--line); font-size: 15px; }
.toc-title { font-weight: 700; margin-bottom: 10px; }
.toc ol, .toc-m ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.toc a, .toc-m a { color: var(--ink-2); text-decoration: none; line-height: 1.35; display: block; }
.toc a:hover, .toc-m a:hover { color: var(--coral-ink); }
.toc a[aria-current="true"] { color: var(--ink); font-weight: 700; box-shadow: -20px 0 0 -18px var(--coral); }
.toc-m { display: none; background: var(--surface); border-radius: var(--r-md); padding: 0 18px; margin-bottom: 24px; }
.toc-m summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; }
.toc-m summary::-webkit-details-marker { display: none; }
.toc-m summary::after { content: "+"; color: var(--coral-ink); font-size: 22px; line-height: 1; }
.toc-m[open] summary::after { content: "\2212"; }
.toc-m ol { padding-bottom: 16px; }

/* правая колонка статьи: оглавление и короткая заявка липнут вместе и всегда влезают в экран,
   длинное оглавление сжимается и листается внутри (владелец 21.10) */
.side-stick { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 22px; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); }
.side-stick .toc { position: static; flex: 0 1 auto; min-height: 72px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.side-lead { flex: none; gap: 10px; background: var(--ink); color: var(--on-ink); border-radius: var(--r-lg); padding: 22px; }
.side-lead h3 { font-size: 20px; }
.side-lead > p:not(.form-msg) { color: var(--on-ink-2); font-size: 15px; line-height: 1.4; margin-bottom: 4px; }
.side-lead textarea, .side-lead input[type="text"] { font-size: 16px; padding: 11px 13px; border-color: transparent; resize: vertical; }
.side-lead .check { color: var(--on-ink-2); font-size: 13px; line-height: 1.35; }
.side-lead .check a { color: var(--on-ink); }
.side-lead .form-msg { font-size: 14px; padding: 10px 12px; }
.side-lead .btn { width: 100%; min-height: 48px; }
.side-lead-tel { color: var(--on-ink-2); font-size: 14px; text-align: center; text-decoration: none; }
.side-lead-tel:hover { color: var(--on-ink); }

/* источники и подпись редакции */
.sources { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.sources h2 { font-size: 26px; margin-bottom: 14px; scroll-margin-top: 96px; }
.sources ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.sources a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.sources a:hover { color: var(--coral-ink); }
.sources span { display: block; color: var(--ink-2); font-size: 14.5px; }
.byline { display: flex; gap: 16px; align-items: flex-start; margin-top: 32px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface); }
.byline .logo-mark { width: 48px; height: 48px; flex: none; }
.byline-text { display: flex; flex-direction: column; gap: 4px; }
.byline-text span { color: var(--ink-2); font-size: 15.5px; }
.byline-text a { color: var(--coral-ink); font-weight: 600; font-size: 15.5px; }

/* блоки статей (blocks.py, те же приёмы, что у Товарки и Кримпала) */
.ab-block { margin: 32px 0; border-radius: 20px; }
.prose .ab-block p, .prose .ab-block ul, .prose .ab-block ol { margin: 0; }
.ab-label { font-weight: 700; font-size: 17px; margin-bottom: 10px !important; }
.ab-cap { display: block; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.ab-key { background: var(--ink); color: var(--on-ink); padding: 24px 26px; }
.ab-key .ab-label { color: #ffb8a3; }
.ab-key ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.ab-key li::marker { color: #ffb8a3; }
.ab-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.ab-stat { border: 1.5px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
/* длинные значения («1–2 месяца», «1,9–5,7 °Ж») переносятся по пробелу, а не вылезают из карточки: страж 21.10.2026 */
.ab-num { font-family: var(--display); font-size: 26px; line-height: 1.1; color: var(--ink); overflow-wrap: anywhere; text-wrap: balance; }
.ab-meter { display: block; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.ab-fill { display: block; height: 100%; width: var(--ab-v, 0%); background: var(--coral); border-radius: 4px; }
.ab-terms { background: var(--surface); padding: 20px 24px; }
.ab-terms dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 16.5px; }
.ab-terms dt { font-weight: 700; }
.ab-terms dd { margin: 0; color: var(--ink-2); }
.ab-table { border: 1.5px solid var(--line); overflow: hidden; }
.ab-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose .ab-table table { display: table; margin: 0; min-width: 520px; font-size: 16px; }
.prose .ab-table th { background: var(--ink); color: var(--on-ink); font-weight: 700; border-bottom: 0; }
.prose .ab-table td { border-bottom: 1px solid var(--line); }
.prose .ab-table tr:last-child td { border-bottom: 0; }
.prose .ab-table td:first-child { font-weight: 600; }
.ab-table > .ab-cap { padding: 10px 14px; background: var(--surface); }
.ab-bars { border: 1.5px solid var(--line); padding: 20px 22px; }
.ab-bars figcaption { font-weight: 700; font-size: 17px; margin-bottom: 16px; }
.ab-chart { display: flex; align-items: flex-end; gap: 12px; height: 230px; }
.ab-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 0; text-align: center; }
.ab-val { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.ab-colbar { display: block; width: min(100%, 76px); margin-inline: auto; height: var(--ab-v, 0%); min-height: 4px; background: var(--coral); border-radius: 10px 10px 0 0; }
.ab-col .ab-cap { margin-top: 8px; font-size: 13.5px; hyphens: auto; }
.prose .ab-bars > .ab-cap { margin-top: 16px; }
.ab-note { padding: 18px 22px; border-left: 6px solid var(--line-strong); background: var(--surface); border-radius: 0 18px 18px 0; }
.ab-note .ab-label { margin-bottom: 6px !important; }
.ab-tip { border-left-color: var(--coral); }
.ab-tip .ab-label { color: var(--coral-ink); }
.ab-warning { border-left-color: #9f1d0f; background: var(--coral-tint); }
.ab-warning .ab-label { color: #9f1d0f; }
.ab-info { border-left-color: var(--ink-2); }
.ab-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ab-side { padding: 18px 22px; border-radius: 18px; }
.ab-side ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 16.5px; }
.ab-was { background: var(--surface); }
.ab-was li { color: var(--ink-2); }
.ab-now { border: 2px solid var(--coral); }
.ab-steps ol { list-style: none; counter-reset: ab; padding: 0; }
.ab-steps li { counter-increment: ab; position: relative; padding: 0 0 20px 54px; }
.ab-steps li::before { content: counter(ab); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ab-steps li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 42px; bottom: 2px; width: 2px; background: var(--line-strong); }
.ab-step { font-weight: 700; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-top: 6px !important; }
.ab-time { font-weight: 600; font-size: 14px; color: var(--coral-ink); background: var(--coral-tint); padding: 2px 10px; border-radius: 999px; }
.ab-steps li p:not(.ab-step) { color: var(--ink-2); font-size: 16.5px; }
/* блок-схема: шаги сверху вниз со стрелками, в конце развилка */
.ab-flow { background: var(--surface); padding: 22px 22px 26px; }
.ab-flow figcaption { font-weight: 700; font-size: 17px; margin-bottom: 18px; }
.ab-nodes { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; align-items: center; }
.ab-node { position: relative; width: min(100%, 460px); background: var(--ground); border: 1.5px solid var(--line-strong); border-radius: 16px; padding: 13px 18px; text-align: center; margin: 0 !important; }
.ab-node + .ab-node { margin-top: 34px !important; }
.ab-node + .ab-node::before, .ab-branches::before, .ab-branch::before { content: ""; position: absolute; left: 50%; width: 2px; background: var(--ink-2); transform: translateX(-1px); }
.ab-node + .ab-node::before { top: -30px; height: 24px; }
.ab-node + .ab-node::after, .ab-branch::after { content: ""; position: absolute; left: 50%; top: -9px; transform: translateX(-6px); border: 6px solid transparent; border-top: 7px solid var(--ink-2); border-bottom: 0; }
.ab-node-t { display: block; font-weight: 700; font-size: 16.5px; line-height: 1.35; }
.ab-node .ab-cap, .ab-branch .ab-cap { margin-top: 4px; }
.ab-q { background: var(--ink); border-color: var(--ink); color: var(--on-ink); border-radius: 999px; }
.ab-branches { list-style: none; position: relative; margin: 46px 0 0 !important; padding: 0 !important; display: grid; gap: 14px; }
.ab-branches.ab-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ab-branches.ab-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ab-branches.ab-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ab-branches::before { top: -46px; height: 22px; }
.ab-branches::after { content: ""; position: absolute; top: -24px; height: 2px; background: var(--ink-2); left: 25%; right: 25%; }
.ab-n3::after { left: calc(100% / 6); right: calc(100% / 6); }
.ab-n4::after { left: 12.5%; right: 12.5%; }
.ab-branch { position: relative; background: var(--ground); border: 1.5px solid var(--line-strong); border-radius: 16px; padding: 14px 16px 16px; margin: 0 !important; }
.ab-branch::before { top: -24px; height: 15px; }
.ab-tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--coral-ink); background: var(--coral-tint); border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }
.ab-check { border: 1.5px solid var(--line); padding: 20px 24px; }
.ab-check ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ab-check li { position: relative; padding-left: 34px; }
.ab-check li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 7px; background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 15px no-repeat; }
.ab-faq h2 { margin-top: 0 !important; }
.ab-faq details { border-bottom: 1px solid var(--line); }
.ab-faq summary { cursor: pointer; list-style: none; padding: 15px 36px 15px 0; font-weight: 700; position: relative; }
.ab-faq summary::-webkit-details-marker { display: none; }
.ab-faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 24px; color: var(--coral-ink); }
.ab-faq details[open] summary::after { content: "\2212"; }
.ab-faq details p { margin: 0 0 16px !important; color: var(--ink-2); }
.ab-service { background: var(--surface); padding: 22px; }
.ab-svc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.ab-svc { background: var(--ground); border-radius: 16px; display: flex; flex-direction: column; gap: 8px; padding: 16px; line-height: 1.35; }
.ab-svc-who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.ab-ava { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.prose .ab-svc-name { color: var(--ink); font-weight: 700; font-size: 17px; text-decoration: none; }
.prose .ab-svc-name:hover { color: var(--coral-ink); }
.ab-svc .ab-cap { flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ab-add { margin-top: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--ground); color: var(--ink); font: 600 15px/1 var(--text); cursor: pointer; }
.ab-add .ico-check, .ab-add .ab-on { display: none; }
.ab-add[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.ab-add[aria-pressed="true"] .ico-plus, .ab-add[aria-pressed="true"] .ab-off { display: none; }
.ab-add[aria-pressed="true"] .ico-check, .ab-add[aria-pressed="true"] .ab-on { display: inline; }
.ab-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 18px 22px; background: var(--surface); }
.prose .ab-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 14px; background: var(--coral); color: #fff; font-weight: 700; text-decoration: none; }
.prose .ab-btn:hover { background: var(--coral-ink); color: #fff; }
@media (max-width: 1100px) {
  .toc { display: none; }
  .toc-m { display: block; }
}
@media (max-width: 640px) {
  .ab-compare { grid-template-columns: 1fr; }
  .ab-terms dl { grid-template-columns: 1fr; gap: 2px; }
  .ab-terms dd { margin-bottom: 10px; }
  .ab-key, .ab-flow, .ab-service, .ab-bars, .ab-check { padding-inline: 16px; }
  .ab-chart { height: 190px; gap: 8px; }
  .ab-branches.ab-n2, .ab-branches.ab-n3, .ab-branches.ab-n4 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ab-branches::after, .ab-branch::before, .ab-branch::after { display: none; }
  .ab-branch { border-left: 5px solid var(--coral); }
  .byline { padding: 16px; }
  .svc-price b { font-size: 25px; }
  .ab-num { font-size: 22px; }
  .prose .ab-table table { display: block; min-width: 0; }
  .prose .ab-table thead { display: none; }
  .prose .ab-table tbody { display: block; }
  .prose .ab-table tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .prose .ab-table tr:last-child { border-bottom: 0; }
  .prose .ab-table td { display: grid; grid-template-columns: 38% minmax(0, 1fr); gap: 10px; padding: 3px 0; border: 0; font-size: 15.5px; }
  .prose .ab-table td::before { content: attr(data-label); color: var(--ink-2); font-size: 14px; }
  .prose .ab-table td:first-child { display: block; font-size: 17px; padding-bottom: 6px; }
  .prose .ab-table td:first-child::before { content: none; }
  .ab-chart { flex-direction: column; align-items: stretch; height: auto; gap: 12px; }
  .ab-col { display: grid; grid-template-columns: 36% minmax(0, 1fr) auto; grid-template-areas: "cap bar val"; align-items: center; gap: 10px; height: auto; text-align: left; }
  .ab-col .ab-cap { grid-area: cap; margin: 0; }
  .ab-colbar { grid-area: bar; height: 14px; width: var(--ab-v, 0%); min-width: 4px; margin: 0; border-radius: 0 7px 7px 0; }
  .ab-val { grid-area: val; margin: 0; }
}

/* подвал */
.foot { background: var(--ink); color: var(--on-ink-2); font-size: 15px; padding-block: 60px 36px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot a { color: var(--on-ink-2); text-decoration: none; }
.foot a:hover { color: var(--on-ink); }
.foot b { color: var(--on-ink); display: block; margin-bottom: 8px; }
.foot-col { display: flex; flex-direction: column; gap: 7px; }
.foot .big { color: var(--on-ink); font-weight: 700; font-size: 19px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #2a3a5e; font-size: 13.5px; }

@media (max-width: 1400px) {
  :root { --gutter: 40px; }
  h1 { font-size: 52px; }
  .svc-groups { columns: 2; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt-sm { grid-column: span 6; }
  .mega-in { gap: 24px 28px; grid-template-columns: repeat(4, minmax(0, 1fr)) 260px; }
}
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: flex; }
  .top-phone, .top-tg { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "photo" "tools"; }
  .hero-tools .zones { display: flex; }
  .hero-tools .hero-cta { margin-top: 0; }
  .hub-hero, .article { grid-template-columns: minmax(0, 1fr); }
  .article-side { position: static; }
  .side-stick { position: static; max-height: none; }
  .side-lead { max-width: 560px; }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-grid { grid-template-columns: minmax(0, 1fr); }
  .order-side { position: static; }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  h1, .article-head h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  .lead { font-size: 17px; }
  .section { padding-block: 52px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .top-in { height: 64px; gap: 10px; }
  .top-in .btn { display: none; }
  .logo-sub { display: none; }
  .mega { display: none !important; }
  .bbar { display: flex; }
  body { padding-bottom: 80px; }
  .photo { border-radius: 24px; }
  .masters { grid-template-columns: minmax(0, 1fr); }
  .mt-big, .mt-mid, .mt-sm, .mt-wide { grid-column: auto; }
  .mt-wide { flex-direction: column; }
  .mt-wide .mt-photo { width: 100%; aspect-ratio: 16 / 9; }
  .mt-name, .mt-big .mt-name, .mt-sm .mt-name { font-size: 30px; }
  .chat-grid, .faq-grid, .two, .tri, .steps, .posts, .cards { grid-template-columns: minmax(0, 1fr); }
  .svc-groups { columns: 1; }
  .hub-card { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hub-photo { order: -1; aspect-ratio: 16 / 10; }
  .hub-text { padding: 24px; }
  .hub-text h1 { font-size: 34px; }
  .svc-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .chat-grid { gap: 28px; }
  .alarm, .cta-band { flex-direction: column; align-items: stretch; padding: 26px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-grid > .foot-col:first-child { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; }
}
@media (max-width: 600px) {
  .pin { font-size: 11.5px; padding: 3px 9px 3px 3px; gap: 5px; transform: translate(-14px, -50%); }
  .pin:hover { transform: translate(-14px, -50%); }
  .pin .mark { width: 22px; height: 22px; font-size: 11px; }
  .hero-tools .zones { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .hero-tools .zones::-webkit-scrollbar { display: none; }
  .hero-tools .zones button { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* длинные подписи кнопок переносятся на узком телефоне, а не вылезают за край (страж Дом OS, 19.10) */
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; } h1 { hyphens: auto; } }

/* dev#16 2026-10-24: длинное слово в H1 статьи не помещалось в строку на телефоне и рвалось посреди слова */
@media (max-width: 480px) { .article-head h1 { font-size: clamp(22px, 7vw, 34px); } }

/* dev#18 2026-10-25: H2 статьи на телефоне был 30px, крупнее H1, и длинное слово рвалось посреди слова */
@media (max-width: 480px) { .prose h2 { font-size: clamp(20px, 6vw, 24px); } }

/* Блог и рубрики (29.10.2026): длинный заголовок рубрики как у статьи, вводный текст, анонс в карточке, мастер по теме */
.rubric-h1 { font-size: 48px; max-width: 980px; }
.rubric-lead { margin-top: 16px; }
.rubric-intro { max-width: 760px; margin-top: 14px; }
.rubric-intro p { margin: 0 0 12px; }
.rubric-intro p:last-child { margin-bottom: 0; }
.rubric-intro a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rubric-intro a:hover { color: var(--coral-ink); }
.post-desc { color: var(--ink-2); font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rubric-svc { max-width: 760px; }
.rubric-svc-note { max-width: 760px; margin: 14px 0 0; }
@media (max-width: 900px) { .rubric-h1 { font-size: 34px; } }
@media (max-width: 480px) { .rubric-h1 { font-size: clamp(22px, 7vw, 34px); } }
