/* Perfectio — стили публичной части сайта. Цвета и размеры — из макета (docs: Perfectio_redesign). */

@font-face { font-family: Onest; src: url(/static/fonts/onest-cyrillic-wght.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; src: url(/static/fonts/onest-latin-ext-wght.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Onest; src: url(/static/fonts/onest-latin-wght.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; 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; }

:root {
  color-scheme: light;
  --bg: #FBFBF9; --surface: #FFFFFF; --bubble: #F1F1EE; --ink: #16181D; --on-ink: #FFFFFF; --text2: #3B3F47; --muted: #555A63;
  --link: #0565BB; --link-hover: #034A8A; --accent-text: #034A8A; --ok: #1C7A45;
  --line: #E4E3DF; --line2: #D6D5D0; --input-line: #C9C8C2; --line-strong: #16181D; --shadow: #16181D; --tie-line: #0E283F;
  --t-blue: #EAF2FB; --t-mint: #EAF5EE; --t-peach: #FBEFE6; --t-cream: #FBF3DC;
  --error: #B3261E;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
}
html.dark {
  color-scheme: dark;
  --bg: #121419; --surface: #1B1E25; --bubble: #262A33; --ink: #ECEDEF; --on-ink: #121419; --text2: #C3C7CF; --muted: #9EA4AE;
  --link: #7DB8FF; --link-hover: #A9D0FF; --accent-text: #9CCBFF; --ok: #63D08F;
  --line: #2C313B; --line2: #3B414D; --input-line: #4B5260; --line-strong: #3A4150; --shadow: #07080B; --tie-line: #0E283F;
  --t-blue: #1C2738; --t-mint: #1B2A22; --t-peach: #2E231D; --t-cream: #2D2819;
  --error: #FFB4AB;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.menu-open { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Onest, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
img { max-width: 100%; }
img[src*="/static/perf/"], img[src*="/static/icons/"], img[src*="/static/directions/"] { image-rendering: pixelated; }
/* Пока страница прокручивается, карточки не реагируют на курсор: иначе они дёргаются, проезжая под ним */
html.is-scrolling body { pointer-events: none; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--t-blue); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 60; padding: 10px 16px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---------- Кнопки: тень появляется как «приподнятость» при наведении ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; font-size: 16px; line-height: 1.2; letter-spacing: -.005em; text-decoration: none; cursor: pointer; text-align: center; transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease, border-color .14s ease; }
.btn--primary { background: #0565BB; color: #FFFFFF; font-weight: 550; border: 1px solid var(--line-strong); box-shadow: 2px 2px 0 var(--shadow); }
.btn--primary:hover { background: #0459A6; color: #FFFFFF; transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--shadow); }
.btn--primary:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--shadow); }
.btn--primary:disabled { opacity: .65; cursor: default; transform: none; }
.btn--secondary { background: var(--surface); color: var(--ink); font-weight: 500; border: 1px solid var(--line2); }
.btn--secondary:hover { color: var(--ink); background: var(--bubble); }
.btn--md { min-height: 46px; padding: 0 20px; font-size: 15.5px; }
.btn--block { display: flex; width: 100%; }
.self-start { align-self: flex-start; }

.chip { min-height: 40px; padding: 0 15px; font-size: 14.5px; font-weight: 500; border-radius: 999px; cursor: pointer; background: transparent; color: var(--text2); border: 1px solid var(--line2); transition: background-color .14s ease, color .14s ease; }
.chip:hover { background: var(--bubble); color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Шапка и меню ---------- */
.site-header { position: sticky; top: 0; z-index: 40; height: var(--header-h); background: var(--surface); border-bottom: 1px solid var(--line-strong); }
.site-header__in { max-width: 1080px; height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 12px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 20px; font-weight: 600; letter-spacing: -.022em; text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo img { display: block; margin: 0 1px 0 1.5px; transform: translateY(2.5px); }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; background: transparent; border: 1px solid transparent; border-radius: 10px; cursor: pointer; transition: background-color .14s ease; }
.icon-btn:hover { background: var(--bubble); }
.icon-btn svg { stroke: var(--ink); fill: none; stroke-width: 1.7; }
.icon-btn--menu { border-color: var(--line2); margin-left: 6px; }
.icon-btn--menu svg { stroke-width: 1.8; stroke-linecap: round; }
.header-login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--ink); font-size: 15.5px; font-weight: 500; text-decoration: none; transition: background-color .14s ease; }
.header-login:hover { color: var(--ink); background: var(--bubble); }
.icon-sun, html.dark .icon-moon { display: none; }
html.dark .icon-sun { display: block; }
.icon-close, .menu-is-open .icon-burger { display: none; }
.menu-is-open .icon-close { display: block; }

.site-menu { position: fixed; top: var(--header-h); right: 0; bottom: 0; left: 0; z-index: 39; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
.site-menu__in { max-width: 680px; margin: 0 auto; padding: 20px var(--gutter) 48px; display: flex; flex-direction: column; }
.site-menu__list { list-style: none; padding: 0; }
.site-menu__item { display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 14px 10px; margin: 0 -10px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background-color .14s ease; }
.site-menu__item:hover { color: var(--ink); background: var(--bubble); }
.site-menu__text { flex-grow: 1; display: flex; flex-direction: column; gap: 1px; }
.site-menu__title { font-size: 18px; font-weight: 550; letter-spacing: -.01em; }
.site-menu__desc { font-size: 14.5px; color: var(--muted); }
.site-menu__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }

/* ---------- Главная ---------- */
.hero { max-width: 1080px; margin: 0 auto; padding: clamp(40px, 8vw, 104px) var(--gutter) clamp(48px, 7vw, 96px); display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero__copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero__kicker { font-size: 14.5px; font-weight: 500; color: var(--muted); letter-spacing: -.003em; }
.hero h1 { font-size: clamp(36px, 4.9vw, 54px); line-height: 1.07; font-weight: 600; letter-spacing: -.033em; }
.hero__lead { font-size: 18.5px; line-height: 1.55; color: var(--text2); max-width: 480px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__note { font-size: 14px; color: var(--muted); }

.sample { flex: 1 1 380px; min-width: 0; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 4px 4px 0 var(--shadow); padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.sample__meta { font-size: 13.5px; color: var(--muted); }
.sample__q { display: flex; gap: 10px; align-items: flex-end; }
.sample__q img { flex: 0 0 auto; display: block; }
.sample__bubble { background: var(--bubble); border-radius: 4px 14px 14px 14px; padding: 11px 14px; font-size: 16px; font-weight: 500; line-height: 1.45; }
.sample__answer { align-self: flex-end; max-width: 88%; background: #0565BB; color: #FFFFFF; border-radius: 14px 4px 14px 14px; padding: 11px 14px; font-size: 16px; line-height: 1.5; }
.sample__comment { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.sample__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sample__head b { font-size: 15.5px; font-weight: 550; }
.sample__score { font-size: 15.5px; font-weight: 550; color: var(--ok); white-space: nowrap; }
.sample__text { color: var(--text2); font-size: 15.5px; line-height: 1.55; }

.about { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 8vw, 104px); display: flex; flex-direction: column; gap: 32px; }
.about__intro { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.about h2 { font-size: clamp(27px, 3.4vw, 36px); line-height: 1.14; font-weight: 600; letter-spacing: -.028em; }
.about__intro p { font-size: 18px; line-height: 1.55; color: var(--text2); }
.about__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.about-card { display: flex; flex-direction: column; gap: 8px; padding: 22px 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.about-card__icon { flex: 0 0 auto; align-self: flex-start; width: 52px; height: 52px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.about-card__icon img { display: block; }
.about-card h3 { font-size: 17px; font-weight: 550; line-height: 1.3; letter-spacing: -.012em; }
.about-card p { font-size: 15px; line-height: 1.5; color: var(--text2); }
.t-blue { background: var(--t-blue); } .t-mint { background: var(--t-mint); } .t-peach { background: var(--t-peach); } .t-cream { background: var(--t-cream); }
.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.fact { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 24px 32px 0 0; }
.fact + .fact { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--line); }
.fact b { font-size: 40px; line-height: 1.05; font-weight: 600; color: var(--accent-text); letter-spacing: -.03em; }
.fact span { font-size: 15.5px; line-height: 1.5; color: var(--text2); text-wrap: pretty; }
.fact small { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ---------- Внутренние страницы ---------- */
.page { max-width: 720px; margin: 0 auto; padding: 28px var(--gutter) 72px; display: flex; flex-direction: column; gap: 24px; }
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: -10px 0 -18px; padding: 0; background: none; border: none; color: var(--muted); font-size: 15px; font-weight: 500; cursor: pointer; transition: color .14s ease; }
.back:hover { color: var(--ink); }
.back svg { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page h1 { font-size: clamp(30px, 4.4vw, 42px); line-height: 1.12; font-weight: 600; letter-spacing: -.03em; }
.page__title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page__title img { flex: 0 0 auto; display: block; }
.page__lead { font-size: 18px; line-height: 1.55; color: var(--text2); margin-top: -10px; }
.page__note { font-size: 15px; color: var(--muted); }
.card-key { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 3px 3px 0 var(--shadow); }
.card-plain { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.card-title { font-size: 18px; font-weight: 550; line-height: 1.3; letter-spacing: -.012em; }

/* Направления */
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.dir-card { display: flex; flex-direction: column; background: var(--surface); color: var(--ink); text-decoration: none; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; transition: transform .16s ease, box-shadow .16s ease; }
.dir-card:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--shadow); }
.dir-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; image-rendering: pixelated; border-bottom: 1px solid var(--line-strong); }
.dir-card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex-grow: 1; }
.dir-card h2 { font-size: 18px; font-weight: 550; line-height: 1.3; letter-spacing: -.012em; }
.dir-card__desc { font-size: 15.5px; line-height: 1.45; color: var(--text2); }
.dir-card__topics { font-size: 13.5px; line-height: 1.45; color: var(--muted); flex-grow: 1; }
.dir-card__cta { margin-top: 8px; font-size: 14.5px; font-weight: 550; color: var(--link); }

/* Вопрос дня */
.daily { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.daily__meta { font-size: 13.5px; color: var(--muted); }
.daily__q { font-size: 21px; font-weight: 550; line-height: 1.35; letter-spacing: -.014em; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; font-weight: 500; color: var(--text2); }
.field input, .field textarea { background: var(--surface); color: var(--ink); font-size: 16px; font-weight: 400; border: 1px solid var(--input-line); border-radius: 10px; transition: border-color .14s ease, box-shadow .14s ease; }
.field input { min-height: 46px; padding: 0 13px; }
.field textarea { padding: 12px 13px; resize: vertical; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 1px var(--link); }
.field input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field input::placeholder { color: var(--muted); font-weight: 400; }
.hint { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

.daily__form { display: flex; flex-direction: column; gap: 14px; }
.daily__form textarea:disabled { background: var(--bubble); color: var(--text2); -webkit-text-fill-color: var(--text2); opacity: 1; }
.daily__status { font-size: 15px; color: var(--text2); }
.daily__status:empty { display: none; }
.daily__status.is-error { color: var(--error); }
.daily__result { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.daily__result-head { display: flex; align-items: flex-end; gap: 12px; }
.daily__result-head img { display: block; flex: 0 0 auto; }
.daily__result-head b { font-size: 16.5px; font-weight: 550; letter-spacing: -.008em; }
.daily__score { margin-left: auto; font-size: 15.5px; font-weight: 550; color: var(--ok); white-space: nowrap; }
.daily__comment { font-size: 16px; line-height: 1.55; color: var(--text2); white-space: pre-line; }
.daily__more { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 550; }

/* Как это работает */
.steps { padding: 0; list-style: none; display: flex; flex-direction: column; }
.steps li { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps__num { flex: 0 0 auto; width: 30px; font-size: 24px; line-height: 1.2; font-weight: 600; color: var(--accent-text); letter-spacing: -.02em; }
.steps b { display: block; font-size: 18px; font-weight: 550; letter-spacing: -.012em; margin-bottom: 2px; }
.steps span span { color: var(--text2); }

/* Цены */
.price-list { display: flex; flex-direction: column; overflow: hidden; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: none; }
.price-row--main { background: var(--t-blue); }
.price-row b:first-child { display: block; font-size: 17px; font-weight: 550; letter-spacing: -.01em; margin-bottom: 2px; }
.price-row small { display: block; font-size: 14.5px; line-height: 1.45; color: var(--muted); max-width: 440px; }
.price-row--main small { color: var(--text2); }
.price-row__value { font-size: 26px; font-weight: 600; letter-spacing: -.024em; white-space: nowrap; }

/* Для школ и компаний */
.calc { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.calc__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 36px; }
.calc__cell { display: flex; flex-direction: column; gap: 2px; }
.calc__cell--total { margin-left: auto; text-align: right; }
.calc__label { font-size: 13.5px; color: var(--muted); }
.calc__stepper { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.calc__stepper button { width: 44px; height: 44px; padding: 0; font-size: 20px; color: var(--ink); background: var(--surface); border: 1px solid var(--line2); border-radius: 10px; cursor: pointer; transition: background-color .14s ease; }
.calc__stepper button:hover:not(:disabled) { background: var(--bubble); }
.calc__stepper button:disabled { color: var(--muted); opacity: .5; cursor: default; }
.calc__n { min-width: 56px; text-align: center; font-size: 22px; font-weight: 600; }
.calc__per { font-size: 22px; line-height: 44px; font-weight: 600; letter-spacing: -.016em; }
.calc__total { font-size: 34px; line-height: 44px; font-weight: 600; color: var(--accent-text); white-space: nowrap; letter-spacing: -.03em; }
.sample-box { position: relative; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.sample-box .card-title { padding-right: 84px; }
.badge { position: absolute; top: 22px; right: 22px; background: var(--t-cream); border-radius: 6px; padding: 2px 9px; font-size: 12.5px; font-weight: 550; }
.table-scroll { overflow-x: auto; }
.sample-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14.5px; white-space: nowrap; text-align: left; }
.sample-table th { padding: 6px 20px 10px 0; color: var(--muted); font-size: 13.5px; font-weight: 400; }
.sample-table td { padding: 11px 20px 11px 0; border-top: 1px solid var(--line); }
.sample-table .dim { color: var(--muted); }
.lead-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 24px; }
.lead-form__title, .lead-form__foot, .lead-form__status { grid-column: 1 / -1; }
.lead-form .field { min-width: 0; }
.lead-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 4px; }
.lead-form__status { font-size: 15px; }
.lead-form__status:empty { display: none; }
.lead-form__status.is-ok { color: var(--ok); }
.lead-form__status.is-error { color: var(--error); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Новости */
.news-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.news-item { display: flex; flex-direction: column; gap: 3px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.news-item:hover { color: var(--link-hover); }
.news-item span { font-size: 13.5px; color: var(--muted); }
.news-item b { font-weight: 550; font-size: 18px; letter-spacing: -.012em; line-height: 1.35; }

/* Частые вопросы */
.search { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 16px; background: var(--surface); border: 1px solid var(--input-line); border-radius: 10px; transition: border-color .14s ease, box-shadow .14s ease; }
.search:hover { border-color: var(--muted); }
.search:focus-within { border-color: var(--link); box-shadow: 0 0 0 1px var(--link); }
.search svg { flex: 0 0 auto; stroke: var(--muted); fill: none; stroke-width: 1.8; stroke-linecap: round; }
.search input { flex-grow: 1; min-width: 0; min-height: 44px; border: none; outline: none; font-size: 16px; background: transparent; color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.faq-list { display: flex; flex-direction: column; overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item.is-last { border-bottom: none; }
.faq-item__h { font: inherit; }
.faq-item__btn { width: 100%; min-height: 60px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; background: none; border: none; font-size: 16.5px; font-weight: 550; letter-spacing: -.008em; line-height: 1.35; color: var(--ink); text-align: left; cursor: pointer; transition: background-color .14s ease; }
.faq-item__btn:hover { background: var(--bubble); }
.faq-item__btn svg { flex: 0 0 auto; stroke: var(--muted); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .16s ease; }
.faq-item__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-item__btn:focus-visible { outline-offset: -2px; }
.faq-item__panel { padding: 2px 22px 18px; display: flex; flex-direction: column; gap: 12px; }
.faq-item__panel p { font-size: 16px; line-height: 1.55; color: var(--text2); }
.vote { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.vote button { min-height: 44px; min-width: 52px; padding: 0 12px; margin-left: 2px; background: transparent; color: var(--ink); border: 1px solid var(--line2); border-radius: 8px; font-size: 13.5px; cursor: pointer; transition: background-color .14s ease; }
.vote button:hover { background: var(--bubble); }
.vote__thanks { font-size: 13.5px; color: var(--ok); }
.faq-empty { padding: 20px 22px; color: var(--text2); }
.help-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px 22px; box-shadow: none; border-color: var(--line); }
.help-card img { display: block; flex: 0 0 auto; }
.help-card__text { flex: 1 1 220px; min-width: 0; }
.help-card__text b { font-size: 17px; font-weight: 550; letter-spacing: -.01em; display: block; }
.help-card__text span { color: var(--text2); font-size: 15px; }

/* ---------- Низ страницы ---------- */
.peek { position: relative; z-index: 1; max-width: 1080px; margin: 16px auto 0; padding: 0 var(--gutter); display: flex; align-items: flex-end; gap: 12px; }
.peek__btn { flex: 0 0 auto; display: block; background: none; border: none; padding: 0; cursor: pointer; margin-bottom: -1px; }
.peek__btn img { display: block; }
.peek__bubble { flex: 0 1 auto; min-width: 0; margin-bottom: 36px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px 12px 12px 4px; padding: 9px 14px; font-size: 15px; font-weight: 500; line-height: 1.4; }
.site-footer { background: var(--surface); border-top: 1px solid var(--line-strong); }
.site-footer__in { max-width: 1080px; margin: 0 auto; padding: 36px var(--gutter) 44px; display: flex; flex-wrap: wrap; gap: 28px 56px; font-size: 14.5px; color: var(--text2); }
.site-footer__col { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.site-footer__col a { display: inline-flex; align-items: center; min-height: 44px; align-self: flex-start; overflow-wrap: anywhere; color: var(--text2); text-decoration: none; }
.site-footer__col a:hover { color: var(--ink); text-decoration: underline; }
.site-footer__head { margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .site-footer__col a { min-height: 30px; } }

/* ---------- Юридические страницы ---------- */
.doc-page { padding: 28px 0 72px; }
.doc-page .wrap { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }
.doc { display: flex; flex-direction: column; gap: 12px; color: var(--text2); overflow-wrap: anywhere; }
.doc h1 { color: var(--ink); font-size: clamp(30px, 4.4vw, 42px); line-height: 1.12; font-weight: 600; letter-spacing: -.03em; }
.doc h2 { color: var(--ink); font-size: 20px; line-height: 1.3; font-weight: 550; letter-spacing: -.012em; margin-top: 16px; }
.doc ol, .doc ul { padding-left: 22px; }
.doc .meta { font-size: 14.5px; color: var(--muted); }
.doc .todo { background: var(--t-cream); padding: 0 4px; border-radius: 4px; }
.back-link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0 -4px; color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; }
.back-link:hover { color: var(--ink); }

@media (max-width: 860px) {
  .about__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .header-login { display: none; }
  .btn { min-height: 50px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .about__cards { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact { padding: 22px 0; }
  .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .calc__cell--total { margin-left: 0; width: 100%; text-align: left; }
  .lead-form { grid-template-columns: minmax(0, 1fr); }
  .price-row { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
