/* Manrope (SIL Open Font License) — локальная копия, без внешних CDN */
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --bg: #0b0f14;
  --bg2: #0f151c;
  --card: #121a22;
  --line: #1f2a35;
  --text: #e6edf3;
  --muted: #94a3b8;
  --accent: #14b8a6;
  --accent-2: #5eead4;
  --accent-ink: #04201d;
  --radius: 18px;
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.accent { color: var(--accent); }
.sub { color: var(--muted); max-width: 720px; margin: 0 0 36px; font-size: 18px; }
.section { padding: 88px 0; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: 14px; font-weight: 700; font-size: 16px;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 10px 30px -10px rgba(20, 184, 166, .6);
}
.btn:hover { transform: translateY(-1px); background: var(--accent-2); }
.btn--ghost { background: transparent; color: var(--accent-2); border-color: #23515a; box-shadow: none; }
.btn--ghost:hover { background: rgba(20, 184, 166, .1); }
.btn--sm { white-space: nowrap; padding: 10px 16px; font-size: 14px; border-radius: 11px; }
.btn--block { width: 100%; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px);
  background: rgba(11, 15, 20, .78); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo img { height: 44px; width: auto; }
.logo { white-space: nowrap; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.logo__mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 900; }
.nav__links { display: flex; gap: 24px; margin-left: auto; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav__links a:hover { color: var(--text); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 80px;
  background: radial-gradient(900px 500px at 85% 20%, rgba(20, 184, 166, .16), transparent 60%),
              radial-gradient(700px 400px at 0% 100%, rgba(14, 116, 144, .14), transparent 60%); }
.hero__in { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; margin: 0 0 18px; padding: 6px 12px; border-radius: 99px;
  border: 1px solid #1f4f4b; background: rgba(20, 184, 166, .08); color: var(--accent-2);
  font-weight: 700; font-size: 13px; letter-spacing: .02em; }
.lead { font-size: 19px; color: #c5d0db; max-width: 620px; margin: 0 0 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__facts li { padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(18, 26, 34, .7); min-width: 150px; }
.hero__facts b { display: block; font-size: 22px; color: var(--accent-2); }
.hero__facts span { color: var(--muted); font-size: 14px; }
.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__visual img { position: relative; width: 300px; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .55)); }
.glow { position: absolute; inset: 10% 0; background: radial-gradient(closest-side, rgba(20, 184, 166, .35), transparent); filter: blur(30px); }

/* why */
.why { padding: 0 0 40px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why__item { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.why__item p { color: var(--muted); margin: 0; font-size: 15px; }
.ico { font-size: 26px; display: block; margin-bottom: 10px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { padding: 26px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s; }
.card:hover { border-color: #2b6b66; transform: translateY(-2px); }
.card--accent { background: linear-gradient(160deg, rgba(20, 184, 166, .14), var(--card) 55%); border-color: #1f4f4b; }
.card__ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px;
  background: rgba(20, 184, 166, .12); margin-bottom: 16px; }
.card ul { margin: 0; padding: 0; list-style: none; color: #c0cad4; font-size: 15px; }
.card li { position: relative; padding-left: 22px; margin: 9px 0; }
.card li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* demo */
.demo { background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 20%, var(--bg2) 80%, var(--bg) 100%); }
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; padding: 10px 0 26px; align-items: start; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .5)); }
.gallery figcaption { margin-top: 14px; text-align: center; color: var(--muted); font-weight: 600; }
.gallery figcaption b { color: var(--accent-2); }
.demo__note { margin-top: 18px; display: flex; gap: 24px; align-items: center; justify-content: space-between;
  padding: 22px 26px; border-radius: var(--radius); border: 1px dashed #24545a; background: rgba(20, 184, 166, .05); color: #c0cad4; }

/* prices */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price { position: relative; display: flex; flex-direction: column; padding: 30px 26px; border-radius: 22px;
  background: var(--card); border: 1px solid var(--line); }
.price--hot { border-color: var(--accent); background: linear-gradient(180deg, rgba(20, 184, 166, .12), var(--card) 45%);
  box-shadow: 0 30px 60px -30px rgba(20, 184, 166, .5); }
.badge { position: absolute; top: -13px; left: 26px; padding: 4px 12px; border-radius: 99px; background: var(--accent);
  color: var(--accent-ink); font-weight: 800; font-size: 12px; }
.price__sum { font-size: 38px; font-weight: 800; letter-spacing: -.02em; }
.price__for { color: var(--muted); margin: 4px 0 18px; }
.price ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; color: #c0cad4; font-size: 15px; }
.price li { padding: 9px 0 9px 28px; border-top: 1px solid var(--line); position: relative; }
.price li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 800; }
.fine { color: var(--muted); font-size: 14px; margin-top: 22px; }

/* steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { counter-increment: s; padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; color: var(--accent); font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.steps b { display: block; font-size: 18px; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 15px; }

/* faq */
.faq details { max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin-bottom: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 17px; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 18px; color: #c0cad4; }

/* contact */
.contact__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 44px;
  border-radius: 26px; border: 1px solid #1f4f4b;
  background: radial-gradient(600px 300px at 100% 0%, rgba(20, 184, 166, .2), transparent 60%), var(--card); }
.who { color: var(--muted); font-size: 15px; margin: 0; }
.contact__links { display: grid; gap: 12px; }
.clink { display: flex; flex-direction: column; padding: 16px 20px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); transition: border-color .2s; }
a.clink:hover { border-color: var(--accent); }
.clink span { color: var(--muted); font-size: 13px; font-weight: 600; }
.clink b { font-size: 18px; color: var(--accent-2); word-break: break-all; }
.clink--muted b { color: var(--muted); font-weight: 600; font-size: 15px; }

.footer { border-top: 1px solid var(--line); padding: 26px 0; color: #64748b; font-size: 13px; }
.footer__in { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }

/* v3: якоря, экспресс-разбор, контакты */
[id] { scroll-margin-top: 84px; }
.hero__cta { margin-bottom: 14px; }
.hero__offer { color: var(--muted); font-size: 14px; max-width: 560px; margin: 0 0 32px; }
.offer { list-style: none; padding: 0; margin: 4px 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.offer li { padding: 7px 12px; border-radius: 99px; border: 1px solid #1f4f4b; background: rgba(20, 184, 166, .08);
  color: var(--accent-2); font-weight: 700; font-size: 14px; }
.contact .sub { margin-bottom: 18px; }
.btn--lg { flex-direction: column; gap: 2px; padding: 16px 26px; font-size: 18px; line-height: 1.25; }
.btn--lg small { font-size: 13px; font-weight: 600; opacity: .75; }
.btn--lg { text-align: center; }
.btn--lg small + small { opacity: .6; font-size: 12px; }
.hint { margin: -2px 0 6px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.contact__more { display: grid; gap: 10px; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.clink--sm { padding: 12px 16px; }
.clink--sm b { font-size: 16px; }
.clink i { font-style: normal; color: var(--muted); font-size: 13px; margin-top: 2px; }

/* v4: плавающая кнопка «Бесплатный разбор» — только мобильные (≤768px) */
.fab { display: none; }
@media (max-width: 768px) {
  .fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 20;
    display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px; border-radius: 99px;
    background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 15px; line-height: 1.2;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .7), 0 0 0 1px rgba(94, 234, 212, .35);
    transition: opacity .2s ease, transform .2s ease; }
  .fab::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); opacity: .55; }
  .fab:active { transform: scale(.97); }
  .fab--hide { opacity: 0; transform: translateY(12px); pointer-events: none; }
  /* место под кнопку, чтобы она не закрывала низ страницы */
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media print { .fab { display: none !important; } }

/* responsive */
@media (max-width: 1100px) {
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 22px; }
  .gallery figure { flex: 0 0 auto; scroll-snap-align: start; }
  .gallery img { width: 260px; }
}
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav .btn--sm { margin-left: auto; }
  .hero { padding: 44px 0 56px; }
  .hero__in, .contact__in { grid-template-columns: 1fr; }
  .hero__visual img { width: 260px; }
  .grid3, .prices { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .demo__note { flex-direction: column; align-items: flex-start; }
  .contact__in { padding: 28px 22px; }
}
@media (max-width: 560px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .hero__facts { gap: 8px; flex-wrap: nowrap; }
  .hero__facts li { flex: 1 1 0; min-width: 0; padding: 10px 10px; }
  .hero__facts b { font-size: 15px; white-space: nowrap; }
  .hero__facts span { font-size: 12px; line-height: 1.3; display: block; }
  .hero__cta .btn { width: 100%; }
  .logo img { height: 36px; }
  .gallery img { width: 240px; }
  .lead, .sub { font-size: 16px; }
}

@media print {
  .nav { position: static; }
  .section, .hero { break-inside: avoid-page; }
  .card, .price, .steps li, .gallery figure { break-inside: avoid; }
  .faq details { display: block; }
}
