:root {
  --bg: #ffffff;
  --bg-alt: #f5f6fb;
  --text: #14172b;
  --muted: #5b6078;
  --line: #e3e6f0;
  --accent: #3b4bd8;
  --accent-hover: #2f3cb8;
  --accent-soft: #eceefe;
  --success: #13795b;
  --success-soft: #e6f5ef;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 6px 20px rgba(20, 23, 43, .06);
  --shadow-lg: 0 20px 50px rgba(20, 23, 43, .10);
  --container: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--accent); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Иконки: спрайт в начале страницы, вызов через <svg class="icon"><use href="#i-..."></svg> */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: middle;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.3; text-align: center; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Шапка */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(8px);
}
.header-inner { display: flex; align-items: center; min-height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); font-weight: 700; text-decoration: none; }
.logo > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: #fff; flex-shrink: 0; }
.logo-mark svg { width: 18px; height: 18px; }

.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap; }
.site-nav a:hover { color: var(--text); }
.site-nav .nav-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: var(--accent); border: 1px solid var(--accent); padding: 8px 16px; border-radius: 8px; }
.site-nav .nav-cta:hover { background: var(--accent); color: #fff; }

.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lang-switch { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px;
  border-radius: 8px; color: var(--muted); font-size: .85rem; font-weight: 700; text-decoration: none;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 11px; width: 20px; height: 2px; background: var(--text); content: ""; transition: transform .15s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -6px; }
.nav-toggle-bar::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* Первый экран */
.hero { padding: 88px 0; background: linear-gradient(180deg, var(--accent-soft) 0%, #fff 100%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 5px 12px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line);
  color: var(--accent); font-size: .85rem; font-weight: 600;
}
.eyebrow .icon { width: 1em; height: 1em; }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); max-width: 620px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--accent); width: 1.1em; height: 1.1em; }

/* Иллюстрация медиаплана (декоративная) */
.hero-visual { position: relative; padding: 0 0 120px 48px; }
.plan-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-lg); }
.plan-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.plan-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.plan-icon .icon { width: 20px; height: 20px; }
.plan-title { font-weight: 700; }
.plan-list { list-style: none; margin: 0; padding: 0; }
.plan-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.plan-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.plan-dot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; color: #fff; }
.plan-dot .icon { width: 12px; height: 12px; stroke-width: 3; }
.is-done .plan-dot { background: var(--accent); border-color: var(--accent); }
.is-active .plan-dot { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px #fff; }
.plan-tag { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.is-done .plan-tag { background: var(--success-soft); color: var(--success); }
.is-active .plan-tag { background: var(--accent-soft); color: var(--accent); }
.post-card {
  position: absolute; left: 0; bottom: 0; width: 60%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-lg);
}
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.post-avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; flex-shrink: 0; }
.post-avatar .icon { width: 18px; height: 18px; }
.post-meta { display: flex; flex-direction: column; line-height: 1.3; }
.post-channel { font-weight: 700; font-size: .9rem; }
.post-label { color: var(--muted); font-size: .75rem; }
.skeleton { display: block; height: 9px; margin-top: 10px; border-radius: 6px; background: #e6e8f2; }
.post-button { display: block; height: 32px; margin-top: 14px; border-radius: 8px; background: var(--accent-soft); }

/* Секции */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); margin: 0; }

/* Услуги (плитки) */
.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .15s, box-shadow .15s; }
.tile:hover { border-color: #c9cef5; box-shadow: var(--shadow); }
.tile-wide { grid-column: span 2; }
.tile p { color: var(--muted); margin: 0; }
.tile-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.tile-icon .icon { width: 22px; height: 22px; }
.tile-dark { background: var(--text); border-color: var(--text); color: #fff; }
.tile-dark:hover { border-color: var(--text); }
.tile-dark p { color: #c3c7da; }
.tile-dark .tile-icon { background: rgba(255, 255, 255, .1); color: #fff; }

/* Этапы */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.step::before {
  content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px;
  border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700;
}
.step p { color: var(--muted); margin: 0; }

/* Две колонки */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; }
.icon-list, .check-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.icon-list li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.icon-box { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--accent); flex-shrink: 0; }
.icon-box .icon { width: 20px; height: 20px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; }
.check-list .icon { margin-top: .15em; color: var(--accent); stroke-width: 2.5; }
.note { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }

/* Стоимость */
.chip-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li { background: var(--accent-soft); color: var(--accent); padding: 6px 12px; border-radius: 999px; font-size: .92rem; font-weight: 600; }
.price-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; transition: border-color .15s, box-shadow .15s; }
.price-card:hover { border-color: #c9cef5; box-shadow: var(--shadow); }
.price { margin: 4px 0 16px; font-size: clamp(1.9rem, 3.4vw, 2.4rem); font-weight: 750; line-height: 1.1; letter-spacing: -.02em; color: var(--accent); }
.price-from { margin-right: 6px; font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.price-card > p:not(.price) { color: var(--muted); margin: 0 0 24px; }
.price-card .btn { margin-top: auto; }
.pricing-footer { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 40px; text-align: center; }
.offer-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.offer-link:hover { color: var(--accent); }

/* Контакты */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 820px; }
.contact-card {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.contact-card:hover { border-color: var(--accent); box-shadow: 0 6px 20px rgba(59, 75, 216, .1); }
.contact-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.contact-icon-tg { background: var(--accent); color: #fff; }
.contact-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-label { font-size: .85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.contact-value { font-size: 1.15rem; font-weight: 650; overflow-wrap: anywhere; }
.contact-action { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--accent); font-weight: 600; }
.contact-action .icon { width: 1em; height: 1em; }

.is-disabled { cursor: not-allowed; opacity: .6; }
.contact-card.is-disabled:hover { border-color: var(--line); box-shadow: none; }
.contact-card.is-disabled .contact-action { display: none; }

/* Подвал */
.site-footer { background: var(--text); color: #e6e8f2; padding: 56px 0 24px; }
.site-footer .muted { color: #a3a8c0; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; }
.footer-about { max-width: 520px; }
.footer-name { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: #fff; margin-bottom: 12px; }
.footer-contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.footer-contacts a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.footer-contacts a:not(.is-disabled):hover { text-decoration: underline; }
.footer-bottom { margin-top: 40px; }
.footer-bottom-inner { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); text-align: center; }
.footer-bottom p { margin: 0; font-size: .9rem; }
.footer-offer { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; }
.footer-offer:hover { text-decoration-color: #fff; }
.site-footer-compact { padding: 24px 0; }
.site-footer-compact .footer-bottom { margin-top: 0; }
.site-footer-compact .footer-bottom-inner { padding-top: 0; border-top: 0; }

/* Договор оферты */
.doc { max-width: 800px; }
.doc-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 12px; font-weight: 600; text-decoration: none; }
.doc-back:hover { text-decoration: underline; }
.doc h1 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); margin-bottom: .3em; }
.doc-subtitle { font-size: 1.1rem; color: var(--muted); margin-bottom: 4px; }
.doc-meta { color: var(--muted); font-size: .95rem; margin-bottom: 32px; }
.doc h2 { font-size: 1.25rem; margin: 2em 0 .6em; }
.doc a { overflow-wrap: anywhere; }
.doc p { overflow-wrap: break-word; }
.doc-requisites { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; padding: 24px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); }
.doc-requisites dt { color: var(--muted); }
.doc-requisites dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Планшеты */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .header-tools { margin-left: auto; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { display: flex; align-items: center; min-height: 48px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav .nav-cta { margin-top: 12px; justify-content: center; border-bottom: 1px solid var(--accent); }

  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 520px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-wide { grid-column: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}

/* Мобильные */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding: 64px 0 56px; }
  .hero-visual { display: none; }
  .section { padding: 64px 0; }
  .hero-actions .btn { flex: 1 1 100%; }
  .bento, .steps, .price-grid, .contact-grid { grid-template-columns: 1fr; }
  .tile, .step, .contact-card { padding: 22px; }
  .panel { padding: 24px 20px; }
  .price-card { padding: 24px 22px; }
  .footer-inner { flex-direction: column; }
  .doc-requisites { grid-template-columns: 1fr; gap: 2px; padding: 20px; }
  .doc-requisites dd { margin-bottom: 10px; }
}

/* Печать (договор оферты) */
@media print {
  .site-header, .site-footer, .skip-link, .doc-back { display: none; }
  .section { padding: 0; }
  body { font-size: 12pt; }
}
