:root {
  --bg: #f5f6f8;
  --bg-alt: #eceff3;
  --ink: #161a21;
  --muted: #5b6471;
  --accent: #e8650f;
  --accent-soft: #fdeee3;
  --accent-ink: #fff;
  --card: #ffffff;
  --line: #dde2e8;
  --top: rgba(245, 246, 248, .92);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111419; --bg-alt: #171b21; --ink: #e9edf2; --muted: #a2abb7;
    --accent: #ff7a26; --accent-soft: #2a1d14; --accent-ink: #111419; --card: #1c2128; --line: #2a313a; --top: rgba(17, 20, 25, .9);
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 Manrope, system-ui, sans-serif; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 22px; }
a { color: var(--accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.lead { color: var(--muted); max-width: 720px; white-space: pre-line; }

/* шапка с меню */
.top { position: sticky; top: 0; z-index: 20; background: var(--top); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; margin-right: auto; }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 14px; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 10px; border-radius: 8px; }
.nav a:hover { background: var(--bg-alt); }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 10px 9px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }
@media (max-width: 1020px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--card);
         border-bottom: 1px solid var(--line); padding: 8px 16px 14px; box-shadow: 0 10px 24px rgba(0,0,0,.08); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
}
@media (max-width: 420px) { #ctaTop { display: none; } }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; padding: 14px 26px;
  border-radius: 12px; font-weight: 700; border: 2px solid var(--accent); }
.btn:hover { filter: brightness(1.07); }
.btn.sm { padding: 9px 16px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }

/* первый экран */
.hero { padding: 56px 0 64px; }
.hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.kicker { margin: 0; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 800; color: var(--accent); }
.hero h1 { font-size: clamp(40px, 6.5vw, 68px); margin: 10px 0 12px; }
.tagline { font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); margin: 0 0 28px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-pic img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 22px; display: block; box-shadow: 0 24px 48px rgba(0,0,0,.18); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.stat b { display: block; font-size: 24px; color: var(--accent); line-height: 1.2; }
.stat span { font-size: 14px; color: var(--muted); }
@media (max-width: 480px) { .stats { gap: 8px; } .stat { padding: 10px; } .stat b { font-size: 17px; } .stat span { font-size: 12.5px; line-height: 1.35; display: block; } }
@media (max-width: 820px) {
  .hero { padding: 28px 0 44px; }
  .hero-in { grid-template-columns: 1fr; gap: 28px; }
  .hero-pic { order: -1; }
  .hero-pic img { aspect-ratio: 16/11; }
}

.sec { padding: 72px 0; }
.sec.alt { background: var(--bg-alt); }
@media (max-width: 760px) { .sec { padding: 52px 0; } }
.txt { white-space: pre-line; }
.two { display: grid; grid-template-columns: 1fr 1.3fr; gap: 44px; align-items: center; }
.pic { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 20px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }

/* услуги */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.svc { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; }
.svc h3 { margin: 0 0 6px; font-size: 20px; }
.svc .meta { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.svc p { margin: 0 0 14px; white-space: pre-line; flex: 1; }
.svc .price { color: var(--accent); font-weight: 800; font-size: 20px; }

/* шаги */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: st; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; counter-increment: st; }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 12px; }
.steps b { display: block; font-size: 18px; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }

/* проверки */
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 18px 0; }
.check { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.check::before { content: "✓"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; }

.price-box { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 16px; padding: 22px 24px;
  white-space: pre-line; font-size: 18px; margin-bottom: 22px; }

/* видео и фото */
.vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.vids figure, .grid figure { margin: 0; }
.vids iframe, .vids video { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 16px; background: #000; display: block; }
.vids figcaption, .grid figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; cursor: zoom-in; display: block; }

/* вопросы */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--muted); white-space: pre-line; }

.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.links a { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 20px; text-decoration: none; color: var(--ink); font-weight: 700; }
.links a.main { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

footer { text-align: center; padding: 28px 16px; color: var(--muted); font-size: 14px; }
.lb { position: fixed; inset: 0; background: rgba(0, 0, 0, .88); display: grid; place-items: center; z-index: 30; cursor: zoom-out; }
.lb img { max-width: 94vw; max-height: 90vh; border-radius: 10px; }
