/* ============================================================
   ТЕГУЛА — сайт ИП Андропов
   Светлая тема, индиго-акцент, адаптив от 320px
   ============================================================ */

:root {
  --bg: #f5f4f9;
  --surface: #ffffff;
  --surface-2: #efedf6;
  --ink: #1c1b19;
  --ink-2: #46424c;
  --muted: #6e6a78;
  --line: #e2e0ea;
  --line-strong: #cfccdd;
  --accent: #3b3b6d;
  --accent-2: #2e2e57;
  --accent-soft: #ecebf5;
  --ok: #2f7d5b;
  --err: #a63d3d;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28, 27, 25, .04), 0 12px 32px rgba(28, 27, 25, .06);
  --shadow-lg: 0 2px 6px rgba(28, 27, 25, .05), 0 24px 60px rgba(59, 59, 109, .12);

  --container: 1180px;
  --header-h: 78px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 14px;
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(30px, 4.2vw, 46px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 19px; }
p { margin: 0 0 15px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
ul, ol { margin: 0 0 15px; padding-left: 22px; }
li { margin-bottom: 7px; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

.muted { color: var(--muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm);
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease,
              border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(59, 59, 109, .18);
}
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 10px 26px rgba(59, 59, 109, .26); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn-light { background: #fff; color: var(--accent); }
.btn-light:hover { background: #f1f0f8; }
.btn-sm { padding: 9px 15px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 244, 249, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand svg { height: 40px; width: auto; display: block; }
.logo { display: block; }
.logo-mark { stroke: var(--accent); }
.logo-text { fill: var(--ink); }
.brand-slogan {
  display: none;
  padding-left: 14px;
  margin-left: 2px;
  border-left: 1px solid var(--line-strong);
  font-size: 10.5px;
  letter-spacing: .17em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--muted);
  max-width: 150px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  font-size: 14.5px;
  color: var(--ink-2);
}
.header-nav a { position: relative; padding: 6px 0; }
.header-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.header-nav a:hover { color: var(--accent); }
.header-nav a:hover::after { transform: scaleX(1); }
.header-side {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}
.header-phone {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  letter-spacing: -.01em;
}
.header-phone:hover { color: var(--accent); }

.burger {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.burger span,
.burger span::before,
.burger span::after {
  position: absolute;
  left: 12px;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.burger span { top: 21px; }
.burger span::before { content: ""; left: 0; top: -6px; }
.burger span::after { content: ""; left: 0; top: 6px; }
.burger[aria-expanded="true"] span { transform: rotate(45deg); }
.burger[aria-expanded="true"] span::before { transform: rotate(-90deg) translateX(-6px); }
.burger[aria-expanded="true"] span::after { opacity: 0; }

.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.mobile-nav.open { display: block; }
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 10px 0 18px;
}
.mobile-nav li { margin: 0; }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 14px; }
.mobile-nav .mobile-phone {
  font-size: 18px;
  font-weight: 650;
  padding: 14px 0 4px;
  border: 0;
}

/* ---------- Hero ---------- */
.hero { padding: 46px 0 0; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 44px;
  align-items: center;
  padding-bottom: 46px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero h1 { margin-bottom: 18px; }
.hero-lead {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--ink-2);
  max-width: 34em;
  margin-bottom: 24px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 14px;
  color: var(--ink-2);
}
.hero-points li {
  position: relative;
  margin: 0;
  padding-left: 22px;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0; top: .52em;
  width: 13px; height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  border-radius: 1px;
}
.hero-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.35;
  background: var(--surface-2);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,27,25,0) 45%, rgba(20,20,40,.55) 100%);
}
.hero-note {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 30px rgba(20, 20, 40, .2);
  font-size: 13.5px;
  line-height: 1.45;
}
.hero-note b { display: block; font-size: 14px; }
.hero-note .dot {
  flex: none;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(47, 125, 91, .14);
}

/* ---------- Полоса фактов ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact {
  padding: 24px 22px;
  border-right: 1px solid var(--line);
}
.fact:last-child { border-right: 0; }
.fact b {
  display: block;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 650;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.fact span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.45; }

/* ---------- Секции ---------- */
.section { padding: 62px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-lead {
  font-size: 16.5px;
  color: var(--muted);
  margin: 0;
  max-width: 62ch;
}
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Карточки услуг ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}
.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  overflow: hidden;
}
.card-media img,
.card-media svg.card-art {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.card-media svg.card-art { transition: transform .5s ease; }
.card:hover .card-media svg.card-art { transform: scale(1.03); }
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 30px 22px 22px;
}
.card-icon {
  position: absolute;
  left: 16px;
  bottom: -22px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(28, 27, 25, .1);
  color: var(--accent);
  flex: none;
}
.card-icon svg { width: 22px; height: 22px; display: block; }
.card h3 { font-size: 17.5px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--muted); margin: 0; }
.card-meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
  opacity: .75;
}

/* ---------- Шаги ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--accent);
}
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- Преимущества ---------- */
.advantages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.advantages li {
  position: relative;
  margin: 0;
  padding: 2px 0 2px 40px;
}
.advantages li::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
}
.advantages li::after {
  content: "";
  position: absolute;
  left: 8px; top: 9px;
  width: 10px; height: 5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.advantages b { display: block; font-size: 15.5px; margin-bottom: 2px; }
.advantages span { font-size: 14.5px; color: var(--muted); }

/* ---------- Блок с фото и текстом ---------- */
.about-split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 42px;
  align-items: center;
}
.about-media {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-copy .checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}
.about-copy .checklist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 12px;
  color: var(--ink-2);
}
.about-copy .checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .35em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
}
.about-copy .checklist li::after {
  content: "";
  position: absolute;
  left: 5px; top: .62em;
  width: 8px; height: 4px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- CTA-полоса ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 44px;
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.cta-band::after {
  content: "";
  position: absolute;
  right: 40px; bottom: -120px;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
}
.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 28px;
  align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .8); max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Контакты ---------- */
.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: start;
}
.contact-list {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.contact-list li {
  margin: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.contact-list dt,
.contact-list .label {
  display: block;
  margin-bottom: 3px;
  font-size: 11.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list a,
.contact-list .value {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.contact-list a:hover { color: var(--accent); }

.req-card {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.req-card h3 { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.req-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0;
  font-size: 14px;
}
.req-card dt { color: var(--muted); }
.req-card dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.req-card dd.num {
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 13.5px;
  letter-spacing: .01em;
}
.req-card + .req-card { margin-top: 14px; }
.req-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.req-grid .req-card { margin-top: 0; }
.req-grid .req-card dd a { color: var(--accent); }
.note-req {
  margin: 20px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14.5px;
  color: var(--ink-2);
}
.note-req a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 760px) {
  .req-grid { grid-template-columns: minmax(0, 1fr); }
}
.req-more { margin: 12px 0 0; font-size: 13.5px; }
.req-more a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Форма ---------- */
.lead-form {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.lead-form h2 { font-size: 21px; margin-bottom: 6px; }
.lead-form .form-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}
.field { margin-bottom: 14px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #a7a3ae; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 59, 109, .12);
}
.field.invalid input,
.field.invalid textarea { border-color: var(--err); }
.field-error {
  display: none;
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--err);
}
.field.invalid .field-error { display: block; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.consent input {
  flex: none;
  width: 18px; height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.consent.invalid { color: var(--err); }

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.form-status.ok { display: block; background: rgba(47, 125, 91, .1); color: var(--ok); }
.form-status.err { display: block; background: rgba(166, 61, 61, .09); color: var(--err); }
.form-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- Подвал ---------- */
.site-footer {
  margin-top: 10px;
  padding: 44px 0 28px;
  background: #1c1b19;
  color: #ddd9d2;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.site-footer .brand svg { height: 42px; }
.site-footer .logo-text { fill: #f5f4f9; }
.site-footer .logo-mark { stroke: #9c9cc4; }
.footer-about { margin: 16px 0 0; font-size: 14px; color: #a8a39c; max-width: 34ch; }
.footer-col h4 {
  margin: 0 0 14px;
  font-size: 11.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #8d887f;
  font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; font-size: 14.5px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 12.5px;
  color: #8d887f;
}
.footer-bottom p { margin: 0; }
.footer-legal { max-width: 62ch; }

/* ---------- Стоимость ---------- */
.cost-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.cost-item {
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cost-item b { display: block; margin-bottom: 6px; font-size: 15.5px; }
.cost-item span { display: block; font-size: 14.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details {
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.faq summary {
  position: relative;
  padding: 17px 52px 17px 20px;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq-body {
  padding: 15px 20px 19px;
  font-size: 14.5px;
  color: var(--ink-2);
}

/* ---------- Текстовые страницы ---------- */
.page-hero {
  padding: 44px 0 34px;
  border-bottom: 1px solid var(--line);
}
.breadcrumbs {
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 7px; opacity: .5; }
.prose { max-width: 78ch; }
.prose h2 { margin-top: 34px; font-size: 23px; }
.prose h3 { margin-top: 26px; }
.prose ul, .prose ol { color: var(--ink-2); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14.5px;
}
.prose th, .prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose th { background: var(--surface-2); font-weight: 600; }

/* ---------- 404 ---------- */
.notfound {
  display: grid;
  place-items: center;
  min-height: 62vh;
  padding: 60px 0;
  text-align: center;
}
.notfound .code {
  font-size: clamp(64px, 14vw, 132px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--accent);
  opacity: .16;
}
.notfound h1 { margin-top: -18px; }
.notfound p { color: var(--muted); max-width: 46ch; margin: 0 auto 24px; }

/* ---------- Анимация появления ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Мобильная панель связи ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(28, 27, 25, .07);
}
.mobile-bar .btn { flex: 1; }
.mobile-bar .btn-ghost { background: #fff; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (min-width: 1080px) {
  .brand-slogan { display: block; }
}

@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cost-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(1),
  .fact:nth-child(2) { border-bottom: 1px solid var(--line); }
  .hero-inner { gap: 28px; }
}

@media (max-width: 900px) {
  .header-nav { display: none; }
  .header-side .btn { display: none; }
  .burger { display: block; margin-left: auto; }
  .header-phone { font-size: 14.5px; }
  .hero-inner,
  .about-split,
  .contacts-grid,
  .cta-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-media { aspect-ratio: 16 / 10; order: -1; }
  .about-media { aspect-ratio: 16 / 10; }
  .cta-band { padding: 34px 26px; }
  .cta-actions { margin-top: 4px; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .section { padding: 46px 0; }
  .hero { padding-top: 30px; }
  .hero-inner { padding-bottom: 34px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .advantages { grid-template-columns: minmax(0, 1fr); }
  .cost-grid { grid-template-columns: minmax(0, 1fr); }
  .mobile-bar { display: flex; }
  body { padding-bottom: 72px; }
  .lead-form { padding: 20px; }
  .cta-band { border-radius: 18px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .site-footer { padding-bottom: 22px; }
}

@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .brand svg { height: 34px; }
  .header-phone { display: none; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 4px; }
  .fact:last-child { border-bottom: 0; }
  .hero-actions .btn { width: 100%; }
  .hero-note { left: 12px; right: 12px; bottom: 12px; font-size: 12.5px; }
  .req-card dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .req-card dd { margin-bottom: 10px; }
  .cta-actions .btn { width: 100%; }
}