/* Лендинг Василия: светлый тёплый фон, крупный шрифт, высокий контраст,
   минимум визуального шума — с расчётом на читателей 70+. */

:root {
  --bg: #fbf6ec;          /* слоновая кость */
  --bg-tint: #f3ecdd;     /* чуть темнее для чередования секций */
  --card: #ffffff;
  --ink: #1d2622;         /* основной текст, контраст ~15:1 */
  --ink-soft: #3b4741;    /* второстепенный текст, контраст ~9:1 */
  --green: #2f5d4e;       /* кнопки и акценты */
  --green-dark: #234839;
  --gold: #b8912e;
  --line: #e2d8c3;
  --radius: 16px;
  --wrap: 1080px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
h3 { font-size: 24px; font-weight: 700; }
p { margin: 0 0 1em; }
b { font-weight: 700; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 12px 16px; border-radius: 8px; }

a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 28px;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(47, 93, 78, .25);
  transition: background .2s;
}
.btn:hover { background: var(--green-dark); }
.btn--big { min-height: 72px; padding: 18px 36px; font-size: 23px; }
.btn--small { min-height: 48px; padding: 10px 20px; font-size: 18px; box-shadow: none; }
.btn--light { background: #fff; color: var(--green-dark); }
.btn--light:hover { background: #f6f1e6; }
.btn__icon { width: 28px; height: 28px; flex: 0 0 auto; }

/* ---------- Шапка ---------- */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 800; font-size: 24px;
}
.brand__text { font-size: 22px; font-weight: 800; line-height: 1.2; }
.brand__text small { display: block; font-size: 16px; font-weight: 500; color: var(--ink-soft); }

/* ---------- Первый экран ---------- */
.hero { padding: 64px 0 72px; }
.hero__in > * { max-width: 880px; }
.eyebrow { color: var(--green); font-weight: 700; font-size: 18px; letter-spacing: .02em; margin-bottom: 16px; }
.lead { font-size: 23px; color: var(--ink-soft); max-width: 760px; margin-bottom: 32px; }
.note { font-size: 18px; color: var(--ink-soft); margin: 16px 0 0; }
.ticks { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.ticks li { position: relative; padding-left: 36px; font-weight: 600; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 15px; line-height: 26px; text-align: center;
}

/* ---------- Секции ---------- */
.sec { padding: 72px 0; }
.sec--tint { background: var(--bg-tint); }
.sub { font-size: 21px; color: var(--ink-soft); max-width: 820px; margin-bottom: 32px; }
.sub--after { margin: 32px 0 0; }
.center { text-align: center; margin-top: 40px; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { margin: 0; color: var(--ink-soft); }
.card__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: 14px; border-radius: 12px;
  background: #e8f0ec; color: var(--green); font-size: 26px; font-weight: 700;
}

.agents { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.agent { background: var(--card); border-radius: var(--radius); padding: 26px 28px; border-left: 6px solid var(--green); }
.agent h3 { margin-bottom: .4em; }
.agent p { margin: 0; color: var(--ink-soft); }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li {
  counter-increment: s; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px 24px 92px; font-size: 21px;
}
.steps li::before {
  content: counter(s); position: absolute; left: 24px; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 800; font-size: 24px; line-height: 48px; text-align: center;
}

/* ---------- Вопросы ---------- */
.faq { display: grid; gap: 14px; max-width: 880px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 22px 64px 22px 26px; font-weight: 700; font-size: 21px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; background: #e8f0ec; color: var(--green);
  font-size: 26px; line-height: 34px; text-align: center; font-weight: 700;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 26px 24px; color: var(--ink-soft); }

/* ---------- Финал и подвал ---------- */
.final { background: var(--green); color: #fff; padding: 72px 0; text-align: center; }
.final h2 { color: #fff; }
.final p { font-size: 22px; max-width: 680px; margin: 0 auto 32px; color: #eef4f1; }
.foot { padding: 36px 0 48px; font-size: 16px; color: var(--ink-soft); border-top: 1px solid var(--line); }
.foot p { margin: 0 0 8px; }

/* Нижняя кнопка — только на телефоне */
.dock { display: none; }

/* ---------- Телефон ---------- */
@media (max-width: 760px) {
  body { font-size: 19px; }
  .wrap { padding: 0 18px; }
  .top__in { min-height: 72px; }
  .top .btn--small { display: none; }  /* на телефоне есть нижняя кнопка */
  .hero { padding: 40px 0 48px; }
  .lead { font-size: 21px; }
  .btn--big { width: 100%; font-size: 21px; padding: 18px 20px; }
  .cards, .agents { grid-template-columns: 1fr; gap: 16px; }
  .card, .agent { padding: 22px; }
  .sec, .final { padding: 52px 0; }
  .steps li { padding: 20px 20px 20px 80px; font-size: 19px; }
  .steps li::before { left: 18px; }
  .faq summary { font-size: 19px; padding: 20px 60px 20px 20px; }
  .faq details p { padding: 0 20px 22px; }

  .dock {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 246, 236, .96); border-top: 1px solid var(--line);
  }
  .btn--dock { width: 100%; min-height: 58px; font-size: 20px; }
  .foot { padding-bottom: 110px; }   /* место под нижнюю кнопку */
}
