/* Сайт Виктории Дубовской. Стиль перенесён из КП: бордовый градиент, золото, карточки. */

:root {
  --bg-top: #491b24; --bg-mid: #2b1418; --bg-bot: #141011;
  --ink: #f3ebe6; --muted: rgba(243, 235, 230, .7); --faint: rgba(243, 235, 230, .5);
  --gold: #d7bc92; --gold-hi: #ecd3ae; --cream: #f5e8da; --wine: #3a1520;
  --card: rgba(255, 255, 255, .055); --line: rgba(255, 255, 255, .14);
  --btn-bg: #ecd3ae; --btn-ink: #3a1520; --btn-hover: #f6e3c7;
  --r: 18px; --r-lg: 26px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 1120px; --gut: 20px;
  --head-bg: rgba(43, 20, 24, .84);
}
html.light {
  --ink: #2a1a1f; --muted: #655559; --faint: #8a7a7e;
  --gold: #8a2a48; --gold-hi: #6f1d34; --line: #e6dbd4; --card: #fff;
  --btn-bg: #6f1d34; --btn-ink: #fff; --btn-hover: #55122a;
  --head-bg: rgba(251, 247, 244, .92);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  background: var(--bg-bot) linear-gradient(180deg, var(--bg-top) 0, var(--bg-mid) 560px, var(--bg-bot) 1250px) no-repeat;
}
html.light body { background: #fbf7f4; }
body.has-bar { padding-bottom: 76px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -.005em; }
h1 { font-size: clamp(2.4rem, 9vw, 4.2rem); }
h1 em, h2 em, h3 em, .big em { font-style: italic; color: var(--gold-hi); }
html.light h1 em, html.light h2 em { color: var(--gold); }
p { margin: 0; }
em { font-style: italic; }
.wrap { width: min(var(--wrap), 100% - var(--gut) * 2); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--btn-bg); color: var(--btn-ink); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }
html.light :focus-visible { outline-color: var(--gold); }

.eyebrow { font: 600 11px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.eyebrow.line { display: flex; align-items: center; gap: 12px; }
.eyebrow.line::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.fine { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.lead-s { color: var(--muted); max-width: 62ch; }
.lead-b { font-weight: 600; margin: 14px 0 10px; }

/* ───── кнопки ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 28px;
  border-radius: 999px; border: 1px solid transparent; background: var(--btn-bg); color: var(--btn-ink);
  font: 600 14px/1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--btn-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: transparent; border-color: var(--gold); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }
.btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.ar { flex: none; }

/* ───── шапка ───── */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--head-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mono { width: 56px; height: 56px; display: block; flex: none; color: #ebc6a0; }
.mono svg { width: 100%; height: 100%; display: block; }
html.light .mono { color: var(--gold); }
.brand-t { display: grid; line-height: 1.2; }
.brand-t b { font: 500 1.2rem/1.1 var(--serif); }
.brand-t i { font: 600 10px/1.6 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-style: normal; }
.bar-r { display: flex; align-items: center; gap: 8px; }
.burger { width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; border-radius: 50%; display: grid; place-content: center; gap: 5px; cursor: pointer; color: var(--ink); }
.burger span { width: 18px; height: 1.5px; background: currentColor; display: block; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; padding: 8px var(--gut) 20px; background: #2b1418; border-bottom: 1px solid var(--line); }
html.light .nav { background: #fbf7f4; }
.nav.open { display: flex; }
.nav a { padding: 15px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.nav a[aria-current="page"] { color: var(--gold-hi); }
html.light .nav a[aria-current="page"] { color: var(--gold); }
.nav .nav-tg { color: var(--gold); border-bottom: 0; font-size: 14px; }
.hide-s { display: none; }

/* ───── героев-блок ───── */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--faint); padding: 18px 0 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.hero { display: grid; gap: 28px; padding: 28px 0 8px; }
.hero-t { display: grid; gap: 18px; align-content: center; }
.hero h1 { margin-top: 2px; }
.hero h1.big-title { font-size: clamp(3rem, 14vw, 5.6rem); color: var(--gold-hi); }
.role { font: 600 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.lead { display: grid; gap: 12px; color: var(--muted); max-width: 54ch; font-size: 15.5px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-btns .btn { flex: 1 1 200px; }
.photo { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; background: #2b1418; aspect-ratio: 5 / 4; max-height: 330px; justify-self: stretch; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
.stickers { position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.sticker { display: inline-block; background: var(--cream); color: var(--wine); font: 800 11px/1.1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0, 0, 0, .28); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 14px; }
.tile .big { font: 400 1.5rem/1.1 var(--serif); }
.tile .big.word { font-size: 1.35rem; }
.tile .lab { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.4; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px 18px; }
.stat { --bs: clamp(1.8rem, 6vw, 2.4rem); }
.stat .big { font: 400 var(--bs)/1 var(--serif); min-height: var(--bs); }
.stat .big em { font-size: .6em; }
.stat .big.sm { display: flex; align-items: flex-end; font-size: clamp(1.4rem, 4.5vw, 1.8rem); }
.stat .lab { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.45; }

/* ───── главная ───── */
.about { display: grid; gap: 14px; padding: 36px 0 8px; }
.about-t { font-family: var(--serif); font-size: clamp(1.4rem, 4vw, 1.8rem); line-height: 1.25; max-width: 40ch; }
.offers { padding: 40px 0 8px; display: grid; gap: 22px; }
.h-sec { font-size: clamp(1.8rem, 5vw, 2.5rem); }
.offers-g { display: grid; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.offer { display: flex; flex-direction: column; gap: 12px; }
.offer h3 { font-size: 1.75rem; }
.offer p:not(.eyebrow) { color: var(--muted); font-size: 14.5px; }
.offer-f { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.price { font: 400 1.5rem/1 var(--serif); margin-right: auto; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--gold-hi); text-decoration: none; }
.more:hover { text-decoration: underline; }
.notice { display: flex; gap: 14px; align-items: flex-start; background: rgba(255, 255, 255, .045); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin: 32px 0 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.notice .i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font: italic 600 13px/1 var(--serif); margin-top: 1px; }
.notice strong { color: var(--ink); }
.notice a { color: var(--gold-hi); }

/* ───── вкладки ───── */
.tablist { display: flex; gap: 2px; overflow-x: auto; margin: 36px 0 30px; border-bottom: 1px solid var(--line); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tablist::-webkit-scrollbar { display: none; }
html:not(.js) .tablist { display: none; }
.tab { flex: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 14px 16px; color: var(--muted); font: 600 13px/1 var(--sans); cursor: pointer; white-space: nowrap; transition: color .15s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--gold-hi); border-bottom-color: var(--gold); }
.stack { display: grid; gap: 64px; margin-top: 44px; }
.panel { display: grid; gap: 30px; scroll-margin-top: 84px; }
.panel + .panel { padding-top: 56px; border-top: 1px solid var(--line); }
.stack { gap: 56px; }

.blk { display: grid; gap: 16px; }
.nlist { list-style: none; margin: 4px 0 0; padding: 0; }
.nlist li { display: grid; grid-template-columns: 46px 1fr; gap: 6px; padding: 16px 0; border-top: 1px solid var(--line); }
.nlist li:last-child { border-bottom: 1px solid var(--line); }
.n { font: italic 400 1.6rem/1.1 var(--serif); color: var(--gold); }
.nlist b { display: block; font-weight: 600; font-size: 15.5px; }
.nlist span:not(.n) { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }
.outro { font: 400 clamp(1.5rem, 4.5vw, 2rem)/1.2 var(--serif); }
.outro em { color: var(--gold-hi); }
.quote { margin: 0; display: grid; gap: 8px; padding: 6px 0 6px 8px; }
.quote .qm { font: 400 3.4rem/.6 var(--serif); color: var(--gold); }
.quote p { font: italic 400 clamp(1.4rem, 4vw, 1.9rem)/1.3 var(--serif); max-width: 36ch; }
.quote cite { font-size: 12.5px; color: var(--muted); font-style: normal; }

.cols2 { display: grid; gap: 14px; }
.col { display: grid; gap: 14px; align-content: start; }
.h-card { font-size: 1.9rem; }
.h-card.lg { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.tlist, .qlist { list-style: none; margin: 0; padding: 0; }
.tlist li { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.tlist b { display: block; font-weight: 600; font-size: 14.5px; }
.tlist q { display: block; quotes: none; font: italic 400 1.1rem/1.3 var(--serif); color: var(--muted); margin-top: 3px; }
.tlist.arr li svg { color: var(--gold); margin-top: 4px; }
.qlist li { padding: 14px 0; border-top: 1px solid var(--line); font: italic 400 1.2rem/1.3 var(--serif); color: var(--ink); }
.callout { gap: 16px; }
.callout > p { color: var(--muted); font-size: 14.5px; }
.callout strong { color: var(--ink); }
.callout .sticker { justify-self: start; font-size: 13px; padding: 10px 16px; }
.tagline { font: 400 1.6rem/1.2 var(--serif); }
.tagline em { color: var(--gold-hi); }
.callout .tagline { color: var(--ink) !important; font-size: 1.6rem !important; }

.goals { list-style: none; margin: 0; padding: 0; }
.goals li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); font-size: 14px; }
.goals li:last-child { border-bottom: 1px solid var(--line); }
.goals em { font: italic 400 1.45rem/1 var(--serif); color: var(--gold); white-space: nowrap; }
.facts { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 24px; }
.facts h3 { font-size: 1.5rem; margin-bottom: 4px; }
.facts p { font-size: 13.5px; color: var(--muted); }

.grid-cards { display: grid; gap: 12px; }
.nc { display: grid; gap: 8px; align-content: start; }
.nc h3 { font-size: 1.5rem; line-height: 1.15; }
.nc p { color: var(--muted); font-size: 14px; }
.nc .n { font-size: 1.9rem; }
.nc.cmp { padding: 18px 20px; }
.nc.cmp h3 { font-size: 1.3rem; }
.sticker-row { margin-top: 4px; }
.feature { display: grid; gap: 22px; padding: 24px; position: relative; overflow: hidden;
  background-image: url(/assets/img/spiral-bg.svg); background-repeat: no-repeat; background-position: -90px 40%; background-size: 460px auto; }
.feature > * { position: relative; }
.feat-t { display: grid; gap: 14px; align-content: center; color: var(--muted); font-size: 14.5px; }
.feat-t strong { color: var(--ink); }
.feat-t .h-card { color: var(--ink); }
.feat-img { position: relative; border-radius: 16px; overflow: hidden; min-height: 240px; }
.feat-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.feat-img .sticker { position: absolute; left: 12px; bottom: 12px; }
.story { display: grid; gap: 10px; align-content: start; }
.story h3 { font-size: 1.6rem; }
.story p:not(.eyebrow):not(.fine):not(.pull) { color: var(--muted); font-size: 14px; }
.pull { display: flex; gap: 10px; align-items: flex-start; font: italic 400 1.35rem/1.3 var(--serif); color: var(--ink); margin-top: 4px; }
.pull .qm { font: 400 2.8rem/.75 var(--serif); color: var(--gold); flex: none; }

.plans { display: grid; gap: 14px; }
.plan { display: grid; gap: 4px; align-content: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.plan.hi { border-color: var(--gold); background: rgba(0, 0, 0, .22); }
.price-l { font: 400 clamp(2.6rem, 8vw, 3.4rem)/1.1 var(--serif); margin: 6px 0; }
.pdesc { color: var(--muted); font-size: 14px; }
.incl { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.incl li::before { content: "— "; color: var(--gold); }
.plan-f { margin-top: 16px; }
.plan-f .btn { width: 100%; }
.notes { display: grid; gap: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.notes strong { color: var(--ink); }
.notes a { color: var(--gold-hi); }

.cta { display: grid; gap: 22px; padding: 26px 22px; }
.cta-t { display: grid; gap: 12px; }
.cta-r { display: flex; align-items: center; gap: 14px; }
.avatar { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold); flex: none; }
.tg-name { font: 400 1.6rem/1.1 var(--serif); font-style: italic; color: var(--gold-hi); text-decoration: none; display: block; margin: 2px 0; }
.tg-name:hover { text-decoration: underline; }
.cta .fine a { color: var(--gold-hi); }
.cta-b .btn { width: 100%; }

.author { display: grid; gap: 22px; padding: 22px; }
.author img { width: 100%; max-width: 280px; aspect-ratio: 1 / 1.15; object-fit: cover; border-radius: 18px; }
.author > div { display: grid; gap: 10px; align-content: center; color: var(--muted); font-size: 14.5px; }
.author .lead-b { color: var(--ink); }

/* ───── подвал ───── */
.site-footer { margin-top: 56px; border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.foot-grid { display: grid; gap: 28px; }
.req p + p { margin-top: 2px; }
.req b { color: var(--ink); font-weight: 600; }
.foot-docs { display: grid; gap: 6px; }
.foot-docs a, .req a, .foot-note a { text-decoration: none; }
.foot-docs a:hover, .req a:hover, .foot-note a:hover { text-decoration: underline; color: var(--ink); }
.foot-note { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 78ch; }

/* ───── нижняя панель записи (телефон) ───── */
.cta-bar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: rgba(20, 16, 17, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.cta-bar b { display: block; font: 400 1.5rem/1 var(--serif); }
.cta-bar span { font-size: 11.5px; color: var(--muted); }

/* ───── окно записи ───── */
.book { border: 0; padding: 0; color: var(--ink); background: #2b1418; border-radius: var(--r-lg); width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); overflow: auto; }
.book::backdrop { background: rgba(10, 5, 7, .72); backdrop-filter: blur(4px); }
.book form { position: relative; display: grid; gap: 16px; padding: 28px 22px 22px; }
.book h2 { font-size: 1.9rem; }
.book .x { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.prod { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover { border-color: rgba(215, 188, 146, .6); }
.opt:has(input:checked) { border-color: var(--gold); background: rgba(215, 188, 146, .09); }
.opt input, .consent input { width: 20px; height: 20px; accent-color: #d7bc92; margin: 0; }
.o-t { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.o-t small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 2px; }
.o-p { font: 400 1.3rem/1 var(--serif); white-space: nowrap; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 13.5px; line-height: 1.5; cursor: pointer; padding: 4px 0; }
.consent input { margin-top: 1px; }
.consent a { color: var(--gold-hi); }
.hint { text-align: center; }
body:has(dialog[open]) { overflow: hidden; }

/* ───── документы (светлая тема) ───── */
.doc-wrap { padding-bottom: 72px; }
.doc-wrap > h1, .doc h1 { font-size: clamp(2.3rem, 7vw, 3.5rem); margin: 10px 0 14px; }
.doc-wrap > .eyebrow { margin-top: 28px; display: block; }
.doc-sub { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }
.doc-sub.wide { max-width: 64ch; line-height: 1.7; }
.doc-meta { color: var(--faint); font-size: 14px; margin-top: 8px; }
.doc-cards { display: grid; gap: 14px; margin: 36px 0 28px; }
.doc-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 22px; text-decoration: none; transition: box-shadow .2s, border-color .2s, transform .2s; }
.doc-card:hover { border-color: #cdb7ad; box-shadow: 0 10px 30px rgba(80, 30, 40, .08); transform: translateY(-2px); }
.doc-card h2 { font: 500 1.2rem/1.35 var(--sans); }
.doc-card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.doc-card .open { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--gold-hi); font-size: 14.5px; }

.doc-grid { display: grid; gap: 22px; }
.doc { max-width: 760px; min-width: 0; }
.doc-grid > * { min-width: 0; }
.doc .eyebrow { display: block; margin-top: 26px; }
.toc { order: -1; font-size: 13.5px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-top: 18px; }
.toc summary { font-weight: 600; cursor: pointer; }
.toc ol { list-style: none; margin: 12px 0 2px; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 0; text-decoration: none; color: var(--muted); line-height: 1.4; }
.toc a:hover { color: var(--gold-hi); }
.doc-body { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.75; }
.doc-body h2 { font: 400 clamp(1.6rem, 4.5vw, 2rem)/1.2 var(--serif); margin: 2.1em 0 .6em; scroll-margin-top: 84px; }
.doc-body h3 { font: 500 1.4rem/1.25 var(--serif); margin: 1.8em 0 .5em; }
.doc-body p { margin: .75em 0; }
.doc-body .clause { display: grid; grid-template-columns: 3.1em 1fr; gap: 0 4px; }
.doc-body .clause .num { color: var(--faint); font-variant-numeric: tabular-nums; }
.doc-body ul { margin: .7em 0; padding-left: 1.3em; display: grid; gap: .45em; }
.doc-body a { color: var(--gold-hi); }
.table-wrap { overflow-x: auto; margin: 1.1em 0; }
.doc-body table { border-collapse: collapse; width: 100%; font-size: .94rem; line-height: 1.55; min-width: 460px; }
.doc-body th, .doc-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc-body th { background: #f3eae4; font-weight: 600; }
.doc-body td:first-child { min-width: 7em; }
.related { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.related h2 { font: 400 1.7rem/1.2 var(--serif); margin-bottom: 14px; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.related a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); font-size: 14.5px; transition: border-color .15s; }
.related a:hover { border-color: var(--gold); }
.related a svg { color: var(--gold-hi); }
.back { margin-top: 28px; }
.back a { color: var(--gold-hi); font-weight: 600; text-decoration: none; }
mark.todo { background: #ffe97a; color: #3a2a00; padding: 0 4px; border-radius: 4px; outline: 1px dashed #b88a00; }
.draft-banner { background: #fff4c2; border: 1px solid #e3c24b; color: #4a3800; border-radius: 12px; padding: 12px 16px; margin: 16px 0 0; font-size: 14px; }
html.light .site-footer { border-top-color: var(--line); }
html.light .notice { background: #fff; }
html.light .cta-bar { background: rgba(251, 247, 244, .95); }

/* ───── ширина ≥ 640 ───── */
@media (min-width: 640px) {
  :root { --gut: 28px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .plans.n2 { grid-template-columns: 1fr 1fr; }
  .grid-cards.c2 { grid-template-columns: 1fr 1fr; }
  .hide-s { display: inline-flex; }
  .doc-cards { grid-template-columns: 1fr 1fr; }
  .author { grid-template-columns: 220px 1fr; padding: 26px; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
@media (max-width: 639px) {
  .home-hero .lead p:nth-child(2) { display: none; }
  .offer { padding: 18px 18px 16px; gap: 8px; }
  .offer p:not(.eyebrow) { display: none; }
  .offer h3 { font-size: 1.6rem; }
  .about { padding-top: 28px; }
  .book { margin: auto auto 0; width: 100%; max-width: none; border-radius: 24px 24px 0 0; max-height: 92dvh; }
}

/* ───── ширина ≥ 900 ───── */
@media (min-width: 900px) {
  .burger, .nav-home, .nav-tg, .cta-bar { display: none; }
  body.has-bar { padding-bottom: 0; }
  .nav { position: static; display: flex; flex-direction: row; gap: 26px; padding: 0; background: none !important; border: 0; }
  .nav a { padding: 8px 0; border: 0; font-size: 13.5px; color: var(--muted); }
  .nav a:hover { color: var(--ink); }
  .nav a[aria-current="page"] { color: var(--gold-hi); }
  .hero { grid-template-columns: 1.12fr .88fr; gap: 56px; padding: 44px 0 12px; align-items: center; }
  .photo { aspect-ratio: 4 / 5; max-height: 600px; }
  .hero-btns .btn { flex: 0 0 auto; }
  .offers-g { grid-template-columns: repeat(3, 1fr); }
  .cols2 { grid-template-columns: 1fr 1fr; }
  .grid-cards.c3 { grid-template-columns: repeat(3, 1fr); }
  .feature { grid-template-columns: 1.1fr .9fr; gap: 36px; padding: 32px; }
  .cta { grid-template-columns: 1.2fr auto auto; align-items: center; gap: 32px; padding: 32px; }
  .cta-b .btn { width: auto; }
  .foot-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .doc-grid { grid-template-columns: minmax(0, 760px) 270px; justify-content: space-between; gap: 56px; }
  .toc { order: 0; position: sticky; top: 88px; align-self: start; margin-top: 70px; max-height: calc(100dvh - 120px); overflow: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .site-footer, .toc, .cta-bar, .related, .back, .book, .skip { display: none !important; }
  body { background: #fff !important; color: #000; }
  .doc-body { border: 0; }
}

/* главная: блок «Обо мне» */
.h-sub { font-size: 1.7rem; margin-top: 12px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 16px; font-size: 13.5px; color: var(--ink); }
.about .quote { margin-top: 12px; }
.about .facts { border-top: 0; padding-top: 4px; gap: 12px; }
.about .facts > div { background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: var(--r); padding: 20px 20px 22px; }
.about .facts h3 { font-size: 1.6rem; margin-bottom: 6px; }
.about .facts p { font-size: 14px; }

/* выделенная строка в блоке «Кто ведёт» */
.author .accent { font: italic 400 1.45rem/1.3 var(--serif); color: var(--gold-hi); border-left: 2px solid var(--gold); padding-left: 14px; margin-top: 6px; }

/* переносы: без одиноких слов на строке */
h1, h2, h3, .quote p, .outro, .about-t, .tagline { text-wrap: balance; }
p, li, q, cite, .lab { text-wrap: pretty; }

/* главная: «Обо мне» — три заголовка одного размера */
.about { gap: 16px; }
.about > h2.h-sec ~ h2.h-sec { margin-top: 26px; }
.chips li.wide { flex: 1 1 100%; border-radius: 18px; padding: 14px 20px; line-height: 1.5; border-color: rgba(215, 188, 146, .45); background: rgba(215, 188, 146, .08); }

/* цитата */
.quote { position: relative; padding: 36px 28px 26px 30px; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(135deg, rgba(215, 188, 146, .17), rgba(255, 255, 255, .035) 62%); border: 1px solid rgba(215, 188, 146, .38); }
.quote::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 3px; background: var(--gold); border-radius: 0 3px 3px 0; }
.quote .qm { font-size: 5rem; line-height: .5; height: 2.1rem; color: var(--gold); }
.quote p { font-size: clamp(1.65rem, 4.8vw, 2.3rem); max-width: none; color: var(--ink); }
.quote cite { display: flex; align-items: center; gap: 10px; color: var(--gold); font: 600 11px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.quote cite::before { content: ""; width: 26px; height: 1px; background: currentColor; }

/* защита от переполнения: элементы сеток могут сжиматься, длинные слова не раздвигают страницу */
.hero > *, .stack > *, .panel > *, .tiles > *, .stats > *, .nlist li > *, .cols2 > *, .grid-cards > *, .plans > *,
.offers-g > *, .facts > *, .author > *, .feature > *, .cta > *, .doc-cards > *, .foot-grid > *, .blk > * { min-width: 0; }

/* страховка: фрагмент, который не помещается в строку, переносится, а не растягивает страницу */
main { overflow-wrap: anywhere; }

.related b { text-wrap: balance; font-weight: 500; }

/* окно записи: блок «Согласия» */
.consents { display: grid; gap: 12px; }
.c-title { font: 600 15px/1.3 var(--sans); }
.consents .consent a { text-decoration: underline; }

/* правки по ответам юриста: в черновике видны, в боевой сборке принимаются */
ins.chg { background: #d9f4d4; color: #14501c; text-decoration: none; border-radius: 3px; padding: 0 2px; box-shadow: inset 0 -2px 0 #4caf50; }
del.chg { background: #ffe3e3; color: #8b1a1a; text-decoration: line-through; border-radius: 3px; padding: 0 2px; }
tr.chg-del td, tr.chg-del th { background: #fff0f0; }
.chg-banner { background: #eefaec; border: 1px solid #9ad18f; color: #1c4a20; border-radius: 12px; padding: 12px 16px; margin: 12px 0 0; font-size: 14px; }

/* таблицы в документах: слова не рвутся, широкая таблица прокручивается по горизонтали */
.doc-body table, .doc-body th, .doc-body td { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.doc-body table.c3 { min-width: 640px; }
.doc-body table.c4 { min-width: 760px; }
.doc-body table.c5 { min-width: 980px; }
.doc-body table.c5 td:first-child, .doc-body table.c5 th:first-child { min-width: 14em; }

/* документы без блока «Содержание»: текст в узкой колонке, таблицы на всю ширину */
.doc-grid { grid-template-columns: minmax(0, 1fr); }
.doc { max-width: none; }
.doc > *, .doc-body > *:not(.table-wrap) { max-width: 760px; }
.doc > .doc-body { max-width: none; }
.doc-body .table-wrap { max-width: 100%; }

/* окно записи всегда тёмное: на светлых страницах документов оно не должно брать их цвета */
.book { --ink: #f3ebe6; --muted: rgba(243, 235, 230, .7); --faint: rgba(243, 235, 230, .5); --gold: #d7bc92; --gold-hi: #ecd3ae;
  --line: rgba(255, 255, 255, .14); --card: rgba(255, 255, 255, .055); --btn-bg: #ecd3ae; --btn-ink: #3a1520; --btn-hover: #f6e3c7; color: var(--ink); }
