@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Размеры сняты со скриншотов телефона (экран 439 точек по ширине). */
:root {
  --bg: #f7f8f3;
  --ink: #1b1b1b;
  --muted: #62625f;
  --line: #dcddd8;
  --field: #c9cac5;
  --red: #e3222b;
  --red-deep: #c8171f;
  --red-on-dark: #ff4a50;
  --dark: #1b1b1b;
  --on-dark: #cdcdcb;
  --gutter: 27px;
  --max: 1200px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, select, textarea { font-family: var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure, ol, dl, dd { margin: 0; }
ol { padding: 0; list-style: none; }
em { font-style: normal; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ——— общие элементы ——— */
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4; }
h1, h2 { font-weight: 700; letter-spacing: -.045em; }
h1 { font-size: clamp(38px, 10.65vw, 96px); line-height: 1.02; }
h1 em { color: var(--red); }
h2 { font-size: clamp(34px, 9.1vw, 72px); line-height: 1.08; }
h3 { font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1.25; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.8; }
.note { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.num { color: var(--red); font-weight: 700; font-size: 15px; letter-spacing: .02em; line-height: 1.6; }
.arr { display: inline-block; font-size: .78em; font-weight: 500; font-family: system-ui, 'Segoe UI Symbol', sans-serif; }

.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 61px; padding: 0 22px; border: 0; border-radius: 0;
  font-family: var(--font); font-size: 15.5px; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red-deep); color: #fff; }
.btn-red:hover { background: #a9121a; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--ink); color: #fff; }
.btn-wide { display: flex; width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link {
  display: inline-flex; gap: 5px; align-items: baseline; padding: 0; border: 0; background: none;
  font-family: var(--font); font-size: 15.5px; font-weight: 700; line-height: 1.4; color: inherit; text-decoration: none; cursor: pointer;
}
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ——— шапка ——— */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px 27px; position: relative; }
.top::after { content: ''; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: var(--line); }
.logo {
  display: inline-flex; align-items: flex-end; text-decoration: none;
  font-size: 23.5px; font-weight: 800; letter-spacing: -.055em; line-height: 1; color: var(--ink);
}
.logo span { color: var(--red); }
.logo i { width: .42em; height: .42em; margin-left: .14em; margin-bottom: .02em; background: var(--red); }
.talk { font-weight: 700; font-size: 14px; text-decoration: none; padding: 4px 0 9px; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
.talk:hover { color: var(--red); border-color: var(--red); }

/* ——— первый экран ——— */
.hero { padding-block: 42px 0; display: grid; gap: 0; }
.hero h1 { margin-top: 30px; }
.hero .lead { margin-top: 29px; max-width: 34em; }
.hero-cta { margin-top: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 29px; }
.hero .btn-red { gap: 36px; padding-right: 25px; }
.facts {
  margin-top: 36px; padding-top: 34px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: .93fr 1.4fr 1.24fr; gap: 14px;
}
.facts dt { font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.facts dd { margin-top: 5px; color: var(--muted); font-size: 13.5px; line-height: 2.1; }
.hero-photo { margin-top: 35px; }
.hero-photo img { width: 100%; aspect-ratio: 1010 / 1096; object-fit: cover; background: #111; }

/* ——— бегущая строка ——— */
.ticker { margin-top: 45px; background: var(--red); color: #fff; overflow: hidden; }
.ticker-track {
  display: flex; align-items: center; width: max-content; min-height: 66px;
  animation: ticker 40s linear infinite;
}
.ticker span { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.ticker span:first-child { margin-left: var(--gutter); }
/* восьмилучевая звёздочка: два луча — псевдоэлементы, два диагональных — фон */
.star {
  position: relative; width: 15px; height: 15px; margin-inline: 27px; flex: none;
  background:
    linear-gradient(45deg, transparent calc(50% - 1px), #fff calc(50% - 1px), #fff calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(-45deg, transparent calc(50% - 1px), #fff calc(50% - 1px), #fff calc(50% + 1px), transparent calc(50% + 1px));
}
.star::before, .star::after { content: ''; position: absolute; left: 50%; top: 0; width: 2px; height: 100%; margin-left: -1px; background: #fff; }
.star::after { transform: rotate(90deg); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ——— секции ——— */
.sec { padding-block: 66px 78px; }
.sec-head h2 { margin-top: 27px; }
.sec-head .lead { margin-top: 30px; line-height: 1.6; }
.sec-head .note { margin-top: 18px; }
.sec-head .btn { margin-top: 33px; }

.svc { margin-top: 28px; border-top: 1px solid var(--line); }
.svc li { padding-block: 26px 28px; border-bottom: 1px solid var(--line); }
.svc h3 { margin-top: 22px; }
.svc p { margin-top: 18px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.svc .tag, .svc .link { margin-top: 22px; }
.tag {
  display: inline-flex; align-items: center; min-height: 35px; padding: 5px 13px;
  border: 1px solid var(--field); background: #fbfbf8; text-decoration: none; font-size: 13.5px; line-height: 1.3;
  transition: border-color .15s;
}
.tag:hover { border-color: var(--ink); }

/* ——— калькулятор ——— */
.dark { background: var(--dark); color: #fff; }
.calc { padding-block: 66px 72px; display: grid; gap: 44px; }
.calc h2 { margin-top: 30px; }
.calc h2 em { color: var(--red-on-dark); }
.calc .lead { margin-top: 26px; color: var(--on-dark); font-size: 18px; line-height: 1.6; }
.calc .note { margin-top: 18px; color: #a9a9a6; }

.card { background: var(--bg); color: var(--ink); padding: 26px 20px 30px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 15px; align-items: start; }
.grid2 .span2 { grid-column: 1 / -1; }
.card label { display: flex; flex-direction: column; gap: 10px; font-size: 15px; font-weight: 500; line-height: 1.55; }
.opt { font-weight: 400; color: var(--muted); font-size: 13.5px; }
.card input[type=text], .card input[type=tel], .card select, .card textarea {
  width: 100%; min-height: 51px; padding: 10px 20px; border: 1px solid var(--field); border-radius: 0;
  background: #fff; color: var(--ink); font-size: 16px; line-height: 1.3;
  -webkit-appearance: none; appearance: none;
}
.card textarea { resize: vertical; min-height: 110px; padding: 13px 16px; line-height: 1.5; }
.card input::placeholder, .card textarea::placeholder { color: #a4a5a0; }
.card input:focus, .card select:focus, .card textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.card input[aria-invalid=true] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.select { position: relative; display: block; }
.select select { padding-right: 40px; cursor: pointer; }
.select::after {
  content: ''; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; margin-top: -5px;
  border-right: 1.3px solid var(--ink); border-bottom: 1.3px solid var(--ink); transform: rotate(45deg); pointer-events: none;
}
.card .btn-wide { margin-top: 28px; }
.result { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.result .muted { color: var(--muted); font-size: 15.5px; }
.meters { font-size: clamp(50px, 13.7vw, 84px); font-weight: 700; letter-spacing: -.05em; line-height: 1.1; margin-top: 4px; }
.meta { font-size: 15.8px; margin-top: 6px; }
.result .link { margin-top: 22px; }
.err { color: var(--red); font-weight: 600; font-size: 15px; margin-top: 12px; }

/* ——— шаги ——— */
.steps { margin-top: 29px; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 16px; padding-block: 27px 23px; border-bottom: 1px solid var(--line); }
.steps .num { align-self: start; }
.steps p { margin-top: 18px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.steps li:last-child { border-bottom: 0; }

/* ——— заявка ——— */
.order-sec { padding-top: 0; }
.order-grid { border-top: 1px solid var(--line); padding-top: 60px; }
.order-card { margin-top: 36px; border: 1px solid var(--line); background: #fbfbf8; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.card .consent { flex-direction: row; align-items: flex-start; gap: 12px; margin-top: 24px; font-size: 13.5px; font-weight: 400; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--ink); cursor: pointer; }
.consent a { color: var(--ink); }
.sent { padding-block: 6px 4px; }
.sent .meters-sm { font-size: 32px; font-weight: 700; letter-spacing: -.04em; line-height: 1.15; }
.sent p + p { margin-top: 14px; color: var(--muted); }
.sent .link { margin-top: 20px; }
.order-card.done .grid2, .order-card.done .consent, .order-card.done #lead-submit { display: none; }

/* ——— красный блок ——— */
.red { background: var(--red); color: #fff; }
.cta { padding-block: 53px 52px; }
.cta .eyebrow { font-size: 11px; }
.cta h2 { margin-top: 27px; font-size: clamp(40px, 11.1vw, 96px); line-height: 1.14; }
.cta-links { margin-top: 34px; display: flex; flex-direction: column; align-items: flex-start; gap: 27px; }
.cta .link { color: #fff; }

/* ——— подвал ——— */
.foot { padding-block: 42px 34px; }
.foot p { color: var(--muted); font-size: 13.6px; margin-top: 12px; line-height: 1.6; }
.foot p + p { margin-top: 13px; }
.foot .logo + p { margin-top: 16px; }
.foot .legal { font-size: 13px; margin-top: 22px; }
.foot .legal a { color: var(--muted); }

/* ——— документы ——— */
.doc { max-width: calc(760px + 2 * var(--gutter)); padding-block: 44px 20px; }
.doc h1 { font-size: clamp(30px, 8vw, 52px); line-height: 1.1; margin-top: 22px; }
.doc > .note { margin-top: 14px; }
.doc h2 { font-size: 21px; letter-spacing: -.02em; line-height: 1.3; margin-top: 36px; }
.doc p, .doc li { color: #3d3d3b; margin-top: 12px; line-height: 1.65; }
.doc ul { padding-left: 22px; margin: 8px 0 0; }
.doc li { margin-top: 6px; }
.doc a:not(.link) { color: var(--ink); }
.doc-back { margin-top: 44px !important; }

/* ——— планшет и компьютер ——— */
@media (min-width: 720px) {
  :root { --gutter: 40px; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .hero-cta { flex-direction: row; align-items: center; gap: 36px; }
  .svc li { display: grid; grid-template-columns: 80px 1fr 1.2fr; gap: 8px 28px; align-items: start; }
  .svc h3 { margin-top: 0; grid-column: 2; }
  .svc p { margin-top: 0; grid-column: 3; grid-row: 1 / span 2; }
  .svc .tag, .svc .link { grid-column: 2; justify-self: start; margin-top: 18px; }
  .svc .num { grid-row: 1; padding-top: 2px; }
  .card { padding: 34px 32px 36px; }
  .cta-links { flex-direction: row; align-items: center; gap: 40px; }
  .steps li { grid-template-columns: 48px 1fr; }
}
@media (min-width: 1024px) {
  body { font-size: 18px; }
  h1 { font-size: clamp(56px, 6.4vw, 88px); }
  h2 { font-size: clamp(44px, 4.2vw, 60px); }
  .cta h2 { font-size: clamp(56px, 6.4vw, 88px); }
  .top { padding-block: 32px 30px; }
  .hero { grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: start; padding-top: 64px; }
  .hero-photo { margin-top: 0; }
  .ticker { margin-top: 80px; }
  .sec { padding-block: 100px 104px; }
  .calc { grid-template-columns: 1fr 1fr; gap: 64px; padding-block: 100px 108px; align-items: start; }
  .steps-sec { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
  .steps-sec .steps { margin-top: 0; border-top: 0; }
  .steps li:first-child { padding-top: 0; }
  .order-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; padding-top: 100px; }
  .order-grid .order-card { margin-top: 0; }
  .cta { display: grid; grid-template-columns: 1.3fr 1fr; align-items: end; column-gap: 64px; padding-block: 88px 92px; }
  .cta .eyebrow, .cta h2 { grid-column: 1; }
  .cta-links { grid-column: 2; grid-row: 2; align-self: end; margin-top: 0; }
  .foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 40px; }
  .foot .logo { margin-right: auto; }
  .foot p, .foot .logo + p, .foot p + p, .foot .legal { margin-top: 0; }
}
