/* ==========================================================================
   Горький+ — единая дизайн-система сайта (mobile-first)
   Палитра: оранжевый #E85D00 (текст/кнопки, контраст AA), тёмно-синий #16324F
   ========================================================================== */
:root {
  --brand: #E85D00;
  --brand-dark: #C94F00;
  --brand-ink: #7A2E00;
  --navy: #16324F;
  --navy-2: #1F4368;
  --accent: #FFC107;
  --ok: #0F7B4D;
  --ok-bg: #E7F6EE;
  --warn: #9A6400;
  --warn-bg: #FFF6E5;
  --bad: #B3261E;
  --bad-bg: #FDECEA;
  --text: #1D2733;
  --text-2: #48566A;
  --muted: #6B7A90;
  --line: #E2E8F0;
  --bg: #F6F8FB;
  --card: #FFFFFF;
  --radius: 14px;
  --radius-s: 10px;
  --shadow: 0 6px 24px rgba(22, 50, 79, .08);
  --shadow-s: 0 2px 10px rgba(22, 50, 79, .06);
  --container: 1160px;
  --header-h: 60px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: Montserrat, "Open Sans", system-ui, sans-serif; color: var(--navy); line-height: 1.22; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 4.6vw, 2.5rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 3.4vw, 1.9rem); font-weight: 800; margin-top: 1.6em; }
h3 { font-size: clamp(1.1rem, 2.6vw, 1.35rem); font-weight: 700; margin-top: 1.3em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }
strong, b { color: var(--navy); }
small { color: var(--muted); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 0; }

/* ── Шапка ── */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-s); }
.header__in { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font-family: Montserrat, sans-serif; font-weight: 800; font-size: 1.12rem; color: var(--navy); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; display: grid; place-items: center; font-size: 1rem; font-weight: 900; flex: 0 0 auto; }
.nav { margin-left: auto; display: none; align-items: center; gap: 4px; }
.nav a { color: var(--text-2); font-weight: 600; font-size: .92rem; padding: 10px 10px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { color: var(--navy); background: var(--bg); text-decoration: none; }
.nav a.is-active { color: var(--brand-ink); background: #FFF1E8; }
.header__phone { display: none; margin-left: auto; text-align: right; line-height: 1.2; }
.header__phone a { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 1rem; color: var(--navy); white-space: nowrap; }
.header__phone span { display: block; font-size: .72rem; color: var(--muted); }
.header__cta { display: none; }
.burger { margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--navy); position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy); transition: .2s; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.nav--open { display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; top: var(--header-h); background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 16px 16px; margin: 0; }
.nav--open a { padding: 14px 10px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
@media (min-width: 992px) {
  :root { --header-h: 68px; }
  .nav { display: flex; }
  .burger { display: none; }
  .header__phone { display: block; }
}
@media (min-width: 1200px) { .header__cta { display: inline-block; margin-left: 10px; } }

/* ── Кнопки ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 10px; border: 0; cursor: pointer; font: 700 .98rem Montserrat, sans-serif; text-align: center; transition: transform .15s, box-shadow .15s, background .15s; text-decoration: none; }
.btn--primary { background: linear-gradient(180deg, #F26A10, var(--brand-dark)); color: #fff; box-shadow: 0 4px 14px rgba(232, 93, 0, .35); }
.btn--primary:hover { transform: translateY(-2px); color: #fff; text-decoration: none; }
.btn--ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-ink); text-decoration: none; }
.btn--wa { background: #1FAF54; color: #fff; }
.btn--wa:hover { color: #fff; text-decoration: none; }
.btn--tg { background: #2AABEE; color: #fff; }
.btn--tg:hover { color: #fff; text-decoration: none; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ── Hero ── */
.hero { background: linear-gradient(160deg, #FFFFFF 0%, #FFF3E9 60%, #FFE8D6 100%); border-bottom: 1px solid var(--line); padding: 28px 0 26px; }
.hero__grid { display: grid; gap: 22px; }
.hero__lead { font-size: 1.06rem; color: var(--text-2); max-width: 640px; }
.hero__bullets { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 8px; }
.hero__bullets li { padding-left: 26px; position: relative; color: var(--text-2); }
.hero__bullets li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 800; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__trust { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__trust span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .8rem; color: var(--text-2); }
@media (min-width: 900px) { .hero { padding: 44px 0; } .hero__grid { grid-template-columns: 1.4fr .9fr; align-items: start; } }

/* ── Секции/карточки ── */
.section { padding: 30px 0; }
.section--tight { padding: 18px 0; }
.section__title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.grid { display: grid; gap: 14px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-s); }
.card h3 { margin-top: 0; }
.card__icon { width: 44px; height: 44px; border-radius: 12px; background: #FFF1E8; color: var(--brand-dark); display: grid; place-items: center; margin-bottom: 12px; }
.card__icon svg { width: 24px; height: 24px; }
.steps { counter-reset: step; display: grid; gap: 12px; padding: 0; list-style: none; margin: 0; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 16px 62px; box-shadow: var(--shadow-s); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: Montserrat, sans-serif; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

/* ── Таблицы ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-s); margin: 0 0 1em; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
.table-wrap th { background: var(--navy); color: #fff; text-align: left; padding: 12px 14px; font-family: Montserrat, sans-serif; font-size: .88rem; }
.table-wrap td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap tr:nth-child(even) td { background: #FAFCFE; }
.table-scroll-hint { display: block; font-size: .78rem; color: var(--muted); margin: -8px 0 12px; }
@media (min-width: 720px) { .table-scroll-hint { display: none; } }

/* ── Цены ── */
.prices { display: grid; gap: 10px; padding: 0; margin: 0 0 1em; list-style: none; }
.prices li { display: flex; justify-content: space-between; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 13px 16px; box-shadow: var(--shadow-s); }
.prices .price { font-family: Montserrat, sans-serif; font-weight: 800; color: var(--navy); white-space: nowrap; }
.prices .note { display: block; font-size: .78rem; color: var(--muted); }

/* ── Callout ── */
.callout { border-radius: var(--radius); padding: 16px 18px; margin: 1.2em 0; border: 1px solid var(--line); background: #fff; }
.callout--green { background: var(--ok-bg); border-color: #B7E1CB; }
.callout--amber { background: var(--warn-bg); border-color: #F0D9A8; }
.callout--red { background: var(--bad-bg); border-color: #F3C1BC; }
.callout p:last-child { margin-bottom: 0; }

/* ── FAQ ── */
.faq { display: grid; gap: 8px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: var(--shadow-s); }
.faq summary { cursor: pointer; padding: 14px 46px 14px 16px; font-weight: 700; color: var(--navy); position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--brand); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq .faq__a { padding: 0 16px 14px; color: var(--text-2); }

/* ── Форма ── */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.form-card h3 { margin-top: 0; }
.form-card p { color: var(--text-2); }
.form-row { margin-bottom: 12px; }
.form-row label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; color: var(--text); background: #fff; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(232, 93, 0, .14); }
.form-row--check { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--text-2); }
.form-row--check input { width: 20px; min-height: 20px; margin-top: 2px; }
.form-row--check label { font-weight: 400; margin: 0; }
.captcha-q { font-weight: 800; color: var(--navy); }
.form-msg { display: none; margin-top: 12px; padding: 12px 14px; border-radius: 10px; font-size: .92rem; }
.form-msg.is-ok { display: block; background: var(--ok-bg); color: var(--ok); border: 1px solid #B7E1CB; }
.form-msg.is-err { display: block; background: var(--bad-bg); color: var(--bad); border: 1px solid #F3C1BC; }
.form-msg.is-load { display: block; background: #EEF4FB; color: var(--navy); border: 1px solid #D6E4F2; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 10px; }

/* ── Хлебные крошки / перелинковка ── */
.breadcrumbs { padding: 12px 0 0; font-size: .84rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: "→"; margin-left: 6px; color: var(--line); }
.links-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .links-grid { grid-template-columns: repeat(2, 1fr); } }
.link-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 16px; box-shadow: var(--shadow-s); }
.link-card:hover { border-color: var(--brand); text-decoration: none; }
.link-card b { display: block; color: var(--navy); margin-bottom: 2px; }
.link-card span { color: var(--text-2); font-size: .85rem; }

/* ── CTA-полоса ── */
.cta-band { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: var(--radius); padding: 26px 22px; margin: 26px 0; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #D7E3F0; }
.cta-band .btn--primary { margin-top: 6px; }
.cta-band .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }

/* ── Подвал ── */
.footer { background: var(--navy); color: #C9D6E6; margin-top: 36px; padding: 30px 0 96px; }
.footer a { color: #E8EEF6; }
.footer h4 { color: #fff; font-size: .95rem; margin: 0 0 10px; }
.footer__grid { display: grid; gap: 22px; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 7px; font-size: .9rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 22px; padding-top: 14px; font-size: .78rem; color: #93A7BE; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* ── Мобильная панель действий ── */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(22,50,79,.12); }
.mobile-bar a { min-height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: .86rem; text-decoration: none; }
.mobile-bar .mb-call { background: var(--brand-dark); color: #fff; }
.mobile-bar .mb-wa { background: #1FAF54; color: #fff; }
.mobile-bar .mb-form { background: var(--navy); color: #fff; }
@media (min-width: 992px) { .mobile-bar { display: none; } .footer { padding-bottom: 30px; } }

/* ── Утилиты ── */
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.badge { display: inline-block; background: #FFF1E8; color: var(--brand-ink); border-radius: 999px; padding: 4px 12px; font-size: .78rem; font-weight: 700; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 18px; margin: 0 0 1.2em; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 1; }
@media (min-width: 720px) { .toc ol { columns: 2; } }
.toc a { color: var(--navy); }
@media print { .header, .mobile-bar, .footer, .form-card, .cta-band { display: none !important; } }
