:root {
  --ink: #0c1220;
  --text: #253047;
  --muted: #6f7888;
  --line: #e6e9ef;
  --soft: #f5f7fa;
  --white: #fff;
  --accent: #2a62ff;
  --accent-dark: #1644c9;
  --radius: 22px;
  --shadow: 0 18px 60px rgba(21, 33, 61, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.55; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(850px, calc(100% - 40px)); }
.section { padding: 104px 0; }
.section-heading { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.section-heading.left { margin-left: 0; text-align: left; }
.section-heading h2, .dark h2, .contact-box h2 { margin: 10px 0 16px; font-size: clamp(34px, 4.3vw, 58px); line-height: 1.04; letter-spacing: -.045em; }
.section-heading p { font-size: 18px; color: var(--muted); margin: 0; }
.eyebrow { display: inline-flex; padding: 8px 11px; border-radius: 999px; background: #eef3ff; color: #234ec8; font-weight: 750; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow.light { background: rgba(255,255,255,.1); color: #dfe7ff; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(12,18,32,.07); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-size: 15px; line-height: 1.15; }
.brand b { display: block; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #fff; font-weight: 900; background: var(--ink); }
.main-nav { display: flex; align-items: center; gap: 25px; }
.main-nav a { text-decoration: none; font-size: 14px; font-weight: 650; color: #30394b; }
.main-nav a:hover { color: var(--accent); }
.nav-cta { background: var(--ink); color: #fff !important; padding: 11px 16px; border-radius: 12px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 9px; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

.hero { min-height: 720px; position: relative; overflow: hidden; background: #f9fafc; }
.hero-image { position: absolute; inset: 0; background: linear-gradient(90deg,#fff 0%,rgba(255,255,255,.96) 28%,rgba(255,255,255,.34) 57%,rgba(255,255,255,0) 75%), url('assets/hero.webp') center/cover no-repeat; }
.hero-grid { min-height: 720px; display: grid; align-items: center; position: relative; }
.hero-copy { max-width: 680px; padding: 70px 0; }
.hero h1 { margin: 17px 0 23px; font-size: clamp(46px, 6.1vw, 82px); line-height: .98; letter-spacing: -.057em; }
.hero h1 span { color: var(--accent); }
.hero-lead { max-width: 650px; font-size: 20px; color: #566174; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 21px; border-radius: 14px; text-decoration: none; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.primary { color: #fff; background: var(--accent); box-shadow: 0 12px 30px rgba(42,98,255,.25); }
.primary:hover { background: var(--accent-dark); }
.secondary { background: rgba(255,255,255,.9); border: 1px solid var(--line); }
.hero-points { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 17px; color: #5a6577; font-size: 14px; font-weight: 650; }
.hero-points span::before { content: '✓'; color: var(--accent); margin-right: 7px; }

.cards { display: grid; gap: 18px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.service-card { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 35px rgba(27, 39, 67, .04); }
.service-card.featured { border-color: #bfd0ff; background: linear-gradient(180deg,#f8faff,#fff 45%); }
.icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: #eef3ff; font-size: 22px; margin-bottom: 28px; }
.card-tag { color: #4b5a70; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.service-card h3 { font-size: 29px; letter-spacing: -.035em; margin: 8px 0 13px; }
.service-card p { color: var(--muted); }
.service-card ul { padding: 0; margin: 22px 0; list-style: none; }
.service-card li { margin: 8px 0; color: #465267; font-size: 14px; }
.service-card li::before { content: '—'; margin-right: 7px; color: var(--accent); }
.price-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.price-note strong { color: var(--ink); font-size: 23px; }

.dark { color: #fff; background: var(--ink); }
.panel-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: center; }
.dark p { color: #aab4c6; max-width: 690px; }
.dark .large-copy { color: #dce3ef; font-size: 21px; }
.light-button { margin-top: 24px; background: #fff; color: var(--ink); }
.comparison-card { border: 1px solid rgba(255,255,255,.13); border-radius: 25px; padding: 30px; background: linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.03)); }
.compare-label { color: #9fb0c9; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px; }
.compare-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 13px; align-items: center; padding: 19px 0; border-bottom: 1px solid rgba(255,255,255,.10); color: #c4ccda; }
.compare-row b { color: #65728a; }
.compare-row.good span:last-child, .compare-row.good b { color: #8eb0ff; }
.compare-cost { margin-top: 26px; padding: 25px; background: #fff; color: var(--ink); border-radius: 18px; }
.compare-cost small { color: #6a7587; display: block; }
.compare-cost strong { display: block; font-size: 44px; letter-spacing: -.04em; margin: 3px 0; }
.compare-cost p { color: #657084; margin: 0; }

.calculator-section { background: var(--soft); }
.calc-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.tariff-table { margin-top: 32px; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; background: #fff; }
.tariff-table > div { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.tariff-table > div:last-child { border-bottom: 0; }
.tariff-table > div:first-child { background: #f7f8fb; color: #5a6577; }
.calculator-card { padding: 34px; background: #fff; border-radius: 26px; box-shadow: var(--shadow); }
.calculator-card fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.calculator-card legend, .area-control label { font-weight: 850; margin-bottom: 13px; display: block; }
.choice { display: flex; gap: 12px; align-items: center; margin: 10px 0; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.choice:has(input:checked) { border-color: #90abff; background: #f4f7ff; }
.choice input { accent-color: var(--accent); }
.choice span { display: flex; width: 100%; justify-content: space-between; gap: 16px; align-items: baseline; }
.choice small { color: var(--muted); }
.input-wrap { position: relative; }
.input-wrap input { width: 100%; height: 62px; border: 1px solid #cfd5df; border-radius: 14px; padding: 0 65px 0 18px; font-size: 24px; font-weight: 800; outline: none; }
.input-wrap input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(42,98,255,.10); }
.input-wrap span { position: absolute; right: 18px; top: 19px; color: var(--muted); }
#area-range { width: 100%; margin: 15px 0 0; accent-color: var(--accent); }
.result-box { margin: 28px 0 16px; padding: 24px; border-radius: 18px; background: var(--ink); color: #fff; }
.result-box span { color: #aeb8ca; font-size: 13px; }
.result-box strong { display: block; font-size: clamp(34px,5vw,52px); letter-spacing: -.05em; }
.result-box p { margin: 4px 0 0; color: #aeb8ca; }
.full { width: 100%; }
.fine-print { margin: 13px 0 0; text-align: center; color: var(--muted); font-size: 12px; }

.process { background: #fff; }
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; }
.step { padding: 26px; border-top: 2px solid var(--line); }
.step > span { font-size: 13px; color: var(--accent); font-weight: 900; }
.step h3 { margin: 40px 0 8px; font-size: 22px; }
.step p { color: var(--muted); font-size: 14px; }

.faq { background: #fbfbfc; }
details { border-top: 1px solid var(--line); padding: 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; position: relative; padding: 23px 45px 23px 0; font-size: 19px; font-weight: 800; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 6px; top: 20px; font-size: 25px; color: var(--accent); }
details[open] summary::after { content: '–'; }
details p { margin: -4px 0 25px; padding-right: 50px; color: var(--muted); }

.contact-section { padding: 26px 0 90px; background: #fbfbfc; }
.contact-box { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 48px; border-radius: 28px; color: #fff; background: linear-gradient(135deg,#2158ee,#123aa8); }
.contact-box h2 { font-size: clamp(32px,4vw,52px); max-width: 850px; }
.contact-box p { color: #dce5ff; max-width: 800px; }
.white { background: #fff; color: #1740b5; white-space: nowrap; }

.footer { padding: 30px 0; border-top: 1px solid var(--line); color: #667185; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 28px; align-items: center; font-size: 13px; }
.footer-grid div b, .footer-grid div span { display: block; }
.footer-grid div b { color: var(--ink); font-size: 15px; }
.footer a { color: var(--accent); text-decoration: none; font-weight: 700; }

@media (max-width: 950px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 76px; left: 20px; right: 20px; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; }
  .cards.three, .steps { grid-template-columns: 1fr 1fr; }
  .panel-grid, .calc-grid { grid-template-columns: 1fr; gap: 45px; }
  .hero-image { opacity: .46; background-position: 55% center; }
  .hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#fff 0%,rgba(255,255,255,.97) 44%,rgba(255,255,255,.68) 100%); }
  .contact-box { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .container, .narrow { width: min(100% - 28px, 1180px); }
  .section { padding: 72px 0; }
  .hero, .hero-grid { min-height: 675px; }
  .hero-copy { padding: 55px 0; }
  .hero h1 { font-size: 48px; }
  .hero-lead { font-size: 17px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .cards.three, .steps { grid-template-columns: 1fr; }
  .service-card { padding: 24px; }
  .calculator-card { padding: 20px; border-radius: 20px; }
  .choice span { flex-direction: column; gap: 2px; }
  .tariff-table > div { grid-template-columns: 1.05fr 1fr 1fr; padding: 10px; font-size: 11px; }
  .compare-row { font-size: 13px; }
  .contact-box { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Messenger contact buttons */
.messenger-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.panel-actions { margin-top: 24px; }
.panel-actions .light-button { margin-top: 0; }
.max-button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.42); }
.max-button:hover { background: rgba(255,255,255,.08); }
.calc-actions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 4px; }
.max-primary { background: #111827; color: #fff; }
.contact-actions { justify-content: flex-end; }
.max-white { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.max-white:hover { background: rgba(255,255,255,.10); }
.footer-links { display: flex; gap: 18px; align-items: center; }

@media (max-width: 720px) {
  .messenger-actions, .calc-actions, .contact-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .messenger-actions .button { width: 100%; }
  .footer-links { gap: 16px; }
}
