/* kobozev-estate.ru · стили сайта · собрано build_prod.py */

:root {
  --linen: #F7F7F5; --paper: #ECECE8; --navy: #001F5B; --red: #C1121F; --blue: #1A6FBF;
  --ink: #001F5B; --ink-70: rgba(0,31,91,.72); --ink-55: rgba(0,31,91,.55); --ink-15: rgba(0,31,91,.15); --ink-06: rgba(0,31,91,.06);
  --linen-80: rgba(247,247,245,.8); --linen-65: rgba(247,247,245,.65); --linen-20: rgba(247,247,245,.2);
  --display: "PT Serif", Georgia, "Times New Roman", serif;
  --body: "PT Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 10px; --max: 1160px; --narrow: 760px;
  --gl: max(16px, env(safe-area-inset-left, 0px)); --gr: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
:root[data-theme="dark"] { color-scheme: light; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--linen); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; overflow-x: clip; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--linen); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.08; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
.step h3, .card h3, .tile h3, .pros .col h3 { hyphens: auto; }
h1 { font-size: clamp(34px, 5.4vw, 62px); }
h2 { font-size: clamp(27px, 3.4vw, 40px); }
h3 { font-size: clamp(20px, 2vw, 23px); }
h4 { font-size: 18px; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; }
.gutter { padding-left: var(--gl); padding-right: var(--gr); }
.in { max-width: var(--max); margin: 0 auto; min-width: 0; }
.in.narrow { max-width: var(--narrow); }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--ink-70); }
.u-red { text-decoration: none; padding-bottom: 0.06em; background: linear-gradient(var(--red), var(--red)) no-repeat 50% 100% / 75% 2px; }
.rule { width: 72px; height: 4px; background: var(--red); border-radius: 2px; }
.muted { color: var(--ink-70); }
.small { font-size: 14px; }
.mark { background: #fff3c4; border-radius: 3px; padding: 0 3px; }
section { padding-block: clamp(52px, 7vw, 96px); }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(26px, 4vw, 44px); max-width: 62ch; }
.sec-head p { color: var(--ink-70); }
.band { background: var(--paper); border-block: 1px solid var(--ink-15); }
.dark { background: var(--navy); color: var(--linen); }
.dark .eyebrow, .dark .muted, .dark .sec-head p { color: var(--linen-80); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 8px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn.primary { background: var(--red); color: var(--linen); }
.btn.navy { background: var(--navy); color: var(--linen); }
.btn.ghost { border-color: var(--ink-15); color: var(--ink); background: transparent; }
.btn.light { background: var(--linen); color: var(--navy); }
.btn.sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.dark .btn:focus-visible, .dark a:focus-visible { outline-color: var(--linen); }

/* Header */
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(247,247,245,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ink-15); }
header.site .in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.mono { width: 40px; height: 40px; border-radius: 22%; background: var(--navy); color: var(--linen); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 25px; line-height: 1; position: relative; flex: none; }
.mono::after { content: ""; position: absolute; right: 14%; bottom: 14%; width: 12%; height: 12%; background: var(--red); border-radius: 1px; }
.dark .mono { background: var(--linen); color: var(--navy); }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 23px; line-height: 1; display: grid; gap: 5px; }
.wordmark .n { text-decoration: none; white-space: nowrap; }
.wordmark .n .u { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: .09em; text-underline-offset: .16em; }
.wordmark .sub { font-family: var(--body); font-weight: 700; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-70); }
.dark .wordmark .sub { color: var(--linen-80); }
nav.main { display: flex; gap: 22px; font-size: 15px; font-weight: 400; }
nav.main a { text-decoration: none; color: var(--ink-70); white-space: nowrap; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--ink); }
nav.main a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.hdr-actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--ink-15); border-radius: 8px; background: transparent; cursor: pointer; place-items: center; color: var(--ink); }
.burger svg { width: 22px; height: 22px; }
.mobile-nav { display: none; border-top: 1px solid var(--ink-15); background: var(--paper); }
.mobile-nav .in { display: grid; gap: 4px; padding-block: 10px 16px; }
.mobile-nav a { padding: 12px 4px; text-decoration: none; font-weight: 400; border-bottom: 1px solid var(--ink-06); }
.mobile-nav .row { display: flex; gap: 10px; padding-top: 12px; flex-wrap: wrap; }

/* Hero */
.hero { padding-block: clamp(36px, 5vw, 72px) clamp(44px, 6vw, 88px); }
.hero .in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero .copy { display: grid; gap: 22px; min-width: 0; }
.hero .lead { font-size: 19px; color: var(--ink-70); max-width: 56ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--ink-70); }
.hero .facts b { color: var(--ink); font-weight: 700; }
.photo { position: relative; aspect-ratio: 4 / 5; max-width: 100%; }
.photo::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; background: var(--navy); border-radius: var(--r); }
.photo .ph { position: absolute; inset: 0; border-radius: var(--r); overflow: hidden; background: #d9d1c3; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.wide { aspect-ratio: 4 / 3; }
.photo.wide::before { inset: -20px 20px 20px -20px; }
.photo.tall { aspect-ratio: 3 / 4; }
.photo.tall::before { inset: 24px 24px -24px -24px; }
.photo .tag { position: absolute; left: 18px; bottom: 18px; background: var(--linen); color: var(--navy); padding: 9px 16px 9px 10px; border-radius: 99px; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.2; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.photo .tag b { display: block; font-size: 14px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards.five { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--linen); border: 1px solid var(--ink-15); border-radius: 12px; padding: 24px; display: grid; gap: 10px; align-content: start; text-decoration: none; min-width: 0; }
.card.on-paper { background: var(--paper); }
.card .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink-70); }
.card p { color: var(--ink-70); font-size: 15.5px; }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 15px; }
a.card:hover { border-color: var(--ink-55); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { display: grid; gap: 10px; padding-top: 18px; border-top: 2px solid var(--ink-15); align-content: start; min-width: 0; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--display); font-weight: 700; font-size: 30px; color: var(--red); line-height: 1; }
.step p { font-size: 15.5px; color: var(--ink-70); }
.with-photo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.with-photo .steps { grid-template-columns: 1fr 1fr; gap: 22px 24px; }

/* Cases */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case-grid.two { grid-template-columns: 1fr 1fr; }
.case { border: 1px solid var(--linen-20); border-radius: 12px; padding: 24px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.case .num { font-family: var(--display); font-weight: 700; font-size: 52px; line-height: 1; }
.case .num small { font-family: var(--body); font-size: 17px; font-weight: 700; margin-left: 6px; }
.case p { font-size: 15.5px; color: var(--linen-80); }
.case .lesson { font-weight: 700; border-top: 1px solid var(--linen-20); padding-top: 12px; }
.disclaimer { margin-top: 22px; font-size: 14px; color: var(--linen-65); }

/* Fresh (latest materials) */
.fresh { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { display: grid; gap: 10px; text-decoration: none; min-width: 0; }
.tile .cover { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--paper); border: 1px solid var(--ink-15); display: grid; align-content: end; padding: 16px; gap: 8px; }
.tile .cover .line { width: 48px; height: 4px; background: var(--red); border-radius: 2px; }
.tile .cover .t { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.15; }
.tile .cover.navy { background: var(--navy); color: var(--linen); border-color: var(--navy); }
.tile .meta { font-size: 13px; color: var(--ink-70); display: flex; gap: 10px; flex-wrap: wrap; }
.tile h3 { font-size: 19px; }
.tile:hover h3 { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* About short */
.about .in { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about .copy { display: grid; gap: 16px; min-width: 0; }
.about .copy p { max-width: 62ch; }
blockquote.pull { margin: 0; padding-left: 18px; border-left: 3px solid var(--red); font-family: var(--display); font-size: 22px; line-height: 1.3; }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 760px; }
.faq details { border-top: 1px solid var(--ink-15); }
.faq details:last-child { border-bottom: 1px solid var(--ink-15); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 44px 16px 0; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 22px; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 26px; }
.faq .a { padding: 0 0 18px; color: var(--ink-70); max-width: 62ch; display: grid; gap: 10px; }

/* Lead section + form */
.lead-sec .in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contacts { display: grid; gap: 12px; font-size: 17px; }
.contacts .big { font-family: var(--display); font-weight: 700; font-size: 24px; }
.contacts a { text-decoration: none; }
.contacts .row { display: flex; gap: 10px; flex-wrap: wrap; }
form.lead { display: grid; gap: 14px; background: var(--paper); border: 1px solid var(--ink-15); border-radius: 12px; padding: 24px; }
form.lead.inline { grid-template-columns: 1fr 1fr auto; align-items: end; }
form.lead.inline label { grid-column: span 1; }
form.lead.inline .consent { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 400; }
input, textarea, select { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--ink-15); border-radius: 8px; background: var(--linen); color: var(--ink); width: 100%; min-height: 48px; }
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ink-15); border-radius: 99px; padding: 8px 14px; cursor: pointer; font-weight: 400; min-height: 40px; background: var(--linen); }
.seg input { width: auto; min-height: 0; padding: 0; margin: 0; accent-color: var(--navy); }
.seg label:has(input:checked) { border-color: var(--navy); background: var(--navy); color: var(--linen); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 400; color: var(--ink-70); }
.consent input { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.consent a { color: var(--ink); }
form .note { font-size: 13px; color: var(--ink-70); }
.thanks { display: grid; gap: 14px; }
.thanks h3 { font-size: 24px; }

/* Breadcrumbs, page head */
.crumbs { font-size: 13px; color: var(--ink-70); display: flex; gap: 8px; flex-wrap: wrap; padding-block: 14px 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-head { padding-block: clamp(28px, 4vw, 56px) clamp(24px, 3vw, 40px); display: grid; gap: 18px; max-width: 62ch; }
.page-head .lead { font-size: 19px; color: var(--ink-70); }

/* Service page */
.cases2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sit { display: grid; gap: 8px; padding: 22px; border: 1px solid var(--ink-15); border-radius: 12px; background: var(--paper); min-width: 0; }
.sit p { color: var(--ink-70); font-size: 15.5px; }
.steps.col { grid-template-columns: 1fr; gap: 22px; max-width: 760px; }
.steps.col .step { grid-template-columns: 56px 1fr; column-gap: 16px; align-items: start; }
.steps.col .step::before { grid-row: span 2; }
.steps.col .step h3 { font-size: 20px; }
.price { display: grid; gap: 10px; padding: 26px; border-radius: 12px; background: var(--navy); color: var(--linen); max-width: 760px; }
.price .big { font-family: var(--display); font-weight: 700; font-size: 54px; line-height: 1; }
.price .big small { font-family: var(--body); font-size: 18px; font-weight: 700; margin-left: 8px; }
.price p { color: var(--linen-80); }
.price .u { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.gets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; max-width: 760px; }
.gets li { list-style: none; display: flex; gap: 12px; color: var(--ink-70); }
.gets li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; margin-top: 10px; }
.related { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid var(--ink-15); border-radius: 99px; text-decoration: none; font-size: 14px; font-weight: 400; background: var(--paper); }

/* Article / prose */
.article-head { display: grid; gap: 16px; padding-block: clamp(24px, 4vw, 48px) 8px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--ink-70); align-items: center; }
.author { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.author img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: top; }
.verified { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-70); border: 1px dashed var(--ink-15); border-radius: 8px; padding: 8px 12px; }
.prose { display: grid; gap: 18px; font-size: 18px; line-height: 1.6; }
.prose p { max-width: 62ch; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 22px; }
.prose h3 { margin-top: 10px; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; max-width: 60ch; }
.prose .summary { background: var(--paper); border: 1px solid var(--ink-15); border-left: 4px solid var(--red); border-radius: 10px; padding: 18px 22px; display: grid; gap: 8px; }
.prose .summary .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink-70); }
.toc { background: var(--paper); border: 1px solid var(--ink-15); border-radius: 10px; padding: 16px 20px; display: grid; gap: 8px; font-size: 15px; }
.toc b { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-70); }
.toc a { text-decoration: none; color: var(--ink-70); }
.toc a:hover { color: var(--ink); }
.author-card { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--ink-15); border-radius: 12px; background: var(--paper); }
.author-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; }
.author-card p { font-size: 15px; color: var(--ink-70); }
.next-step { display: grid; gap: 14px; padding: 26px; border-radius: 12px; background: var(--navy); color: var(--linen); }
.next-step p { color: var(--linen-80); max-width: 56ch; }
.next-step .line { width: 56px; height: 4px; background: var(--red); border-radius: 2px; }

/* ЖК */
.zhk-cover { border-radius: 12px; background: var(--paper); border: 1px solid var(--ink-15); padding: clamp(22px, 4vw, 40px); display: grid; gap: 12px; aspect-ratio: 16 / 7; align-content: end; position: relative; overflow: hidden; }
.zhk-cover .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink-70); }
.zhk-cover .t { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4vw, 48px); line-height: 1.05; }
.zhk-cover .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--ink-06) 1px, transparent 1px), linear-gradient(90deg, var(--ink-06) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.facts { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.facts th, .facts td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ink-15); vertical-align: top; }
.facts th { font-weight: 400; color: var(--ink-70); width: 42%; }
.facts caption { text-align: left; caption-side: bottom; font-size: 13px; color: var(--ink-70); padding-top: 8px; }
.table-wrap { overflow-x: auto; }
.prose { overflow-wrap: break-word; }
/* Таблицы в тексте (v6) */
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--ink-15); text-align: left; vertical-align: top; }
.prose th { font-weight: 700; background: var(--paper); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-70); }
.prose td:not(:first-child), .prose th:not(:first-child) { white-space: nowrap; }
.prose .table-wrap { margin-block: 6px; }
/* Картинки статей: <picture> из build_prod.py по Сборка/images/articles.json */
.prose figure.fig { margin: 6px 0 4px; display: grid; gap: 10px; }
.prose figure.fig img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--ink-15); background: var(--paper); }
.prose figure.fig figcaption { font-size: 14px; line-height: 1.45; color: var(--ink-70); max-width: 62ch; }
.tile p.small { line-height: 1.4; }

.pros { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pros .col { display: grid; gap: 10px; padding: 20px; border-radius: 12px; border: 1px solid var(--ink-15); background: var(--paper); }
.pros .col h3 { font-size: 18px; }
.pros ul { padding-left: 18px; display: grid; gap: 6px; color: var(--ink-70); font-size: 15.5px; }

/* Video */
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--navy); color: var(--linen); display: grid; place-items: center; }
.player .cov { position: absolute; inset: 0; display: grid; align-content: end; padding: 24px; gap: 10px; background: linear-gradient(to top, rgba(0,31,91,.95), rgba(0,31,91,.35)); }
.player .cov .t { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 3vw, 34px); line-height: 1.1; max-width: 22ch; }
.player .cov .line { width: 56px; height: 4px; background: var(--red); border-radius: 2px; }
.play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: var(--linen); color: var(--navy); border: 0; cursor: pointer; display: grid; place-items: center; }
.play svg { width: 30px; height: 30px; margin-left: 4px; }
.timecodes { display: grid; gap: 0; border: 1px solid var(--ink-15); border-radius: 10px; overflow: hidden; }
.timecodes a { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 12px 16px; text-decoration: none; border-bottom: 1px solid var(--ink-06); font-size: 15.5px; background: var(--paper); }
.timecodes a:last-child { border-bottom: 0; }
.timecodes a span { min-width: 0; white-space: normal; overflow-wrap: break-word; }
.timecodes a b { font-variant-numeric: tabular-nums; color: var(--red); font-weight: 700; }
.video-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }

/* Footer */
footer.site { background: var(--navy); color: var(--linen); padding-block: 40px 28px; font-size: 14px; }
footer.site .in { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 28px; }
footer.site .col { display: grid; gap: 8px; align-content: start; min-width: 0; }
footer.site .col b { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--linen-65); margin-bottom: 4px; }
footer.site a { text-decoration: none; color: var(--linen-80); }
footer.site a:hover { color: var(--linen); }
footer.site .legal { grid-column: 1 / -1; border-top: 1px solid var(--linen-20); padding-top: 16px; color: var(--linen-65); display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; }

/* Floating widget */
.widget { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 25; display: grid; justify-items: end; gap: 8px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s; }
.widget.show { opacity: 1; transform: none; pointer-events: auto; }
.widget .face { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 3px solid var(--linen); box-shadow: 0 6px 20px rgba(0,0,0,.22); background: var(--navy); }
.widget .face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.widget .btn { box-shadow: 0 6px 20px rgba(0,0,0,.22); border-radius: 99px; }

/* Modal */
dialog.modal { border: 0; border-radius: 14px; padding: 0; width: min(560px, calc(100vw - 32px)); background: var(--linen); color: var(--ink); }
dialog.modal::backdrop { background: rgba(0,31,91,.55); }
dialog.modal .inner { padding: 26px; display: grid; gap: 16px; }
dialog.modal .top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
dialog.modal .top h3 { font-size: 24px; }
dialog.modal .top p { color: var(--ink-70); font-size: 15px; }
.x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink-15); background: transparent; cursor: pointer; color: var(--ink); display: grid; place-items: center; flex: none; }
.x svg { width: 18px; height: 18px; }
dialog.modal form.lead { background: transparent; border: 0; padding: 0; }

/* Video shelf (shorts) */
.video-shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.video-shelf .tile .cover { aspect-ratio: 9 / 12; }
.video-shelf .tile .cover .t { font-size: 17px; }
a.player { text-decoration: none; color: var(--linen); }
.summary p + p { margin-top: 10px; }

/* Mockup notes (not part of the real site) */
.mock-note { background: #fff3c4; color: #5a4300; font-size: 13px; padding: 8px var(--gl); text-align: center; }
.mock-note b { font-weight: 700; }

@media (max-width: 960px) {
  nav.main { display: none; }
  .burger { display: grid; }
  .hero .in, .about .in, .lead-sec .in, .with-photo, .video-grid { grid-template-columns: 1fr; }
  .cards, .cards.five, .cards.four, .case-grid, .fresh, .video-shelf { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  footer.site .in { grid-template-columns: 1fr 1fr; }
  .hero .photo { max-width: 440px; }
  .hero .in { align-items: start; }
}
@media (max-width: 600px) {
  .cards, .cards.five, .cards.four, .case-grid, .case-grid.two, .fresh, .steps, .with-photo .steps, .cases2, .pros, .gets { grid-template-columns: 1fr; }
  .video-shelf { grid-template-columns: 1fr 1fr; }
  footer.site .in { grid-template-columns: 1fr; }
  .photo::before { inset: 14px -14px -14px 14px; }
  .photo.tall::before { inset: 14px 14px -14px -14px; }
  .photo.wide::before { inset: -12px 12px 12px -12px; }
  form.lead.inline { grid-template-columns: 1fr; }
  .steps.col .step { grid-template-columns: 44px 1fr; }
  .hdr-actions .btn.navy { display: none; }
  .widget .face { width: 48px; height: 48px; }
  .price .big { font-size: 44px; }
  .facts th { width: 46%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .widget { transition: none; } }

/* Уведомление о cookie: одна строка внизу слева, не перекрывает кнопку консультации */
.cookie { position: fixed; left: calc(16px + env(safe-area-inset-left, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 26; max-width: 560px; display: grid; gap: 12px; padding: 14px 18px; border-radius: 12px; background: var(--linen); color: var(--ink); border: 1px solid var(--ink-15); box-shadow: 0 10px 30px rgba(0,31,91,.18); font-size: 14px; line-height: 1.45; }
.cookie p { margin: 0; color: var(--ink-70); }
.cookie a { color: var(--ink); }
.cookie .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie .btn.sm { min-height: 38px; padding: 7px 14px; font-size: 14px; }
@media (min-width: 720px) { .cookie { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
body.cookie-open .widget { opacity: 0; pointer-events: none; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
footer.site .linklike { color: var(--linen-65); text-decoration: none; }
footer.site .linklike:hover { color: var(--linen); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

form.lead .hint { display: block; margin-top: 6px; font-size: 13px; font-weight: 400; color: var(--ink-70); }

/* Текст статей и услуг по ширине колонки: абзацы заполняют колонку целиком, края ровные, переносы автоматические
   (уточнение Константина 01.12.2026: колонка остаётся по центру, по ширине выравнивается текст внутри неё) */
.prose p, .prose ul, .prose ol, .prose figure.fig figcaption { max-width: none; }
.prose p, .prose li { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }

/* Текстовые блоки всех страниц в одной центральной колонке 760 px, как у статей: заголовок страницы, крошки,
   заголовки разделов, шаги, вопросы, цена, список «что получаете». Сетки карточек остаются во всю ширину
   (уточнение Константина 01.12.2026: «проверь все страницы, чтобы всё было одинаково») */
.page-head, .crumbs, .sec-head, .steps.col, .faq, .price, .gets, .prose { max-width: var(--narrow); margin-left: auto; margin-right: auto; }
.page-head .lead, .sec-head p { max-width: none; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }

/* Ловушка для спам-ботов в формах заявки: поле вне экрана */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #C1121F; font-size: 15px; }
