@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --blue: #0B2F73;
  --blue-deep: #082457;
  --gold: #E3A11F;
  --gold-soft: #FFF4DC;
  --white: #FFFFFF;
  --tint: #F1F4F9;
  --ink: #0E1626;
  --granite: #5B6475;
  --line: #DFE4EC;
  --radius: 14px;
  --radius-media: 16px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--blue); margin: 0; line-height: 1.12; letter-spacing: -0.015em; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 20px; font-weight: 800; margin: 32px 0 6px; }
p { margin: 0 0 14px; }
small { font-size: 0.8em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 50; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform .16s var(--ease-out), background-color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-deep); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #D19217; }
.btn--line { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--line:hover { background: var(--tint); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.top__in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.top__logo img { width: 170px; height: auto; }
.top__nav { display: flex; gap: 22px; margin-left: auto; }
.top__nav a { text-decoration: none; font-weight: 600; color: var(--ink); font-size: 15px; }
.top__nav a:hover { color: var(--blue); }
.top__contact { display: flex; align-items: center; gap: 14px; }
.top__logo + .top__contact { margin-left: auto; }
.top__phone { font-weight: 800; text-decoration: none; white-space: nowrap; }

/* ---------- первый экран ---------- */
.hero { position: relative; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
h1 { font-size: clamp(36px, 4.6vw, 58px); font-weight: 800; text-wrap: balance; }
h1 span { display: block; color: var(--ink); }
.lead { font-size: 20px; color: var(--granite); max-width: 34ch; margin-top: 24px; text-wrap: pretty; }
.lead b { color: var(--blue); font-weight: 800; white-space: nowrap; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__media { align-self: center; }
.hero__wave { position: absolute; top: 0; right: 0; width: 42vw; height: 100%; z-index: 0; }
.hero__text { position: relative; z-index: 1; }
.hero__photo { position: relative; z-index: 1; width: 100%; max-width: 520px; margin-left: auto; border-radius: var(--radius-media); box-shadow: 0 30px 60px -30px rgba(8,36,87,.55); aspect-ratio: 3 / 4; object-fit: cover; }

/* ---------- секции ---------- */
.sect { padding: 88px 0; }
.sect--tint { background: var(--tint); }
.sect--blue { background: var(--blue); color: var(--white); }
.sect--blue h2 { color: var(--white); }
.sect__lead { font-size: 19px; color: var(--granite); max-width: 760px; margin-bottom: 36px; }
.note { background: var(--gold-soft); padding: 14px 18px; border-radius: var(--radius); margin-top: 18px; }
.small { font-size: 14px; color: var(--granite); }

/* ---------- цены ---------- */
.price { display: grid; grid-template-columns: 1fr 440px; gap: 48px; align-items: start; }
.tariffs { margin: 0; }
.tariffs div { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tariffs div::after { content: none; }
.tariffs dt { font-weight: 700; font-size: 19px; flex: 1; display: flex; flex-direction: column; }
.tariffs dt small { font-weight: 500; color: var(--granite); font-size: 14px; }
.tariffs dd { margin: 0; font-weight: 800; font-size: 26px; color: var(--blue); white-space: nowrap; }
.tariffs--examples dd { font-size: 22px; }
.extras { padding-left: 20px; margin: 10px 0 0; }
.extras li { margin-bottom: 8px; }

/* ---------- калькулятор: смета-чек ---------- */
.calc { position: sticky; top: 100px; background: var(--white); border-radius: var(--radius); padding: 26px 26px 22px; box-shadow: 0 2px 6px rgba(8,36,87,.06), 0 28px 56px -28px rgba(8,36,87,.38); }
.calc h3 { margin-top: 0; margin-bottom: 16px; }
.calc fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.calc legend { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.calc__crew { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.calc__crew legend { grid-column: 1 / -1; }
.calc__crew label { position: relative; cursor: pointer; }
.calc__crew input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.calc__crew span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 6px 8px; border: 2px solid var(--line); border-radius: 10px; font-weight: 700; font-size: 14px; line-height: 1.2; }
.calc__crew input:checked + span { border-color: var(--blue); background: var(--blue); color: var(--white); }
.calc__crew input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.calc__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.calc__row label { font-weight: 700; font-size: 15px; display: flex; flex-direction: column; line-height: 1.25; }
.calc__row small { font-weight: 500; color: var(--granite); }
.stepper { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; }
.stepper button { width: 42px; height: 42px; border: 0; background: var(--tint); font: inherit; font-size: 20px; font-weight: 700; color: var(--blue); cursor: pointer; }
.stepper button:hover { background: #E3E9F3; }
.stepper input { width: 58px; height: 42px; border: 0; text-align: center; font: inherit; font-weight: 800; font-size: 17px; color: var(--ink); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.receipt {
  --tooth: 10px;
  margin: 18px -6px 0; padding: 18px 20px 26px; background: var(--gold-soft);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--tooth) * 2) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--tooth) * 2) 100%;
}
.receipt__head { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--granite); margin-bottom: 10px; }
.receipt__lines { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.receipt__lines li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed #E2C98F; }
.receipt__lines li span:last-child { font-weight: 700; white-space: nowrap; }
.receipt__total { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 8px; font-weight: 800; color: var(--blue); }
.receipt__total span { font-size: 17px; }
.receipt__total output { font-size: 34px; letter-spacing: -0.02em; }
.receipt__foot { font-size: 13px; color: var(--granite); margin: 0; }
.calc__actions { margin-top: 16px; }
.calc__actions .btn { width: 100%; }
.calc__actions .small { margin: 10px 0 0; }

/* ---------- машина ---------- */
.van { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: start; }
.van__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.van__gallery figure { margin: 0; }
.van__gallery img { width: 100%; border-radius: var(--radius-media); aspect-ratio: 3 / 4; object-fit: cover; }
.van__main { grid-column: 1 / -1; }
.van__main img { aspect-ratio: 4 / 3; object-position: 50% 62%; }
.van figcaption { font-size: 13px; color: var(--granite); margin-top: 6px; }
.van__side { display: grid; gap: 22px; }
.van__inside { margin: 0; }
.van__inside img { width: 100%; border-radius: var(--radius-media); }
.specs { margin: 0; background: var(--white); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.specs div { display: flex; flex-direction: column; gap: 2px; }
.specs div:first-child { grid-column: 1 / -1; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--granite); font-size: 14px; line-height: 1.3; }
.specs dd { margin: 0; font-weight: 800; color: var(--blue); font-size: 21px; line-height: 1.2; }
.specs div:first-child dd { font-size: 30px; letter-spacing: -0.02em; }
.specs div:last-child { grid-column: 1 / -1; }
.specs dd small { display: block; font-weight: 500; color: var(--granite); font-size: 13px; margin-top: 4px; }

/* ---------- что вожу ---------- */
.cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; }
.ticks, .crosses { list-style: none; padding: 0; margin: 0 0 20px; }
.ticks li, .crosses li { position: relative; padding: 10px 0 10px 36px; border-bottom: 1px solid var(--line); font-weight: 600; }
.ticks li::before, .crosses li::before { content: ""; position: absolute; left: 0; top: 10px; width: 24px; height: 24px; border-radius: 50%; }
.ticks li::after, .crosses li::after { content: ""; position: absolute; left: 0; top: 10px; width: 24px; height: 24px; -webkit-mask: var(--icon) center / 14px no-repeat; mask: var(--icon) center / 14px no-repeat; }
.ticks li::before { background: var(--blue); }
.ticks li::after { background: var(--white); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4l3 3 6-6.4' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.crosses li::before { background: #E7E9EE; }
.crosses li::after { background: var(--granite); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 3.5l7 7M10.5 3.5l-7 7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.no-take { background: var(--tint); border-radius: var(--radius); padding: 28px 30px 14px; align-self: start; }
.no-take h2 { font-size: 30px; }

/* ---------- кто приедет ---------- */
.about__statement { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; color: var(--blue); max-width: 30ch; margin: 18px 0 40px; text-wrap: pretty; }
.about__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 24px; border-top: 2px solid var(--gold); }
.about__facts p { margin: 0; color: var(--ink); font-weight: 600; }
/* ---------- как заказать ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.steps li { counter-increment: s; position: relative; padding-top: 58px; color: rgba(255,255,255,.82); }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 19px; display: grid; place-items: center; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 54px; right: -14px; height: 2px; background: rgba(255,255,255,.22); }
.steps b { display: block; color: var(--white); font-size: 18px; margin-bottom: 6px; line-height: 1.3; }

/* ---------- вопросы ---------- */
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; font-size: 19px; color: var(--blue); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::before, summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 2.5px; margin-top: -1px; border-radius: 2px; background: var(--gold); transition: transform .2s var(--ease-out); }
summary::after { transform: rotate(90deg); }
details[open] summary::after { transform: rotate(0deg); }
details[open] > p { animation: open-in .22s var(--ease-out); }
@keyframes open-in { from { opacity: 0; transform: translateY(-4px); } }
details p { color: var(--granite); max-width: 680px; padding-bottom: 6px; }

/* ---------- подвал ---------- */
.foot { background: var(--blue-deep); color: rgba(255,255,255,.8); padding: 56px 0 120px; font-size: 15px; }
.foot__in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.foot img { width: 190px; }
.foot a { color: var(--white); font-weight: 700; text-decoration: none; }
.foot__slogan { margin-top: 14px; }
.foot__legal { color: rgba(255,255,255,.6); font-size: 14px; }
.foot__legal a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }

/* ---------- документы ---------- */
.doc { padding: 56px 0 88px; }
.doc h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }
.doc__date { color: var(--granite); font-size: 15px; margin-bottom: 36px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; }
.doc ol, .doc ul { padding-left: 22px; margin: 0 0 14px; }
.doc li { margin-bottom: 8px; }
.doc li > ul { margin-top: 8px; }
.doc .note { margin: 0 0 24px; }
.doc__req { background: var(--tint); border-radius: var(--radius); padding: 20px 24px; margin-top: 40px; }
.doc__req p { margin: 0; }
.doc__back { display: inline-block; margin-bottom: 26px; font-weight: 700; text-decoration: none; }

/* ---------- панель связи на телефоне ---------- */
.dock { display: none; }

@media (max-width: 1020px) {
  .top__nav { display: none; }
  .top__contact { margin-left: auto; }
  .price { grid-template-columns: 1fr; }
  .calc { position: static; }
  .van { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .top__in { min-height: 64px; gap: 12px; }
  .top__logo img { width: 140px; }
  .top__phone { display: none; }
  .hero__in { grid-template-columns: 1fr; padding-top: 28px; padding-bottom: 40px; gap: 28px; }
  .hero__media { order: -1; }
  .hero__wave { width: 72vw; height: 340px; }
  .hero__photo { max-width: none; aspect-ratio: 4 / 3; border-radius: 16px; object-position: 50% 64%; }
  h1 { font-size: 31px; }
  .lead { font-size: 17px; margin-top: 16px; }
  .hero__cta { margin-top: 24px; }
  .about__facts { grid-template-columns: 1fr; gap: 14px; }
  .specs { padding: 20px; }
  .sect { padding: 60px 0; }
  .sect__lead { font-size: 17px; }
  .calc { padding: 20px 16px 18px; margin: 0 -4px; }
  .cols { grid-template-columns: 1fr; gap: 36px; }
  .doc { padding: 36px 0 60px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .steps li { padding: 0 0 0 58px; }
  .foot__in { grid-template-columns: 1fr; }
  .dock { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); }
  .dock .btn { min-height: 50px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__text > * { animation: rise .7s var(--ease-out) both; }
  .hero__text > :nth-child(2) { animation-delay: .07s; }
  .hero__text > :nth-child(3) { animation-delay: .14s; }
  .hero__photo { animation: rise-photo .9s var(--ease-out) .05s both; }
  .hero__wave { animation: sweep 1.1s var(--ease-out) both; }
  .receipt__total output { display: inline-block; }
  .receipt__total output.is-tick { animation: tick .24s var(--ease-out); }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes rise-photo { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes sweep { from { opacity: 0; transform: translateX(6%); } }
@keyframes tick { from { opacity: .4; transform: translateY(-4px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, summary::before, summary::after { transition: none; }
  details[open] > p { animation: none; }
}
