/* Основная вёрстка лендинга «Расчёт Строй».
   Источники: ТЗ №2 §6 (токены, типографика, сетка, контролы), §7 (блоки),
   ТЗ №1 §7 (утверждённые тексты), §8 (структура), §9 (дизайн).
   Этап 1: калькулятор и форма — статичные макеты без логики. */

/* ---------- Шрифты: self-hosted, woff2, font-display: swap (ТЗ №2 §6.2, §8.2) ---------- */

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/onest-cyrillic-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/onest-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/onest-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/onest-cyrillic-800.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/onest-latin-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/onest-latin-ext-800.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-400.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: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-500.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: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-500.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --night: #1C2026;
  --night-soft: #232930;
  --steel: #AEB4BA;
  --steel-light: #D5D9DD;
  --steel-muted: #8F969D;
  --night-line: rgba(255, 255, 255, 0.10);
}

/* ---------- База ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd {
  margin: 0;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#calc,
#form,
#order,
#steps,
#payment,
#faq {
  scroll-margin-top: 96px;
}

/* ---------- Утилиты ---------- */

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

.container--narrow {
  max-width: 760px;
}

.section {
  padding-block: 64px;
}

.section--warm {
  background: var(--paper-warm);
}

.section__title {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Вынужденно: утилита должна перекрывать компонентные стили. */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Кнопки и контролы (ТЗ №2 §6.4) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  border: 0;
  border-radius: var(--radius-control);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-press);
}

.btn--primary:active {
  background: var(--accent-press);
}

.btn--outline-light {
  border: 1.5px solid #fff;
  background: transparent;
  color: #fff;
}

.btn--outline-light:hover {
  background: #fff;
  color: var(--ink);
}

.btn--ghost {
  min-height: 44px;
  padding: 8px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn--ghost:hover {
  color: var(--ink);
}

/* ---------- Шапка (тёмная) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--night);
  border-bottom: 1px solid var(--night-line);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 88px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.logo__img {
  display: block;
  width: auto;
  height: 58px;
}

.header__messengers {
  display: flex;
  align-items: center;
  gap: 8px;
}

.messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--night-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.messenger:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.messenger__icon {
  display: block;
  width: 22px;
  height: 22px;
}

/* ---------- Первый экран: тёмный, с логотипом ---------- */

.hero {
  background-color: var(--night);
  background-image:
    radial-gradient(900px 520px at 82% 6%, rgba(238, 122, 43, 0.14), transparent 60%),
    radial-gradient(700px 420px at 6% 92%, rgba(150, 165, 180, 0.07), transparent 70%);
  color: var(--paper);
  padding-block: 48px;
}

.hero__grid {
  display: grid;
  gap: 24px;
}

.hero__copy {
  max-width: 620px;
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

.hero .eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--steel-muted);
}

.hero h1 {
  margin-top: 14px;
  font-family: var(--font-head);
  font-size: clamp(46px, 5.6vw, 84px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--paper);
}

.hero__sub {
  margin-top: 10px;
  font-family: var(--font-head);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--steel-light);
}

.hero__lead {
  margin-top: 22px;
  max-width: 560px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--steel);
}

.hero__cta {
  margin-top: 0;
}

.hero__micro {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--steel-muted);
}

.hero__price {
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top: 2px solid var(--accent);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.hero__price-label {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--paper);
}

.hero__price .hero__micro {
  margin: 14px 0 0;
}

.hero__carousel {
  align-self: center;
  min-width: 0;
}

.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--night-line);
  border-radius: 20px;
  background: #14171B;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
  opacity: 1;
}

.carousel__track {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.carousel__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--accent);
  border-radius: 12px;
  background: #14171B;
  box-shadow: 0 0 0 1px rgba(238, 122, 43, 0.32), 0 24px 60px rgba(0, 0, 0, 0.5);
}

.carousel__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #14171B;
}

.carousel__dim {
  position: absolute;
  inset: 0;
  background: #0A0C0F;
  opacity: 0;
  pointer-events: none;
}

.carousel__slide--final {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  align-items: center;
  gap: 14px;
  padding: 26px;
  border-color: rgba(238, 122, 43, 0.65);
  background: #1E2126;
}

.carousel__final-title {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.1vw, 27px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--paper);
}

.carousel__final-sub {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--steel-light);
}

.carousel__final-note {
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--steel-muted);
}

.carousel__check {
  display: block;
  width: 100%;
  max-width: 235px;
  height: auto;
  justify-self: end;
}

@media (max-width: 767px) {
  .header__inner {
    height: 72px;
  }

  .logo__img {
    height: 46px;
  }

  .messenger {
    width: 38px;
    height: 38px;
  }

  .messenger__icon {
    width: 20px;
    height: 20px;
  }

  .hero__carousel {
    display: none;
  }
}

/* ---------- Калькулятор (ТЗ №1 §6; ТЗ №2 §7.3, §9) ---------- */

.calc__tabs {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.calc-tab {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.calc-tab:hover {
  border-color: #c8c4bc;
}

.calc-tab[aria-selected="true"] {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent), var(--shadow-card);
}

.calc-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.calc-tab__title {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.calc-tab__sub {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.calc-tab__badge {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}

.calc-tab[aria-selected="true"] .calc-tab__badge {
  display: inline-flex;
}

.calc-tab__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.calc-box {
  display: grid;
  margin-top: 16px;
  overflow: visible;
  background: var(--paper);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.calc__controls {
  padding: 24px;
}

.calc-field {
  display: grid;
  gap: 4px;
  margin: 0 0 22px;
}

.calc-field[hidden] {
  display: none;
}

.calc-field--dop {
  padding: 0;
  border: 0;
  margin-bottom: 0;
}

.calc-field--dop legend {
  padding: 0;
  margin-bottom: 10px;
}

.calc-field__head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
}

.calc-field__label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
}

.calc-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: help;
}

.calc-field__value {
  width: 92px;
  height: 52px;
  margin-left: auto;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--paper);
  font-size: 17px;
  text-align: right;
  appearance: textfield;
  -moz-appearance: textfield;
}

.calc-field__value:focus {
  border-color: var(--accent);
  outline: none;
}

.calc-field__value:disabled {
  opacity: 0.45;
}

.calc-field__value::-webkit-outer-spin-button,
.calc-field__value::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc-range {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.calc-range:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.calc-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    to right,
    var(--accent) 0 var(--fill, 0%),
    var(--line) var(--fill, 0%) 100%
  );
}

.calc-range::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
}

.calc-range::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--accent);
}

.calc-range::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(27, 30, 34, 0.18);
  appearance: none;
  -webkit-appearance: none;
}

.calc-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(27, 30, 34, 0.18);
}

.calc-field__hint {
  min-height: 17px;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.calc-field__hint:empty {
  min-height: 0;
}

.calc-field__hint[hidden] {
  display: none;
}

.calc-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
}

.calc-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.calc-check__box {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 1px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}

.calc-check input:checked + .calc-check__box {
  border-color: var(--accent);
  background: var(--accent);
}

.calc-check input:checked + .calc-check__box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.calc-check input:focus-visible + .calc-check__box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.calc-seg {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.calc-seg label {
  flex: 1;
  min-width: 0;
}

.calc-seg input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.calc-seg span {
  display: block;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
}

.calc-seg input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.calc-seg input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.calc-field--urgency {
  margin-bottom: 18px;
}

.calc-select {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.calc-select:focus {
  border-color: var(--accent);
  outline: none;
}

.calc-check--scan {
  margin-top: 0;
  margin-bottom: 22px;
}

.calc-check__factor {
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.calc-sum__row--coef {
  font-size: 13px;
}

.calc-sum__row--coef span:first-child {
  color: var(--steel);
}

.calc-sum__row--coef span:last-child {
  font-weight: 500;
  color: var(--paper);
}

.calc-addons {
  margin-top: 20px;
  margin-bottom: 0;
  padding: 0;
  border: 0;
}

.calc-addons legend {
  margin-bottom: 4px;
}

.calc-addon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px auto;
  align-items: start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.calc-addon:last-of-type {
  border-bottom: 0;
}

.calc-addon--link {
  grid-template-columns: minmax(0, 1fr) 20px auto auto;
  align-items: center;
}

.calc-addon__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  cursor: pointer;
}

.calc-addon__check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.calc-addon__box {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}

.calc-addon__check input:checked + .calc-addon__box {
  border-color: var(--accent);
  background: var(--accent);
}

.calc-addon__check input:checked + .calc-addon__box::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.calc-addon__check input:focus-visible + .calc-addon__box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.calc-addon__name {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink);
}

.calc-addon__price {
  padding-top: 1px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.calc-addon__choose {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.calc-addon__choose:hover {
  color: var(--ink);
}

.calc-addons__note {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}

.calc-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: help;
}

.calc-tip:hover,
.calc-tip:focus-visible {
  border-color: var(--accent);
  color: var(--ink);
}

.calc-tip__bubble {
  display: none;
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  bottom: auto;
  z-index: 30;
  width: 280px;
  max-width: calc(100vw - 40px);
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  transform: translateX(-50%);
}

.calc-tip__bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  bottom: auto;
  width: 8px;
  height: 8px;
  background: var(--ink);
  transform: translateX(-50%) rotate(45deg);
}

.calc-tip:hover .calc-tip__bubble,
.calc-tip:focus-visible .calc-tip__bubble {
  display: block;
}

.calc-tip--right .calc-tip__bubble {
  left: auto;
  right: 0;
  transform: none;
}

.calc-tip--right .calc-tip__bubble::after {
  left: auto;
  right: 8px;
  transform: rotate(45deg);
}

.calc__result {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 12px;
  padding: 24px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
}

.calc-sum {
  display: grid;
  gap: 10px;
}

.calc-sum__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  line-height: 1.4;
}

.calc-sum__row span:first-child {
  color: var(--steel-light);
}

.calc-sum__row span:last-child {
  font-weight: 500;
  white-space: nowrap;
  color: var(--paper);
}

.calc-sum__row--total {
  align-items: flex-end;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.calc-sum__row--total span:first-child {
  font-size: 14px;
  color: var(--steel);
}

.calc-sum__row--total span:last-child {
  font-family: var(--font-head);
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--accent);
}

.calc-sum__row--agreement {
  align-items: baseline;
}

.calc-sum__row--agreement span:last-child {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: var(--paper);
}

.calc-breakdown {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.calc-breakdown__title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-muted);
}

.calc-breakdown ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.calc-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--steel);
}

.calc-breakdown li span:last-child {
  color: var(--paper);
  white-space: nowrap;
}

.calc-forecast {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--steel-muted);
}

.calc-blocked {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--paper);
}

.calc__actions {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.calc__actions .btn {
  width: 100%;
}

.calc__result .btn--ghost {
  color: var(--steel-light);
}

.calc__result .btn--ghost:hover {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
}

.calc-how {
  align-self: flex-start;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--steel);
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.calc-how:hover {
  color: var(--paper);
}

/* Модальное окно «Как считается сумма» */

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 15, 0.74);
  backdrop-filter: blur(3px);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
}

.modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal__close:hover {
  border-color: var(--accent);
}

.modal__section {
  margin: 24px 0 0;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.modal__table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  font-size: 14px;
}

.modal__table th {
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.modal__table td {
  padding: 10px 8px 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.45;
}

.modal__table td:nth-child(2):not(:last-child) {
  color: var(--muted);
}

.modal__table th:last-child,
.modal__table td:last-child {
  padding-right: 0;
  text-align: right;
  font-weight: 500;
}

.modal__note {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

body.modal-open {
  overflow: hidden;
}

/* Сводка расчёта над формой */

.calc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: var(--paper);
}

.calc-summary[hidden] {
  display: none;
}

.calc-summary__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.calc-summary__text strong {
  font-weight: 600;
}

.calc-summary__edit {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.calc-summary + .form-card {
  margin-top: 16px;
}

@media (max-width: 767px) {
  .calc-range {
    height: 48px;
  }

  .calc-range::-webkit-slider-thumb {
    width: 44px;
    height: 44px;
    margin-top: -19px;
  }

  .calc-range::-moz-range-thumb {
    width: 40px;
    height: 40px;
  }

  .modal {
    padding: 12px;
  }

  .modal__dialog {
    max-height: calc(100vh - 24px);
    padding: 20px;
  }

  .modal__title {
    font-size: 22px;
  }
}

/* ---------- «Что нужно для заказа» (ТЗ №1 §7.2, ТЗ №2 §7.4) ---------- */

.order {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

.order__col {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-warm);
}

.order__col--dark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.order__title {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.order__col--dark .order__title {
  color: var(--paper);
}

.checklist {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 12px;
  font-size: 16px;
  line-height: 1.5;
}

.checklist svg {
  flex: 0 0 20px;
  margin-top: 3px;
  color: var(--ink);
}

.order__col--dark .checklist svg,
.order__col--dark .checklist li {
  color: var(--paper);
}

.order__note {
  max-width: 780px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

@media (min-width: 768px) {
  .order {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
  }

  .order__col {
    padding: 28px;
  }
}

/* ---------- «Как проходит заказ» (ТЗ №1 §7.4, ТЗ №2 §7.6) ---------- */

.steps {
  display: grid;
  gap: 24px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.step__num {
  flex: 0 0 auto;
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.step__text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.step__text strong {
  font-weight: 600;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 28px 32px;
    margin-top: 40px;
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }

  .step__num {
    font-size: 48px;
  }
}

/* ---------- Полоса оплаты (ТЗ №1 §7.5, ТЗ №2 §7.7) ---------- */

.payment {
  padding-block: 64px;
  background: var(--ink);
  color: var(--paper);
}

.payment__inner {
  display: grid;
  gap: 24px;
}

.payment__title {
  max-width: 760px;
  font-family: var(--font-head);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.payment__text {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--steel-light);
}

.payment .btn {
  justify-self: start;
}

@media (min-width: 1024px) {
  .payment {
    padding-block: 96px;
  }

  .payment__inner {
    grid-template-columns: minmax(0, 1.35fr) auto;
    align-items: end;
    gap: 48px;
  }

  .payment .btn {
    justify-self: end;
    margin-bottom: 4px;
  }
}

/* ---------- FAQ (ТЗ №1 §7.7, ТЗ №2 §7.9) ---------- */

.faq__layout {
  display: grid;
  gap: 28px;
}

.faq__aside {
  align-self: start;
}

.faq__count {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.faq {
  margin: 0;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  order: 2;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat;
  transition: transform 0.2s ease;
}

.faq__item[open] .faq__q::before {
  background:
    linear-gradient(var(--accent), var(--accent)) center / 14px 1.5px no-repeat;
}

.faq__a {
  max-width: 760px;
  padding: 0 0 24px;
  font-size: 16px;
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .faq__layout {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 80px;
    align-items: start;
  }

  .faq__aside {
    position: sticky;
    top: 120px;
  }

  .faq__q {
    font-size: 20px;
  }
}

/* ---------- Форма заявки (ТЗ №1 §10, ТЗ №2 §7.10, §11) ---------- */

.form-card {
  max-width: 760px;
  margin-top: 32px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.form__row {
  display: grid;
  gap: 16px;
}

.form__field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.form__row--spaced {
  margin-top: 20px;
}

.form__label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.form__input,
.form__textarea {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--paper);
  font-size: 17px;
  color: var(--ink);
}

.form__textarea {
  height: auto;
  min-height: 104px;
  padding: 14px 16px;
  line-height: 1.5;
  resize: vertical;
}

.form__input:focus-visible,
.form__textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form__hint {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.id-block {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.id-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.id-tabs {
  display: flex;
  gap: 24px;
  margin-top: 4px;
  border-bottom: 1px solid var(--line);
}

.id-radio:focus-visible ~ .id-tabs {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.id-tab {
  margin-bottom: -1px;
  padding: 14px 0 12px;
  border-bottom: 2px solid transparent;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--muted);
  cursor: pointer;
}

#lookup-eis:checked ~ .id-tabs label[for="lookup-eis"],
#lookup-file:checked ~ .id-tabs label[for="lookup-file"] {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.id-panel {
  display: none;
  padding-top: 20px;
}

#lookup-eis:checked ~ #panel-eis,
#lookup-file:checked ~ #panel-file {
  display: block;
}

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-control);
  background: var(--paper-warm);
}

.dropzone__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.dropzone__input:focus-visible + .dropzone__btn {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.dropzone__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-control);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
}

.consent__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.consent__box {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 1px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  cursor: pointer;
}

.consent__input:checked + .consent__box {
  border-color: var(--accent);
  background: var(--accent);
}

.consent__input:checked + .consent__box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent__input:focus-visible + .consent__box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.consent__text {
  font-size: 14px;
  line-height: 1.5;
}

.consent__text a,
.consent__link a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent__link {
  margin: 12px 0 0 32px;
  font-size: 14px;
  line-height: 1.5;
}

.form__submit {
  width: 100%;
  margin-top: 24px;
}

.form__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.5;
}

.form__messengers a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Футер (ТЗ №1 §7, ТЗ №2 §7.11) ---------- */

.site-footer {
  padding: 56px 0 28px;
  background: var(--ink);
  color: var(--paper);
}

.footer__grid {
  display: grid;
  gap: 32px;
}

.site-footer .logo__img {
  height: 54px;
}

.footer__tagline {
  max-width: 260px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.footer__title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__list {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.5;
  color: var(--paper);
}

.footer__list a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer__bottom {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.footer__calc {
  padding: 0;
  border: 0;
  background: none;
  color: var(--paper);
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.footer__calc:hover {
  color: var(--accent);
}

/* ---------- 404 (ТЗ №2 §7.13) ---------- */

.error-page {
  display: flex;
  align-items: center;
  min-height: 56vh;
  padding-block: 72px;
}

.error-page .container--narrow {
  text-align: center;
}

.error-page__title {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.error-page .btn {
  margin-top: 28px;
}

/* ---------- Точки перелома: 360 / 390 / 768 / 1024 / 1280 / 1440 (ТЗ №2 §6.5) ---------- */

@media (min-width: 768px) {
  .container {
    padding-inline: 40px;
  }

  .hero {
    padding-block: 64px;
  }

  .hero__grid {
    gap: 24px;
  }

  .form__row--2 {
    grid-template-columns: 1fr 1fr;
  }

  .form-card {
    padding: 32px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .section {
    padding-block: 96px;
  }

  .hero {
    padding-block: 96px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 48fr) minmax(0, 52fr);
    grid-template-areas:
      "copy carousel"
      "cta carousel";
    column-gap: 56px;
    row-gap: 0;
    align-items: start;
  }

  .hero__copy {
    grid-area: copy;
  }

  .hero__carousel {
    grid-area: carousel;
    align-self: center;
  }

  .hero__cta {
    grid-area: cta;
    margin-top: 28px;
  }

  .calc__tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .calc-box {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .calc__controls {
    padding: 32px;
  }

  .calc__result {
    margin: 12px 12px 12px 0;
    padding: 28px;
  }

  .result-block__grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.5fr);
    align-items: start;
    gap: 48px;
  }

  .result-block__caption {
    align-self: center;
  }

  .footer__grid {
    grid-template-columns: 1.1fr 1.2fr 0.7fr;
    gap: 48px;
  }

  .site-footer {
    padding-top: 72px;
  }
}

@media (min-width: 1280px) {
  .hero__grid {
    column-gap: 64px;
  }

  .doc-table {
    font-size: 14px;
  }

  .doc-table th {
    font-size: 12px;
  }
}

@media (min-width: 1440px) {
  .hero__grid {
    column-gap: 72px;
  }
}

/* ---------- Сниженная анимация ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* Вынужденно: правило должно перекрывать все переходы и анимации компонентов. */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}



.hero__price .btn {
  padding-inline: 20px;
}


/* Быстрая заявка */

.modal--quick .modal__dialog {
  max-width: 540px;
}

body.modal-open {
  overflow: hidden;
}

.quick__eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.quick__lead {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--steel);
}

.quick {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.quick[hidden],
.quick__success[hidden] {
  display: none;
}

.quick__row {
  display: grid;
  gap: 6px;
}

.quick__label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.quick__optional {
  font-weight: 400;
  color: var(--muted);
}

.quick__input {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.quick__input:focus {
  border-color: var(--accent);
  outline: none;
}

.quick__input.is-invalid {
  border-color: #b3261e;
}

.quick__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.quick__error {
  display: none;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #b3261e;
}

.quick__error.is-visible {
  display: block;
}

.quick__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--steel);
  cursor: pointer;
}

.quick__consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: 0 0 18px;
  accent-color: var(--accent);
}

.quick__consent a {
  color: var(--ink);
}

.quick__submit {
  width: 100%;
  margin-top: 2px;
}

.quick__note {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}

.quick__success {
  padding: 8px 0 0;
  text-align: center;
}

.quick__success-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
}

.quick__success-text {
  margin: 10px 0 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--steel);
}

.quick__success-btn {
  width: 100%;
}


/* Полная форма и модалка политики */

.form__error {
  display: none;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #b3261e;
}

.form__error.is-visible {
  display: block;
}

.form__input.is-invalid,
.form__textarea.is-invalid {
  border-color: #b3261e;
}

.dropzone__file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.35;
}

.dropzone__file[hidden] {
  display: none;
}

.dropzone__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropzone__remove {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.form__status {
  display: none;
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.form__status.is-visible {
  display: block;
}

.form__status.is-error {
  color: #b3261e;
}

.form__success {
  padding: 24px 0 0;
}

.form__success[hidden] {
  display: none;
}

.form__success-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
}

.form__success-text {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--steel);
}

.modal--privacy .modal__dialog {
  max-width: 760px;
}

.modal__text {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

.modal__text-title {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.modal__text h3 {
  margin: 18px 0 6px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.modal__text p {
  margin: 0 0 10px;
}

.modal__text-date {
  margin-top: 18px;
  color: var(--muted);
}


/* Юридические страницы */

.legal {
  padding: 64px 0 80px;
}

.legal__inner {
  max-width: 780px;
}

.legal__back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
}

.legal__title {
  margin: 0 0 24px;
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.12;
}

.legal__text {
  font-size: 15px;
  line-height: 1.65;
}

.legal__text p {
  margin: 0 0 14px;
}

.legal__text h2 {
  margin: 26px 0 8px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.legal__text .legal__meta {
  margin-top: 24px;
  color: var(--muted);
}

.site-footer--legal .site-footer__inner {
  display: grid;
  gap: 8px;
  padding: 32px 0;
}

.site-footer--legal p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.site-footer--legal a {
  color: var(--paper);
}

.quick__consent-link {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
}

.quick__consent-link a {
  color: var(--ink);
}


.legal {
  background: var(--paper);
  color: var(--ink);
}

.legal__title,
.legal__text {
  color: var(--ink);
}


.modal--consent .modal__dialog {
  max-width: 680px;
}


.footer__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
  font-size: 13px;
}

.footer__messengers a {
  color: var(--steel-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__copyright {
  margin: 28px 0 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1.25fr 0.85fr 1fr 1fr;
  }
}


.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--steel-light);
}

.cookie-banner__btn {
  flex: 0 0 auto;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.cookie-banner__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
