:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --tint: #eceff1;
  --ink: #1c2128;
  --muted: #5b6672;
  --line: #dde2e6;
  --light: #f0a81c;
  --light-deep: #c98300;
  --light-soft: #fdf1d6;
  --radius: 14px;
  --font-head: 'Geologica', system-ui, sans-serif;
  --font-body: 'Golos Text', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--light); outline-offset: 2px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

/* header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 247, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 24px; min-width: 0; height: 72px; }
.logo {
  flex-shrink: 0; text-decoration: none;
  font: 700 24px/1 var(--font-head); letter-spacing: -0.03em;
  display: inline-flex; align-items: baseline; gap: 0;
}
.logo img { height: 56px; width: auto; mix-blend-mode: multiply; }
.logo i { display: inline-block; width: 12px; height: 3px; margin: 0 2px; background: var(--light); border-radius: 2px; transform: translateY(-5px); box-shadow: 0 0 10px var(--light); }
.logo span { margin-left: 10px; font: 400 13px/1 var(--font-body); letter-spacing: 0; color: var(--muted); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { white-space: nowrap; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); transition: color .15s; }
.nav a:hover { color: var(--ink); }
.header__actions { display: flex; align-items: center; gap: 18px; }
.header__phone { font-weight: 600; text-decoration: none; white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .2s, opacity .2s; }
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 15px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #2e3742; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }

/* hero */
.hero { padding: 56px 0 88px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, transparent, var(--light) 30%, var(--light) 70%, transparent);
  box-shadow: 0 8px 60px 18px rgba(240, 168, 28, .28);
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; padding-top: 24px; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 700; max-width: 14ch; }
.hero__lead { margin-top: 24px; max-width: 52ch; font-size: 19px; color: var(--muted); }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.facts { list-style: none; padding: 0; margin: 48px 0 0; display: flex; gap: 40px; flex-wrap: wrap; }
.facts li { display: flex; flex-direction: column; border-left: 3px solid var(--light); padding-left: 14px; }
.facts b { font: 600 24px/1.1 var(--font-head); }
.facts span { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* calculator */
.calc {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 28px; box-shadow: 0 30px 60px -30px rgba(28, 33, 40, .25);
  scroll-margin-top: 90px;
}
.calc__title { font-size: 24px; margin-bottom: 20px; }
.calc__form { display: grid; gap: 14px; }
.calc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 14px; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 500 16px var(--font-body); color: var(--ink);
  padding: 12px 14px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px;
  transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { resize: vertical; }
.calc__result {
  margin: 22px 0 16px; padding: 18px 20px; border-radius: 14px; background: var(--light-soft);
  display: grid; gap: 8px;
}
.calc__label { display: block; font-size: 14px; color: var(--muted); }
.calc__result strong { font: 700 40px/1.1 var(--font-head); letter-spacing: -0.02em; }
.calc__note { font-size: 13px; color: var(--muted); }

/* sections */
.section { padding: 88px 0; }
.section--tint { background: var(--tint); }
.section__title { font-size: clamp(28px, 3.6vw, 42px); font-weight: 600; max-width: 22ch; }
.section__lead { margin-top: 14px; color: var(--muted); max-width: 62ch; }

.adv-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.adv { padding: 4px 0; border-top: 3px solid var(--ink); padding-top: 20px; }
.adv__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--light-soft); color: var(--light-deep); margin-bottom: 16px; }
.adv h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.adv p { color: var(--muted); font-size: 15px; }

.srv-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.srv { background: var(--surface); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.srv h3 { font-size: 21px; font-weight: 600; }
.srv p { color: var(--muted); font-size: 15px; }
.srv .srv__price { margin-top: auto; padding-top: 12px; font: 600 19px var(--font-head); color: var(--ink); }

/* price */
.price-cols { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.price-box h3 { font-size: 22px; font-weight: 600; margin-bottom: 14px; }
.price { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.price th, .price td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.price th { font-weight: 600; font-size: 13px; color: var(--muted); background: var(--tint); }
.price td:not(:first-child), .price th:not(:first-child) { text-align: right; white-space: nowrap; }
.price tr:last-child td { border-bottom: 0; }
.price__note { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.step { counter-increment: step; position: relative; padding-top: 52px; }
.step::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff; font: 600 16px var(--font-head);
}
.step::after { content: ''; position: absolute; top: 18px; left: 50px; right: -10px; height: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); }

.case-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.case h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.case p { color: var(--muted); font-size: 15px; }

/* faq */
.faq__item { background: var(--surface); border-radius: 12px; margin-top: 12px; }
.faq__item:first-of-type { margin-top: 36px; }
.faq__item summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--light-deep); }
.faq__item[open] summary::after { content: '\2212'; }
.faq__item p { padding: 0 22px 20px; color: var(--muted); }

/* contact */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
#contact { scroll-margin-top: 72px; }
.form { margin-top: 28px; display: grid; gap: 14px; }
.form__hint { font-size: 13px; color: var(--muted); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.agree input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--light-deep); }
.agree a { color: var(--ink); text-decoration: underline; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--tint); }
.map iframe { width: 100%; height: 100%; border: 0; }
.contact__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact__list li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.contact__list span { color: var(--muted); font-size: 15px; }
.contact__list a { font-weight: 600; text-decoration: none; }

.footer { padding: 36px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.logo--footer img { height: 48px; }

.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(28, 33, 40, .3);
}

/* reveal: один сдержанный вход для блоков */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* breakpoints */
@media (max-width: 1180px) {
  .nav { gap: 18px; }
  .nav a { font-size: 14px; }
  .header__phone { display: none; }
}
@media (max-width: 1100px) {
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .burger { display: block; }
  .header__actions { margin-left: auto; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .step:nth-child(3)::after { display: none; }
}
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .hero { padding-bottom: 56px; }
  .hero__inner, .contact__inner, .price-cols { grid-template-columns: 1fr; gap: 40px; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .srv-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .header__actions .btn { display: none; }
  .adv-grid, .srv-grid, .case-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .calc { padding: 20px; }
  .calc__row { grid-template-columns: 1fr; }
  .calc__result strong { font-size: 34px; }
  .facts { gap: 24px; }
  .price th, .price td { padding: 10px 12px; font-size: 14px; }
  .price td:not(:first-child), .price th:not(:first-child) { white-space: normal; }
  .contact__list li { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 380px) {
  .logo span { display: none; }
}
