/* ==========================================================================
   Лендинг вебинара «Эксперимент по обелению» — RR Design System
   Токены и правила соответствуют дизайн-системе «Рабочие Руки»:
   белый фон, синий #283466, Tilda Sans, плоскость (без теней), 200ms ease-in-out.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700;800&display=swap");

/* Tilda Sans (ParaType, SIL OFL). Для автономности положите woff2 в assets/fonts/
   и замените src на локальные пути. */
@font-face { font-family: "Tilda Sans"; src: url("https://db.onlinewebfonts.com/t/e67d454812dd994a6a0d066384080946.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Tilda Sans"; src: url("https://db.onlinewebfonts.com/t/30aaff8bab312adfd29944c9cfb18158.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Tilda Sans"; src: url("https://db.onlinewebfonts.com/t/885a5d8bb320f06a440e152dad13fe86.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --font: "Tilda Sans", "Onest", Arial, sans-serif;
  --brand: #283466;
  --brand-hover: #1f2a54;
  --brand-pressed: #18203f;
  --text: #292b31;
  --text-muted: #626773;
  --text-subtle: #8a8f9b;
  --surface: #ffffff;
  --surface-subtle: #f4f5f7;
  --border: #e6e8ec;
  --border-strong: #dfe2e8;
  --danger: #c0392b;
  --radius-control: 10px;
  --radius-card: 24px;
  --radius-pill: 999px;
  --motion: .2s ease-in-out;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 24px);
  --section-y: clamp(56px, 8vw, 96px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color var(--motion); }
a:hover { color: var(--brand-hover); }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(40, 52, 102, .35); border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* --- Типографика ---------------------------------------------------------- */
.label { font-weight: 700; font-size: 15px; line-height: 20px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.label-invert { color: #ffffff; opacity: .65; }
.h1 { margin-top: 20px; font-weight: 700; font-size: clamp(30px, 5vw, 56px); line-height: 1.09; letter-spacing: -.02em; text-wrap: pretty; }
.h2 { margin-top: 16px; font-weight: 700; font-size: clamp(27px, 4vw, 44px); line-height: 1.14; letter-spacing: -.01em; text-wrap: pretty; }
.lead { margin-top: 24px; max-width: 640px; font-size: clamp(17px, 2.2vw, 20px); line-height: 1.5; color: var(--text-muted); text-wrap: pretty; }

/* Фирменный приём: синяя SLA-плашка внутри заголовка (не более одной на экран) */
.sla { display: inline-block; padding: 2px 14px 6px; border-radius: var(--radius-control); background: var(--brand); color: #ffffff; white-space: nowrap; }

/* --- Кнопки --------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 32px; border: 1px solid transparent; border-radius: var(--radius-control); font-family: var(--font); font-weight: 600; font-size: 18px; cursor: pointer; transition: background var(--motion), color var(--motion); }
.btn-primary { background: var(--brand); color: #ffffff; }
.btn-primary:hover { background: var(--brand-hover); color: #ffffff; }
.btn-primary:active { background: var(--brand-pressed); }
.btn-inverse { background: #ffffff; color: var(--brand); }
.btn-inverse:hover { background: #eef0f5; }
.btn-sm { height: 44px; padding: 0 clamp(16px, 3vw, 24px); font-size: clamp(14px, 2.6vw, 16px); white-space: nowrap; }
.btn-block { width: 100%; margin-top: 4px; }
.btn[disabled] { opacity: .5; cursor: progress; }

/* --- Хедер ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 20; height: 76px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-weight: 800; font-size: 22px; line-height: 26px; color: var(--brand); letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav-link { font-weight: 500; font-size: 16px; color: var(--text-muted); }

/* --- Hero ----------------------------------------------------------------- */
.hero { padding-top: clamp(36px, 6vw, 72px); padding-bottom: var(--section-y); display: flex; flex-wrap: wrap; gap: 36px 24px; align-items: flex-start; }
.hero-copy { flex: 1 1 520px; min-width: 0; }
.pills { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.pill { display: flex; align-items: center; height: 48px; padding: 0 20px; border: 1px solid var(--border); border-radius: var(--radius-pill); font-weight: 600; font-size: 17px; }
.metrics { margin-top: clamp(36px, 5vw, 56px); max-width: 640px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 28px 40px; }
.metric-value { font-weight: 700; font-size: clamp(38px, 5vw, 52px); line-height: 1.08; color: var(--brand); }
.metric-label { margin-top: 8px; font-size: 17px; line-height: 25px; color: var(--text-muted); }

/* --- Форма ---------------------------------------------------------------- */
.card-form { flex: 1 1 360px; min-width: 0; background: var(--surface-subtle); border-radius: var(--radius-card); padding: clamp(24px, 4vw, 36px) clamp(20px, 4vw, 36px) clamp(28px, 4vw, 40px); scroll-margin-top: 92px; }
.form-title { margin-top: 12px; font-weight: 700; font-size: 28px; line-height: 34px; }
.form-note { margin-top: 10px; font-size: 16px; line-height: 24px; color: var(--text-muted); }
.field { margin-top: 16px; }
.field-label { display: block; font-weight: 600; font-size: 14px; line-height: 20px; }
.req { color: var(--brand); }
.input { margin-top: 6px; width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-control); background: #ffffff; font-family: var(--font); font-size: 17px; color: var(--text); outline: none; transition: border-color var(--motion), box-shadow var(--motion); }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(40, 52, 102, .18); }
.textarea { height: auto; padding: 14px 16px; line-height: 24px; resize: vertical; }
.input::placeholder { color: #a7abb5; }
.field-error { display: none; margin-top: 6px; font-weight: 500; font-size: 14px; line-height: 20px; color: var(--danger); }
.field.has-error .input { border-color: var(--danger); }
.field.has-error .field-error { display: block; }
/* Чекбокс согласия на обработку ПДн. Флажок — фоновая SVG-галка, без теней. */
.field-consent { margin-top: 20px; }
.checkbox { position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.checkbox-input { position: absolute; top: 1px; left: 0; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.checkbox-box { flex: 0 0 auto; margin-top: 1px; width: 22px; height: 22px; border: 1px solid var(--border-strong); border-radius: 6px; background: #ffffff; transition: background-color var(--motion), border-color var(--motion); }
.checkbox-input:checked + .checkbox-box { border-color: var(--brand); background-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 11'%3E%3Cpath d='M1 5.6 5 9.6 13 1.6' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 13px 10px; }
.checkbox-input:focus-visible + .checkbox-box { box-shadow: 0 0 0 3px rgba(40, 52, 102, .35); }
.checkbox-text { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.checkbox-text a { text-decoration: underline; text-underline-offset: 2px; }
.field-consent.has-error .checkbox-box { border-color: var(--danger); }

.consent { margin-top: 16px; font-size: 13px; line-height: 19px; color: var(--text-subtle); }
.form-fail { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--danger); }
.form-success { padding: 24px 0 16px; }
.tick { width: 56px; height: 56px; border-radius: var(--radius-pill); background: var(--brand); color: #ffffff; font-weight: 700; font-size: 26px; line-height: 56px; text-align: center; }
.form-success .form-title { margin-top: 20px; }
.form-when { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-strong); font-size: 16px; color: var(--text-muted); }

/* --- Программа ------------------------------------------------------------ */
.band { background: var(--surface-subtle); }
.band > .container { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 48px; }
.section-head .h2 { max-width: 760px; }
.section-aside { max-width: 360px; line-height: 26px; color: var(--text-muted); }
.cards { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 20px; }
.card { background: #ffffff; border-radius: var(--radius-card); padding: clamp(24px, 3vw, 32px); }
.card-invert { background: var(--brand); color: #ffffff; }
.card-invert .step { color: #ffffff; opacity: .7; }
.card-invert .card-text { color: #ffffff; opacity: .85; }
.step { font-weight: 700; font-size: 16px; color: var(--brand); }
.card-title { margin-top: 14px; font-weight: 700; font-size: 22px; line-height: 28px; }
.card-text { margin-top: 10px; line-height: 26px; color: var(--text-muted); }

/* --- Кому полезно --------------------------------------------------------- */
.who { padding-top: var(--section-y); padding-bottom: var(--section-y); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 36px 48px; align-items: start; }
.who-lead { margin-top: 24px; font-size: 18px; line-height: 28px; color: var(--text-muted); text-wrap: pretty; }
.who-list { display: flex; flex-direction: column; gap: 16px; }
.who-item { display: flex; gap: 20px; padding: clamp(22px, 3vw, 28px) clamp(22px, 3vw, 32px); border: 1px solid var(--border); border-radius: var(--radius-card); }
.who-num { flex: none; font-weight: 700; font-size: 20px; line-height: 28px; color: var(--brand); }
.who-title { font-weight: 700; font-size: 21px; line-height: 28px; }
.who-text { margin-top: 8px; line-height: 26px; color: var(--text-muted); }

/* --- Синий CTA-блок ------------------------------------------------------- */
.cta { background: var(--brand); color: #ffffff; }
.cta-inner { padding-top: clamp(56px, 8vw, 88px); padding-bottom: clamp(56px, 8vw, 88px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 36px 48px; align-items: center; }
.cta-title { margin-top: 20px; font-weight: 700; font-size: clamp(24px, 3.4vw, 38px); line-height: 1.2; letter-spacing: -.01em; text-wrap: pretty; }
.cta-side { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.cta-text { font-size: 18px; line-height: 28px; opacity: .85; }

/* --- Футер ---------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner { padding-top: clamp(32px, 5vw, 48px); padding-bottom: clamp(32px, 5vw, 48px); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 20px 24px; }
.footer-brand { display: flex; align-items: baseline; gap: 20px; }
.footer-brand .logo { font-size: 20px; }
.footer-tag, .footer-links { font-size: 16px; color: var(--text-subtle); }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--text-subtle); }

/* --- Мобильные --------------------------------------------------------------
   Сетки и кегли адаптивны сами (auto-fit + clamp). Медиазапросы правят только
   то, что нельзя выразить текучей вёрсткой. */
@media (max-width: 759px) {
  .nav-link { display: none; }
  .pill { height: 44px; font-size: 16px; }
  .btn { height: 52px; font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}

/* --- Страница «спасибо» (thanks.html) ------------------------------------- */
.thanks { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(72px, 9vw, 112px); display: flex; flex-wrap: wrap; gap: 48px 40px; align-items: flex-start; }
.thanks-copy { flex: 1 1 520px; min-width: 0; }
.thanks-copy .h1 { margin-top: 24px; font-size: clamp(30px, 4.4vw, 50px); }
.thanks-copy .lead { margin-top: 32px; }
.thanks-copy .pills { margin-top: clamp(36px, 4.5vw, 52px); gap: 14px; }
.tick-lg { width: 72px; height: 72px; font-size: 34px; line-height: 72px; margin-bottom: 32px; }
.thanks-actions { margin-top: clamp(28px, 3.5vw, 40px); display: flex; flex-wrap: wrap; gap: 16px; }
.btn-secondary { background: #ffffff; color: var(--brand); border-color: var(--brand); }
.btn-secondary:hover { background: var(--surface-subtle); color: var(--brand); }
.thanks-next { flex: 1 1 380px; padding-top: clamp(28px, 4vw, 40px); padding-bottom: clamp(28px, 4vw, 40px); }
.next-list { margin-top: 28px; display: flex; flex-direction: column; gap: 28px; }
.next-item { display: flex; align-items: flex-start; gap: 18px; padding-bottom: 28px; border-bottom: 1px solid var(--border-strong); }
.next-item:last-child { padding-bottom: 0; border-bottom: none; }
.next-item .who-title { font-size: 19px; line-height: 26px; }
.next-item .who-text { margin-top: 10px; }
.thanks-next .form-note { margin-top: 32px; line-height: 25px; }
