:root {
  --bg: #eef0ea;
  --surface: #f7f8f3;
  --ink: #141a17;
  --fg: #1b211e;
  --muted: #55605a;
  --border: #d3d8ce;
  --accent: #1b6a72;
  --accent-on: #f2f5f1;
  --font-display: "Tenor Sans", Georgia, serif;
  --font-body: "PT Root UI", "Helvetica Neue", sans-serif;
  --radius: 4px;
  --space-section: 96px;
  --maxw: 1160px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }

p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }

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

.section { padding-block: var(--space-section); }
.section--tight { padding-block: calc(var(--space-section) * 0.6); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.eyebrow--stack { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.eyebrow--stack span { white-space: nowrap; }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(238, 240, 234, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}
.brand__mark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}
.brand__sub {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 560px) { .brand__sub { display: none; } }

.head-nav { display: flex; gap: 22px; align-items: center; }
@media (max-width: 860px) { .head-nav { display: none; } }
.head-nav a {
  color: var(--fg);
  text-decoration: none;
  font-size: 0.95rem;
}
.head-nav a:hover { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--accent-on);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn:active { transform: scale(0.99); }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--surface); color: var(--fg); border-color: var(--muted); }
.btn--onink { background: var(--accent-on); color: var(--ink); border-color: var(--accent-on); }
.btn--onink:hover { background: #fff; border-color: #fff; }

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

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 8vw, 92px) clamp(48px, 7vw, 80px); }
.hero__grid {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } }

.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__note { margin-top: 18px; font-size: 0.9rem; color: var(--muted); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: clamp(40px, 6vw, 72px);
}
.fact { background: var(--bg); padding: 22px 24px; }
.fact b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 4px;
}
.fact span { font-size: 0.93rem; color: var(--muted); }

/* ---------- полис-документ ---------- */
.policy {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px 22px;
  position: relative;
  box-shadow: 14px 14px 0 rgba(20, 26, 23, 0.07);
}
.policy::before,
.policy::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 6px;
  background: radial-gradient(circle at 6px 3px, transparent 5px, var(--bg) 5.5px) repeat-x;
  background-size: 12px 6px;
}
.policy::before { top: -3px; transform: scaleY(-1); }
.policy::after { bottom: -3px; }
.policy__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 6px;
}
.policy__title { font-family: var(--font-display); font-size: 1.05rem; }
.policy__tag { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.policy__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--border);
  align-items: baseline;
}
.policy__row:last-of-type { border-bottom: 0; }
.policy__row span { font-size: 0.95rem; }
.policy__row em {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
@media (max-width: 480px) {
  .policy__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .policy__row em { text-align: left; }
}
.policy__foot {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* ---------- направления ---------- */
.dirs { display: grid; gap: 0; border-top: 1px solid var(--border); }
.dir {
  display: grid;
  grid-template-columns: 62px minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
@media (max-width: 720px) {
  .dir { grid-template-columns: 44px minmax(0, 1fr); }
  .dir p { grid-column: 2; margin-bottom: 0; }
}
.dir__num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.dir h3 { margin-bottom: 6px; }
.dir p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.dir__tag {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--accent);
}

/* ---------- фото-полоса ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 760px) { .gallery { grid-template-columns: minmax(0, 1fr); } }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  filter: saturate(0.85);
}
.gallery figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 10px; }

/* ---------- тёмная секция: шаги ---------- */
.steps-section { background: var(--ink); color: #e9ecea; }
.steps-section h2, .steps-section h3 { color: #f2f5f1; }
.steps-section .eyebrow { color: #9aa6a0; }
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  padding: 30px 0;
  border-top: 1px solid rgba(233, 236, 234, 0.18);
}
.step:last-child { border-bottom: 1px solid rgba(233, 236, 234, 0.18); }
.step__n {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: #7fa9ac;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.step p { color: #b9c3bd; margin-bottom: 0; max-width: 62ch; }
@media (max-width: 560px) {
  .step { grid-template-columns: 56px minmax(0, 1fr); }
  .step__n { font-size: 1.7rem; }
}

/* ---------- особые случаи ---------- */
.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 26px 40px;
}
.case h3 { font-size: 1.2rem; }
.case p { color: var(--muted); margin-bottom: 0; font-size: 0.97rem; }

/* ---------- блок «стать агентом» ---------- */
.agent {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
@media (max-width: 860px) { .agent { grid-template-columns: minmax(0, 1fr); } }
.agent p { color: var(--muted); }
.agent__link { color: var(--fg); }
.agent__link a { font-weight: 500; }
.agent__list { align-self: start; }
.nowrap { white-space: nowrap; }

/* ---------- иконки мессенджеров ---------- */
.icons { display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  background: var(--surface);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.icon-link:hover { border-color: var(--accent); color: var(--accent); }
.icon-word { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em; }

/* ---------- выплата ---------- */
.payout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
@media (max-width: 820px) { .payout { grid-template-columns: minmax(0, 1fr); } }
.list { margin: 0; padding: 0; list-style: none; }
.list li {
  padding: 14px 0 14px 26px;
  border-bottom: 1px solid var(--border);
  position: relative;
  font-size: 0.98rem;
}
.list li:last-child { border-bottom: 0; }
.list li::before {
  content: "";
  position: absolute;
  left: 0; top: 24px;
  width: 12px; height: 1px;
  background: var(--accent);
}
.note {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 20px;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  padding: 20px 40px 20px 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 18px;
  font-size: 1.4rem;
  color: var(--accent);
}
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 0 0 22px; max-width: 74ch; }

/* ---------- форма ---------- */
.request {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 60px);
  align-items: start;
}
@media (max-width: 860px) { .request { grid-template-columns: minmax(0, 1fr); } }
.section--request {
  background: linear-gradient(180deg, rgba(27, 106, 114, 0.05), rgba(27, 106, 114, 0) 320px);
  border-top: 1px solid var(--border);
}
/* скрыть служебный бейдж платформы */
#spru-pages-badge-host { display: none !important; }

/* профиль в блоке заявки */
.profile {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 26px;
}
.profile img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid var(--border);
}
.profile b { display: block; font-size: 1.02rem; }
.profile span { display: block; font-size: 0.86rem; color: var(--muted); margin-top: 3px; }

.request-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(22px, 3.2vw, 34px);
  box-shadow: 0 18px 44px -30px rgba(20, 26, 23, 0.55);
}
.request-card__badge {
  position: absolute;
  top: -11px;
  left: clamp(22px, 3.2vw, 34px);
  background: var(--accent);
  color: var(--accent-on);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
}
.request-card form { margin: 0; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  margin-bottom: 7px;
  color: var(--fg);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 48px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(27, 106, 114, 0.25);
  outline-offset: 1px;
}
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.consent input { width: 20px; height: 20px; min-height: 20px; margin-top: 2px; }
.form-status { margin-top: 16px; font-size: 0.95rem; color: var(--accent); }
.form-status[data-error] { color: #a33a2c; }

.contacts { list-style: none; margin: 0 0 26px; padding: 0; }
.contacts li { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.98rem; }
.contacts li:last-child { border-bottom: 0; }
.contacts b { display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 4px; }

/* ---------- footer ---------- */
.site-foot {
  background: var(--ink);
  color: #b9c3bd;
  padding-block: 48px 40px;
  font-size: 0.9rem;
}
.site-foot a { color: #e9ecea; }
.foot-cols {
  max-width: 720px;
  margin-bottom: 30px;
}
.foot-col {
  padding: 22px 0;
  border-top: 1px solid rgba(233, 236, 234, 0.16);
}
.foot-col:first-child { border-top: 0; padding-top: 0; }
.foot-col h3 { margin-bottom: 8px; }
.foot-col p { color: #a9b4ae; margin-bottom: 0; max-width: 60ch; }
.site-foot h3 { color: #f2f5f1; font-size: 1rem; margin-bottom: 10px; }
.site-foot ul { margin: 0; padding-left: 18px; }
.site-foot li { margin-bottom: 6px; }
.foot-bottom {
  border-top: 1px solid rgba(233, 236, 234, 0.16);
  padding-top: 20px;
  font-size: 0.84rem;
  color: #8e9a94;
  max-width: 90ch;
}

/* ---------- channel posts & download ---------- */
.posts {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 980px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .posts { grid-template-columns: minmax(0, 1fr); } }
.post {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  color: var(--fg);
  transition: border-color .18s ease, transform .18s ease;
}
.post:hover { border-color: var(--accent); transform: translateY(-2px); }
.post__num {
  display: block;
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 10px;
}
.post b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.12rem; line-height: 1.25; margin-bottom: 8px; }
.post span:last-child { color: var(--muted); font-size: .93rem; line-height: 1.5; }

.download {
  margin-top: 40px;
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.download b { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; display: block; margin-bottom: 8px; }
.download p { margin: 0; color: var(--muted); max-width: 62ch; }
.download .btn { white-space: nowrap; }

.cta-row { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- рекламный блок (партнёрская программа) ---------- */
.adbox {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
}
.adbox__mark {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.adbox__badge {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  padding: 5px 12px;
  border-radius: 2px;
}
.adbox__advertiser {
  font-size: 0.9rem;
  color: var(--muted);
}
.adbox__erid {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.adbox__note {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 68ch;
}
.adnote {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.adnote__badge {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  padding: 3px 9px;
  border-radius: 2px;
}
