/* Roboto со своего сервера (вариативный, 400–700): кириллица, латиница, ₽ и др. */
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/roboto-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/roboto-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/roboto-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* Демо 2: визуальный язык в духе timeweb.com — кремовый фон, коричневый текст, коралловый акцент, крупные скругления */
:root {
  --bg: #f7f5f2;
  --ink: #3d3634;
  --ink-soft: rgba(61, 54, 52, .72);
  --line: rgba(61, 54, 52, .12);
  --card: #ffffff;
  --peach: #efe8e2;
  --peach-2: #d8c2b4;
  --coral: #9e5e48;
  --coral-dark: #854d3a;
  --dark: #3d3634;
  --dark-2: #4c4441;
  --r-xl: 32px;
  --r-md: 16px;
  --r-sm: 10px;
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.text-link { color: var(--coral-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.text-link:hover { text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section__title { font-size: clamp(30px, 4.2vw, 48px); text-align: center; margin-bottom: 14px; letter-spacing: -.01em; }
.section__lead { text-align: center; color: var(--ink-soft); font-size: 18px; max-width: 640px; margin: 0 auto 40px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: var(--r-md); border: 0; font: 500 16px/1 var(--font); text-decoration: none; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--coral { background: var(--coral); color: #fff; box-shadow: 0 8px 20px -8px rgba(158, 94, 72, .5); }
.btn--coral:hover { background: var(--coral-dark); transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn--light:hover { border-color: var(--ink); }
.btn--ghost { background: rgba(255, 255, 255, .1); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .2); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: var(--r-sm); }
.btn--block { width: 100%; }

/* Полоса-уведомление */
.notice { background: var(--coral); color: #fff; font-size: 15px; }
.notice .wrap { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 44px; }
.notice a { background: #fff; color: var(--ink); border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 500; text-decoration: none; }

/* Шапка */
.head { position: relative; z-index: 2; padding: 18px 0 14px; }
.head .wrap { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__logo { position: relative; flex: none; width: var(--logo, 40px); height: var(--logo, 40px); }
.brand__mark { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--coral); }
.brand__name { font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.brand__name small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-soft); letter-spacing: 0; }
.online { font-size: 12px; color: var(--ink-soft); line-height: 1.3; }
.online b { display: flex; align-items: center; gap: 6px; color: var(--coral); font-size: 14px; font-weight: 500; }
.online b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3fb36b; box-shadow: 0 0 0 3px rgba(63, 179, 107, .2); }
.head__right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.head__phone { font-size: 18px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.head__link { font-size: 15px; text-decoration: none; display: flex; align-items: center; gap: 6px; }
.head__link svg { width: 18px; height: 18px; }

.nav { background: var(--dark); border-radius: var(--r-md); }
.nav > ul { list-style: none; margin: 0; padding: 0 8px; display: flex; align-items: stretch; min-height: 54px; }
.nav > ul > li { flex: 1; display: flex; position: relative; }
.nav > ul > li + li { border-left: 1px solid rgba(255, 255, 255, .12); margin: 14px 0; }
.nav > ul > li + li > a { margin: -14px 0; }
.nav > ul > li > a { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--peach-2); text-decoration: none; font-size: 15px; padding: 0 12px; text-align: center; white-space: nowrap; transition: color .2s; }
.nav a:hover { color: #fff; }
.nav a[aria-current] { color: #fff; }
/* Подменю «Категории дел» и «Стадии дела» */
.nav > ul > li.has-sub > a { padding-right: 4px; }
.sub-toggle { flex: none; display: grid; place-items: center; width: 28px; margin-right: 6px; padding: 0; border: 0; background: none; color: var(--peach-2); cursor: pointer; }
.sub-toggle svg { width: 16px; height: 16px; transition: transform .2s; }
.sub { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; min-width: 270px; margin: 0; padding: 8px; list-style: none; background: #fff; border-radius: var(--r-md); box-shadow: 0 18px 40px -12px rgba(40, 34, 32, .35), 0 0 0 1px var(--line); }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.sub a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; white-space: nowrap; }
.sub a:hover { background: var(--bg); color: var(--coral-dark); }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.sub-open > .sub { display: block; }
.has-sub:hover > .sub-toggle svg, .has-sub.sub-open > .sub-toggle svg { transform: rotate(180deg); }
/* Длинный список «Статьи УК» на компьютере — в две колонки, сверху вниз по номерам статей */
@media (min-width: 1081px) {
  .sub--cols { column-count: 2; column-gap: 4px; min-width: 500px; }
  .sub--cols li { break-inside: avoid; }
}
.burger { display: none; }

/* Бургер на узких экранах: открывает меню панелью под шапкой */
@media (max-width: 860px) {
  .burger { display: flex; align-items: center; justify-content: center; position: absolute; top: 0; right: 24px; z-index: 3; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--dark); cursor: pointer; }
  .burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--peach-2); transition: transform .2s, background .2s; }
  .burger span { position: relative; }
  .burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
  .burger span::before { top: -6px; }
  .burger span::after { top: 6px; }
  .burger[aria-expanded="true"] span { background: transparent; }
  .burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
  .burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
  .nav.is-open { display: block; position: absolute; top: 54px; right: 24px; width: max-content; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .35); }
  .nav.is-open > ul { flex-direction: column; padding: 6px 8px; min-height: 0; }
  .nav.is-open > ul > li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); margin: 0; }
  .nav.is-open > ul > li + li > a { margin: 0; }
  .nav.is-open > ul > li > a { padding: 14px 20px; }
  .nav.is-open > ul > li.has-sub { display: grid; grid-template-columns: 1fr 44px; }
  .nav.is-open .sub-toggle { width: 44px; margin: 0; }
  .nav.is-open { max-width: calc(100vw - 32px); }
  /* Ширина бургера — по самому длинному подпункту (скрытые подпункты учитываются в ширине); подпункты оформлены как пункты меню */
  .nav.is-open .sub, .nav.is-open .has-sub:hover > .sub, .nav.is-open .has-sub:focus-within > .sub { display: block; position: static; grid-column: 1 / -1; min-width: 0; height: 0; overflow: hidden; visibility: hidden; margin: 0; padding: 0; background: none; border-radius: 0; box-shadow: none; }
  .nav.is-open .has-sub.sub-open > .sub { height: auto; visibility: visible; margin-bottom: 8px; background: #362929; border-radius: 10px; }
  .nav.is-open .sub li:first-child { border-top: 0; }
  .nav.is-open .has-sub:hover > .sub-toggle svg { transform: none; }
  .nav.is-open .has-sub.sub-open > .sub-toggle svg { transform: rotate(180deg); }
  .nav.is-open .sub li { border-top: 1px solid rgba(255, 255, 255, .12); }
  .nav.is-open .sub a { padding: 14px 20px; border-radius: 0; color: var(--peach-2); font-size: 15px; text-align: center; white-space: nowrap; opacity: .85; }
  .nav.is-open .sub a:hover { background: none; color: #fff; opacity: 1; }
}
@media (max-width: 600px) {
  .burger { right: 16px; }
  .nav.is-open { right: 16px; }
}

/* Первый экран */
.hero { position: relative; overflow: hidden; margin-top: -88px; padding: 160px 0 40px; background: radial-gradient(60% 70% at 85% 30%, #efe2d9 0%, transparent 70%), radial-gradient(50% 60% at 10% 50%, #f3ebe5 0%, transparent 70%), linear-gradient(180deg, #f9f7f4 0%, var(--bg) 100%); }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: end; }
.hero__inner { position: relative; z-index: 1; padding-bottom: 72px; }
.hero__photo { position: relative; align-self: end; height: 560px; display: flex; justify-content: center; }
.hero__photo img { position: relative; height: 100%; width: auto; -webkit-mask: linear-gradient(180deg, #000 94%, transparent 100%); mask: linear-gradient(180deg, #000 94%, transparent 100%); }
.hero h1 { font-size: clamp(38px, 6vw, 68px); letter-spacing: -.02em; margin-bottom: 20px; }
.hero__sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 600px; margin: 0 0 32px; }
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* «Коротко обо мне» — белая панель, на её верхнем крае стоит фото; края и скругление как у белого блока «Форматы помощи» */
.hero:not(.hero--page) { padding-bottom: 0; }
.hero:not(.hero--page) .hero__photo img { -webkit-mask: none; mask: none; }
.facts { position: relative; z-index: 2; text-align: center; background: #fff; border-radius: var(--r-xl); padding: 24px; }
.facts h2 { font-size: 22px; font-weight: 500; margin-bottom: 22px; }
.facts ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facts li { background: var(--bg); border-radius: var(--r-md); padding: 16px 10px; }
.facts b { display: block; font-size: 26px; color: var(--coral); }
.facts span { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
@media (max-width: 1180px) {
  .facts b { font-size: 22px; }
  .facts span { font-size: 12px; }
}

/* Форматы помощи — карточки как тарифы */
.plans-box { background: #fff; border-radius: var(--r-xl); padding: 24px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { position: relative; border-radius: var(--r-md); background: var(--bg); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .25s, transform .25s; }
.plan__top { background: var(--peach); padding: 18px 18px 16px; }
.plan:hover { transform: translateY(-6px); box-shadow: 0 0 0 1.5px var(--coral), 0 18px 34px -18px rgba(133, 77, 58, .45); }
.plan__tag { font-size: 12px; color: var(--ink-soft); transition: color .25s; }
.plan:hover .plan__tag { color: var(--coral-dark); }
.plan__name { font-size: 22px; margin: 4px 0 6px; }
.plan__when { font-size: 14px; color: var(--ink-soft); }
.plan__badge { position: absolute; top: 0; right: 0; background: var(--coral); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px; border-radius: 0 16px 0 12px; }
.plan__text { padding: 14px 18px 18px; font-size: 14px; line-height: 1.5; flex: 1; }
.plan__text p { margin: 0 0 10px; }
.plan__text p:last-child { margin-bottom: 0; }
.plan__text b { font-weight: 500; }
.plan__link { color: inherit; text-decoration: none; transition: color .25s; }
.plan__link::after { content: ""; position: absolute; inset: 0; }
.plan__top:has(.plan__link) { position: relative; cursor: pointer; }
.plan__top:hover .plan__link { color: var(--coral-dark); }
.plan__text .plan__more { margin-top: 12px; }
.plan__more a { color: var(--coral-dark); font-weight: 500; text-decoration: none; }
.plan__more a:hover { text-decoration: underline; }
.plan__foot { padding: 0 18px 18px; }
.plan__foot .btn { background: var(--dark); color: #fff; }
.plan__foot .btn:hover { background: #2e2826; }
.plan__foot { position: relative; }
.contact-menu { position: absolute; left: 18px; right: 18px; bottom: calc(100% + 8px); z-index: 2; display: grid; padding: 6px; background: #fff; border-radius: var(--r-sm); box-shadow: 0 18px 40px -12px rgba(40, 34, 32, .35), 0 0 0 1px var(--line); }
.contact-menu[hidden] { display: none; }
.contact-menu a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.contact-menu a:hover { background: var(--bg); }
.contact-menu svg { width: 20px; height: 20px; flex: none; }

.price-note { margin-top: 16px; text-align: center; font-size: 14px; color: var(--ink-soft); }

/* Принципы — белые карточки 2×2 */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feat { background: #fff; border-radius: var(--r-xl); padding: 28px 30px; transition: transform .25s, box-shadow .25s; }
.feat:hover { transform: translateY(-6px); box-shadow: 0 0 0 1.5px var(--coral), 0 18px 34px -18px rgba(133, 77, 58, .45); }
.feat__ico { width: 36px; height: 36px; border-radius: 10px; background: var(--peach); color: var(--coral); display: grid; place-items: center; margin-bottom: 14px; transition: background .25s, color .25s; }
.feat:hover .feat__ico { background: var(--coral); color: #fff; }
.feat__ico svg { width: 20px; height: 20px; }
.feat h3 { font-size: 20px; margin-bottom: 8px; }
.feat p { color: var(--ink-soft); font-size: 15px; }

/* Тёмные промо-карточки */
.promo { position: relative; overflow: hidden; background: var(--dark); color: #fff; border-radius: var(--r-xl); padding: 34px 34px 30px; min-height: 280px; display: flex; flex-direction: column; align-items: flex-start; }
.promo__chip { font-size: 12px; background: rgba(255, 255, 255, .12); border-radius: 8px; padding: 5px 10px; margin-bottom: 14px; }
.promo h3 { font-size: 26px; margin-bottom: 12px; max-width: 70%; }
.promo p { color: rgba(255, 255, 255, .75); max-width: 58%; margin-bottom: 24px; }
.promo__cta { margin-top: auto; position: relative; z-index: 1; }
.promo .contact-menu { left: 0; right: auto; min-width: 220px; }
.cta-menu { position: relative; display: inline-block; }
.cta-menu .contact-menu { left: 50%; right: auto; translate: -50% 0; min-width: 220px; text-align: left; }
.cta-menu--left .contact-menu { left: 0; translate: none; }
.promo__art { position: absolute; right: -10px; bottom: -14px; width: 46%; max-width: 230px; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .35)); }

/* Категории дел — горизонтальная лента высоких карточек */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 10px 2px 8px; }
.rail::-webkit-scrollbar { display: none; }
.case { scroll-snap-align: start; background: #fff; border-radius: var(--r-xl); padding: 24px 22px 0; min-height: 360px; display: flex; flex-direction: column; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.case:hover { transform: translateY(-6px); box-shadow: 0 0 0 1.5px var(--coral), 0 18px 34px -18px rgba(133, 77, 58, .45); }
.case__art { height: 170px; margin: 18px -4px 0; margin-top: auto; display: grid; place-items: center; background: radial-gradient(circle at 50% 70%, #efe4dc 0%, transparent 70%); }
.case__art svg, .case__art img { height: 150px; width: auto; filter: drop-shadow(0 14px 18px rgba(133, 77, 58, .25)); transition: transform .3s; }
.case__art img { height: auto; max-height: 150px; max-width: 100%; }
.case:hover .case__art svg, .case:hover .case__art img { transform: translateY(-6px) rotate(-4deg) scale(1.05); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a.case, a.stage { color: inherit; text-decoration: none; }
.case small { color: var(--coral); font-weight: 500; font-size: 13px; transition: color .25s; }
.case:hover small { color: var(--coral-dark); }
.case h3 { font-size: 20px; margin: 6px 0 10px; }
.case p { color: var(--ink-soft); font-size: 14px; }
.rail-btn { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 6px 20px rgba(61, 54, 52, .15); color: var(--coral); cursor: pointer; display: grid; place-items: center; z-index: 2; }
.rail-btn svg { width: 20px; height: 20px; }
.rail-btn--prev { left: -22px; }
.rail-btn--next { right: -22px; }

/* Стадии — бенто */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.stage { background: #fff; border-radius: var(--r-xl); padding: 28px; position: relative; overflow: hidden; grid-column: span 2; min-height: 210px; transition: transform .25s, box-shadow .25s; }
.stage:hover { transform: translateY(-6px); box-shadow: 0 0 0 1.5px var(--coral), 0 18px 34px -18px rgba(133, 77, 58, .45); }
.stage--big { grid-column: span 3; grid-row: span 2; background: linear-gradient(160deg, #fff 40%, #efe4dc 100%); }
.stage--wide { grid-column: span 3; }
.stage__num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--dark); color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 16px; transition: background .25s; }
.stage:hover .stage__num { background: var(--coral); }
.stage h3 { font-size: 22px; margin-bottom: 10px; max-width: 80%; }
.stage--big h3 { font-size: 30px; }
.stage p { color: var(--ink-soft); font-size: 15px; max-width: 86%; }
.stage ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.stage li { display: flex; gap: 10px; }
.stage li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--peach) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc6655' stroke-width='3'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.stage__art { position: absolute; right: -20px; bottom: -20px; width: 46%; max-width: 260px; filter: drop-shadow(0 20px 26px rgba(133, 77, 58, .25)); transition: transform .3s; }
img.stage__art { height: auto; }
.stage:not(.stage--big) > p { max-width: 64%; }
.stage:not(.stage--big) img.stage__art { width: 30%; max-width: 200px; right: 10px; bottom: 10px; }
.stage:hover .stage__art { transform: translateY(-6px) rotate(-4deg) scale(1.05); }

/* Гарантии закона — 4 карточки */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mini { background: #fff; border-radius: var(--r-md); padding: 22px; }
.mini .feat__ico { margin-bottom: 18px; }
.mini h3 { font-size: 18px; margin-bottom: 8px; }
.mini p { font-size: 14px; color: var(--ink-soft); }
.mini a { color: var(--coral); }

/* Способы связи */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.contact-main { background: #fff; border-radius: var(--r-xl); padding: 32px; display: flex; gap: 28px; align-items: center; }
.contact-main img { width: 180px; height: 180px; object-fit: cover; border-radius: 24px; flex: none; }
.contact-main h3 { font-size: 26px; margin-bottom: 6px; }
.contact-main p { color: var(--ink-soft); margin-bottom: 16px; }
.contact-main .reg { font-size: 13px; }
.channels { display: grid; grid-template-columns: 1fr; gap: 10px; align-content: center; }
.channel { --ch: var(--dark); background: var(--ch); color: #fff; border-radius: var(--r-md); padding: 12px 18px; min-height: 64px; text-decoration: none; display: flex; align-items: center; gap: 14px; transition: transform .2s, filter .2s, box-shadow .2s; }
.channel:hover { transform: translateY(-2px); filter: brightness(.93); box-shadow: 0 14px 26px -16px var(--ch); }
.channel__ico { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; flex: none; }
.channel__ico svg { width: 22px; height: 22px; }
.channel__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.channel b { font-size: 17px; }
.channel__txt span { font-size: 13px; color: rgba(255, 255, 255, .8); overflow-wrap: anywhere; }
.channel__arr { width: 20px; height: 20px; margin-left: auto; flex: none; transition: transform .2s; }
.channel:hover .channel__arr { transform: translateX(4px); }

/* Тёмный блок «на связи» */
.dark-box { background: var(--dark); color: #fff; border-radius: var(--r-xl); padding: 44px; }
.dark-box__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.dark-box h2 { font-size: clamp(26px, 3vw, 36px); }
.dark-box .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.glass { background: rgba(255, 255, 255, .08); border-radius: var(--r-md); padding: 24px; }
.glass svg { width: 28px; height: 28px; color: var(--peach-2); margin-bottom: 16px; }
.glass p { color: rgba(255, 255, 255, .8); font-size: 15px; }
.glass b { color: #fff; }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.step { background: #fff; border-radius: var(--r-xl); padding: 40px 26px 30px; text-align: center; position: relative; }
.step__n { position: absolute; top: -20px; left: 50%; translate: -50% 0; width: 40px; height: 40px; border-radius: 12px; background: var(--dark); color: #fff; display: grid; place-items: center; font-weight: 700; }
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--ink-soft); }
.center { text-align: center; margin-top: 28px; }

/* Вопросы */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-size: 18px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--line) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d3b3b' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { padding: 0 48px 22px 0; color: var(--ink-soft); }

/* Последний CTA с фото */
.cta { position: relative; overflow: hidden; background: var(--dark); color: #fff; border-radius: var(--r-xl); padding: 52px 44px; min-height: 340px; display: flex; align-items: center; }
.cta__text { position: relative; z-index: 1; max-width: 520px; }
.cta h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.cta p { color: rgba(255, 255, 255, .75); margin-bottom: 26px; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cta__photo { position: absolute; right: 4%; top: 20px; height: calc(100% + 60px); width: auto; max-width: 46%; object-fit: contain; object-position: top right; }

/* Адрес */
.map { display: block; position: relative; border-radius: var(--r-xl); overflow: hidden; }
.map img { width: 100%; height: 380px; object-fit: cover; }
.map__card { position: absolute; left: 24px; top: 24px; background: #fff; border-radius: var(--r-md); padding: 20px 22px; max-width: 320px; box-shadow: 0 14px 30px -16px rgba(61, 54, 52, .5); text-decoration: none; }
.map__card b { display: block; font-size: 18px; margin-bottom: 4px; }
.map__card span { font-size: 14px; color: var(--ink-soft); }
.map__card em { display: inline-block; margin-top: 12px; color: var(--coral); font-style: normal; font-weight: 500; font-size: 14px; }
.credit { font-size: 12px; color: var(--ink-soft); margin-top: 8px; }

/* Подвал */
.foot { border-top: 1px solid var(--line); padding: 40px 0 120px; margin-top: 40px; font-size: 14px; }
.foot__crumbs { color: var(--ink-soft); margin-bottom: 28px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot h4 { font-size: 15px; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--coral); }
.foot .brand, .foot .brand:hover { color: var(--ink); }
.foot__phone { display: block; font-size: 24px; font-weight: 700; color: var(--ink) !important; margin: 14px 0 4px; }
.foot__legal { color: var(--ink-soft); font-size: 12px; margin-top: 16px; line-height: 1.5; }
.foot__ethics { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 13px; }

/* Мобильная панель и cookie */
.mbar { display: none; }
.cookie { position: fixed; left: 50%; bottom: 20px; translate: -50% 0; z-index: 30; width: min(560px, calc(100% - 32px)); background: #fff; border-radius: var(--r-md); box-shadow: 0 18px 40px -18px rgba(61, 54, 52, .5); padding: 14px 16px; display: none; align-items: center; gap: 14px; font-size: 13px; }
.cookie.is-shown { display: flex; }
.cookie p { color: var(--ink-soft); }
.cookie a { color: var(--coral); }

/* Адаптив */
@media (max-width: 1080px) {
  .head__link { display: none; }
  .plans { grid-template-columns: 1fr 1fr; }
  .rail { grid-auto-columns: calc((100% - 32px) / 3); }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .online { display: none; }
  .hero { margin-top: 0; padding: 48px 0 32px; }
  .hero__grid { grid-template-columns: 1fr; gap: 8px; }
  .hero__inner { padding-bottom: 0; }
  .hero__photo { height: 400px; }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .stage, .stage--wide { grid-column: span 1; }
  .stage--big { grid-column: span 2; grid-row: auto; }
  .dark-box .grid-3, .steps { grid-template-columns: 1fr; }
  .steps { gap: 32px; }
  .rail { grid-auto-columns: 46%; }
  .rail-btn { display: none; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .cta__photo { right: 3%; max-width: 40%; }
  .cta__text { max-width: 58%; }
  .promo p { max-width: 70%; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .section { padding: 40px 0; }
  .notice .wrap { font-size: 13px; gap: 10px; }
  .head__right .btn { display: none; }
  .head__phone { font-size: 16px; }
  .brand__name { font-size: 16px; }
  .plans { grid-template-columns: 1fr; }
  .plans-box { padding: 16px; }
  .bento { grid-template-columns: 1fr; }
  .stage--big { grid-column: auto; }
  .stage__art { width: 36%; }
  .rail { grid-auto-columns: 82%; }
  .grid-4, .channels { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .contact-main { flex-direction: column; align-items: flex-start; padding: 24px; }
  .contact-main img { width: 120px; height: 120px; }
  .dark-box, .cta { padding: 28px 22px; }
  .cta { flex-direction: column; align-items: stretch; padding-bottom: 0; }
  .cta__text { max-width: 100%; }
  .cta__photo { position: static; display: block; height: 340px; max-width: 100%; margin: 24px auto -70px; }
  .dark-box__head { flex-direction: column; align-items: flex-start; }
  .promo { padding: 26px 22px; min-height: 300px; }
  .promo h3, .promo p { max-width: 100%; }
  .promo p { max-width: 62%; }
  .promo__art { width: 40%; }
  .map img { height: 300px; }
  .map__card { left: 12px; right: 12px; top: auto; bottom: 12px; max-width: none; }
  .foot__grid { grid-template-columns: 1fr; }
  .faq summary { font-size: 16px; }
  .mbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(247, 245, 242, .92); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .mbar .btn { min-height: 46px; padding: 0 8px; }
  .mbar__write { position: relative; }
  .mbar__write .btn { width: 100%; }
  .mbar .contact-menu { left: 0; right: 0; }
  .cookie { bottom: 84px; }
}

/* Правки после проверки */
.stage > :not(.stage__art) { position: relative; z-index: 1; }
.stage--big ul { max-width: 68%; }
.stage--big .stage__art { width: 40%; }
@media (min-width: 601px) { .stage--narrow p { max-width: 66%; } }
.map__card span, .map__card em { display: block; }
@media (max-width: 600px) { .stage--big ul { max-width: 100%; } .stage--big { padding-bottom: 150px; } .stage--big .stage__art { width: 44%; } }

/* Внутренние страницы (собираются build-demo2.py) */
.hero--page h1 { font-size: clamp(34px, 4.6vw, 54px); }
.h1-note { display: block; margin-top: 10px; font-size: clamp(18px, 1.8vw, 22px); font-weight: 500; line-height: 1.3; letter-spacing: 0; color: var(--coral-dark); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 14px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--coral); }
.hero__note { max-width: 560px; margin-top: 18px; font-size: 14px; color: var(--ink-soft); }
.page-steps .stage { min-height: 0; }
.stage__law { margin-top: 14px; font-size: 13px; font-weight: 500; color: var(--coral-dark); }
.rules .feat--full { grid-column: 1 / -1; }
.steps--4 { grid-template-columns: repeat(4, 1fr); margin-top: 44px; }
.page-price { max-width: 860px; margin: 28px auto 0; padding: 20px 24px; background: #fff; border-radius: var(--r-md); text-align: center; color: var(--ink-soft); }
.page-price b { color: var(--ink); }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-card { background: #fff; border-radius: var(--r-xl); padding: 28px 28px 24px; font-size: 15px; color: var(--ink-soft); transition: transform .25s, box-shadow .25s; }
.info-card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1.5px var(--coral), 0 18px 34px -18px rgba(133, 77, 58, .45); }
.info-card h3 { font-size: 20px; color: var(--ink); margin-bottom: 14px; }
.info-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.info-card li { position: relative; padding-left: 16px; }
.info-card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.info-card p + p, .info-card ul + p, .info-card p + ul { margin-top: 10px; }
.info-card b { color: var(--ink); font-weight: 500; }
.info-note { max-width: 760px; margin: 24px auto 0; text-align: center; color: var(--ink-soft); }
.info-author { max-width: 760px; margin: 16px auto 0; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; color: var(--ink-soft); font-size: 11px; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px; background: #fff; border-radius: var(--r-md); color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 500; transition: transform .25s, box-shadow .25s; }
.related a:hover { transform: translateY(-6px); box-shadow: 0 0 0 1.5px var(--coral), 0 18px 34px -18px rgba(133, 77, 58, .45); }
.related svg { width: 20px; height: 20px; flex: none; color: var(--coral); transition: transform .2s; }
.related a:hover svg { transform: translateX(4px); }
@media (max-width: 1080px) {
  .steps--4 { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .info-cards { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
}
@media (max-width: 860px) {
  .page-steps .stage--last-full { grid-column: span 2; }
  .steps--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .page-steps .stage--last-full { grid-column: auto; }
  .steps--4, .related { grid-template-columns: 1fr; }
}
.hero--404 { padding-bottom: 120px; }
.hero--404 .hero__inner { max-width: 640px; }
/* Фото первого экрана стоит прямо на следующем блоке, без пустого промежутка */
.hero--page:not(.hero--404) { padding-bottom: 0; }
.hero--page + .section { padding-top: 12px; }
/* Четыре карточки в доп. разделе — сеткой 2×2 */
@media (min-width: 861px) {
  .info-cards:has(> .info-card:nth-child(4)) { grid-template-columns: repeat(2, 1fr); }
  .info-cards:has(> .info-card:nth-child(4)) > .info-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Политика и условия */
.legal-page { padding-top: 32px; }
.legal-page h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 24px; max-width: 860px; }
.legal-doc { max-width: 860px; background: #fff; border-radius: var(--r-xl); padding: 40px 44px; color: var(--ink); }
.legal-doc h2 { font-size: 22px; margin: 32px 0 12px; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p, .legal-doc li { color: var(--ink-soft); }
.legal-doc p { margin: 0 0 12px; }
.legal-doc ul { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 6px; }
.legal-doc b { color: var(--ink); font-weight: 500; }
.legal-doc a { color: var(--coral-dark); }
.legal__date { font-size: 14px; }
@media (max-width: 600px) {
  .legal-doc { padding: 24px 20px; }
}

/* Ссылка «Перейти к содержимому»: видна только при переходе клавишей Tab */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: var(--r-sm); box-shadow: 0 6px 20px rgba(61, 54, 52, .2); text-decoration: none; }
.skip-link:focus { left: 16px; }

@media (max-width: 600px) {
  .facts { padding: 16px; }
  .facts span { white-space: normal; }
}
