/* «Правовой советник» — редакционная система по мотивам Superhuman, сине-белая гамма.
   Layout: фото-герой во всю ширину со «стеклянными» карточками → светлые секции на холодном
   молочном фоне → одна тёмно-синяя полоса → атмосферная градиентная полоса с квизом → синий подвал.
   Заголовки весом 460, красный — только главная кнопка заявки. */

:root {
  --canvas: #f2f4f8;        /* фон страницы (вместо пергамента) */
  --paper: #ffffff;         /* карточки */
  --ink: #232a36;           /* основной текст */
  --stone: #626b7a;         /* вторичный текст */
  --line: #e0e4eb;          /* тонкие границы */
  --mist: #d5e1ff;          /* вторичная кнопка, активная вкладка */
  --link: #2c5ad6;          /* ссылки */
  --navy: #0f2747;          /* баннер, тёмная полоса */
  --navy-deep: #0a1b33;     /* подвал */
  --red: #b3261e;           /* главная кнопка заявки */
  --red-hover: #961f18;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;

  --t-caption: 12px;
  --t-sm: 14px;
  --t-body: 16px;
  --t-label: 19px;
  --t-sub: 26px;
  --t-h3: 28px;
  --t-h2: clamp(34px, 4.4vw, 49px);
  --t-display: clamp(38px, 5.6vw, 64px);

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --section: clamp(64px, 8vw, 96px);
  --max: 1200px;
  --head-h: 64px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--font); font-weight: 460; font-size: var(--t-body); line-height: 1.5;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 460; text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: calc(var(--max) + 64px); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
@media (min-width: 900px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.section { padding-block: var(--section); }

.h2 { font-size: var(--t-h2); line-height: 1.06; letter-spacing: -0.027em; }
.lead { font-size: 18px; line-height: 1.5; color: var(--stone); max-width: 60ch; }
.eyebrow { font-size: var(--t-sm); font-weight: 600; color: var(--link); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 48px); max-width: 780px; }
.section-head--split { max-width: none; grid-template-columns: 1fr; align-items: end; gap: 20px; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.2fr 1fr; gap: 48px; } }

.link { color: var(--link); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .2s ease; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { background-size: 100% 1px; }
.link svg { width: 16px; height: 16px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px;
  border-radius: 16px; border: 1px solid transparent; font-weight: 500; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, color .2s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hover); }
.btn--soft { background: var(--mist); color: var(--ink); border-color: var(--ink); border-radius: 8px; min-height: 40px; padding: 8px 16px; }
.btn--soft:hover { background: #c3d4ff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #10151d; }
.btn--line { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn--line:hover { border-color: var(--ink); }
.btn--white-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); border-radius: 8px; }
.btn--white-line:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--mist); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Баннер */
.announce { background: var(--navy); color: #fff; font-size: var(--t-sm); }
.announce .wrap { display: flex; justify-content: center; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding-block: 10px; text-align: center; }
.announce svg { width: 16px; height: 16px; flex: none; }
.announce p { display: inline-flex; gap: 8px; align-items: center; }
.announce a { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 3px 12px; white-space: nowrap; }
.announce a:hover { border-color: #fff; }
@media (max-width: 560px) { .announce .hide-sm { display: none; } }

/* Шапка */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--canvas); }
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(242, 244, 248, .78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .25s, background .25s;
}
.header.is-scrolled { border-bottom-color: var(--line); background: rgba(242, 244, 248, .9); }
.header .wrap { height: var(--head-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 18px; letter-spacing: -0.01em; font-weight: 500; }
.logo__mark { width: 32px; height: 32px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; letter-spacing: .02em; position: relative; flex: none; }
.logo__mark::after { content: ""; position: absolute; right: -3px; top: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); border: 2px solid var(--canvas); }
.nav { display: none; gap: 28px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink); }
.nav a:hover { color: var(--link); }
.header__right { display: flex; align-items: center; gap: 16px; }
.header__phone { display: none; text-decoration: none; font-size: 15px; font-variant-numeric: tabular-nums; }
.header__phone:hover { color: var(--link); }
@media (min-width: 1040px) { .nav { display: flex; } }
@media (min-width: 700px) { .header__phone { display: inline; } }

/* Герой */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy); }
.hero__photos { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr; }
.hero__photos img { width: 100%; height: 100%; object-fit: cover; }
.hero__photos img:nth-child(n+2) { display: none; }
@media (min-width: 760px) {
  .hero__photos { grid-template-columns: 1fr 1fr 1fr; }
  .hero__photos img:nth-child(n+2) { display: block; }
}
.hero__photos img:nth-child(1) { object-position: 50% 32%; }
.hero__photos img:nth-child(2) { object-position: 50% 28%; }
.hero__photos img:nth-child(3) { object-position: 50% 30%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 20, 40, .30) 0%, rgba(8, 20, 40, .52) 45%, rgba(8, 20, 40, .80) 100%);
}
.hero__inner { position: relative; z-index: 2; min-height: clamp(600px, 82vh, 820px); display: grid; align-content: center; justify-items: center; text-align: center; gap: 24px; padding-block: 104px 232px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: var(--t-sm); background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: #9fbcff; display: inline-block; }
.hero h1 { font-size: var(--t-display); line-height: 0.98; letter-spacing: -0.028em; max-width: 15ch; }
.hero__lead { font-size: 18px; max-width: 46ch; color: rgba(255,255,255,.88); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.glass {
  position: absolute; z-index: 3; width: 264px; padding: 16px; border-radius: 16px; color: var(--ink); text-align: left;
  background: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: grid; gap: 10px;
}
.glass__top { display: flex; align-items: center; gap: 10px; font-size: var(--t-sm); color: var(--stone); }
.glass__icon { width: 28px; height: 28px; border-radius: 8px; background: var(--mist); display: grid; place-items: center; color: var(--navy); flex: none; }
.glass__icon svg { width: 16px; height: 16px; }
.glass__big { font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.glass__note { font-size: var(--t-sm); color: var(--stone); line-height: 1.4; }
.glass__stars { color: #c98f00; letter-spacing: 2px; font-size: 14px; }
.avatars { display: flex; }
.avatars img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid #fff; margin-left: -8px; }
.avatars img:first-child { margin-left: 0; }
.hero__cards { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero__cards .glass { pointer-events: auto; }
.glass--a { left: max(24px, calc(50% - 600px)); bottom: 56px; }
.glass--b { right: max(24px, calc(50% - 600px)); top: 72px; }
.glass--c { right: max(24px, calc(50% - 600px)); bottom: 56px; width: 240px; }
@media (max-width: 1179px) { .glass--b { display: none; } }
@media (max-width: 899px) {
  .hero__inner { padding-block: 64px 28px; min-height: 0; }
  .hero__cards { position: relative; inset: auto; display: grid; justify-items: center; gap: 12px; padding: 0 16px 36px; pointer-events: auto; }
  .glass { position: relative; inset: auto; left: auto; right: auto; bottom: auto; top: auto; width: 100%; max-width: 400px; }
  .glass--c { display: none; }
}

/* Полоса доверия */
.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .trust__row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .trust__row { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.trust__cell { padding: 24px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 4px; align-content: center; justify-items: center; text-align: center; }
.trust__cell b { font-weight: 460; font-size: 28px; letter-spacing: -0.022em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.trust__cell span { font-size: var(--t-sm); color: var(--stone); line-height: 1.35; }
@media (max-width: 719px) { .trust__cell:nth-child(2n) { border-right: 0; } .trust__cell:nth-child(n+5) { border-bottom: 0; } }
@media (min-width: 720px) and (max-width: 1099px) { .trust__cell:nth-child(3n) { border-right: 0; } .trust__cell:nth-child(n+4) { border-bottom: 0; } }
@media (min-width: 1100px) { .trust__cell { border-bottom: 0; } .trust__cell:last-child { border-right: 0; } }

/* Вкладки «Кому помогаем» */
.tabs { background: var(--paper); border-radius: 8px; border: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; }
@media (min-width: 760px) { .tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tab {
  appearance: none; border: 0; background: transparent; padding: 16px; cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; color: var(--ink);
  border-right: 1px solid var(--line); transition: background .2s; min-width: 0;
}
.tab:last-child { border-right: 0; }
@media (max-width: 759px) { .tab:nth-child(2n) { border-right: 0; } .tab:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.tab svg { width: 18px; height: 18px; flex: none; color: var(--ink); }
.tab:hover { background: var(--canvas); }
.tab[aria-selected="true"] { background: var(--mist); }
.tab[aria-selected="true"] svg { color: var(--link); }
.panel { margin-top: 16px; background: var(--paper); border-radius: 16px; display: grid; grid-template-columns: 1fr; overflow: hidden; }
@media (min-width: 900px) { .panel { grid-template-columns: 1.15fr 1fr; } }
.panel__body { padding: clamp(24px, 4vw, 48px); display: grid; gap: 20px; align-content: start; min-width: 0; }
.panel__body h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.12; letter-spacing: -0.022em; }
.panel__body > p { color: var(--stone); font-size: 17px; max-width: 54ch; }
.points { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 20px; }
.points li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 16px; line-height: 1.45; }
.points svg { width: 20px; height: 20px; color: var(--link); margin-top: 1px; }
.points b { font-weight: 600; display: block; }
.points span { color: var(--stone); }
.panel__photo { min-height: 320px; background: var(--canvas); }
.panel__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
@media (max-width: 899px) { .panel__photo { order: -1; height: 280px; min-height: 0; } }

/* Карточки процедуры */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: var(--paper); border-radius: 16px; padding: 20px; display: grid; gap: 12px; align-content: start; }
.card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card__icon { width: 36px; height: 36px; border-radius: 10px; background: var(--mist); color: var(--navy); display: grid; place-items: center; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.card h3 { font-size: var(--t-label); font-weight: 700; line-height: 1.3; letter-spacing: -0.008em; margin-top: 8px; }
.card p { color: var(--stone); font-size: 16px; line-height: 1.5; }
.card .tag { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #fdecea; color: var(--red); }
.after-cards { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; color: var(--stone); font-size: 15px; }
.after-cards p { max-width: 70ch; }

/* Тёмная полоса */
.band-dark { background: var(--navy); color: #fff; overflow: hidden; }
.band-dark .wrap { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; padding-block: var(--section); }
@media (min-width: 960px) { .band-dark .wrap { grid-template-columns: 1fr 1fr; gap: 72px; } }
.collage { position: relative; aspect-ratio: 5 / 6; max-width: 520px; width: 100%; justify-self: center; }
.collage__shape { position: absolute; border-radius: 16px; }
.collage__shape--1 { inset: 4% 22% 30% 0; background: rgba(159, 188, 255, .35); }
.collage__shape--2 { inset: 30% 0 8% 38%; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255,255,255,.2); }
.collage__shape--3 { inset: 72% 54% 0 6%; background: rgba(214, 90, 84, .42); }
.collage__photo { position: absolute; inset: 10% 12% 12% 12%; border-radius: 16px; overflow: hidden; }
.collage__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.collage__note { position: absolute; font-family: var(--font-hand); font-size: clamp(24px, 3vw, 32px); line-height: 1.05; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.collage__note--1 { left: 0; top: 0; max-width: 12ch; transform: rotate(-5deg); }
.collage__note--2 { right: 0; bottom: 2%; text-align: right; transform: rotate(4deg); max-width: 13ch; }
.band-dark__text { display: grid; gap: 24px; align-content: center; min-width: 0; }
.band-dark__text .eyebrow { color: #9fbcff; }
.band-dark__text blockquote { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -0.027em; }
.band-dark__text p { color: rgba(255,255,255,.8); font-size: 17px; max-width: 52ch; }
.facts { display: grid; gap: 8px; }
.facts li { display: flex; gap: 10px; align-items: baseline; color: rgba(255,255,255,.88); font-size: 16px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #9fbcff; flex: none; transform: translateY(-2px); }
.sign { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 20px; }
.sign b { display: block; font-weight: 500; font-size: 18px; }
.sign span { font-size: var(--t-sm); color: rgba(255,255,255,.7); }

/* Команда */
.team { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .team { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .team { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.person { background: var(--paper); border-radius: 16px; padding: 16px; display: grid; gap: 16px; align-content: start; }
.person__photo { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--canvas); max-width: 100%; margin: 0; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.person__name { font-size: var(--t-label); font-weight: 700; line-height: 1.3; letter-spacing: -0.008em; }
.person__role { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 500; background: var(--mist); color: var(--navy); padding: 3px 10px; border-radius: 999px; }
.person ul { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.person li { font-size: 15px; color: var(--stone); line-height: 1.45; padding-left: 14px; position: relative; }
.person li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--link); }

/* Отзывы */
.ratings { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 760px) { .ratings { grid-template-columns: 1fr 1fr; } }
.rating { background: var(--paper); border-radius: 16px; padding: 24px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; text-decoration: none; border: 1px solid transparent; transition: border-color .2s; }
.rating:hover { border-color: var(--line); }
.rating__score { font-size: 56px; line-height: .9; letter-spacing: -0.03em; }
.rating__body { display: grid; gap: 4px; min-width: 0; }
.rating__name { font-size: var(--t-label); font-weight: 700; }
.rating__meta { color: var(--stone); font-size: 15px; }
.rating__stars { color: #c98f00; letter-spacing: 2px; font-size: 14px; }
.rating__go { width: 40px; height: 40px; border-radius: 12px; background: var(--canvas); display: grid; place-items: center; color: var(--link); }
.rating__go svg { width: 18px; height: 18px; }
@media (max-width: 420px) { .rating { grid-template-columns: auto 1fr; } .rating__go { display: none; } }
.quotes { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quote { background: var(--paper); border-radius: 16px; padding: 24px; display: grid; gap: 20px; align-content: space-between; margin: 0; }
.quote p { font-size: 22px; line-height: 1.3; letter-spacing: -0.014em; }
.quote footer { display: flex; justify-content: space-between; gap: 12px; align-items: end; border-top: 1px solid var(--line); padding-top: 14px; font-size: var(--t-sm); }
.quote footer span { color: var(--stone); line-height: 1.4; }
.quote footer b { display: block; color: var(--ink); font-weight: 600; }
.widget { margin-top: 16px; background: var(--paper); border-radius: 16px; overflow: hidden; height: 640px; max-width: 100%; }
.widget iframe { width: 100%; height: 100%; border: 0; display: block; }
.reviews__more { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Градиентная полоса с квизом */
.atmos {
  background:
    radial-gradient(40% 55% at 68% 50%, rgba(120, 150, 255, .55), transparent 70%),
    radial-gradient(35% 50% at 93% 50%, rgba(70, 120, 235, .5), transparent 70%),
    radial-gradient(45% 40% at 50% 98%, rgba(240, 140, 150, .38), transparent 70%),
    radial-gradient(40% 45% at 50% 75%, rgba(120, 210, 240, .42), transparent 70%),
    var(--canvas);
}
.atmos .wrap { display: grid; gap: 40px; grid-template-columns: 1fr; padding-block: var(--section); }
@media (min-width: 980px) { .atmos .wrap { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; } }
.atmos__text { display: grid; gap: 20px; align-content: start; }
.atmos__text .h2 { font-size: clamp(34px, 4.2vw, 48px); line-height: 1.02; }
.checks { display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: center; font-size: 16px; }
.checks svg { width: 18px; height: 18px; color: var(--link); flex: none; }
.callout { background: rgba(255,255,255,.72); border-radius: 16px; padding: 16px 20px; display: grid; gap: 4px; justify-self: start; }
.callout span { font-size: var(--t-sm); color: var(--stone); }
.callout a { font-size: var(--t-sub); text-decoration: none; letter-spacing: -0.014em; font-variant-numeric: tabular-nums; }
.callout a:hover { color: var(--link); }

.quiz { background: var(--paper); border-radius: 16px; padding: clamp(20px, 3.5vw, 36px); display: grid; gap: 24px; min-width: 0; }
.quiz__progress { display: grid; gap: 10px; }
.quiz__meta { display: flex; justify-content: space-between; gap: 12px; font-size: var(--t-sm); color: var(--stone); }
.quiz__meta b { color: var(--ink); font-weight: 600; }
.quiz__track { height: 6px; border-radius: 6px; background: var(--canvas); overflow: hidden; }
.quiz__fill { height: 100%; width: 20%; background: var(--link); border-radius: 6px; transition: width .35s ease; }
.quiz__step { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; min-width: 0; }
.quiz__step legend { font-size: var(--t-h3); line-height: 1.14; letter-spacing: -0.022em; padding: 0; margin-bottom: 4px; }
.quiz__hint { color: var(--stone); font-size: 15px; margin-top: -6px; }
.options { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .options--2 { grid-template-columns: 1fr 1fr; } }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt span { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 17px; transition: border-color .15s, background .15s; }
.opt span::before { content: ""; width: 18px; height: 18px; border: 1.5px solid #a3abb8; border-radius: 50%; flex: none; background: #fff; transition: all .15s; }
.opt input[type="checkbox"] + span::before { border-radius: 5px; }
.opt:hover span { border-color: #a3abb8; }
.opt input:checked + span { border-color: var(--link); background: #f1f5ff; box-shadow: inset 0 0 0 1px var(--link); }
.opt input:checked + span::before { border-color: var(--link); background: var(--link); box-shadow: inset 0 0 0 3.5px #fff; }
.opt input[type="checkbox"]:checked + span::before { box-shadow: inset 0 0 0 3px #fff; }
.opt input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 2px; }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--t-sm); font-weight: 500; color: var(--ink); }
.field input[type="text"], .field input[type="tel"] { min-height: 52px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 17px; width: 100%; transition: border-color .15s, box-shadow .15s; }
.field input:focus { outline: none; border-color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field__err { font-size: 13px; color: var(--red); }
.field__err:empty { display: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--stone); line-height: 1.45; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--link); }
.consent a { color: var(--link); }
.quiz__nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; }
.quiz__nav .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .quiz__nav .btn { flex: 0 0 auto; } .quiz__nav #quiz-next, .quiz__nav #quiz-submit { margin-left: auto; } }
.quiz__error { font-size: 14px; color: var(--red); }
.quiz__done { display: grid; gap: 16px; }
.quiz__done h3 { font-size: var(--t-h3); letter-spacing: -0.022em; line-height: 1.14; }
.quiz__done p { color: var(--stone); }
.quiz__done .row { display: flex; gap: 12px; flex-wrap: wrap; }
.done-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--mist); color: var(--link); display: grid; place-items: center; }
.done-icon svg { width: 24px; height: 24px; }

/* Контакты */
.offices { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .offices { grid-template-columns: 1fr 1fr; } }
.office { background: var(--paper); border-radius: 16px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.office__map { height: 240px; background: #e8ecf2; max-width: 100%; }
.office__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.office__body { padding: 20px; display: grid; gap: 10px; align-content: start; }
.office__city { font-size: var(--t-sm); font-weight: 600; color: var(--link); }
.office__addr { font-size: var(--t-h3); line-height: 1.14; letter-spacing: -0.022em; }
.office__note { color: var(--stone); font-size: 15px; }
.office__links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.office__links .btn { min-height: 40px; padding: 8px 14px; font-size: 14px; border-radius: 8px; }
.channels { margin-top: 16px; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .channels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.channel { background: var(--paper); border-radius: 16px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.channel h3 { font-size: var(--t-label); font-weight: 700; }
.channel a.big { font-size: 20px; text-decoration: none; letter-spacing: -0.007em; font-variant-numeric: tabular-nums; }
.channel a.big:hover { color: var(--link); }
.channel p { color: var(--stone); font-size: 14px; }

/* Подвал */
.footer { background: var(--navy-deep); color: #fff; padding-block: 64px calc(48px + env(safe-area-inset-bottom, 0px)); }
.footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer .logo__mark { background: #fff; color: var(--navy-deep); }
.footer .logo__mark::after { border-color: var(--navy-deep); }
.footer__claim { margin-top: 20px; font-size: var(--t-h3); line-height: 1.14; letter-spacing: -0.022em; max-width: 16ch; }
.footer h3 { font-size: var(--t-sm); font-weight: 700; margin-bottom: 14px; }
.footer ul { display: grid; gap: 12px; }
.footer li, .footer li a { font-size: var(--t-sm); color: rgba(255,255,255,.7); text-decoration: none; }
.footer li a:hover { color: #fff; }
.footer__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.6; }
.footer__legal p { max-width: 80ch; }
.footer__legal a { color: rgba(255,255,255,.75); }

/* Нижняя панель на телефоне */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px;
  padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  background: rgba(255,255,255,.92); border-top: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.mbar .btn { min-height: 46px; padding: 8px 10px; font-size: 14px; border-radius: 12px; }
@media (min-width: 900px) { .mbar { display: none; } }
@media (max-width: 899px) { body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); } }

/* Страницы политики и 404 */
.doc { max-width: 760px; }
.doc h1 { font-size: var(--t-h2); line-height: 1.06; letter-spacing: -0.027em; margin-bottom: 24px; }
.doc h2 { font-size: var(--t-sub); margin: 40px 0 12px; letter-spacing: -0.014em; }
.doc p, .doc li { color: var(--stone); font-size: 17px; line-height: 1.6; }
.doc ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }
.doc a { color: var(--link); }
.doc .fill { background: var(--mist); padding: 1px 6px; border-radius: 4px; color: var(--ink); }
.simple-hero { padding-block: 120px; display: grid; gap: 24px; justify-items: start; }
.simple-hero h1 { font-size: var(--t-display); line-height: .98; letter-spacing: -0.028em; }
