/* ==========================================================================
   МастерБыт — базовые стили лендинга
   Структура: переменные → сброс → типографика → компоненты → секции → адаптив
   ========================================================================== */

/* ---------- Переменные ---------- */
:root {
  --ink: #0f2536;
  --ink-2: #1b3a50;
  --muted: #5c7385;
  --muted-2: #7d92a3;
  --accent: #17a673;
  --accent-2: #34d399;
  --accent-dark: #0f7f57;
  --bg: #ffffff;
  --bg-alt: #f4f8fa;
  --line: #e3eaef;
  --warn: #f0a93b;
  --wa: #25d366;
  --tg: #2aabee;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 37, 54, .06), 0 2px 8px rgba(15, 37, 54, .04);
  --shadow: 0 4px 12px rgba(15, 37, 54, .06), 0 16px 40px rgba(15, 37, 54, .08);
  --shadow-lg: 0 24px 60px rgba(15, 37, 54, .14);

  --container: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          "Noto Sans", "PT Sans", Arial, sans-serif;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

html { overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

/* ---------- Типографика ---------- */
h1 {
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  line-height: 1.1;
  letter-spacing: -.025em;
  font-weight: 800;
}
h1 em {
  font-style: normal;
  color: var(--accent-dark);
  background: linear-gradient(transparent 68%, rgba(52, 211, 153, .32) 68%);
}
h2 {
  font-size: clamp(1.55rem, 2.9vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -.02em;
  font-weight: 800;
}
h3 {
  font-size: 1.14rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.01em;
}

.lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--muted);
  max-width: 56ch;
}

/* ---------- Служебное ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 860px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

.i {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-weight: 650;
  font-size: .98rem;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s var(--ease), background-color .16s, box-shadow .16s, border-color .16s, color .16s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(23, 166, 115, .28);
}
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 8px 22px rgba(23, 166, 115, .34); }

.btn-outline {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--ink); }

.btn-ghost {
  background: rgba(255, 255, 255, .72);
  border-color: rgba(15, 37, 54, .14);
  color: var(--ink);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: #fff; }

.btn-wa { background: var(--wa); color: #063d1e; }
.btn-wa:hover { background: #1fbe5b; }
.btn-tg { background: var(--tg); color: #062a3d; }
.btn-tg:hover { background: #1a9ede; }

.btn-sm { padding: 10px 16px; font-size: .9rem; border-radius: 10px; }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; border-radius: 13px; }
.btn-block { width: 100%; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(15, 37, 54, .06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}

.logo { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.logo-mark { width: 38px; height: 38px; border-radius: 11px; }
.logo-text { font-size: 1.16rem; font-weight: 600; letter-spacing: -.02em; }
.logo-text strong { font-weight: 800; color: var(--accent-dark); }

.nav {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}
.nav a {
  padding: 8px 12px;
  border-radius: 9px;
  font-size: .94rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s, background-color .15s;
}
.nav a:hover { color: var(--ink); background: var(--bg-alt); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: .95rem;
  letter-spacing: -.01em;
}
.header-phone .i { color: var(--accent); }
.header-phone:hover { color: var(--accent-dark); }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s var(--ease), opacity .2s;
}
.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 84px;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(52, 211, 153, .16), transparent 62%),
    radial-gradient(700px 420px at 6% 8%, rgba(23, 166, 115, .07), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 18px;
}
.eyebrow .dot {
  margin-top: .5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(23, 166, 115, .15);
}

.hero h1 { max-width: 17ch; }
.hero .lead { margin-top: 20px; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  font-size: .92rem;
  color: var(--muted);
  font-weight: 500;
}
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points .i { width: 17px; height: 17px; color: var(--accent); stroke-width: 2.4; }

/* Hero visual: «гарантийный талон» */
.hero-visual { position: relative; min-height: 420px; display: grid; place-items: center; }

.card-doc {
  position: relative;
  width: min(360px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px 22px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2.2deg);
}
.card-doc::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(15, 37, 54, .1);
  border-radius: 16px;
  pointer-events: none;
}
.card-doc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.card-doc-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.card-doc-num { font-size: .76rem; color: var(--muted-2); font-variant-numeric: tabular-nums; }

.card-doc-line {
  height: 9px;
  border-radius: 6px;
  background: #eef3f6;
  margin-bottom: 11px;
}
.card-doc-line.w-90 { width: 90%; }
.card-doc-line.w-80 { width: 80%; }
.card-doc-line.w-70 { width: 70%; }
.card-doc-line.w-50 { width: 50%; }

.card-doc-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.stamp {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-dark);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.25;
  text-align: center;
  transform: rotate(-11deg);
  background: rgba(52, 211, 153, .07);
}
.stamp strong { font-size: .86rem; letter-spacing: 0; }
.card-doc-meta { display: grid; gap: 4px; font-size: .72rem; color: var(--muted-2); text-align: right; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 14px;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.float-card .i { width: 24px; height: 24px; color: var(--accent); }
.float-card strong { display: block; font-size: .84rem; line-height: 1.2; }
.float-card span { display: block; font-size: .72rem; color: var(--muted-2); line-height: 1.2; }

.float-card-1 { top: 2%; left: -9%; }
.float-card-2 { bottom: -2%; right: -7%; animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Статистика ---------- */
.stats {
  background: var(--ink);
  color: #fff;
  padding: 34px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--accent-2);
}
.stat span { font-size: .88rem; color: rgba(255, 255, 255, .66); }

/* ---------- Секции ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head h2 { max-width: 22ch; }
.section-sub { margin-top: 14px; color: var(--muted); font-size: 1.02rem; }

/* ---------- Сетки и карточки ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.gaps { gap: 20px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}

.service { display: flex; flex-direction: column; gap: 12px; }
.service:hover, .feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #cfdde6;
}
.service h3 { margin-top: 4px; }
.service p { color: var(--muted); font-size: .95rem; flex: 1; }

.icon-wrap {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: rgba(23, 166, 115, .1);
  color: var(--accent-dark);
}
.icon-wrap .i { width: 26px; height: 26px; stroke-width: 1.65; }

.price-tag {
  align-self: flex-start;
  margin-top: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: .84rem;
  font-weight: 700;
  color: var(--ink-2);
}

/* ---------- Шаги ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: .93rem; color: var(--muted); }

/* ---------- Преимущества ---------- */
.feature { display: flex; flex-direction: column; gap: 12px; }
.feature p { color: var(--muted); font-size: .94rem; }
.feature h3 { margin-top: 2px; }

/* ---------- Цены ---------- */
.price-card { display: flex; flex-direction: column; gap: 16px; position: relative; padding: 30px 26px; }
.price-card h3 { font-size: 1.06rem; color: var(--ink-2); }
.price { display: flex; flex-direction: column; gap: 2px; }
.price strong { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price span { font-size: .84rem; color: var(--muted-2); }

.check-list { display: grid; gap: 10px; margin: 4px 0 6px; flex: 1; }
.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: .93rem;
  color: var(--muted);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(23, 166, 115, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317a673' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 166, 115, .12), var(--shadow);
  transform: translateY(-6px);
}
.badge {
  position: absolute;
  top: -12px;
  left: 26px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.price-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-size: .88rem;
  color: var(--muted);
}
.price-note .i { color: var(--warn); }

/* ---------- Отзывы ---------- */
.review { display: flex; flex-direction: column; gap: 14px; }
.stars { color: #f5b70a; letter-spacing: 3px; font-size: 1.05rem; }
.review blockquote { font-size: .95rem; color: var(--ink-2); line-height: 1.65; }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 6px; }
.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d9f2e6, #b9e6d2);
  color: var(--accent-dark);
  font-weight: 800;
  flex: none;
}
.review figcaption strong { display: block; font-size: .92rem; }
.review figcaption small { display: block; font-size: .78rem; color: var(--muted-2); }

.reviews-note {
  margin-top: 28px;
  font-size: .9rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 20px;
  transition: border-color .18s, box-shadow .18s;
}
.faq details[open] {
  border-color: #cfdde6;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-weight: 650;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--bg-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2536' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 13px no-repeat;
  transition: transform .2s var(--ease), background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: rgba(23, 166, 115, .14); }
.faq details p { padding: 0 0 18px; color: var(--muted); font-size: .95rem; max-width: 68ch; }

/* ---------- Контакты ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 56px;
  align-items: start;
}

.contact-copy h2 { max-width: 16ch; }
.contact-copy .section-sub { max-width: 44ch; }

.contact-list { display: grid; gap: 18px; margin: 32px 0 28px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; font-size: .95rem; }
.contact-list .i { color: var(--accent); margin-top: 3px; }
.contact-list strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted-2); font-weight: 700; }
.contact-list a:hover { color: var(--accent-dark); }

.messengers { display: flex; gap: 12px; flex-wrap: wrap; }

.contact-form { padding: 30px; }
.contact-form h3 { font-size: 1.25rem; }
.form-sub { font-size: .9rem; color: var(--muted); margin-top: 6px; margin-bottom: 22px; }

.field { display: block; margin-bottom: 16px; }
.field > span {
  display: block;
  font-size: .82rem;
  font-weight: 650;
  margin-bottom: 7px;
  color: var(--ink-2);
}
.field > span em { font-style: normal; font-weight: 400; color: var(--muted-2); }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  background: #fff;
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .16s, box-shadow .16s;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input::placeholder, .field textarea::placeholder { color: #9fb0bd; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(23, 166, 115, .13);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #e05454; }

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .82rem;
  color: var(--muted);
  margin: 6px 0 18px;
  cursor: pointer;
}
.checkbox input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.checkbox a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }

.form-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: .78rem;
  color: var(--muted-2);
}
.form-note .i { width: 15px; height: 15px; }

.form-status { margin-top: 12px; font-size: .88rem; font-weight: 600; }
.form-status.ok { color: var(--accent-dark); }
.form-status.err { color: #d64545; }

/* ---------- Подвал ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .78);
  padding: 60px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 40px;
}
.site-footer .logo-text { color: #fff; }
.site-footer .logo-text strong { color: var(--accent-2); }
.footer-about { margin-top: 16px; font-size: .88rem; max-width: 34ch; color: rgba(255, 255, 255, .6); }
.footer-nav, .footer-contacts { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-nav h4, .footer-contacts h4 {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .45);
  margin-bottom: 4px;
}
.footer-nav a, .footer-contacts a { font-size: .9rem; }
.footer-nav a:hover, .footer-contacts a:hover { color: var(--accent-2); }
.footer-contacts p { font-size: .86rem; color: rgba(255, 255, 255, .55); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .78rem;
  color: rgba(255, 255, 255, .45);
}

/* ---------- Правовые страницы ---------- */
.legal { padding: 56px 0 88px; }
.legal h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.legal .updated { color: var(--muted-2); font-size: .86rem; margin-top: 10px; }
.legal article { max-width: 780px; }
.legal h2 { font-size: 1.25rem; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: .96rem; margin-bottom: 10px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.legal .back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 26px; font-size: .9rem; font-weight: 600; color: var(--accent-dark); }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .9rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--bg-alt); font-weight: 650; }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .hero-grid { gap: 36px; }
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 12px 20px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(15, 37, 54, .1);
  }
  .nav.is-open a { padding: 12px 10px; font-size: 1rem; }
  .burger { display: block; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { max-width: 560px; }
}

@media (max-width: 860px) {
  .hero { padding: 44px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; order: 2; }
  .card-doc { transform: none; width: min(420px, 100%); }
  .float-card-1 { left: 2%; top: 0; }
  .float-card-2 { right: 2%; bottom: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
  .section { padding: 68px 0; }
  .price-card.featured { transform: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { height: 68px; gap: 12px; }
  .header-phone span { display: none; }
  .header-phone { padding: 8px; }
  .header-actions { gap: 8px; }
  .nav.is-open { top: 68px; }

  .container { padding: 0 18px; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 32px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-points { display: grid; gap: 8px; }

  .contact-form { padding: 22px; }
  .header-actions .btn-primary { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .float-card { padding: 9px 11px; }
  .float-card strong { font-size: .78rem; }
  .float-card span { font-size: .68rem; }
  .card-doc { padding: 22px 20px 18px; }
  .stamp { width: 72px; height: 72px; font-size: .56rem; }
}

@media (max-width: 380px) {
  .logo-text { font-size: 1rem; }
}

/* ---------- Доступность ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
