/* HR-студия Владимира Скрипки — стили лендинга. Mobile-first, без внешних зависимостей. */

/* Inter (вариативный, 100–900), SIL Open Font License 1.1 — см. assets/fonts/LICENSE.txt.
   Файлы с @fontsource-variable/inter 5.3.0; браузер скачивает только нужный набор символов. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.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;
}

:root {
  /* Палитра бренда */
  --navy: #1b2a4a;        /* темно-синий — компетентность */
  --blue: #2f5da8;        /* синий — системность */
  --yellow: #f2c14e;      /* теплый желтый — энергия */
  --terracotta: #c4552b;  /* терракотово-оранжевый — действие */
  --terracotta-dark: #a8461f;
  --teal: #16706f;        /* бирюзовый акцентный текст */
  --teal-light: #6fd0cc;  /* бирюзовый на темном фоне */
  --logo-teal: #049084;   /* бирюзовый из логотипа — только для логотипа */
  --bg: #f7f5f0;          /* светлый спокойный фон */
  --bg-tint: #eeebe3;
  --surface: #ffffff;
  --text: #1f2633;
  --muted: #5a6272;
  --line: #dcd7cc;

  --radius: 14px;
  --container: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }
.link { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Плейсхолдеры — заметно, но аккуратно */
.ph-mark { color: var(--terracotta); font-weight: 600; }
.section--dark .ph-mark { color: var(--yellow); }
.ph-note { font-size: .9rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 24px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 24px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 700; text-align: center; text-decoration: none; line-height: 1.25;
  cursor: pointer; transition: background-color .15s ease, transform .15s ease;
}
.btn--primary { background: var(--terracotta); color: #fff; }
.btn--primary:hover { background: var(--terracotta-dark); }
.btn--primary:active { transform: translateY(1px); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: .95rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 50; background: rgba(247, 245, 240, .96); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .header { background: rgba(247, 245, 240, .85); backdrop-filter: blur(8px); } }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark { width: 60px; height: 15px; flex: none; }
.logo__text { font-size: .82rem; line-height: 1.2; font-weight: 700; color: var(--logo-teal); }

.nav-toggle { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

.nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
  max-height: calc(100vh - 64px); overflow-y: auto;
}
.nav.is-open { display: block; }
.nav__list a { display: block; padding: 12px 0; text-decoration: none; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line); }
.nav__list a.is-active { color: var(--teal); }
.nav__cta { margin-top: 16px; width: 100%; }

/* Секции */
.section { padding: 64px 0; }
.section--tint { background: var(--bg-tint); }
.section--dark { background: var(--navy); color: #e6ebf3; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .link { color: var(--teal-light); }
.section__kicker { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--teal); margin-bottom: 10px; }
.section--dark .section__kicker { color: var(--yellow); }
.section__intro { font-size: 1.05rem; max-width: 720px; color: var(--muted); }
.section--dark .section__intro { color: #c3cbd9; }
.subhead { margin-top: 40px; }

/* Первый экран */
.hero { padding: 40px 0 56px; }
.hero__grid { display: grid; gap: 32px; }
.eyebrow { font-size: .85rem; font-weight: 600; color: var(--teal); margin-bottom: 14px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 640px; }

.stats { display: grid; gap: 12px; margin: 28px 0; }
.stat { display: flex; align-items: baseline; gap: 12px; padding: 14px 16px; background: var(--surface); border-radius: var(--radius); border-left: 4px solid #3d78b3; }
.stat:nth-child(2) { border-left-color: #f4b940; } /* полоски в цветах логотипа: синий, желтый, терракотовый */
.stat:nth-child(3) { border-left-color: #c56a4a; }
.stat__num { font-size: 1.6rem; font-weight: 800; color: var(--navy); white-space: nowrap; }
.stat__label { font-size: .92rem; color: var(--muted); line-height: 1.35; }

.hero__actions .btn { width: 100%; }
.hero__note { font-size: .9rem; color: var(--muted); margin: 10px 0 0; }
.alt-contact { margin-top: 20px; font-size: .95rem; }

/* Фото */
picture { display: contents; } /* img остается элементом сетки, <picture> только выбирает формат */
picture > source { display: none; } /* иначе <source> занимает ячейку сетки */
.photo { display: block; width: 100%; height: auto; object-fit: cover; border-radius: var(--radius); background: var(--bg-tint); }
.photo--portrait { aspect-ratio: 4 / 5; max-width: 460px; justify-self: center; box-shadow: 0 18px 40px -20px rgba(27, 42, 74, .45); }
.photo--landscape { aspect-ratio: 3 / 2; }

/* Портрет + принцип на первом экране */
.hero__figure { margin: 0; width: 100%; max-width: 460px; justify-self: center; }
.hero__figure .photo--portrait { max-width: none; }
.principle {
  position: relative; z-index: 1; width: 90%; margin: -44px auto 0;
  padding: 16px 18px 14px; background: var(--surface); border-radius: 12px;
  border-left: 4px solid var(--yellow); box-shadow: 0 10px 28px -12px rgba(27, 42, 74, .35);
}
.principle blockquote { margin: 0; }
.principle p { margin: 0; font-size: 1.12rem; font-weight: 700; line-height: 1.3; color: var(--navy); }
.principle__label { display: block; margin-top: 6px; font-size: .8rem; color: var(--teal); font-weight: 600; }

/* О студии */
.about__grid { display: grid; gap: 32px; }
.timeline { margin-top: 28px; border-left: 2px solid var(--line); padding-left: 22px; }
.timeline__item { position: relative; padding-bottom: 24px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -30px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--blue);
}
.timeline__item--now::before { background: var(--yellow); border-color: var(--terracotta); }
.timeline__when { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); margin-bottom: 4px; }
.timeline__item h3 { margin-bottom: 6px; }
.timeline__item p:last-child { color: var(--muted); margin: 0; }

/* Карточки */
.cards { display: grid; gap: 16px; margin-top: 28px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.card p:last-child { margin-bottom: 0; color: var(--muted); }
.card__num { font-size: 2rem; font-weight: 800; color: var(--yellow); line-height: 1; margin-bottom: 14px; -webkit-text-stroke: 1px var(--navy); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; color: var(--navy); text-decoration: none;
}
a.chip { transition: border-color .15s ease, box-shadow .15s ease; }
a.chip:hover { border-color: var(--teal); box-shadow: 0 2px 8px rgba(27, 42, 74, .1); }
.chip__tag {
  margin-left: 2px; padding: 1px 8px; border-radius: 999px; background: #e3f2f1; color: var(--teal);
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.chips__note { margin: 10px 0 0; font-size: .85rem; color: var(--muted); }

/* Маркеры-фигуры из логотипа */
.mk { display: inline-block; flex: none; width: 10px; height: 10px; }
.mk--sq { background: #3d78b3; }
.mk--ci { background: #f4b940; border-radius: 50%; }
.mk--tr { background: #c56a4a; clip-path: polygon(0 0, 100% 50%, 0 100%); width: 9px; }

/* Подсветка кейса или отзыва, к которому перешли по ссылке */
.case:target, .review:target { outline: 3px solid var(--yellow); outline-offset: 4px; }
.regions { color: var(--muted); }
@media (min-width: 1160px) { .regions { font-size: .9rem; } } /* весь список в одну строку */

/* Шаги */
.steps { counter-reset: step; display: grid; gap: 12px; margin-top: 28px; }
.step { counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 68px; }
.step::before {
  content: counter(step); position: absolute; left: 18px; top: 18px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--navy); border: 2px solid #3d78b3; font-weight: 700;
}
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Кейсы */
.cases { display: grid; gap: 16px; margin-top: 28px; }
.case { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 24px; }
.case__metric { color: #c3cbd9; font-size: .95rem; margin-bottom: 14px; }
.case__metric span { display: block; font-size: 2.4rem; font-weight: 800; color: var(--yellow); line-height: 1.1; }
.case h3 { font-size: 1.1rem; }
.case__body { margin: 0; }
.case__body dt { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-light); margin-top: 14px; }
.case__body dd { margin: 4px 0 0; font-size: .95rem; }

/* Результаты */
.results { display: grid; gap: 16px; margin-top: 28px; }
.result { background: var(--surface); border-radius: var(--radius); padding: 24px; border-top: 4px solid #3d78b3; }
.result:nth-child(2) { border-top-color: #f4b940; }
.result:nth-child(3) { border-top-color: #c56a4a; }
.result__num { display: block; font-size: clamp(2.4rem, 8vw, 3.2rem); white-space: nowrap; font-weight: 800; color: var(--navy); line-height: 1.1; margin-bottom: 8px; }
.result__text { color: var(--muted); }
.results__foot { margin-top: 24px; font-weight: 600; color: var(--teal); }

/* Отзывы */
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.review blockquote { margin: 0; }
.review figcaption { font-size: .9rem; color: var(--muted); }
.review figcaption strong { display: block; color: var(--navy); font-size: 1rem; }

.review blockquote p { margin: 0; }

/* Рекомендательное письмо в карточке отзыва */
.letter {
  display: flex; align-items: center; gap: 14px; margin-top: 4px; padding: 10px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  text-decoration: none; color: var(--navy); font-size: .9rem; font-weight: 600; line-height: 1.35;
  transition: border-color .15s ease;
}
a.letter:hover { border-color: var(--blue); }
.letter img, .letter__ph { width: 64px; height: 90px; flex: none; object-fit: cover; object-position: top; border-radius: 4px; box-shadow: 0 2px 8px rgba(27, 42, 74, .18); background: #fff; }
.letter__ph { box-shadow: none; border: 2px dashed #b9b2a2; background: repeating-linear-gradient(135deg, #ece8de 0 8px, #e6e1d5 8px 16px); }
.letter__cta { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.letter--pending { color: var(--muted); }

/* Окно просмотра письма */
.letter-dialog {
  width: min(900px, 100vw - 24px); max-height: calc(100vh - 24px); padding: 0; border: 0;
  border-radius: var(--radius); background: var(--bg-tint); color: var(--text); overflow: hidden;
}
.letter-dialog[open] { display: flex; flex-direction: column; }
.letter-dialog::backdrop { background: rgba(19, 31, 56, .75); }
.letter-dialog__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.letter-dialog__title { margin: 0; font-weight: 700; color: var(--navy); font-size: .95rem; }
.letter-dialog__close { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bg-tint); color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.letter-dialog__close:hover { background: var(--line); }
.letter-dialog__pages { overflow-y: auto; padding: 12px; display: grid; gap: 12px; -webkit-overflow-scrolling: touch; }
.letter-dialog__pages img { display: block; width: 100%; height: auto; border-radius: 6px; background: #fff; box-shadow: 0 4px 16px rgba(27, 42, 74, .15); }
body.has-dialog { overflow: hidden; }

/* Экспертность */
.certs { display: grid; gap: 16px; margin-top: 28px; }
.cert { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.cert__doc {
  position: relative; display: block; aspect-ratio: 4 / 3; padding: 16px;
  background: var(--bg-tint); border-bottom: 1px solid var(--line); cursor: zoom-in;
}
.cert__doc img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; filter: drop-shadow(0 4px 10px rgba(27, 42, 74, .18)); transition: transform .2s ease; }
.cert__doc:hover img, .cert__doc:focus-visible img { transform: scale(1.03); }
.cert__pages { position: absolute; right: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .75rem; font-weight: 600; }
.cert__body { padding: 18px 22px 22px; }
.cert__year { display: inline-block; font-weight: 800; color: var(--blue); margin-bottom: 6px; }
.cert__city { font-weight: 600; color: var(--muted); }
.cert h3 { margin-bottom: 6px; }
.cert p { margin: 0; color: var(--muted); font-size: .95rem; }
.cert__verify { margin-top: 10px !important; font-size: .9rem !important; }

/* Стоимость */
#pricing .section__intro { max-width: 860px; }
.pricing-steps { counter-reset: pstep; display: grid; gap: 12px; margin: 28px 0 0; }
.pricing-step { counter-increment: pstep; position: relative; padding: 18px 20px 18px 68px; background: var(--surface); border-radius: var(--radius); border-left: 4px solid var(--terracotta); }
.pricing-step::before {
  content: counter(pstep); position: absolute; left: 18px; top: 18px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--terracotta); border: 2px solid var(--terracotta); font-weight: 700;
}
.pricing-step h3 { margin-bottom: 4px; }
.badge-free { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--yellow); color: var(--navy); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.pricing-step p { margin: 0; color: var(--muted); font-size: .95rem; }
.price__label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); margin-bottom: 8px !important; }
.pricing__cta { margin: 28px 0 0; }
.terms { margin-top: 16px; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.terms h3 { margin-bottom: 12px; }
.terms__list { display: grid; gap: 8px; }
.terms__list li { position: relative; padding-left: 20px; color: var(--muted); font-size: .95rem; }
.terms__list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; background: var(--teal); border-radius: 2px; }
.terms__list strong { color: var(--navy); }
@media (min-width: 960px) { .terms__list { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 960px) { .pricing-steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 599px) { .pricing__cta .btn { width: 100%; } }

/* Контакты и форма */
.contacts__grid { display: grid; gap: 32px; }
.contacts__alt ul { margin: 8px 0 16px; display: grid; gap: 6px; font-size: 1.05rem; }
.contacts__geo { color: #c3cbd9; font-size: .92rem; }
.contacts__hours { display: block; font-size: .82rem; color: #c3cbd9; }

.form { background: var(--surface); color: var(--text); border-radius: var(--radius); padding: 24px 20px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; color: var(--navy); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  padding: 12px 14px; border: 1px solid #c9c3b6; border-radius: 10px; background: #fff;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 93, 168, .2); }
.field.is-invalid input { border-color: var(--terracotta); }
.field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); padding: 12px 38px 12px 14px;
  border: 1px solid #c9c3b6; border-radius: 10px; background: #fff; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231b2a4a' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 93, 168, .2); }

/* Как и когда созвониться */
.call-pref { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); gap: 12px; min-width: 0; }
.call-pref legend { padding: 0 6px; margin-left: -6px; font-weight: 600; font-size: .95rem; color: var(--navy); }
.chips-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-choice label { position: relative; cursor: pointer; }
.chips-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips-choice span {
  display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid #c9c3b6; background: #fff;
  font-size: .9rem; font-weight: 600; color: var(--navy); transition: background-color .15s ease, border-color .15s ease;
}
.chips-choice label:hover span { border-color: var(--blue); }
.chips-choice input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips-choice input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.call-pref__when { display: grid; gap: 12px; }
.call-pref__when label { font-size: .9rem; }
.call-pref__note { margin: 0; font-size: .82rem; color: var(--muted); }
@media (min-width: 420px) { .call-pref__when { grid-template-columns: 1fr 1fr; } }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--terracotta); }
.consent.is-invalid { color: var(--terracotta); }
.form__status { margin: 0; font-size: .95rem; min-height: 1.5em; }
.form__status.is-ok { color: var(--teal); font-weight: 600; }
.form__status.is-error { color: var(--terracotta); font-weight: 600; }

/* Текстовые страницы (манифест) */
.page-back { font-weight: 600; font-size: .95rem; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(1.9rem, 5.5vw, 2.8rem); }
.prose h2 { font-size: clamp(1.3rem, 3.6vw, 1.6rem); margin-top: 2.2em; padding-top: 18px; border-top: 3px solid var(--yellow); display: inline-block; }
.prose p { font-size: 1.05rem; }
.prose__lead { font-size: 1.2rem !important; color: var(--navy); }
.prose__final { margin-top: 48px; padding: 28px 24px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.prose__final p { font-size: 1.15rem; font-weight: 700; margin: 0 0 .5em; }
.prose__final p:last-child { margin: 0; color: var(--yellow); }
.prose__back { margin-top: 32px; }
.about__more { margin-top: 24px; font-weight: 600; }

/* Юридические страницы */
.legal h2 { border-top: 0; padding-top: 0; display: block; margin-top: 1.8em; }
.legal h3 { margin-top: 1.4em; font-size: 1.05rem; }
.legal p, .legal li { font-size: 1rem; }
.legal__meta { color: var(--muted); font-size: .9rem !important; }
.legal__list { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.legal__list li { margin-bottom: .4em; }

/* Окно благодарности после заявки */
.thanks-dialog {
  width: min(440px, 100vw - 32px); padding: 32px 28px 26px; border: 0; border-radius: 18px;
  background: var(--surface); color: var(--text); text-align: center;
  box-shadow: 0 24px 60px -20px rgba(19, 31, 56, .55);
}
.thanks-dialog::backdrop { background: rgba(19, 31, 56, .6); }
.thanks-dialog[open] { animation: thanks-in .22s ease-out; }
@keyframes thanks-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .thanks-dialog[open] { animation: none; } }
.thanks-dialog__close {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.thanks-dialog__close:hover { background: var(--bg-tint); color: var(--navy); }
.thanks-dialog__mark { width: 84px; height: 21px; margin: 0 auto 18px; display: block; }
.thanks-dialog__title { font-size: 1.45rem; margin: 0 0 10px; color: var(--navy); }
.thanks-dialog__text { margin: 0 0 12px; color: var(--text); font-size: 1.02rem; }
.thanks-dialog__summary { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg); color: var(--navy); font-size: .9rem; font-weight: 600; }
.thanks-dialog__note { margin: 0 0 20px; color: var(--muted); font-size: .88rem; }
.thanks-dialog__note a { white-space: nowrap; }
.thanks-dialog__ok { min-width: 160px; }

/* Уведомление о cookie */
.cookie-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  max-width: 760px; margin: 0 auto; padding: 14px 16px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(27, 42, 74, .18);
}
.cookie-bar p { flex: 1 1 260px; margin: 0; font-size: .88rem; line-height: 1.45; }
.cookie-bar .btn { flex: none; }

/* Подвал */
.footer { background: var(--bg); color: var(--muted); font-size: .88rem; padding: 36px 0; border-top: 1px solid var(--line); }
.footer p { margin: 4px 0; }
.footer__inner { display: grid; gap: 6px; }
.footer__brand { margin-bottom: 14px; }
.footer__mark { display: block; width: 88px; height: 22px; margin-bottom: 12px; }
.footer__name { font-size: 1.05rem; font-weight: 700; color: var(--logo-teal); }
.footer__tagline { font-style: italic; font-weight: 600; color: var(--logo-teal); }

/* ≥ 600px */
@media (min-width: 600px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { flex-direction: column; gap: 4px; }
  .hero__actions .btn { width: auto; }
  .cards--2, .cards--4, .certs { grid-template-columns: repeat(2, 1fr); }
  .results { grid-template-columns: repeat(3, 1fr); }
  .result { padding: 20px 18px; }
  .result__num { font-size: clamp(1.9rem, 4.2vw, 3.2rem); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .form { padding: 32px; }
}

/* ≥ 960px */
@media (min-width: 960px) {
  body { font-size: 17px; }
  .section { padding: 96px 0; }
  .hero { padding: 64px 0 88px; }
  .hero__grid { grid-template-columns: 1.35fr 1fr; align-items: center; gap: 56px; }
  .about__grid { grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
  .cards--4, .steps { grid-template-columns: repeat(4, 1fr); }
  .results, .certs, .cases, .cards--reviews { grid-template-columns: repeat(3, 1fr); }
  .contacts__grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .footer__inner { grid-template-columns: 1fr auto; align-items: end; column-gap: 40px; }
  .footer__brand { grid-row: span 2; margin-bottom: 0; }
  .footer__inner > p { text-align: right; }

  .nav-toggle { display: none; }
  .nav {
    display: flex; align-items: center; gap: 20px; position: static;
    padding: 0; border: 0; background: transparent; max-height: none; overflow: visible;
  }
  .nav__list { display: flex; gap: 16px; }
  .nav__list a { border: 0; padding: 6px 0; font-size: .88rem; white-space: nowrap; }
  .nav__cta { margin: 0; width: auto; white-space: nowrap; }
  .logo__text { white-space: nowrap; }
}

@media (min-width: 960px) and (max-width: 1279px) {
  .nav { gap: 14px; }
  .nav__list { gap: 12px; }
  .nav__list a { font-size: .8rem; }
  .nav__cta { padding: 10px 14px; font-size: .85rem; }
  .logo__text { display: none; }
  .logo__mark { width: 72px; height: 18px; }
}
