/* LEBREN v2 — блоки лендинга-атланта и SEO-страниц поверх base.css (квиз-сайт) и tokens.css. */

img { height: auto; }
main { overflow-x: clip; }
.section-heading .sub .text-link { display: inline; padding: 0; font-size: inherit; }

/* ── Шапка с навигацией ── */
.site-header { gap: 22px; }
.brand { flex: none; }
.brand > a { display: block; color: inherit; }
.brand > a:first-child { line-height: 0; }
.brand small b { color: var(--gold-light); font-weight: 600; }
.brand-proof small b { text-decoration: underline 1px transparent; text-underline-offset: 3px; transition: text-decoration-color .25s; }
.brand-proof:hover small b, .brand-proof:focus-visible small b { text-decoration-color: currentColor; }
@media (max-width: 1180px) { .brand-proof { display: none !important; } } /* подпись скрыта base.css — пустую ссылку тоже убираем */
.nav { display: flex; align-items: center; gap: clamp(14px, 1.5vw, 26px); margin-left: auto; font-size: 14.5px; }
.nav > a { position: relative; padding: 6px 0; color: var(--on-dark); white-space: nowrap; transition: color .25s; }
.nav > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-light); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav > a:hover, .nav > a[aria-current=page] { color: #fff; }
.nav > a:hover::after, .nav > a[aria-current=page]::after { transform: none; }
.header-phone { margin-left: 0; white-space: nowrap; }
.header-acts { align-items: center; }
.hdr-ico { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 1px solid var(--line-dark); border-radius: 2px; background: rgba(255, 255, 255, .04); color: #fff; transition: border-color .25s, color .25s, background .25s; }
.hdr-ico:hover { border-color: var(--gold-light); color: var(--gold-light); background: rgba(233, 167, 82, .08); }
.hdr-ico svg { width: 20px; height: 20px; margin-left: -2px; }
@media (max-width: 1600px) {
  .header-acts .full { display: none; }
  /* Короткая подпись — только из CSS, чтобы в тексте страницы не было «Рассчитать стоимостьРассчитать». */
  .header-acts [data-short]::before { content: attr(data-short); }
}
.header-phone .cb-link { display: inline; margin-top: 3px; padding: 0; border: 0; background: none; color: var(--gold-light); cursor: pointer; font: 600 12px/1.3 var(--sans); letter-spacing: .03em; text-decoration: underline; text-underline-offset: 3px; }
.nav-toggle { display: none; place-items: center; width: 46px; height: 46px; margin-left: auto; padding: 0; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .04); color: #fff; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.nav-extra { display: none; }

/* ── Общие элементы ── */
.dark { background: var(--forest-deep); color: #fff; }
.dark .section-heading h2 i, .dark .h2 i { color: var(--gold-italic); }
.dark .section-heading .sub { color: var(--on-dark); }
.dark .kicker { color: var(--gold-light); }
.paper { background: var(--paper); }
.sand { background: var(--sand); }
.wrap { max-width: 1440px; margin: 0 auto; }
.cta-pair { display: inline-grid; gap: 8px; justify-items: start; }
/* Подпись о подарке переносится по ширине кнопки и не раздвигает ряд: соседняя кнопка стоит на одном расстоянии на всех страницах. */
.cta-pair small { display: flex; align-items: center; gap: 8px; width: 0; min-width: 100%; color: var(--muted); font-size: 13.5px; line-height: 1.35; }
.cta-pair small svg { flex: none; width: 16px; height: 16px; color: var(--gold); }
.dark .cta-pair small, .hero .cta-pair small, .page-hero .cta-pair small { color: var(--on-dark-2); }
.dark .cta-pair small svg, .hero .cta-pair small svg, .page-hero .cta-pair small svg { color: var(--amber); }
/* Метка на фото — тихая подпись, а не плашка: её не путают с кнопкой. */
.photo-tag { padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; color: rgba(255, 255, 255, .78); font: 600 10.5px/1.3 var(--sans); letter-spacing: .14em; text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 0 14px rgba(0, 0, 0, .45); pointer-events: none; }
.photo-tag.real { background: none; color: rgba(255, 255, 255, .86); font-weight: 600; }
.photo-tag.real::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--amber); vertical-align: 1px; box-shadow: 0 0 6px rgba(0, 0, 0, .4); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--forest); font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--gold); padding-bottom: 4px; }
.dark .link-arrow { color: #fff; border-color: var(--gold-light); }
.link-arrow svg { width: 16px; height: 16px; }
.center { text-align: center; }
.mt-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 34px; margin-top: clamp(40px, 5vw, 64px); }

/* ── Первый экран лендинга ── */
.hero.atlant h1 { max-width: 980px; font-size: clamp(40px, 4.6vw, 78px); line-height: 1.02; }
/* На высоких мониторах экран не растёт бесконечно, а текст стоит по центру свободного места, а не у нижнего края. */
.hero.atlant { min-height: max(780px, min(100svh, 1080px)); }
.hero.atlant .hero-grid { grid-template-columns: minmax(0, 1fr) 320px; margin: auto 0; padding-top: 140px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 30px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); max-width: 900px; animation: fade-up 1s .38s var(--ease) both; }
.hero-facts li { display: flex; align-items: center; gap: 10px; padding: 14px 22px 14px 0; color: #fff; font-size: 15px; line-height: 1.3; }
.hero-facts li + li { padding-left: 22px; border-left: 1px solid var(--line-dark); }
.hero-facts svg { flex: none; width: 18px; height: 18px; color: var(--amber); }
/* Кнопка рядом с «кнопкой + подписью о подарке» не растягивается по их высоте: обе кнопки одной формы. */
.hero-actions, .gold-strip .acts { align-items: flex-start; }
.hero-proofs { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 56px var(--pad) 0; background: var(--line-dark); border: 1px solid var(--line-dark); border-bottom: 0; animation: fade-up 1s .7s var(--ease) both; }
.hero-proofs > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; padding: 26px 28px 30px; background: rgba(20, 14, 9, .66); backdrop-filter: blur(16px); }
.hero-proofs b { display: block; color: var(--gold-light); font: 400 clamp(30px, 2.6vw, 42px)/1 var(--serif); white-space: nowrap; }
.hero-proofs h2 { margin: 0; font: 400 19px/1.25 var(--serif); color: #fff; }
.hero-proofs p { margin: 6px 0 0; color: var(--on-dark); font-size: 14.5px; line-height: 1.5; }
.hero > .photo-tag { top: 100px; right: var(--pad); }

/* ── Полоса цифр ── */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 var(--pad); background: var(--paper); border-bottom: 1px solid var(--line); }
.stats-band div { padding: clamp(34px, 4vw, 56px) 24px clamp(34px, 4vw, 56px) 0; }
.stats-band div + div { padding-left: clamp(18px, 3vw, 40px); border-left: 1px solid var(--line); }
.stats-band b { display: block; color: var(--forest); font: 400 clamp(40px, 4.4vw, 72px)/1 var(--serif); letter-spacing: -.03em; }
.stats-band b i { color: var(--gold); font-style: normal; }
.stats-band span { display: block; max-width: 240px; margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.45; }

/* ── «Знакомо?» было / стало ── */
.pain-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pain-row { display: contents; }
.pain-row > div { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; padding: 26px 30px 26px 0; border-bottom: 1px solid var(--line); }
.pain-row > div + div { padding-left: 30px; border-left: 1px solid var(--line); }
.pain-row .bad { color: var(--muted); }
.pain-row .bad p { margin: 0; font: 400 20px/1.35 var(--serif); }
.pain-row .good p { margin: 0; font-size: 16.5px; line-height: 1.55; }
.pain-row .good b { display: block; margin-bottom: 4px; font: 400 20px/1.3 var(--serif); }
.pain-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); }
.pain-mark svg { width: 15px; height: 15px; }
.bad .pain-mark { color: #a3523a; }
.good .pain-mark { border-color: var(--forest); background: var(--forest); color: var(--gold-light); }
.pain-head { display: contents; }
.pain-head span { padding: 22px 0 16px; color: var(--gold); font: 600 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.pain-head span + span { padding-left: 30px; border-left: 1px solid var(--line); }
.pain-head span:first-child { color: #a3523a; }
.pain-lbl { display: none; }
/* Цитата — цельная карточка: фото во всю высоту слева, текст справа по центру. */
.quote-wide { display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 1fr); grid-template-areas: "ph q" "ph who"; column-gap: clamp(28px, 4vw, 56px); max-width: 1100px; margin: clamp(48px, 6vw, 80px) auto 0; background: var(--paper); border: 1px solid var(--line); }
.qw-ph { grid-area: ph; position: relative; min-height: 290px; overflow: hidden; background: var(--sand); }
.qw-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.quote-wide blockquote { grid-area: q; align-self: end; margin: 0; padding: clamp(28px, 3.4vw, 48px) clamp(24px, 3.4vw, 52px) 0 0; }
.quote-wide p { margin: 0; color: var(--ink); font: italic 400 clamp(22px, 2.1vw, 30px)/1.32 var(--serif); text-wrap: pretty; }
.quote-wide figcaption { grid-area: who; align-self: start; padding: 22px clamp(24px, 3.4vw, 52px) clamp(28px, 3.4vw, 48px) 0; }
.quote-wide figcaption b { display: block; color: var(--ink); font: 400 20px/1.2 var(--serif); }
.quote-wide figcaption span { display: block; margin-top: 6px; color: var(--gold); font: 600 11.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; }

/* ── Карточки форматов ── */
.formats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.format-card { position: relative; grid-column: span 2; display: flex; flex-direction: column; min-height: 560px; overflow: hidden; isolation: isolate; background: var(--forest-deep); color: #fff; }
.format-card:nth-child(4), .format-card:nth-child(5) { grid-column: span 3; min-height: 500px; }
.format-card picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.format-card:hover picture img { transform: scale(1.05); }
.format-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 14, 9, .2) 0%, rgba(20, 14, 9, .45) 42%, rgba(20, 14, 9, .95) 100%); }
.format-card .copy { margin-top: auto; padding: clamp(24px, 2.6vw, 38px); }
.format-card .num { color: var(--gold-light); font: 400 15px/1 var(--serif); }
.format-card h3 { margin: 14px 0 12px; font: 400 clamp(26px, 2.2vw, 36px)/1.06 var(--serif); letter-spacing: -.02em; }
.format-card h3 a::before { content: ""; position: absolute; inset: 0; z-index: 0; }
.format-card p { margin: 0; color: var(--on-dark); font-size: 15.5px; line-height: 1.55; }
.format-card ul { margin: 16px 0 0; padding: 0; list-style: none; color: var(--on-dark); font-size: 14.5px; }
.format-card li { display: flex; gap: 10px; }
.format-card li + li { margin-top: 6px; }
.format-card li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; background: var(--amber); }
.format-card .acts { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 22px; }
.format-card .acts .button { min-height: 50px; padding: 0 20px; }
.format-card .acts a.more { color: #fff; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--gold-light); padding-bottom: 3px; }

/* ── В смете уже всё включено ── */
.included { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.included > div { padding: 30px 28px 34px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); transition: background .35s; }
.included > div:hover { background: rgba(233, 167, 82, .07); }
.included span { color: var(--gold-light); font: 400 15px/1 var(--serif); }
.included .opt { float: right; padding: 3px 8px; border: 1px solid var(--line-dark); border-radius: 2px; color: var(--on-dark-2); font: 600 10.5px/1.3 var(--sans); font-style: normal; letter-spacing: .1em; text-transform: uppercase; }
.included .opt.key { border-color: var(--gold); color: var(--gold); }
.included h3 { margin: 18px 0 10px; font: 400 23px/1.2 var(--serif); }
.included p { margin: 0; color: var(--on-dark); font-size: 15px; line-height: 1.55; }
/* Один чат: полоса во всю ширину на еле видном фоне интерьера, справа — телефон с перепиской. */
.one-window { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: clamp(30px, 6vw, 110px); align-items: center; margin: clamp(56px, 7vw, 100px) calc(var(--pad) * -1) calc(var(--section) * -1); padding: clamp(64px, 8vw, 120px) var(--pad); overflow: hidden; }
.ow-bg { position: absolute; inset: 0; z-index: -1; }
.ow-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .45; filter: saturate(.8); }
.ow-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--forest-deep) 0%, rgba(29, 21, 14, .88) 38%, rgba(29, 21, 14, .5) 100%), linear-gradient(180deg, var(--forest-deep) 0%, rgba(29, 21, 14, 0) 22%, rgba(29, 21, 14, 0) 78%, var(--forest-deep) 100%); }

/* ── Телефон с перепиской (иллюстрация) ── */
.phone-fig { display: grid; justify-items: center; gap: 18px; margin: 0; }
.phone-fig figcaption { color: var(--on-dark-2); font-size: 13px; }
.phone { position: relative; width: min(100%, 340px); aspect-ratio: 9 / 18.4; padding: 11px; border-radius: 54px; background: linear-gradient(145deg, #4a443d, #141210 38%, #2c2925); box-shadow: inset 0 0 0 1.5px #625b52, inset 0 0 0 4px #0c0b0a, 0 50px 100px rgba(0, 0, 0, .55), 0 18px 40px rgba(0, 0, 0, .35); }
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #3b3732; }
.phone::before { left: -3px; top: 22%; height: 64px; box-shadow: 0 80px 0 #3b3732; }
.phone::after { right: -3px; top: 28%; height: 96px; }
.phone-screen { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 44px; background: radial-gradient(120% 60% at 15% 20%, rgba(255, 255, 255, .45), transparent 60%), linear-gradient(165deg, #eadfca, #d8c6a7); color: #1d150e; font-family: -apple-system, "SF Pro Text", "Segoe UI", var(--sans); }
.phone-screen::after { content: ""; position: absolute; left: 50%; bottom: 8px; width: 118px; height: 4px; margin-left: -59px; border-radius: 3px; background: rgba(29, 21, 14, .75); }
.ph-status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 8px 26px 0 34px; background: rgba(251, 248, 243, .96); font-size: 14.5px; }
.ph-status b { font-weight: 600; }
.ph-island { position: absolute; left: 50%; top: 11px; width: 94px; height: 28px; margin-left: -47px; border-radius: 20px; background: #000; }
.ph-sys { display: flex; align-items: center; gap: 5px; }
.ph-sys svg { width: 16px; height: 11px; fill: currentColor; }
.ph-bat { position: relative; width: 24px; height: 12px; padding: 1.5px; border: 1px solid rgba(29, 21, 14, .45); border-radius: 4px; }
.ph-bat i { display: block; width: 74%; height: 100%; border-radius: 2px; background: currentColor; }
.ph-bar { display: flex; align-items: center; gap: 10px; padding: 6px 14px 10px 8px; background: rgba(251, 248, 243, .96); border-bottom: 1px solid rgba(29, 21, 14, .1); }
.ph-back { width: 24px; height: 24px; color: #b8732a; }
.ph-ava { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #f0c07b, #c8873a); color: #1d150e; font: 400 19px/1 var(--serif); }
.ph-bar b { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.ph-bar small { color: #8c8274; font-size: 12.5px; }
.ph-chat { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; gap: 5px; min-height: 0; padding: 10px 12px 8px 14px; overflow: hidden; }
.ph-day { align-self: center; margin: 4px 0 2px; padding: 3px 10px; border-radius: 12px; background: rgba(29, 21, 14, .3); color: #fff; font-size: 11.5px; font-weight: 600; }
.ph-chat .msg { position: relative; flex: none; align-self: flex-start; max-width: 84%; padding: 6px 10px 6px; border-radius: 16px 16px 16px 0; background: #fff; font-size: 13.5px; line-height: 1.38; box-shadow: 0 1px 1px rgba(29, 21, 14, .1); }
.ph-chat .msg::after { content: ""; position: absolute; left: -9px; bottom: 0; width: 10px; height: 10px; background: radial-gradient(circle at 0 0, transparent 9.5px, #fff 10px); }
.ph-chat .msg.me { align-self: flex-end; border-radius: 16px 16px 0 16px; background: #f8e2bd; }
.ph-chat .msg.me::after { left: auto; right: -9px; background: radial-gradient(circle at 100% 0, transparent 9.5px, #f8e2bd 10px); }
.ph-chat .msg b { display: block; margin-bottom: 1px; font-size: 13px; font-weight: 600; }
.ph-chat .n1 { color: #c0702a; }
.ph-chat .n2 { color: #2e8576; }
.ph-chat .msg small { float: right; margin: 7px -2px -3px 10px; color: #9a9184; font-size: 11px; line-height: 1; }
.ph-chat .msg.me small { color: #a8823f; }
.ph-chat .rd::before { content: "✓✓"; margin-left: 2px; letter-spacing: -4px; font-style: normal; }
.ph-chat .msg .ph { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 6px -6px 2px; }
.ph-chat .msg .ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.ph-input { display: flex; align-items: center; gap: 10px; padding: 8px 14px 24px; background: rgba(251, 248, 243, .96); color: #9a9184; font-size: 14px; }
.ph-input span { flex: 1; padding: 7px 14px; border: 1px solid rgba(29, 21, 14, .12); border-radius: 18px; background: #fff; }
.ph-input svg { flex: none; width: 23px; height: 23px; }

/* ── Шаги во вкладках ── */
.steps-tabs { display: grid; grid-template-columns: minmax(260px, .42fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 70px); align-items: start; }
.tab-list { display: grid; border-top: 1px solid var(--line); }
.tab-list button { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 12px; align-items: center; padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; text-align: left; font: 400 21px/1.25 var(--serif); color: var(--muted); transition: color .25s, padding .35s var(--ease); }
.tab-list button span { color: var(--gold); font-size: 15px; }
.tab-list button::after { content: ""; width: 9px; height: 9px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0; transition: opacity .25s; }
.tab-list button:hover { color: var(--ink); }
.tab-list button[aria-selected=true] { color: var(--ink); padding-left: 10px; }
.tab-list button[aria-selected=true]::after { opacity: 1; }
.tab-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--paper); border: 1px solid var(--line); min-height: 470px; }
.tab-panel[hidden] { display: none; }
.tab-panel .ph { position: relative; overflow: hidden; background: var(--forest-deep); }
.tab-panel .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: image-in 1s var(--ease) both; }
.tab-panel .tx { display: flex; flex-direction: column; padding: clamp(26px, 3vw, 44px); animation: fade-up .6s var(--ease) both; }
.tab-panel .tx .kicker { margin-bottom: 14px; color: var(--gold); font: 600 12px/1.4 var(--sans); }
.tab-panel h3 { margin: 0 0 16px; font: 400 clamp(28px, 2.6vw, 40px)/1.06 var(--serif); letter-spacing: -.02em; }
.tab-panel p { margin: 0 0 12px; color: var(--ink-soft); font-size: 16.5px; line-height: 1.6; }
.tab-panel ul { margin: 6px 0 0; padding: 0; list-style: none; }
.tab-panel li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.5; }
.tab-panel li + li { margin-top: 8px; }
.tab-panel li svg { width: 17px; height: 17px; margin-top: 3px; color: var(--gold); }
.tab-panel .mini { margin-top: auto; padding-top: 24px; }
.tab-panel .mini .button { min-height: 50px; padding: 0 20px; }

/* ── График (диаграмма Ганта) ── */
.gantt { border-top: 1px solid var(--line-dark); }
.gantt-scale, .gantt-row { display: grid; grid-template-columns: minmax(200px, 330px) minmax(0, 1fr) 90px; gap: 20px; align-items: center; }
.gantt-scale { padding: 12px 0; color: var(--on-dark-2); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--line-dark); }
.gantt-months { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); }
.gantt-months span { padding-left: 6px; border-left: 1px solid var(--line-dark); }
.gantt-row { padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.gantt-row .nm { color: #fff; font-size: 15px; line-height: 1.35; }
.gantt-row .nm span { color: var(--gold-light); font: 400 14px/1 var(--serif); margin-right: 8px; }
.gantt-track { position: relative; height: 26px; background: repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), rgba(255, 255, 255, .07) calc(12.5% - 1px) 12.5%); }
.gantt-bar { position: absolute; top: 4px; bottom: 4px; border-radius: 2px; background: linear-gradient(90deg, #c8873a, var(--amber)); box-shadow: 0 6px 18px rgba(233, 167, 82, .25); transform-origin: left; animation: line-in 1.2s var(--ease) both; }
.gantt-bar.ext { background: repeating-linear-gradient(45deg, rgba(233, 167, 82, .55) 0 6px, rgba(233, 167, 82, .25) 6px 12px); box-shadow: none; }
.gantt-row .dur { color: var(--on-dark); font-size: 14px; text-align: right; white-space: nowrap; }
.gantt-legend { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; color: var(--on-dark-2); font-size: 14px; }
.gantt-legend i { display: inline-block; width: 26px; height: 10px; margin-right: 8px; vertical-align: middle; background: linear-gradient(90deg, #c8873a, var(--amber)); }
.gantt-legend i.ext { background: repeating-linear-gradient(45deg, rgba(233, 167, 82, .55) 0 6px, rgba(233, 167, 82, .25) 6px 12px); }

/* ── Скрытые работы ── */
.hidden-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.hw-card { position: relative; overflow: hidden; background: var(--forest-deep); color: #fff; min-height: 420px; }
.hw-card:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.hw-card:nth-child(2) { grid-column: span 4; }
.hw-card:nth-child(3) { grid-column: span 3; }
.hw-card:nth-child(4) { grid-column: span 7; min-height: 360px; }
.hw-card picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hw-card:hover picture img { transform: scale(1.05); }
.hw-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(20, 14, 9, .92)); }
.hw-card .copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 26px 28px; }
.hw-card h3 { margin: 0 0 8px; font: 400 25px/1.15 var(--serif); }
.hw-card p { margin: 0; max-width: 520px; color: var(--on-dark); font-size: 15px; line-height: 1.55; }
.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.skills li { padding: 20px 22px 22px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); list-style: none; }
.skills li:not(:nth-child(4n+1)) { padding-left: 22px; border-left: 1px solid var(--line); }
.skills li b { display: block; margin-bottom: 4px; color: var(--gold); font: 400 14px/1 var(--serif); }
.skills { padding: 0; margin-left: 0; margin-right: 0; }

/* ── Контроль и команда ── */
.control-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); }
.ladder { margin: 0; padding: 0; list-style: none; counter-reset: l; }
.ladder li { counter-increment: l; position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.ladder li:first-child { border-top: 1px solid var(--line); }
.ladder li::before { content: "0" counter(l); color: var(--gold); font: 400 34px/1 var(--serif); }
.ladder b { display: block; font: 400 22px/1.25 var(--serif); }
.ladder span { display: block; margin-top: 4px; color: var(--muted); font-size: 15.5px; }
.ladder li:nth-child(2) { margin-left: 24px; } .ladder li:nth-child(3) { margin-left: 48px; } .ladder li:nth-child(4) { margin-left: 72px; }
.team-photo { position: relative; margin: 0; overflow: hidden; }
.team-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.team-photo figcaption { padding: 14px 0 0; color: var(--muted); font-size: 14px; }
.selection { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 30px; background: var(--line); border: 1px solid var(--line); }
.selection div { padding: 20px 18px; background: var(--paper); }
.selection b { display: block; color: var(--forest); font: 400 30px/1 var(--serif); }
.selection span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* ── Артём ── */
.artem-block { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: 640px; background: var(--forest-deep); color: #fff; }
.artem-block .ph { position: relative; overflow: hidden; }
.artem-block .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.artem-block .tx { display: flex; flex-direction: column; justify-content: center; padding: var(--section) var(--pad); }
.artem-block blockquote { margin: 0; font: italic 400 clamp(28px, 3vw, 46px)/1.18 var(--serif); letter-spacing: -.015em; }
.artem-block blockquote::before { content: "\201C"; display: block; height: .5em; color: var(--amber); font: normal 400 2.6em/.9 Georgia, var(--serif); }
.artem-block cite { display: block; margin-top: 28px; font-style: normal; }
.artem-block cite b { display: block; font: 400 24px/1.2 var(--serif); }
.artem-block cite span { color: var(--gold-light); font-size: 14px; letter-spacing: .04em; }
.artem-block .kicker { color: var(--gold-light); }
.artem-block .link-arrow { color: #fff; border-color: var(--gold-light); }
.artem-block .tx > p { max-width: 560px; margin: 26px 0 0; color: var(--on-dark); font-size: 16.5px; line-height: 1.6; }

/* ── Кейсы и галерея ── */
.cases { border-top: 1px solid var(--line); }
.case { display: grid; grid-template-columns: minmax(0, 1.2fr) 120px 140px minmax(0, 1fr); gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.case h3 { margin: 0; font: 400 23px/1.25 var(--serif); }
.case small { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.case .v { font: 400 30px/1 var(--serif); color: var(--forest); }
.case .v small { display: inline; margin: 0 0 0 4px; font: 400 14px var(--sans); }
.case-bar { height: 8px; background: #e6dccd; }
.case-bar i { display: block; height: 100%; background: linear-gradient(90deg, #c8873a, var(--amber)); transform-origin: left; animation: line-in 1.4s var(--ease) both; }
.cases-h { margin: clamp(56px, 7vw, 96px) 0 18px; font: 400 clamp(24px, 2.2vw, 32px)/1.15 var(--serif); }

/* ── Кейс: лента фото, «до/после», видеообзор ── */
.case-switch .cs-tabs { display: flex; gap: 8px; margin-bottom: clamp(28px, 3.4vw, 44px); overflow-x: auto; scrollbar-width: none; }
.cs-tabs::-webkit-scrollbar { display: none; }
.cs-tabs button { display: grid; flex: none; gap: 5px; padding: 14px 20px 15px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .25s, background .25s, color .25s; }
.cs-tabs button b { font: 400 18px/1.2 var(--serif); white-space: nowrap; }
.cs-tabs button small { color: var(--muted); font-size: 13px; white-space: nowrap; }
.cs-tabs button:hover { border-color: var(--forest); }
.cs-tabs button[aria-selected=true] { border-color: var(--forest); background: var(--forest); color: #fff; }
.cs-tabs button[aria-selected=true] small { color: var(--gold-light); }
.cs-panel[hidden] { display: none; }
.cs-panel .case-card { animation: fade-up .5s var(--ease) both; }
.cases-list { display: grid; gap: clamp(64px, 8vw, 120px); }
.case-card { display: grid; gap: 22px; min-width: 0; }
.cc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.cc-head .kicker { margin: 0 0 10px; }
.cc-head h3 { margin: 0; font: 400 clamp(28px, 2.8vw, 42px)/1.06 var(--serif); letter-spacing: -.02em; }
.cc-facts { display: flex; flex-wrap: wrap; margin: 0; }
.cc-facts div { padding: 2px 22px; border-left: 1px solid var(--line); }
.cc-facts dt { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.cc-facts dd { margin: 5px 0 0; color: var(--ink); font: 400 19px/1.2 var(--serif); }
.cc-note { flex-basis: 100%; margin: -4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.cc-media { position: relative; min-width: 0; }
.cc-strip { position: relative; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline-offset: 4px; }
.cc-strip::-webkit-scrollbar { display: none; }
.cc-strip[hidden] { display: none; }
.cc-strip figure { position: relative; flex: none; height: clamp(300px, 30vw, 460px); margin: 0; overflow: hidden; scroll-snap-align: start; background: var(--sand); }
.cc-strip a { display: block; height: 100%; cursor: zoom-in; }
.cc-strip img { display: block; width: auto; max-width: none; height: 100%; transition: transform 1.1s var(--ease); }
.cc-strip figure:hover img { transform: scale(1.03); }
.cc-strip figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 12px; background: linear-gradient(180deg, transparent, rgba(20, 14, 9, .8)); color: #fff; font-size: 13.5px; line-height: 1.35; pointer-events: none; }
.cc-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.cc-tabs { display: inline-flex; margin-right: auto; padding: 3px; border: 1px solid var(--line); border-radius: 30px; background: var(--paper); }
.cc-tabs button { padding: 8px 16px; border: 0; border-radius: 30px; background: none; color: var(--muted); font: 600 14px/1 var(--sans); cursor: pointer; transition: background .25s, color .25s; }
.cc-tabs button small { margin-left: 6px; font-weight: 400; opacity: .7; }
.cc-tabs button[aria-pressed=true] { background: var(--forest); color: #fff; }
.cc-count { margin-left: auto; padding-right: 6px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.cc-count b { color: var(--ink); font-weight: 600; }
.cc-btn { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; transition: border-color .25s, background .25s, color .25s, opacity .25s; }
.cc-btn:hover:not(:disabled) { border-color: var(--forest); background: var(--forest); color: #fff; }
.cc-btn:disabled { opacity: .35; cursor: default; }
.cc-btn svg { width: 18px; height: 18px; }
.cc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: clamp(28px, 5vw, 90px); align-items: start; padding-top: 10px; }
.cc-text { max-width: 780px; }
.cc-text h4 { margin: 0 0 8px; color: var(--gold); font: 600 11.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.cc-text p { margin: 0 0 18px; color: var(--ink-soft); font-size: 16px; line-height: 1.6; }
.cc-text p b { color: var(--ink); font-weight: 600; }
.cc-more summary { display: inline-flex; align-items: center; gap: 8px; color: var(--forest); font-size: 14.5px; font-weight: 600; cursor: pointer; list-style: none; border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
.cc-more summary::-webkit-details-marker { display: none; }
.cc-more summary::after { content: "+"; font-weight: 400; }
.cc-more[open] summary { margin-bottom: 16px; }
.cc-more[open] summary::after { content: "−"; }
.cc-side { display: grid; gap: 26px; justify-items: start; }
.cc-video { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; width: 100%; color: var(--ink); }
.cc-poster { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.cc-poster img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.cc-video:hover .cc-poster img, .cc-vmain:hover img { transform: scale(1.05); }
.play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: var(--amber); color: var(--forest-deep); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); transition: transform .35s var(--ease); }
.play svg { width: 17px; height: 17px; margin-left: 2px; fill: currentColor; }
.cc-video:hover .play, .cc-vmain:hover .play { transform: scale(1.1); }
.cc-vt b { display: block; font: 400 19px/1.2 var(--serif); }
.cc-vt small { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.cc-vmain { display: block; overflow: hidden; }
.cc-vmain .cc-poster { aspect-ratio: 16 / 9; }
.cc-vmain .play { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
.cc-vmain .play svg { width: 28px; height: 28px; margin-left: 4px; }
.cc-vmain .cc-vt { display: none; }
.vcases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 70px) 28px; margin-top: clamp(64px, 8vw, 120px); }
.vcases .cc-head h3 { font-size: clamp(26px, 2.2vw, 32px); }
.vcases .cc-facts div { padding: 2px 16px; }
.vcases .cc-facts div:first-child { padding-left: 0; border-left: 0; }
.vcases .cc-body { grid-template-columns: minmax(0, 1fr); gap: 4px; }

/* ── Просмотр фото и видео поверх страницы ── */
.lb, .vd { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #0f0b08; color: #fff; overscroll-behavior: contain; }
.lb::backdrop, .vd::backdrop { background: rgba(12, 9, 6, .5); }
.lb[open], .vd[open] { display: grid; place-items: center; }
.lb figure { display: grid; justify-items: center; gap: 14px; max-width: calc(100vw - 180px); margin: 0; }
.lb img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 140px); object-fit: contain; }
.lb figcaption { min-height: 1.4em; padding: 0 20px; color: var(--on-dark); font-size: 15px; text-align: center; }
.lb-x { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; }
.lb-x svg, .lb-nav svg { width: 20px; height: 20px; }
.lb-nav { position: absolute; top: 50%; display: grid; place-items: center; width: 56px; height: 56px; margin-top: -28px; padding: 0; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; transition: background .25s, border-color .25s; }
.lb-x:hover, .lb-nav:hover { border-color: var(--gold-light); background: rgba(233, 167, 82, .15); }
.lb-prev { left: 28px; } .lb-next { right: 28px; }
.lb-count { position: absolute; top: 32px; left: 30px; color: var(--on-dark-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.vd-box { width: min(1120px, calc(100vw - 48px)); }
.vd-box > b { display: block; margin-bottom: 14px; padding-right: 60px; font: 400 clamp(20px, 2vw, 26px)/1.2 var(--serif); }
.vd-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vd-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vd-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; margin-top: 16px; color: var(--on-dark-2); font-size: 14px; }
.vd-foot .link-arrow { color: #fff; border-color: var(--gold-light); font-size: 14px; }

/* ── Гарантия ── */
.guarantee { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guarantee div { position: relative; padding: 34px 30px 36px; border: 1px solid var(--line); background: var(--paper); }
.guarantee div:last-child { border-color: var(--forest); background: var(--forest); color: #fff; }
.guarantee b { display: block; font: 400 clamp(64px, 6vw, 96px)/.9 var(--serif); letter-spacing: -.04em; color: var(--forest); }
.guarantee div:last-child b { color: var(--gold-light); }
.guarantee b small { font-size: .3em; letter-spacing: 0; margin-left: 6px; }
.guarantee h3 { margin: 22px 0 8px; font: 400 21px/1.3 var(--serif); }
.guarantee p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.guarantee div:last-child p { color: var(--on-dark); }
.guarantee .tag { position: absolute; top: 18px; right: 18px; padding: 5px 10px; background: var(--amber); color: var(--forest-deep); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* ── ЖК ── */
.zhk { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.zhk div { padding: 24px 26px 26px 0; border-bottom: 1px solid var(--line); }
.zhk div:not(:nth-child(3n+1)) { padding-left: 26px; border-left: 1px solid var(--line); }
.zhk b { display: block; font: 400 24px/1.2 var(--serif); }
.zhk span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ── Финальная форма с подарками ── */
.final-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 520px); gap: clamp(30px, 5vw, 80px); align-items: start; }
.gift-list { margin: 30px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.gift-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.gift-list svg { width: 30px; height: 30px; color: var(--amber); }
.gift-list b { display: block; font: 400 21px/1.25 var(--serif); }
.gift-list span { display: block; margin-top: 4px; color: var(--on-dark); font-size: 15px; line-height: 1.5; }
.form-card { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-quiz); background: var(--paper); color: var(--ink); box-shadow: 0 40px 100px rgba(0, 0, 0, .3); }
.form-card h3 { margin: 0 0 8px; font: 400 clamp(26px, 2.4vw, 34px)/1.1 var(--serif); }
.form-card > p { margin: 0 0 22px; color: var(--muted); font-size: 15.5px; }
.lead-form { display: grid; gap: 14px; }
.lead-form .button { width: 100%; }
.lead-form .quiz-error { margin: 0; min-height: 0; }
.form-done { padding: 20px 0; }
.form-done h3 { margin: 0 0 12px; font: 400 28px/1.15 var(--serif); }
.form-done p:last-child { color: var(--muted); }

/* ── Статьи ── */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.a-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.a-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(45, 30, 15, .1); }
.a-card picture img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.a-card .in { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.a-card .kicker { margin-bottom: 10px; font-size: 11px; }
.a-card h3 { margin: 0 0 10px; font: 400 23px/1.2 var(--serif); }
.a-card h3 a::before { content: ""; position: absolute; inset: 0; }
.a-card p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.a-card .more { margin-top: auto; color: var(--forest); font-size: 14px; font-weight: 600; }

/* ── Золотая полоса ── */
.gold-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; padding: clamp(48px, 6vw, 84px) var(--pad); background: linear-gradient(100deg, #d99a4b, var(--amber) 55%, #f0c07b); color: var(--forest-deep); }
.gold-strip h2 { margin: 0; font: 400 clamp(32px, 3.8vw, 58px)/1.04 var(--serif); letter-spacing: -.03em; }
.gold-strip p { margin: 12px 0 0; max-width: 700px; font-size: 17px; }
.gold-strip .acts { display: flex; flex-wrap: wrap; gap: 14px; }
.gold-strip .button-ghost { border-color: rgba(29, 21, 14, .4); color: var(--forest-deep); background: rgba(255, 255, 255, .15); }

/* ── Отзывы с Яндекс Карт ── */
.reviews-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 34px; margin-bottom: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.dark .reviews-top { border-color: var(--line-dark); }
.ymaps-rating { display: flex; align-items: center; gap: 18px; }
.ymaps-rating > b { font: 400 clamp(48px, 4.4vw, 64px)/1 var(--serif); color: var(--gold); letter-spacing: -.02em; }
.dark .ymaps-rating > b { color: var(--gold-light); }
.ymaps-rating span { display: block; margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.dark .ymaps-rating span { color: var(--on-dark-2); }
.stars { display: flex; gap: 3px; color: var(--amber); }
.stars svg { width: 17px; height: 17px; fill: currentColor; }
.stars .dim { opacity: .3; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { display: flex; flex-direction: column; margin: 0; padding: 28px 28px 26px; border: 1px solid var(--line); background: var(--paper); }
.dark .review { border-color: var(--line-dark); background: rgba(255, 255, 255, .04); }
.review blockquote { flex: 1; margin: 18px 0 22px; }
.review blockquote p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.6; }
.dark .review blockquote p { color: var(--on-dark); }
.review figcaption { padding-top: 18px; border-top: 1px solid var(--line); }
.dark .review figcaption { border-color: var(--line-dark); }
.review figcaption b { display: block; font: 400 20px/1.2 var(--serif); }
.review figcaption span { display: block; margin-top: 5px; color: var(--muted); font-size: 13.5px; }
.dark .review figcaption span { color: var(--on-dark-2); }

/* ── Внутренние страницы ── */
.page-hero { position: relative; overflow: hidden; padding: 150px var(--pad) clamp(56px, 6vw, 90px); background: var(--forest-deep); color: #fff; }
.page-hero > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: image-in 1.6s var(--ease) both; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 14, 9, .95) 0%, rgba(20, 14, 9, .82) 45%, rgba(20, 14, 9, .35) 100%), linear-gradient(180deg, rgba(20, 14, 9, .5), transparent 30%); }
.page-hero .in { position: relative; z-index: 2; max-width: 920px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; color: var(--on-dark-2); font-size: 13.5px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a:hover { color: #fff; }
.page-hero h1 { margin: 0; font: 400 clamp(38px, 4.6vw, 72px)/1.03 var(--serif); letter-spacing: -.03em; text-wrap: balance; animation: fade-up 1s .1s var(--ease) both; }
.page-hero h1 i { color: var(--gold-italic); }
.page-hero .lead { max-width: 760px; margin: 26px 0 0; color: var(--on-dark); font-size: clamp(17px, 1.3vw, 20px); line-height: 1.6; animation: fade-up 1s .25s var(--ease) both; }
.page-hero .hero-actions { margin-top: 30px; }
.page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 30px; color: var(--on-dark-2); font-size: 14px; }
.page-meta img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.page-meta .au { display: flex; align-items: center; gap: 12px; color: #fff; }
.page-meta .au small { display: block; color: var(--on-dark-2); }
.page-hero .photo-tag { top: auto; bottom: 18px; }

.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(260px, 330px); gap: clamp(36px, 6vw, 110px); justify-content: center; padding: clamp(56px, 7vw, 100px) var(--pad); }
.toc { position: sticky; top: 96px; display: grid; gap: 22px; align-self: start; align-content: start; }
.toc nav { padding: 22px 24px; border: 1px solid var(--line); background: var(--paper); }
.toc nav b { display: block; margin-bottom: 12px; color: var(--gold); font: 600 11px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: t; font-size: 14.5px; line-height: 1.4; }
.toc li { counter-increment: t; display: grid; grid-template-columns: 26px minmax(0, 1fr); }
.toc li + li { margin-top: 9px; }
.toc li::before { content: counter(t, decimal-leading-zero); color: var(--gold); font: 400 13px/1.5 var(--serif); }
.toc a:hover { color: var(--gold); }
.aside-cta { padding: 24px; background: var(--forest-deep); color: #fff; }
.aside-cta b { display: block; font: 400 22px/1.2 var(--serif); }
.aside-cta p { margin: 10px 0 18px; color: var(--on-dark); font-size: 14.5px; line-height: 1.5; }
.aside-cta .button { width: 100%; min-height: 50px; }
.aside-cta .alt { display: block; margin-top: 14px; color: var(--gold-light); font-size: 14px; text-align: center; text-decoration: underline; text-underline-offset: 3px; }

.prose { min-width: 0; font-size: 18px; line-height: 1.7; color: var(--ink-soft); }
.prose > *:first-child { margin-top: 0; }
.prose .lead-rest { margin: 0 0 1.5em; padding-left: 22px; border-left: 2px solid var(--amber); color: var(--ink); font-size: clamp(18px, 1.4vw, 20px); line-height: 1.6; }
.prose h2 { margin: 2.1em 0 .6em; color: var(--ink); font: 400 clamp(30px, 2.8vw, 42px)/1.1 var(--serif); letter-spacing: -.02em; scroll-margin-top: 90px; text-wrap: balance; }
.prose h3 { margin: 1.7em 0 .5em; color: var(--ink); font: 400 clamp(22px, 1.8vw, 27px)/1.25 var(--serif); }
.prose p { margin: 0 0 1em; }
.prose a { color: var(--forest); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.prose a:hover { color: var(--gold); }
.prose .button { color: var(--forest-deep); text-decoration: none; }
.prose .button:hover { color: var(--forest-deep); }
.prose b, .prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; background: var(--amber); }
.prose ol { counter-reset: o; }
.prose ol li { counter-increment: o; position: relative; padding-left: 40px; }
.prose ol li::before { content: counter(o, decimal-leading-zero); position: absolute; left: 0; top: .1em; color: var(--gold); font: 400 16px/1.6 var(--serif); }
.prose li + li { margin-top: .45em; }
.prose .table-wrap { margin: 1.4em 0 1.6em; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.data-table th { padding: 12px 16px 12px 0; border-bottom: 1.5px solid var(--ink); color: var(--ink); font: 700 12px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-align: left; vertical-align: bottom; }
.data-table td { padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr:hover td { background: rgba(233, 167, 82, .06); }
.callout { margin: 1.6em 0; padding: 22px 26px; border-left: 3px solid var(--amber); background: var(--paper); }
.callout p:last-child { margin-bottom: 0; }
.prose .quote { margin: 1.8em 0; padding: 0 0 0 30px; border-left: 1px solid var(--gold); }
.prose .quote p { margin: 0; color: var(--ink); font: italic 400 clamp(22px, 2vw, 28px)/1.35 var(--serif); }
.prose .quote cite { display: block; margin-top: 12px; color: var(--gold); font: 600 12px/1.3 var(--sans); font-style: normal; letter-spacing: .14em; text-transform: uppercase; }
.fig { position: relative; margin: 2em 0; }
.fig picture img { width: 100%; height: auto; }
.fig .photo-tag { top: 14px; right: 14px; }
.fig figcaption { padding-top: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.inline-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin: 2.4em 0; padding: 28px 30px; background: var(--forest-deep); color: #fff; }
.inline-cta b { display: block; color: #fff; font: 400 24px/1.2 var(--serif); }
.inline-cta p { margin: 8px 0 0; color: var(--on-dark); font-size: 15.5px; line-height: 1.5; }
.author-box { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 3em; padding: 24px; border: 1px solid var(--line); background: var(--paper); }
.author-box img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.author-box b { display: block; color: var(--ink); font: 400 21px/1.2 var(--serif); }
.author-box p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.related-sec .cards3 { margin-top: 0; }
.faq-list.wide { max-width: none; margin-left: 0; }
.faq-group + .faq-group { margin-top: clamp(48px, 6vw, 80px); }
.faq-group h2 { margin: 0 0 18px; font: 400 clamp(28px, 2.6vw, 38px)/1.1 var(--serif); }
.faq-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(40px, 5vw, 64px); }
.faq-nav a { padding: 9px 16px; border: 1px solid var(--line); border-radius: 30px; background: var(--paper); font-size: 14.5px; transition: border-color .25s, background .25s; }
.faq-nav a:hover { border-color: var(--forest); background: var(--select); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-grid > div { padding: 30px; border: 1px solid var(--line); background: var(--paper); }
.contact-grid h2 { margin: 0 0 12px; color: var(--gold); font: 600 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.contact-grid .big { display: block; font: 400 28px/1.15 var(--serif); color: var(--ink); }
.contact-grid p { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; }
.map-box { margin-top: 18px; border: 1px solid var(--line); overflow: hidden; }
.map-box iframe { display: block; width: 100%; height: 420px; border: 0; }
.doc-body { max-width: 820px; margin: 0 auto; padding: 64px var(--pad) 96px; }
.doc-body h2 { margin: 40px 0 12px; font: 400 24px/1.25 var(--serif); }
.doc-body p, .doc-body li { color: var(--ink-soft); font-size: 17px; line-height: 1.65; }
.footer-cols { grid-template-columns: 1.3fr 1fr 1fr 1fr; }

/* ── Квиз на компьютере: колонки одной высоты, «Назад / Далее» у нижнего края — карточка не прыгает между вопросами ── */
@media (min-width: 981px) {
  .quiz-shell { grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); align-items: stretch; }
  #quiz { display: flex; flex-direction: column; }
  .quiz-main { display: flex; flex: 1; flex-direction: column; }
  .quiz-main .quiz-controls { margin-top: auto; }
  .value-visual picture img { aspect-ratio: 16 / 9; }
}

/* ── Адаптив ── */
@media (max-width: 1360px) {
  .nav { gap: 14px; font-size: 14px; }
}
@media (max-width: 1220px) {
  .nav { position: fixed; z-index: -1; top: 0; left: 0; right: 0; height: 100svh; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 90px var(--pad) 28px; background: var(--forest-ink); transform: translateY(-105%); transition: transform .45s var(--ease); overflow: auto; }
  .nav-open .site-header { backdrop-filter: none; background: var(--forest-ink); }
  .nav-open .mobile-bar { display: none !important; }
  .nav-open body { overflow: hidden; }
  .nav > a { padding: 15px 0; border-bottom: 1px solid var(--line-dark); font: 400 22px/1.2 var(--serif); }
  .nav > a::after { display: none; }
  .nav-open .nav { transform: none; }
  .nav-extra { display: grid; gap: 12px; margin-top: 22px; }
  .nav-extra .button { width: 100%; }
  .nav-toggle { display: grid; margin-left: 0; }
  .header-phone { margin-left: auto; }
  .hero.atlant .hero-grid { grid-template-columns: minmax(0, 1fr) 260px; }
  .formats { grid-template-columns: repeat(2, 1fr); }
  .format-card, .format-card:nth-child(4), .format-card:nth-child(5) { grid-column: span 1; min-height: 520px; }
  .format-card:nth-child(5) { grid-column: 1 / -1; min-height: 440px; }
  .included { grid-template-columns: repeat(2, 1fr); }
  .skills { grid-template-columns: repeat(2, 1fr); }
  .skills li:not(:nth-child(4n+1)) { padding-left: 0; border-left: 0; }
  .skills li:nth-child(2n) { padding-left: 22px; border-left: 1px solid var(--line); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .hero > .photo-tag { display: none; }
  .hero.atlant .hero-grid { grid-template-columns: minmax(0, 1fr); padding-top: 116px; }
  .hero-proofs { grid-template-columns: 1fr; margin-top: 36px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stats-band div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats-band div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pain-grid { grid-template-columns: 1fr; }
  .pain-head { display: none; }
  .pain-lbl { display: block; margin: 5px 0 6px; font: 600 11px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
  .bad .pain-lbl { color: #a3523a; }
  .good .pain-lbl { color: var(--gold); }
  .pain-row > div { padding-right: 0; }
  .pain-row > div + div { padding-left: 0; border-left: 0; padding-top: 4px; }
  .pain-row .bad { border-bottom: 0 !important; padding-bottom: 14px; }
  .one-window, .control-grid, .final-form, .artem-block { grid-template-columns: minmax(0, 1fr); }
  .steps-tabs { grid-template-columns: minmax(0, 1fr); }
  .tab-list { grid-template-columns: repeat(7, minmax(120px, 1fr)); overflow-x: auto; border: 0; gap: 8px; scrollbar-width: none; }
  .tab-list button { grid-template-columns: 1fr; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); font-size: 16px; }
  .tab-list button::after { display: none; }
  .tab-list button[aria-selected=true] { padding-left: 14px; border-color: var(--forest); background: var(--select); }
  .tab-panel { grid-template-columns: minmax(0, 1fr); }
  .tab-panel .ph { min-height: 260px; }
  .gantt-scale, .gantt-row { grid-template-columns: minmax(0, 1fr) 70px; }
  .gantt-scale > span:first-child { display: none; }
  .gantt-track, .gantt-months { grid-column: 1 / -1; }
  .gantt-row .nm { grid-row: 1; } .gantt-row .dur { grid-row: 1; grid-column: 2; }
  .gantt-scale .gantt-months { grid-column: 1 / -1; }
  .gantt-scale > span:last-child { display: none; }
  .hidden-grid { grid-template-columns: 1fr 1fr; }
  .hw-card, .hw-card:nth-child(n) { grid-column: span 1; grid-row: auto; min-height: 360px; }
  .ladder li:nth-child(n) { margin-left: 0; }
  .selection { grid-template-columns: repeat(2, 1fr); }
  .artem-block .ph { min-height: 520px; }
  .case { grid-template-columns: minmax(0, 1fr) auto auto; }
  .case-bar { grid-column: 1 / -1; }
  .cc-body, .vcases { grid-template-columns: minmax(0, 1fr); }
  .guarantee, .zhk, .cards3, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .zhk div:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .gold-strip { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .section-heading { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .section-heading .kicker { padding-top: 0; }
  .section-heading .sub { grid-column: 1; }
}
@media (max-width: 640px) {
  .gantt-months span { padding-left: 3px; font-size: 9.5px; letter-spacing: 0; }
  .header-phone { display: none; }
  .nav-toggle { margin-left: 0; width: 42px; height: 42px; }
  .header-acts { margin-left: auto; }
  .hero.atlant h1 { font-size: clamp(32px, 8.6vw, 42px); }
  .hero-facts { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-facts li { padding: 12px 10px 12px 0; font-size: 14px; }
  .hero-facts li + li { padding-left: 0; border-left: 0; }
  .hero-facts li:nth-child(2n) { padding-left: 12px; border-left: 1px solid var(--line-dark); }
  .hero-facts li:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .hero .cta-pair, .page-hero .cta-pair { width: 100%; justify-items: stretch; }
  .hero-proofs { margin-left: 0; margin-right: 0; border-left: 0; border-right: 0; }
  .hero-proofs > div { padding: 20px var(--pad) 22px; }
  .hero-proofs b { font-size: 28px; }
  .stats-band b { font-size: 38px; }
  .format-card, .format-card:nth-child(n) { grid-column: 1 / -1; min-height: 480px; }
  .formats { grid-template-columns: minmax(0, 1fr); }
  .included { grid-template-columns: minmax(0, 1fr); }
  .skills { grid-template-columns: minmax(0, 1fr); }
  .skills li:nth-child(2n) { padding-left: 0; border-left: 0; }
  .hidden-grid { grid-template-columns: minmax(0, 1fr); }
  .selection { grid-template-columns: 1fr 1fr; }
  .artem-block .ph { min-height: 420px; }
  .case { grid-template-columns: 1fr 1fr; gap: 10px 18px; }
  .case > div:first-child { grid-column: 1 / -1; }
  /* лента фото и вкладки объектов уходят под правый край экрана — видно, что их можно листать */
  .case-switch .cs-tabs, .cc-strip { margin-right: calc(var(--pad) * -1); padding-right: var(--pad); }
  .cs-tabs button { padding: 12px 16px 13px; }
  .cs-tabs button b { font-size: 17px; }
  .cc-strip { gap: 8px; }
  .cc-strip figure { height: 300px; }
  .cc-strip figcaption { padding: 30px 12px 10px; font-size: 13px; }
  .cc-head h3 { font-size: 28px; }
  .cc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; width: 100%; }
  .cc-facts div, .vcases .cc-facts div { padding: 0; border: 0; }
  .cc-facts dd { font-size: 17px; }
  .cc-note { margin: 0; }
  .cc-btn { width: 44px; height: 44px; }
  .cc-tabs button { padding: 8px 13px; }
  .cc-video { grid-template-columns: 124px minmax(0, 1fr); }
  .cc-side .cta-pair { width: 100%; justify-items: stretch; }
  .page-hero .photo-tag { display: none; }
  .lb figure { max-width: 100vw; }
  .lb img { max-height: calc(100dvh - 180px); }
  .lb-nav { top: auto; bottom: 26px; margin-top: 0; }
  .lb-prev { left: calc(50% - 72px); } .lb-next { right: calc(50% - 72px); }
  .lb-count { top: 34px; left: 22px; }
  .quote-wide { grid-template-columns: 60px minmax(0, 1fr); grid-template-areas: "q q" "ph who"; column-gap: 14px; align-items: center; padding: 24px 20px 22px; }
  .qw-ph { width: 60px; height: 60px; min-height: 0; border-radius: 50%; }
  .quote-wide blockquote { padding: 0 0 20px; }
  .quote-wide p { font-size: 21px; }
  .quote-wide figcaption { align-self: center; padding: 0; }
  .quote-wide figcaption b { font-size: 18px; }
  .hdr-ico { display: none; }
  .hero.atlant > picture img { object-position: 46% 50%; }
  .phone { width: min(100%, 320px); }
  /* отзывы на телефоне — лента с перелистыванием, а не шесть экранов подряд */
  .reviews { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; margin-right: calc(var(--pad) * -1); padding-right: var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .reviews::-webkit-scrollbar { display: none; }
  .review { padding: 22px 20px; scroll-snap-align: start; }
  .review blockquote p { font-size: 15.5px; }
  .ymaps-rating > b { font-size: 48px; }
  .page-hero { padding-top: 104px; }
  .page-hero::after { background: linear-gradient(180deg, rgba(20, 14, 9, .72) 0%, rgba(20, 14, 9, .84) 35%, rgba(20, 14, 9, .9) 100%); }
  .crumbs { flex-wrap: nowrap; margin-bottom: 20px; font-size: 13px; }
  .crumbs li { flex: none; white-space: nowrap; }
  .crumbs li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .toc { grid-template-columns: minmax(0, 1fr); }
  .prose { font-size: 17px; }
  .inline-cta { grid-template-columns: minmax(0, 1fr); padding: 24px 22px; }
  .inline-cta .button { width: 100%; }
  .data-table { font-size: 14px; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .gold-strip .acts .button { width: 100%; }
}

/* ── Чат-квиз: кнопка справа снизу и окно переписки (chat.js) ── */
.chat-fab { position: fixed; z-index: 45; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 10px 8px 8px; border: 1px solid rgba(228, 189, 133, .3); border-radius: 40px; background: var(--forest-deep); color: #fff; box-shadow: 0 18px 44px rgba(20, 14, 9, .32); cursor: pointer; font: inherit; text-align: left; transition: transform .35s var(--ease), box-shadow .35s, opacity .3s, bottom .35s var(--ease); }
.chat-fab:hover { transform: translateY(-3px); box-shadow: 0 24px 54px rgba(20, 14, 9, .4); }
.chat-fab:focus-visible { outline: 3px solid var(--sand-btn); outline-offset: 3px; }
.chat-ava { flex: none; width: 46px; height: 46px; overflow: hidden; border-radius: 50%; border: 2px solid rgba(228, 189, 133, .55); background: var(--forest); }
.chat-ava img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.chat-fab-tx b { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.chat-fab-tx small { display: block; margin-top: 2px; color: var(--on-dark-2); font-size: 12.5px; line-height: 1.3; }
.chat-fab-ico { display: grid; flex: none; place-items: center; width: 44px; height: 44px; margin-left: 4px; border-radius: 50%; background: var(--sand-btn); color: var(--forest-deep); transition: background .25s; }
.chat-fab:hover .chat-fab-ico { background: #f2b866; }
.chat-fab-ico svg { width: 22px; height: 22px; }
.chat-open .chat-fab, .nav-open .chat-fab, body:has(.exit-modal.open) .chat-fab { opacity: 0; pointer-events: none; transform: scale(.92); }
.nav-open .chat-teaser, .chat-open .chat-teaser, body:has(.exit-modal.open) .chat-teaser { display: none; }

.chat-teaser { position: fixed; z-index: 45; right: 24px; bottom: 104px; width: 290px; padding: 16px 44px 16px 18px; border: 1px solid var(--line); border-radius: 18px 18px 6px 18px; background: #fff; box-shadow: 0 18px 44px rgba(20, 14, 9, .18); animation: fade-up .6s var(--ease) both; }
.chat-teaser p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; cursor: pointer; }
.chat-teaser p b { display: block; margin-bottom: 4px; color: var(--ink); font: 400 18px/1.2 var(--serif); }
.chat-teaser-x { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.chat-teaser-x:hover { background: var(--cream); color: var(--ink); }
.chat-teaser-x svg { width: 16px; height: 16px; }

.chat-panel { position: fixed; z-index: 90; right: 24px; bottom: 24px; display: flex; flex-direction: column; width: min(400px, calc(100vw - 32px)); height: min(660px, calc(100svh - 48px)); overflow: hidden; border-radius: 24px; background: var(--paper); box-shadow: 0 40px 110px rgba(20, 14, 9, .38), 0 0 0 1px rgba(20, 14, 9, .06); opacity: 0; transform: translateY(16px) scale(.98); transform-origin: 100% 100%; transition: opacity .3s var(--ease), transform .4s var(--ease); }
.chat-panel.in { opacity: 1; transform: none; }
.chat-panel[hidden] { display: none; }
.chat-head { display: grid; flex: none; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; background: var(--forest-deep); color: #fff; }
.chat-head .chat-ava { width: 42px; height: 42px; }
.chat-head b { display: block; font: 400 18px/1.15 var(--serif); letter-spacing: -.01em; }
.chat-head small { display: block; margin-top: 3px; color: var(--on-dark-2); font-size: 12.5px; line-height: 1.3; }
.chat-head button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--on-dark); cursor: pointer; transition: background .25s, color .25s; }
.chat-head button:hover, .chat-head button:focus-visible { background: rgba(255, 255, 255, .1); color: #fff; }
.chat-head button svg { width: 19px; height: 19px; }
.chat-log { display: flex; flex: 1; flex-direction: column; gap: 8px; min-height: 0; padding: 18px 16px 12px; overflow-y: auto; overscroll-behavior: contain; }
.chat-msg { max-width: 86%; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; animation: chat-in .35s var(--ease) both; }
.chat-msg.bot { align-self: flex-start; border: 1px solid var(--line); border-bottom-left-radius: 6px; background: #fff; color: var(--ink); }
.chat-msg.bot small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.chat-msg.bot a { color: var(--gold); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.chat-msg.me { align-self: flex-end; border-bottom-right-radius: 6px; background: var(--forest); color: #fff; }
.chat-msg.typing { display: flex; gap: 5px; padding: 15px 16px; }
.chat-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--line); animation: chat-dot 1s infinite ease-in-out; }
.chat-msg.typing span:nth-child(2) { animation-delay: .15s; }
.chat-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes chat-dot { 0%, 80%, 100% { background: var(--line); transform: none; } 40% { background: var(--gold); transform: translateY(-3px); } }
.chat-input { flex: none; max-height: 58%; padding: 12px 16px 16px; overflow-y: auto; border-top: 1px solid var(--line); background: var(--paper); }
.chat-input:empty { display: none; }
.chat-opts { gap: 7px; }
.chat-opts button { min-height: 42px; padding: 9px 14px; font-size: 14.5px; }
.chat-form .quiz-chips { gap: 6px; }
.chat-form .quiz-chips button { min-height: 40px; padding: 8px 12px; font-size: 14px; }
.chat-go { width: 100%; min-height: 48px; margin-top: 10px; }
.chat-form { display: grid; gap: 10px; }
.chat-form .quiz-input { padding: 12px 15px; font-size: 16px; }
.chat-form .quiz-consent { gap: 10px; font-size: 13px; line-height: 1.45; }
.chat-form .quiz-consent input { width: 20px; height: 20px; }
.chat-form .button { width: 100%; min-height: 50px; }
.chat-form .quiz-error { min-height: 0; margin: 0; font-size: 14px; }
.chat-form .quiz-error:empty { display: none; }
.chat-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ── Плашка о cookie (site.js) ── */
.cookie-note { position: fixed; z-index: 44; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 16px; width: min(440px, calc(100vw - 48px)); padding: 16px 16px 16px 20px; border: 1px solid var(--line-dark); border-radius: 18px; background: rgba(29, 21, 14, .96); color: var(--on-dark); box-shadow: 0 18px 44px rgba(20, 14, 9, .3); backdrop-filter: blur(10px); font-size: 13.5px; line-height: 1.5; opacity: 0; transform: translateY(14px); transition: opacity .4s var(--ease), transform .45s var(--ease), bottom .35s var(--ease); }
.cookie-note.in { opacity: 1; transform: none; }
.cookie-note p { margin: 0; }
.cookie-note a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.cookie-note .button { flex: none; min-height: 44px; padding: 0 20px; font-size: 14px; }
.nav-open .cookie-note { display: none; }

@media (max-width: 900px) {
  .chat-fab { gap: 0; width: 60px; min-height: 60px; height: 60px; padding: 0; justify-content: center; border: 0; background: var(--sand-btn); }
  .chat-fab .chat-ava, .chat-fab-tx { display: none; }
  .chat-fab-ico { width: 60px; height: 60px; margin: 0; background: transparent; }
  .chat-fab-ico svg { width: 26px; height: 26px; }
  .chat-teaser { display: none; }
}
@media (max-width: 640px) {
  .chat-fab { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 56px; height: 56px; min-height: 56px; }
  .chat-fab-ico { width: 56px; height: 56px; }
  /* на телефоне кнопка появляется вместе с нижней панелью — первый экран остаётся чистым */
  .chat-fab { opacity: 0; pointer-events: none; transform: scale(.6); }
  .mobile-bar.show ~ .chat-fab { bottom: calc(84px + env(safe-area-inset-bottom)); opacity: 1; pointer-events: auto; transform: none; }
  .chat-open .mobile-bar.show ~ .chat-fab, .nav-open .mobile-bar.show ~ .chat-fab { opacity: 0; pointer-events: none; }
  .ck-on .chat-fab { bottom: calc(24px + var(--ck-h, 120px) + env(safe-area-inset-bottom)); }
  .ck-on .mobile-bar.show ~ .chat-fab { bottom: calc(94px + var(--ck-h, 120px) + env(safe-area-inset-bottom)); }
  .chat-panel { inset: 0; width: auto; height: auto; border-radius: 0; transform: translateY(24px); }
  .chat-head { padding-top: calc(12px + env(safe-area-inset-top)); }
  .chat-input { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .chat-msg { max-width: 90%; }
  .cookie-note { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); width: auto; gap: 12px; padding: 14px 14px 14px 16px; font-size: 13px; }
  .mobile-bar.show ~ .cookie-note { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .cookie-note .button { padding: 0 16px; }
}
/* Подписи капсом в подвале (base.css из квиза) — как метки над заголовками */
.site-footer h2 { font-weight: 600; letter-spacing: .14em; }
