/* Перерасчёт пенсии — лендинг
   Direction: «справка из ведомства» — строгая бумажная сетка, тонкие линейки,
   крупная читаемая типографика (аудитория 60+), один зелёный акцент без скруглений.
   Палитра: холодная зелень (бумага #eef1ef, чернила #0e1a2b), акцент — тёмная зелень 165°.
   Никаких иллюстраций и эмодзи-иконок: только типографика, линейки и числа. */

:root {
  --bg: #faf7f1;
  --surface: #ffffff;
  --fg: #0e1a2b;
  --muted: #47566b;
  --border: #ddd5c4;
  --accent: #b48a2f;
  --accent-on: #1a1a12;
  --ink-bg: #0e1a2b;
  --font-display: "PT Serif", serif;
  --font-body: "Manrope", sans-serif;
  --radius: 0px;
  --space-section: 88px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.14; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-on); }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 44px); }

.section { padding-block: var(--space-section); }
.section--ink { background: #14233a; color: #f3efe6; }
.section--sand { background: #e3e9e5; }

.eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 600;
}
.section--ink .eyebrow { color: #d9b765; }

.title { font-size: clamp(30px, 4.4vw, 46px); max-width: 22ch; }
.lead { font-size: 20px; color: var(--muted); max-width: 62ch; margin-top: 18px; }
.section--ink .lead, .section--ink .title { color: #f3efe6; }

/* ---------- шапка ---------- */

.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(238, 241, 239, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.top__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  background: #14233a; color: #f3efe6;
  font-family: var(--font-display); font-size: 24px; font-weight: 700;
}
.brand__text { font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.15; }
.brand__text small { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }
.nav { display: none; margin-left: auto; gap: 26px; }
.nav a { text-decoration: none; font-size: 16px; color: var(--muted); border-bottom: 1px solid transparent; padding-bottom: 2px; }
.nav a:hover { color: var(--fg); border-bottom-color: var(--fg); }
.top__phone {
  margin-left: auto; display: none;
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  text-decoration: none; white-space: nowrap;
}
.top__phone:hover { color: var(--accent); }
@media (min-width: 900px) { .nav { display: flex; } .top__phone { display: block; } .nav + .top__phone { margin-left: 0; } }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 14px 26px;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--primary { background: var(--accent); color: var(--accent-on); }
.btn--primary:hover { background: #9c7526; }
.btn--ghost { border-color: var(--fg); color: var(--fg); background: transparent; }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }
.btn--full { width: 100%; }
.section--ink .btn--ghost { border-color: #f3efe6; color: #f3efe6; }
.section--ink .btn--ghost:hover { background: #f3efe6; color: #0e1a2b; }

/* ---------- герой ---------- */

.hero { padding-block: clamp(40px, 6vw, 78px) clamp(36px, 5vw, 64px); }
.hero__lead { position: relative; isolation: isolate; }
.hero__lead::before {
  content: ""; position: absolute; inset: -28px -34px -28px -34px; z-index: -2;
  background: url("/pensiya-bg.jpg") right center / cover no-repeat;
}
.hero__lead::after {
  content: ""; position: absolute; inset: -28px -34px -28px -34px; z-index: -1;
  background: linear-gradient(100deg, rgba(250,247,241,.98) 0%, rgba(250,247,241,.95) 52%, rgba(250,247,241,.78) 76%, rgba(250,247,241,.5) 100%);
}
@media (max-width: 999px) {
  .hero__lead::before, .hero__lead::after { inset: -20px -18px -20px -18px; }
  .hero__lead::after { background: linear-gradient(180deg, rgba(250,247,241,.94) 0%, rgba(250,247,241,.9) 60%, rgba(250,247,241,.55) 100%); }
}
.hero__grid { display: grid; gap: clamp(30px, 4vw, 54px); align-items: start; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); } }

.kicker {
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(32px, 5.1vw, 54px); max-width: 17ch; }
.mark { background: linear-gradient(transparent 62%, #e6d3a4 62%); }
.hero__text { margin-top: 22px; font-size: 20px; color: var(--muted); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__facts {
  display: grid; gap: 20px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--border);
}
@media (min-width: 620px) { .hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hero__facts li { display: flex; flex-direction: column; gap: 4px; }
.hero__facts b { font-family: var(--font-display); font-size: 26px; color: var(--fg); }
.hero__facts span { font-size: 14px; color: var(--muted); line-height: 1.45; }

.hero__card { background: var(--surface); border: 1px solid var(--border); }
.hero__card-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
}
.hero__card-note { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--muted); }
.grounds li { display: flex; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.grounds li:last-child { border-bottom: 0; }
.grounds__num {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  background: #14233a; color: #f3efe6; font-family: var(--font-display); font-size: 15px; font-weight: 700;
}
.grounds b { display: block; font-family: var(--font-display); font-size: 18px; margin-bottom: 3px; }
.grounds span { font-size: 15px; color: var(--muted); line-height: 1.5; }
.hero__card-cta {
  display: block; padding: 16px 22px; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; color: #2d4a6f;
  border-top: 1px solid var(--border);
}
.hero__card-cta:hover { background: #f2f6f9; }

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

.strip { background: #14233a; color: #f3efe6; }
.strip__grid { display: grid; gap: 1px; background: #26364a; }
@media (min-width: 760px) { .strip__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.strip__item { background: #14233a; padding: 24px clamp(18px, 3vw, 28px) 26px; }
.strip__item b { display: block; font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); }
.strip__item span { display: block; margin-top: 6px; font-size: 14px; color: #a9b6c6; line-height: 1.45; }

/* ---------- чек-лист/калькулятор ---------- */

.check__grid { display: grid; gap: clamp(30px, 4vw, 56px); align-items: start; }
@media (min-width: 1000px) { .check__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }

.check { margin-top: 30px; border-top: 1px solid var(--border); }
.check__row {
  display: grid; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--border);
}
@media (min-width: 700px) { .check__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; } }
.check__label { font-size: 17px; font-weight: 500; }
.check__control { display: flex; align-items: center; gap: 10px; }
.check__control select, .check__control input[type="number"] {
  font: inherit; font-size: 17px; color: var(--fg);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; min-height: 52px; width: 100%;
}
.check__control select { max-width: 260px; }
.check__control input[type="number"] { max-width: 130px; }
.check__unit { font-size: 15px; color: var(--muted); }

.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 52px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  flex: none; width: 52px; height: 30px; background: #d6dbe2; border: 1px solid var(--border);
  position: relative; transition: background-color 0.2s ease;
}
.switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  background: var(--surface); transition: transform 0.2s ease;
}
.switch input:checked + .switch__track { background: #2d4a6f; }
.switch input:checked + .switch__track::after { transform: translateX(22px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--accent); outline-offset: 2px; }
.switch__text { font-size: 16px; color: var(--muted); }

#calc { display: block; }
#calc .btn { margin-top: 24px; }

.check__result { position: sticky; top: 96px; }
.result__inner { background: var(--surface); border: 1px solid var(--border); padding: clamp(22px, 3vw, 32px); }
.result__lead { font-size: 18px; color: var(--muted); }
.result__sum { margin-top: 20px; padding: 20px; background: #14233a; color: #f3efe6; }
.result__sum b { display: block; font-family: var(--font-display); font-size: clamp(30px, 4vw, 40px); line-height: 1.05; }
.result__sum span { display: block; margin-top: 6px; font-size: 14px; color: #a9b6c6; }
.result__list { margin-top: 20px; }
.result__list li {
  display: flex; justify-content: space-between; gap: 14px; padding: 11px 0;
  border-bottom: 1px solid var(--border); font-size: 16px;
}
.result__list li span { color: var(--muted); }
.result__list li b { font-family: var(--font-display); white-space: nowrap; }
.result__note { margin-top: 18px; font-size: 15px; color: var(--muted); line-height: 1.5; }
.result__cta { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }
.result__cta p { margin-top: 12px; font-size: 15px; color: var(--muted); }

/* ---------- шаги ---------- */

.steps { display: grid; gap: 1px; background: #1d2c3f; margin-top: 34px; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { background: #0e1a2b; padding: 28px 26px 30px; }
.steps__num { display: block; font-family: var(--font-display); font-size: 15px; color: #9dc0dc; letter-spacing: 0.1em; margin-bottom: 12px; }
.steps h3 { font-size: 21px; margin-bottom: 10px; }
.steps p { font-size: 16px; color: #b3bfd0; line-height: 1.6; }

/* ---------- документы ---------- */

.docs__grid { display: grid; gap: clamp(28px, 4vw, 52px); align-items: start; }
@media (min-width: 940px) { .docs__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); } }
.check-list { margin-top: 26px; }
.check-list li {
  position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--border); font-size: 17px;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 24px; width: 14px; height: 2px; background: #2d4a6f;
}
.note { background: var(--fg); color: #f3efe6; padding: 28px 26px; }
.note h3 { font-size: 22px; margin-bottom: 12px; }
.note p { font-size: 16px; color: #b3bfd0; }
.note__cta { margin-top: 18px; color: #f3efe6 !important; }
.note__cta a { color: #d9b765; font-weight: 600; }

/* ---------- FAQ ---------- */

.faq__grid { display: grid; gap: 26px; align-items: start; }
@media (min-width: 940px) { .faq__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 16px; font-size: 26px; font-weight: 400; color: #2d4a6f;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; font-size: 17px; color: var(--muted); max-width: 68ch; }

/* ---------- форма ---------- */

.form-section { background: #f1ece1; }
.form__grid { display: grid; gap: clamp(28px, 4vw, 52px); align-items: start; }
@media (min-width: 940px) { .form__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.contacts { margin-top: 28px; display: grid; gap: 14px; }
.contacts li { display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: var(--muted); }
.contacts b { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #2d4a6f; }
.contacts a { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--fg); text-decoration: none; }
.contacts a:hover { color: var(--accent); }

.form { background: var(--surface); border: 1px solid var(--border); padding: clamp(22px, 3vw, 32px); }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  font: inherit; font-size: 17px; color: var(--fg); width: 100%;
  background: #f6f8f7; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 13px 14px; min-height: 52px;
}
.field textarea { min-height: 120px; resize: vertical; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.5; margin: 4px 0 18px; }
.agree input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.agree a { color: #2d4a6f; }
.form__note { margin-top: 12px; font-size: 14px; color: var(--muted); }

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

.footer { background: var(--fg); color: #f3efe6; padding-top: 56px; }
.footer__grid { display: grid; gap: 34px; }
@media (min-width: 820px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.brand--footer .brand__text { color: #f3efe6; }
.brand--footer .brand__text small { color: #a9b6c6; }
.footer__about { margin-top: 16px; font-size: 16px; color: #a9b6c6; max-width: 42ch; }
.footer h4 { font-family: var(--font-display); font-size: 16px; margin: 0 0 14px; }
.footer__list { display: grid; gap: 9px; font-size: 15px; color: #b3bfd0; }
.footer__list a { text-decoration: none; }
.footer__list a:hover { color: #9dc0dc; }
.footer__bottom { margin-top: 40px; border-top: 1px solid #1d2c3f; }
.footer__bottom .wrap { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding-block: 18px; font-size: 13px; color: #8c9aad; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
