@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --ink: #1d2126;
  --text: #33383f;
  --muted: #646b74;
  --line: #e3e6ea;
  --link: #0a6b84;
  --petrol: #0a5f76;
  --petrol-soft: #e9f3f6;
  --go: #1b9a4a;
  --go-dark: #13793a;
  --note: #fff6de;
  --note-line: #dc8a2e;
  --foot: #171a1e;
  --foot-text: #c3c9d0;
  --col: 680px;
}

*, *::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(--text);
  font: 400 18px/1.6 "Source Sans 3", -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { color: var(--petrol); }
:focus-visible { outline: 3px solid #f2b233; outline-offset: 2px; }
strong, b { color: var(--ink); font-weight: 700; }

.wrap { max-width: var(--col); margin: 0 auto; padding: 0 16px; }

/* ---------- шапка ---------- */
.top {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -.02em;
}
.brand svg { width: 34px; height: 34px; flex: none; }
.ad-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 8px;
}

/* ---------- статья ---------- */
.article { padding-top: 18px; padding-bottom: 8px; }
h1 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 31px;
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -.01em;
}
.byline { margin: 0 0 14px; color: var(--muted); font-size: 15px; }

.share {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 14px;
}
.share a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 3px;
  color: #fff;
}
.share svg { width: 20px; height: 20px; fill: currentColor; }
.share .fb { background: #1877f2; }
.share .wa { background: #1ea952; }
.share .x { background: #000; }

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 0 18px;
}
.pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.lead { font-weight: 700; color: var(--ink); font-size: 19px; }

.article p { margin: 0 0 1.05em; }
.article h2 {
  margin: 1.9em 0 .6em;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.22;
  font-weight: 700;
}
.shot { margin: 0 0 1em; }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.cta {
  display: block;
  margin: 1.4em 0 1.6em;
  padding: 15px 18px;
  border-radius: 6px;
  background: var(--go);
  box-shadow: 0 3px 0 var(--go-dark);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 700;
}
.cta:hover { background: var(--go-dark); color: #fff; }
.cta:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--go-dark); }

.checks { list-style: none; margin: 0 0 1.2em; padding: 0; }
.checks li { margin: 0 0 .8em; padding-left: 30px; text-indent: -30px; }
.checks li::before { content: "✅"; display: inline-block; width: 30px; text-indent: 0; }

.costs { margin: 0 0 1.2em; padding-left: 1.3em; }
.costs li { margin-bottom: .45em; }

.steps { list-style: none; margin: 0 0 1.2em; padding: 0; counter-reset: s; }
.steps li {
  position: relative;
  margin: 0 0 1em;
  padding-left: 46px;
  counter-increment: s;
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 1px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--petrol);
  color: #fff;
  font-weight: 800;
  text-align: center;
  line-height: 32px;
}

/* ---------- блок 1951–1989 ---------- */
.years {
  margin: 2.2em -16px;
  padding: 26px 16px 8px;
  background: var(--petrol);
  color: #e6f1f4;
}
.years h2 { margin-top: 0; color: #fff; font-size: 28px; }
.years strong { color: #fff; }
.years .shot { margin: 0 0 1.1em; }
.years .cta {
  background: #fff;
  color: var(--petrol);
  box-shadow: 0 3px 0 #9fc5cf;
}
.years .cta:hover { background: #f1f7f9; color: var(--petrol); }

/* ---------- заметка про цену ---------- */
.note {
  margin: 1.4em 0;
  padding: 18px 18px 4px;
  background: var(--note);
  border: 2px dashed var(--note-line);
}

/* ---------- форма ---------- */
.order {
  margin: 2.2em 0 1em;
  padding: 22px 18px 20px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--go);
  border-radius: 6px;
  background: #f7f9fa;
}
.order h2 { margin-top: 0; }
.field { margin: 0 0 14px; }
.field label { display: block; margin: 0 0 4px; font-weight: 700; color: var(--ink); font-size: 16px; }
.field input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid #b9c0c8;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
}
.field input:focus { border-color: var(--link); outline: 3px solid rgba(10, 107, 132, .25); outline-offset: 0; }
.field input[aria-invalid="true"] { border-color: #c4352b; }
.err { display: block; min-height: 0; margin-top: 4px; color: #b3261e; font-size: 15px; }
.err:empty { display: none; }
.agree { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-size: 16px; line-height: 1.45; }
.agree input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--go); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.order button {
  width: 100%;
  margin: 0;
  padding: 15px 18px;
  border: 0;
  border-radius: 6px;
  background: var(--go);
  box-shadow: 0 3px 0 var(--go-dark);
  color: #fff;
  font: inherit;
  font-size: 21px;
  font-weight: 700;
  cursor: pointer;
}
.order button[disabled] { opacity: .7; cursor: progress; }
.small { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.form-msg { margin: 14px 0 0; padding: 12px 14px; border-radius: 5px; font-size: 17px; }
.form-msg:empty { display: none; }
.form-msg.bad { background: #fdecea; color: #8c1d18; }
.done { padding: 6px 0; }
.done h3 { margin: 0 0 .4em; color: var(--go-dark); font-size: 23px; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 14px 34px 14px 0;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 10px;
  color: var(--link);
  font-size: 26px;
  font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 14px; }

/* ---------- подвал ---------- */
.foot {
  margin-top: 40px;
  padding: 30px 0 34px;
  background: var(--foot);
  color: var(--foot-text);
  font-size: 15px;
  line-height: 1.55;
  text-align: center;
}
.foot a { color: #e8ecef; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0 0 22px; }
.foot h3 { margin: 22px 0 8px; color: #fff; font-size: 15px; font-weight: 700; text-decoration: underline; }
.foot dl { margin: 0; }
.foot dt { display: inline; }
.foot dd { display: inline; margin: 0; color: #fff; font-weight: 600; }
.foot dl div { margin: 0 0 6px; }
.foot p { margin: 0 0 10px; }
.copy { margin-top: 20px !important; color: #8e969f; }

/* ---------- куки ---------- */
.cookies {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(20, 30, 40, .12);
  font-size: 15px;
  line-height: 1.45;
}
.cookies[hidden] { display: none; }
.cookies .row { display: flex; gap: 8px; margin-top: 10px; }
.cookies button {
  flex: 1;
  height: 44px;
  border: 1px solid #b9c0c8;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.cookies .yes { background: var(--petrol); border-color: var(--petrol); color: #fff; }

/* ---------- юридические страницы ---------- */
.doc { padding-top: 22px; padding-bottom: 10px; }
.doc h1 { font-size: 30px; }
.doc h2 { margin: 1.6em 0 .5em; color: var(--ink); font-size: 21px; line-height: 1.3; }
.doc p, .doc li { font-size: 17px; }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: .4em; }
.back { display: inline-block; margin: 0 0 14px; font-size: 16px; }

@media (min-width: 720px) {
  body { font-size: 19px; }
  .top .wrap { min-height: 68px; }
  h1 { font-size: 40px; }
  .article { padding-top: 28px; }
  .article h2 { font-size: 29px; }
  .years { margin-left: 0; margin-right: 0; padding: 30px 28px 12px; border-radius: 6px; }
  .order { padding: 28px 28px 24px; }
}
