:root {
  --ink: #1c2630;
  --body: #33404c;
  --muted: #4f5b67;
  --bg: #fbf8f3;
  --surface: #ffffff;
  --soft: #f4efe6;
  --line: #e5ddcf;
  --green: #1f5446;
  --green-dark: #163d33;
  --green-soft: #e6efe9;
  --gold: #b8893b;
  --gold-text: #7f5f22;
  --gold-soft: #f6ecd9;
  --radius: 14px;
  --max: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
}
main { flex: 1 0 auto; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 16px; }
sup { font-size: 0.65em; line-height: 0; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); color: var(--green); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { left: 8px; }

h1, h2 { font-family: var(--serif); color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 54px; line-height: 1.1; margin: 0 0 20px; }
h2 { font-size: 40px; line-height: 1.18; margin: 0 0 16px; }
h3 { font-size: 21px; line-height: 1.35; color: var(--ink); margin: 0 0 8px; font-weight: 650; }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 16px 28px;
  border: 2px solid var(--green);
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font: 600 19px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(22, 61, 51, 0.7);
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(22, 61, 51, 0.75); }
.btn .icon { transition: transform 0.15s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-large { min-height: 64px; padding: 18px 34px; font-size: 21px; }
.btn-small { min-height: 46px; padding: 10px 18px; font-size: 17px; box-shadow: none; }
.btn-outline { background: transparent; color: var(--green); box-shadow: none; }
.btn-outline:hover { background: var(--green-soft); color: var(--green-dark); }
.btn-outline:hover .icon { transform: none; }
.btn-light { background: #fff; border-color: #fff; color: var(--green-dark); box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.6); }
.btn-light:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--green-dark); }

/* Шапка */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 12px 28px; min-height: 76px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 17px; font-weight: 500; }
.nav a:hover { color: var(--ink); text-decoration: underline; }

/* Первый экран */
.hero {
  padding: 72px 0 80px;
  background:
    radial-gradient(900px 480px at 92% -8%, rgba(31, 84, 70, 0.11), transparent 62%),
    radial-gradient(700px 420px at -8% 108%, rgba(184, 137, 59, 0.12), transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 64px; align-items: center; }
.eyebrow {
  display: inline-block;
  margin: 0 0 22px;
  padding: 6px 16px;
  border: 1px solid #ead7b1;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-text);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.lead { font-size: 22px; line-height: 1.55; color: var(--body); margin-bottom: 30px; max-width: 34em; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 22px 0 0; padding: 0; color: var(--ink); font-size: 17px; font-weight: 600; }
.hero-checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero-checks .icon { color: var(--green); stroke-width: 2.6; }
.hero-note { margin: 22px 0 0; max-width: 36em; font-size: 16px; line-height: 1.6; color: var(--muted); }

.match-card {
  position: relative;
  isolation: isolate;
  padding: 32px;
  border-radius: 22px;
  box-shadow: 0 34px 64px -34px rgba(28, 38, 48, 0.42), 0 2px 6px rgba(28, 38, 48, 0.05);
}
.match-card::before,
.match-card::after {
  content: "";
  position: absolute;
  border-radius: 22px;
}
.match-card::before {
  inset: 16px -12px -16px 12px;
  z-index: -2;
  border: 1px solid #ecdcbd;
  background: var(--gold-soft);
  transform: rotate(2.2deg);
}
.match-card::after {
  inset: 0;
  z-index: -1;
  border: 1px solid var(--line);
  background: var(--surface);
}
.card-kicker { margin: 0 0 4px; color: var(--gold-text); font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.card-title { font-size: 28px; margin: 0 0 20px; }
.match-list, .screen-list { list-style: none; margin: 0; padding: 0; }
.match-list li, .screen-list li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; }
.match-list li + li { border-top: 1px solid #efe9de; }
.match-list strong, .screen-list strong { display: block; color: var(--ink); font-size: 18px; line-height: 1.35; }
.match-list p, .screen-list p { margin: 2px 0 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
.bubble { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border-radius: 13px; background: var(--green-soft); color: var(--green); font-size: 22px; }
.card-foot { margin: 14px 0 0; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 16px; color: var(--muted); }

/* Фото: блоки рассчитаны и на вариант без фото */
.photo { margin: 0; overflow: hidden; border-radius: 24px; background: var(--soft); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-visual { position: relative; }
.photo-hero { aspect-ratio: 1 / 1; box-shadow: 0 40px 80px -44px rgba(28, 38, 48, 0.5); }
.photo-hero + .match-card { width: min(320px, 82%); margin: -112px 0 0 -32px; padding: 20px 22px 12px; }
.photo-hero + .match-card .card-title { font-size: 22px; margin-bottom: 6px; }
.photo-hero + .match-card .match-list li { align-items: center; gap: 12px; padding: 8px 0; }
.photo-hero + .match-card .match-list strong { font-size: 17px; }
.photo-hero + .match-card .bubble { width: 38px; height: 38px; border-radius: 11px; font-size: 19px; }
.photo-hero + .match-card .match-list p,
.photo-hero + .match-card .card-kicker,
.photo-hero + .match-card .card-foot { display: none; }

/* Полоса доверия */
.trust-strip { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 28px; padding-top: 26px; padding-bottom: 26px; }
.trust-grid p { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--ink); font-size: 17px; font-weight: 600; line-height: 1.35; }
.trust-grid .icon { color: var(--gold); font-size: 26px; stroke-width: 1.8; }

/* Секции */
.section { padding: 96px 0; }
.section-tight { padding: 48px 0 72px; }
.section-soft { background: var(--soft); }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head p:last-child { margin-bottom: 0; font-size: 20px; color: var(--muted); }
.kicker { margin: 0 0 10px; color: var(--gold-text); font-size: 15px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.center { text-align: center; margin-top: 44px; }
.note { font-size: 17px; color: var(--muted); }

.question-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.question-card { position: relative; padding: 30px 28px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.question-card::before { content: "\201C"; position: absolute; top: 6px; right: 22px; font-family: var(--serif); font-size: 72px; line-height: 1; color: var(--gold-soft); }
.question-card h3 { position: relative; font-family: var(--serif); font-size: 25px; line-height: 1.25; font-weight: 600; margin-bottom: 16px; }
.question-card p { margin: 0; padding-top: 14px; border-top: 1px solid #efe9de; font-size: 17px; line-height: 1.55; color: var(--muted); }
.pull-line { max-width: 760px; margin: 48px auto 0; text-align: center; font-family: var(--serif); font-size: 26px; line-height: 1.4; color: var(--ink); }
.pull-line strong { color: var(--green); }

.reason-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.reason { padding: 30px 28px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.reason p { margin: 0; font-size: 18px; }
.reason-num { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 50%; background: var(--green); color: #fff; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; margin-top: 36px; padding: 30px 34px; border-radius: 18px; background: var(--green-soft); border-left: 5px solid var(--green); }
.callout p { margin: 0; max-width: 36em; font-family: var(--serif); font-size: 24px; line-height: 1.4; color: var(--ink); }
.callout .btn { flex: none; }

.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 31px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px); opacity: 0.6; }
.steps li { position: relative; text-align: center; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
}
.steps p { margin: 0 auto; max-width: 22em; font-size: 18px; }

.how-layout { display: flex; align-items: center; gap: 64px; }
.how-layout > .steps { flex: 1; }
.photo-how { flex: 0 0 44%; aspect-ratio: 1 / 1; }
.photo-how + .steps { grid-template-columns: 1fr; gap: 30px; }
.photo-how + .steps::before { display: none; }
.photo-how + .steps li { min-height: 64px; padding: 6px 0 0 88px; text-align: left; }
.photo-how + .steps li:not(:last-child)::after { content: ""; position: absolute; top: 64px; bottom: -30px; left: 31px; width: 2px; background: repeating-linear-gradient(180deg, var(--gold) 0 8px, transparent 8px 16px); opacity: 0.6; }
.photo-how + .steps li::before { position: absolute; top: 0; left: 0; margin: 0; }
.photo-how + .steps h3 { margin-bottom: 6px; }
.photo-how + .steps p { margin: 0; max-width: none; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.screen-list { padding: 12px 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.screen-list li + li { border-top: 1px solid #efe9de; }

.checklist { max-width: 920px; margin: 0 auto; padding: 48px 52px; border: 1px solid var(--line); border-radius: 22px; background: #fffdf9; box-shadow: 0 30px 60px -40px rgba(28, 38, 48, 0.35); }
.checklist-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 30px; padding-bottom: 28px; border-bottom: 2px solid var(--ink); }
.checklist-head p:last-child { margin: 0; color: var(--muted); }
.checklist-head h2 { margin-bottom: 10px; }
.checklist-head .btn { flex: none; }
.check-items { list-style: none; margin: 0; padding: 0; }
.check-items li { position: relative; padding: 18px 0 18px 56px; }
.check-items li + li { border-top: 1px solid #efe9de; }
.check-items li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 26px; height: 26px; border: 2px solid var(--green); border-radius: 6px; background: var(--surface); }
.check-items h3 { font-family: var(--serif); font-size: 23px; font-weight: 600; }
.check-items p { margin: 0; font-size: 18px; color: var(--muted); }

.fit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; max-width: 980px; margin: 0 auto; }
.fit { padding: 32px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.fit-yes { border-top: 5px solid var(--green); }
.fit-no { border-top: 5px solid #c9b89a; }
.fit h3 { font-family: var(--serif); font-size: 25px; font-weight: 600; margin-bottom: 16px; }
.fit ul { list-style: none; margin: 0; padding: 0; }
.fit li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; font-size: 18px; line-height: 1.5; }
.fit li .icon { margin-top: 4px; }
.fit-yes .icon { color: var(--green); stroke-width: 2.6; }
.fit-no .icon { color: #9c8a6a; stroke-width: 2.4; }

.faq { max-width: 840px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; cursor: pointer; list-style: none; color: var(--ink); font-size: 20px; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--green); transition: transform 0.2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 4px 24px; font-size: 18px; }

.final-cta {
  padding: 96px 0;
  text-align: center;
  color: #e7efe9;
  background:
    radial-gradient(800px 400px at 50% -20%, rgba(217, 181, 111, 0.18), transparent 65%),
    var(--green-dark);
}
.final-cta h2 { max-width: 780px; margin: 0 auto 16px; color: #fff; }
.final-cta p { font-size: 20px; }
.final-cta .btn { margin-top: 16px; }
.final-cta .final-note { margin: 20px 0 0; font-size: 16px; color: #bcd0c7; }

/* Внутренние страницы */
.page-head { padding: 56px 0 8px; }
.page-head .container { max-width: 760px; }
.page-head h1 { font-size: 46px; margin-bottom: 8px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; margin: 36px 0 10px; }
.prose ul { padding-left: 24px; }
.prose li { margin-bottom: 8px; }

/* Подвал */
.site-footer { padding: 48px 0 40px; background: var(--soft); border-top: 1px solid var(--line); font-size: 16px; color: var(--muted); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.logo-footer { font-size: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { color: var(--ink); font-weight: 500; }
.disclosure { max-width: 900px; line-height: 1.6; }
.disclosure strong { color: var(--ink); }
.sources { max-width: 900px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.sources p { margin-bottom: 8px; color: var(--ink); }
.sources ol { margin: 0; padding-left: 22px; }
.sources li { margin-bottom: 6px; }
.copyright { margin: 24px 0 0; }

/* Кнопка внизу экрана на телефоне */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(251, 248, 243, 0.97); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -16px rgba(28, 38, 48, 0.4); }
.sticky-cta[hidden] { display: none; }
.sticky-cta .btn { width: 100%; }
body.has-sticky-cta { padding-bottom: 88px; }

@media (min-width: 961px) {
  .sticky-cta { display: none; }
  body.has-sticky-cta { padding-bottom: 0; }
}

@media (max-width: 960px) {
  h1 { font-size: 42px; }
  h2 { font-size: 34px; }
  .hero { padding: 48px 0 64px; }
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 48px; }
  .match-card { max-width: 560px; }
  .hero-visual { max-width: 560px; }
  .photo-hero { aspect-ratio: 5 / 4; }
  .photo-hero + .match-card { width: auto; margin: -72px 16px 0; }
  .how-layout { flex-direction: column; align-items: stretch; gap: 40px; }
  .photo-how { flex: none; aspect-ratio: 4 / 3; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .question-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reason-grid { grid-template-columns: 1fr; }
  .callout { flex-direction: column; align-items: flex-start; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { display: none; }
  .nav { display: none; }
  .header-cta { margin-left: auto; }
}

@media (max-width: 640px) {
  body { font-size: 18px; }
  .container { padding: 0 18px; }
  h1 { font-size: 35px; }
  h2 { font-size: 29px; }
  .header-inner { min-height: 64px; }
  .logo { font-size: 19px; white-space: nowrap; }
  .logo-mark { width: 30px; height: 30px; }
  .header-cta { min-height: 42px; padding: 8px 14px; font-size: 16px; white-space: nowrap; }
  .lead { font-size: 20px; }
  .btn-large { width: 100%; padding-left: 20px; padding-right: 20px; font-size: 20px; }
  .match-card { padding: 24px 20px; }
  .match-card::before { inset: 12px -6px -12px 6px; }
  .photo { border-radius: 18px; }
  .photo-hero + .match-card { margin: -56px 10px 0; padding: 20px 18px 16px; }
  .photo-how + .steps li { padding-left: 80px; }
  .trust-grid { grid-template-columns: 1fr; gap: 14px; padding-top: 22px; padding-bottom: 22px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .question-grid { grid-template-columns: 1fr; }
  .pull-line { font-size: 22px; }
  .callout { padding: 24px 22px; }
  .callout p { font-size: 21px; }
  .callout .btn { width: 100%; padding-left: 16px; padding-right: 16px; white-space: nowrap; }
  .checklist { padding: 30px 20px; border-radius: 18px; }
  .checklist-head { flex-direction: column; align-items: flex-start; }
  .check-items li { padding-left: 44px; }
  .check-items li::before { left: 0; width: 24px; height: 24px; }
  .check-items h3 { font-size: 21px; }
  .fit-grid { grid-template-columns: 1fr; }
  .fit { padding: 26px 22px; }
  .final-cta { padding: 72px 0; }
  .page-head h1 { font-size: 36px; }
}

@media (max-width: 440px) {
  .header-cta { display: none; }
}

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

@media print {
  .site-header, .sticky-cta, .final-cta, .btn, .photo { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .print-checklist body > *:not(main), .print-checklist main > *:not(#questions) { display: none !important; }
  .print-checklist #questions { padding: 0; }
  .print-checklist .checklist { border: none; box-shadow: none; padding: 0; }
}
