/* ФинЭксперт — публичная страница.
 *
 * Дизайн строится вокруг одной мысли: учёт — это слои, которые должны сойтись.
 * Отсюда карточки с реальной глубиной (три уровня тени), «стеклянные» панели
 * поверх подвижного градиента и цифры, набранные табличными цифрами, — они
 * выстраиваются в колонку, как в оборотке.
 *
 * Палитра: глубокий сине-зелёный (доверие без банковской скуки), тёплый
 * янтарь для акцента и находок, графитовые нейтрали с лёгким синим уклоном —
 * чистый серый выглядит невыбранным.
 */

:root {
  --ground: #F7F9FB;
  --ground-deep: #EDF2F7;
  --surface: #FFFFFF;
  --surface-raised: #FFFFFF;
  --line: #DFE7EF;
  --line-strong: #C6D2DF;
  --ink: #0F1B26;
  --ink-soft: #33475B;
  --muted: #5F7286;
  --brand: #0B5D66;
  --brand-bright: #0E7C87;
  --brand-soft: #E3F1F2;
  --amber: #C2701A;
  --amber-soft: #FBF0E2;
  --critical: #A32D22;
  --positive: #146B4E;
  --shadow-sm: 0 1px 2px rgba(15, 27, 38, 0.06), 0 2px 6px rgba(15, 27, 38, 0.04);
  --shadow-md: 0 2px 4px rgba(15, 27, 38, 0.06), 0 8px 24px rgba(15, 27, 38, 0.08);
  --shadow-lg: 0 4px 8px rgba(15, 27, 38, 0.07), 0 18px 48px rgba(15, 27, 38, 0.12);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ground: #0A1219;
    --ground-deep: #060C11;
    --surface: #121C25;
    --surface-raised: #17232E;
    --line: #22323F;
    --line-strong: #33475B;
    --ink: #E9F0F6;
    --ink-soft: #B9C9D8;
    --muted: #8598AB;
    --brand: #43B0BA;
    --brand-bright: #57C7D1;
    --brand-soft: #102C31;
    --amber: #E0A05A;
    --amber-soft: #2C2115;
    --critical: #E8837A;
    --positive: #5CC49B;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.45), 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 6px 14px rgba(0, 0, 0, 0.5), 0 24px 60px rgba(0, 0, 0, 0.45);
  }
}

:root[data-theme='dark'] {
  --ground: #0A1219;
  --ground-deep: #060C11;
  --surface: #121C25;
  --surface-raised: #17232E;
  --line: #22323F;
  --line-strong: #33475B;
  --ink: #E9F0F6;
  --ink-soft: #B9C9D8;
  --muted: #8598AB;
  --brand: #43B0BA;
  --brand-bright: #57C7D1;
  --brand-soft: #102C31;
  --amber: #E0A05A;
  --amber-soft: #2C2115;
  --critical: #E8837A;
  --positive: #5CC49B;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.45), 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 6px 14px rgba(0, 0, 0, 0.5), 0 24px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.6 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@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;
  }
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3 {
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.06;
  font-weight: 680;
}

h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
  font-weight: 660;
}

h3 {
  font-size: 19px;
  font-weight: 620;
  line-height: 1.3;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.num {
  font-variant-numeric: tabular-nums;
}

/* --- Шапка ------------------------------------------------------------- */

header.top {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

header.top.stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 650;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--brand-bright), var(--brand));
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  flex: none;
}

.brand-mark svg {
  width: 18px;
  height: 18px;
}

nav.main {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
}

nav.main a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

nav.main a:hover {
  color: var(--ink);
  border-bottom-color: var(--brand);
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

@media (max-width: 900px) {
  nav.main {
    display: none;
  }
}

/* --- Кнопки ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 580;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(160deg, var(--brand-bright), var(--brand));
  color: #fff;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

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

.btn-lg {
  padding: 14px 26px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* --- Первый экран ------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 88px);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  width: 620px;
  height: 620px;
  top: -240px;
  right: -140px;
  background: radial-gradient(circle, var(--brand-bright), transparent 62%);
  animation: drift 26s ease-in-out infinite alternate;
}

.hero::after {
  width: 460px;
  height: 460px;
  bottom: -220px;
  left: -160px;
  background: radial-gradient(circle, var(--amber), transparent 64%);
  opacity: 0.28;
  animation: drift 32s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-40px, 40px, 0) scale(1.12);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 560;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}

.hero h1 {
  margin: 22px 0 0;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--brand-bright), var(--brand) 55%, var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin-top: 20px;
  font-size: clamp(17px, 2vw, 19px);
  color: var(--ink-soft);
  max-width: 56ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

/* Панель с «живым» отчётом справа от заголовка. */

.showcase {
  position: relative;
  perspective: 1400px;
}

.showcase-card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotateY(-7deg) rotateX(2deg);
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase:hover .showcase-card {
  transform: rotateY(-2deg) rotateX(0.5deg) translateY(-4px);
}

@media (max-width: 980px) {
  .showcase-card {
    transform: none;
  }
}

.showcase-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--ground-deep);
}

.showcase-head .lamp {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.showcase-head .lamp.live {
  background: var(--positive);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--positive) 18%, transparent);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--positive) 22%, transparent);
  }
  50% {
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--positive) 6%, transparent);
  }
}

.showcase-head .title {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 540;
}

.showcase-body {
  padding: 20px 18px 22px;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}

.gauge {
  --value: 55;
  position: relative;
  width: 78px;
  height: 78px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(
    var(--brand) calc(var(--value) * 1%),
    color-mix(in srgb, var(--line) 70%, transparent) 0
  );
  display: grid;
  place-items: center;
}

.gauge::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--surface-raised);
  box-shadow: inset 0 1px 3px rgba(15, 27, 38, 0.09);
}

.gauge span {
  position: relative;
  z-index: 1;
  font-size: 23px;
  font-weight: 660;
  font-variant-numeric: tabular-nums;
}

.score-text .label {
  font-size: 13px;
  color: var(--muted);
}

.score-text .value {
  font-size: 15.5px;
  font-weight: 560;
  margin-top: 2px;
}

.mini-rows {
  margin-top: 16px;
  display: grid;
  gap: 11px;
}

.mini-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 12px;
  font-size: 14.5px;
}

.mini-row .name {
  color: var(--ink-soft);
}

.mini-row .amount {
  font-variant-numeric: tabular-nums;
  font-weight: 560;
}

.mini-row.total {
  border-top: 1px solid var(--line);
  padding-top: 11px;
  font-weight: 620;
}

.mini-row .amount.neg {
  color: var(--critical);
}

.mini-row .amount.pos {
  color: var(--positive);
}

.bar {
  grid-column: 1 / -1;
  height: 5px;
  border-radius: 3px;
  background: var(--ground-deep);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-bright), var(--brand));
  animation: grow 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes grow {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }
}

/* --- Полоса цифр ------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: clamp(36px, 5vw, 56px);
}

.stat {
  background: var(--surface);
  padding: 22px 24px;
}

.stat .big {
  font-size: 30px;
  font-weight: 660;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--brand);
}

.stat .cap {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

/* --- Секции ------------------------------------------------------------ */

section {
  padding: clamp(56px, 8vw, 96px) 0;
}

section.tinted {
  background: var(--ground-deep);
  border-block: 1px solid var(--line);
}

.sec-head {
  max-width: 62ch;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.sec-head .kicker {
  font-size: 13px;
  font-weight: 620;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
}

.sec-head h2 {
  margin-top: 10px;
}

.sec-head p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 17px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.card .icon svg {
  width: 20px;
  height: 20px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* Две дорожки: собственнику и бухгалтерской компании. */

.tracks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.track {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.track::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-bright), var(--brand));
}

.track.amber::before {
  background: linear-gradient(90deg, var(--amber), #9a5512);
}

.track .who {
  font-size: 13px;
  font-weight: 620;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.track h3 {
  font-size: 22px;
  margin: 8px 0 14px;
}

.track ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.track li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.track li svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--brand);
}

.track.amber li svg {
  color: var(--amber);
}

/* --- Как это работает -------------------------------------------------- */

.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step .no {
  counter-increment: step;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 620;
  color: var(--brand);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  background: var(--brand-soft);
  display: grid;
  place-items: center;
}

.step .no::before {
  content: '0' counter(step);
}

.step p {
  color: var(--ink-soft);
  margin-top: 6px;
  max-width: 72ch;
}

@media (max-width: 640px) {
  .step {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* --- Тарифы ------------------------------------------------------------ */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.plan:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.plan.featured {
  border-color: color-mix(in srgb, var(--brand) 42%, transparent);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.plan.featured::after {
  content: 'Чаще всего берут';
  position: absolute;
  top: -12px;
  left: 26px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(160deg, var(--brand-bright), var(--brand));
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.plan .name {
  font-size: 17px;
  font-weight: 620;
}

.plan .who {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
  min-height: 42px;
}

.plan .price {
  margin: 16px 0 4px;
  font-size: 34px;
  font-weight: 680;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.plan .price small {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: grid;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-soft);
}

.plan li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 9px;
  align-items: start;
}

.plan li svg {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--brand);
}

.plan .btn {
  margin-top: auto;
}

.plans-note {
  margin-top: 20px;
  font-size: 14.5px;
  color: var(--muted);
}

/* --- Вопрос — ответ ---------------------------------------------------- */

.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

details.qa {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

details.qa summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 570;
  font-size: 16.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

details.qa summary::-webkit-details-marker {
  display: none;
}

details.qa summary::after {
  content: '';
  width: 10px;
  height: 10px;
  flex: none;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s ease;
}

details.qa[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

details.qa .answer {
  padding: 0 22px 20px;
  color: var(--ink-soft);
  font-size: 15.5px;
  max-width: 72ch;
}

details.qa summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

/* --- Формы ------------------------------------------------------------- */

.sec-head .direct {
  margin-top: 12px;
  font-size: 16px;
}

.sec-head .direct a {
  color: var(--brand);
  font-weight: 560;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
}

.sec-head .direct a:hover {
  border-bottom-color: var(--brand);
}

.form-msg a {
  color: inherit;
  font-weight: 560;
}

.forms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-md);
}

.form-card h3 {
  font-size: 21px;
}

.form-card > p {
  color: var(--ink-soft);
  margin-top: 8px;
  font-size: 15.5px;
}

form {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

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

.field label {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 540;
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 520px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

.consent input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--brand);
}

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

.form-msg {
  font-size: 14.5px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  display: none;
}

.form-msg.ok {
  display: block;
  background: color-mix(in srgb, var(--positive) 12%, transparent);
  color: var(--positive);
  border: 1px solid color-mix(in srgb, var(--positive) 30%, transparent);
}

.form-msg.err {
  display: block;
  background: color-mix(in srgb, var(--critical) 10%, transparent);
  color: var(--critical);
  border: 1px solid color-mix(in srgb, var(--critical) 28%, transparent);
}

/* --- Подвал ------------------------------------------------------------ */

footer {
  background: var(--ground-deep);
  border-top: 1px solid var(--line);
  padding: 44px 0 36px;
  font-size: 14.5px;
  color: var(--muted);
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px;
}

.foot-grid h4 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
}

.foot-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.foot-grid a {
  color: var(--muted);
  text-decoration: none;
}

.foot-grid a:hover {
  color: var(--brand);
}

.foot-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: 13.5px;
}

/* Появление секций при прокрутке. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.shown {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
