/* ПрофитКасса — profitkassa.ru
   Дизайн-система: «Точный инженерный ЦТО / Чековая типографика»
   Палитра: daylight surface #FFFFFF, receipt paper #F5F4F0, carbon ink #121417,
            slate #4B5563, authentic ProfitKassa crimson #D6141F. */

:root {
  --surface: #ffffff;
  --paper: #f5f4f0;
  --paper-deep: #eceae3;
  --ink: #121417;
  --ink-soft: #2c3138;
  --slate: #4b5563;
  --muted: #59616e;
  --line: #e2e0da;
  --line-strong: #c9c6bd;
  --brand: #d6141f;
  --brand-dark: #ae0e17;
  --brand-tint: #fdf2f3;
  --ok: #13733e;
  --ok-tint: #e8f5ee;
  --wa: #158943;
  --wa-dark: #0f6e34;
  --tg: #167ec4;
  --tg-dark: #10639c;
  --max: #5c33dc;
  --max-dark: #4824b8;
  --font-display: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Golos Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --max-w: 1180px;
}

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; border-radius: var(--radius-sm); }

.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.num { font-variant-numeric: tabular-nums; }
.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;
}

/* ---------- Типографика ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.08; font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; font-weight: 800; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 700; }
h4 { font-size: 16.5px; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

/* ---------- Верхняя информационная полоса (desktop) ---------- */
.topbar {
  background: var(--ink);
  color: #e5e7eb;
  font-size: 13px;
}
.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 8px;
  flex-wrap: wrap;
}
.topbar-loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topbar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.topbar a { color: #f3f4f6; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.status-open { color: var(--ok); font-weight: 600; }
.status-closed { color: var(--slate); font-weight: 500; }
.topbar .status-open { color: #6ee7b7; font-weight: 600; }
.topbar .status-closed { color: #d1d5db; font-weight: 400; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding-block: 10px;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}
.brand-logo img {
  height: 38px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 8px;
  font-size: 15px;
  font-weight: 500;
}
.main-nav a {
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  color: var(--ink-soft);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--brand);
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-phone {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  text-align: right;
  line-height: 1.15;
}
.header-phone strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}
.header-phone small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.header-messengers {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.icon-pill svg { width: 19px; height: 19px; }
.icon-pill.wa { color: var(--wa-dark); }
.icon-pill.tg { color: var(--tg-dark); }
.icon-pill.max { color: var(--max-dark); }
.icon-pill.wa:hover { background: var(--wa-dark); border-color: var(--wa-dark); color: #fff; }
.icon-pill.tg:hover { background: var(--tg-dark); border-color: var(--tg-dark); color: #fff; }
.icon-pill.max:hover { background: var(--max-dark); border-color: var(--max-dark); color: #fff; }

.header-call-mob {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.header-call-mob svg { width: 17px; height: 17px; color: var(--brand); flex: none; }

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
.menu-btn svg { width: 22px; height: 22px; }

/* ---------- Кнопки и каналы связи ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

.btn-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: #262b33; border-color: #262b33; }

.btn-outline {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-outline:hover { background: var(--paper); border-color: var(--ink); }

.btn-wa {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-wa svg { color: var(--wa-dark); }
.btn-wa:hover {
  background: #eaf7ef;
  border-color: var(--wa-dark);
  color: var(--wa-dark);
}

.btn-tg {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-tg svg { color: var(--tg-dark); }
.btn-tg:hover {
  background: #eaf4fc;
  border-color: var(--tg-dark);
  color: var(--tg-dark);
}

.btn-max {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-max svg { color: var(--max-dark); }
.btn-max:hover {
  background: #f2ecfe;
  border-color: var(--max-dark);
  color: var(--max-dark);
}

.btn-mob-secondary { display: none; }
.hide-xs { display: inline; }
@media (max-width: 480px) {
  .hide-xs { display: none; }
}

.has-arrow::after {
  content: "\2192";
  display: inline-block;
  margin-left: 5px;
}
.has-ext::after {
  content: "\2197";
  display: inline-block;
  margin-left: 5px;
}

.btn-sm { padding: 9px 14px; font-size: 14px; }

.cta-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.channel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Первый экран (Главная) ---------- */
.hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-block: 36px 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 36px;
  align-items: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.loc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px 5px 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
}
.loc-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}
.hero-lead {
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--slate);
  max-width: 56ch;
  margin: 0;
}
.proof-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding-top: 2px;
  font-size: 13.5px;
  color: var(--slate);
}
.proof-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  text-decoration: none;
  white-space: nowrap;
}
.proof-item:hover { color: var(--ink); text-decoration: underline; }
.proof-star { color: var(--brand); font-weight: 800; }
.proof-item strong { color: var(--ink); font-weight: 700; }

.hero-media {
  position: relative;
  min-width: 0;
}
.hero-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #faf9f6;
  aspect-ratio: 15 / 10;
}
.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-studio-frame {
  aspect-ratio: 1200 / 760;
  box-shadow: 0 12px 30px rgba(18, 20, 23, 0.06);
}
.hero-model-tags {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}
.hero-model-tags span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
  backdrop-filter: blur(4px);
}
.hero-caption-bar {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13.5px;
}
.hero-caption-bar strong { display: block; font-size: 14px; color: var(--ink); }
.hero-caption-bar span { color: var(--muted); font-size: 13px; }
.hero-caption-link {
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.hero-caption-link:hover { text-decoration: underline; }

/* ---------- Полоса брендов и вход по задаче ---------- */
.brand-bar {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.brand-bar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 16px;
  flex-wrap: wrap;
}
.brand-bar-label { font-size: 13.5px; color: var(--muted); }
.brand-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}

/* ---------- Секции ---------- */
.band { padding-block: 60px; }
.band-paper { background: var(--paper); border-block: 1px solid var(--line); }
.band-tight { padding-block: 42px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head-copy { max-width: 62ch; }
.section-head-copy p { color: var(--slate); margin-top: 8px; }
.section-link {
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
}
.section-link:hover { text-decoration: underline; }

/* ---------- Вход по задаче (быстрый маршрутизатор) ---------- */
.task-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.task-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  min-width: 0;
  transition: border-color 0.15s, background-color 0.15s;
}
.task-card:hover {
  border-color: var(--brand);
  background: var(--brand-tint);
}
.task-card h3 { font-size: 18px; line-height: 1.25; }
.task-card p { font-size: 14.5px; color: var(--slate); margin: 0; }
.task-card-meta {
  margin-top: auto;
  padding-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.task-card-accent {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.task-card-accent h3 { color: #fff; }
.task-card-accent p { color: #d1d5db; }
.task-card-accent .task-card-meta { color: #fca5a5; }
.task-card-accent:hover { background: #1e2329; border-color: var(--brand); }

/* ---------- Блок «Чековая структура цены» (фирменный приём) ---------- */
.receipt-split {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.receipt-box {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  padding: 24px 22px 28px;
  position: relative;
}
.receipt-box::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -10px;
  height: 10px;
  background:
    linear-gradient(135deg, var(--surface) 5px, transparent 0) 0 0 / 12px 10px repeat-x,
    linear-gradient(225deg, var(--surface) 5px, transparent 0) 0 0 / 12px 10px repeat-x;
  filter: drop-shadow(0 1px 0 var(--line-strong));
}
.receipt-head {
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line-strong);
}
.receipt-head strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.receipt-head span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}
.receipt-rows {
  margin: 16px 0 0;
  display: grid;
  gap: 11px;
}
.receipt-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14.5px;
}
.receipt-row dt { color: var(--ink); font-weight: 500; }
.receipt-row i {
  flex: 1;
  border-bottom: 1px dotted var(--line-strong);
  min-width: 14px;
  transform: translateY(-3px);
}
.receipt-row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
  white-space: nowrap;
}
.receipt-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
  font-size: 13px;
  color: var(--slate);
  line-height: 1.5;
}

.principles-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
  display: grid;
  gap: 14px;
}
.principles-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.principles-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--brand-tint);
  color: var(--brand-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  margin-top: 2px;
}
.principles-list strong { display: block; color: var(--ink); font-size: 16px; }
.principles-list span { color: var(--slate); font-size: 14.5px; }

/* ---------- Вкладки по формату бизнеса + Каталог ---------- */
.format-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.format-tab {
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.format-tab:hover { border-color: var(--ink); }
.format-tab[aria-selected="true"],
.format-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.advice-box {
  background: var(--surface);
  border-left: 3px solid var(--brand);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 15px;
  color: var(--ink-soft);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}
.product-tag {
  display: inline-block;
  width: fit-content;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate);
  background: var(--paper);
  border-radius: 6px;
  padding: 3px 9px;
}
.product-thumb {
  height: 186px;
  display: grid;
  place-items: center;
  margin-block: 12px;
  background: #fff;
  border-radius: var(--radius-sm);
}
.product-thumb img {
  max-height: 172px;
  width: auto;
  object-fit: contain;
}
.product-card h3 { font-size: 19px; margin-bottom: 6px; }
.product-desc { font-size: 14px; color: var(--slate); margin-bottom: 12px; }
.product-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 4px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.product-specs li::before {
  content: "· ";
  color: var(--brand);
  font-weight: 800;
}
.product-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.product-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.product-price strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
}
.product-price span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.25;
}
.product-status {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.3;
}

/* ---------- Интерактивный подборщик (3 шага, без попап-спама) ---------- */
.selector-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.selector-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.selector-group fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.selector-group legend {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
  color: var(--ink);
}
.choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.choice-btn {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.choice-btn.is-selected {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.selector-result {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.selector-result-copy { max-width: 60ch; }
.selector-result-copy strong { display: block; font-size: 17px; margin-bottom: 4px; }
.selector-result-copy p { font-size: 14.5px; color: var(--slate); margin: 0; }

/* ---------- Выделенный блок Рутокен / 59 м от ФНС ---------- */
.fns-banner {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 34px 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}
.fns-banner h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); }
.fns-banner p { color: #d1d5db; max-width: 60ch; margin-top: 10px; font-size: 15.5px; }
.fns-meta {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #fca5a5;
  margin-bottom: 8px;
}
.fns-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fns-banner .btn-light {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}
.fns-banner .btn-light:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ---------- Фото-ряд реальной работы ---------- */
.visual-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.visual-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.visual-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.visual-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.visual-card-body p { font-size: 14.5px; color: var(--slate); margin: 0; }
.visual-card-body a {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--brand-dark);
  text-decoration: none;
}
.visual-card-body a:hover { text-decoration: underline; }

/* ---------- Хронологические шаги ---------- */
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.step-grid li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-grid li::before {
  content: counter(step);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  display: grid;
  place-items: center;
}
.step-grid p { font-size: 14.5px; color: var(--slate); margin: 0; }

/* ---------- Отзывы и площадки ---------- */
.maps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.map-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
}
.map-card:hover { border-color: var(--ink); }
.map-card-score {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
}
.map-card-score span { color: var(--brand); font-size: 26px; margin-left: 4px; }
.map-card-meta { font-size: 14.5px; color: var(--slate); }
.map-card-link {
  margin-top: auto;
  padding-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-dark);
}

/* ---------- Статьи / База знаний ---------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.article-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: 4px 4px var(--radius) var(--radius);
  padding: 20px;
  text-decoration: none;
  min-width: 0;
}
.article-card:hover { border-top-color: var(--brand); border-color: var(--line-strong); }
.article-topic {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-dark);
}
.article-card h3 { font-size: 18px; line-height: 1.28; }
.article-card p { font-size: 14.5px; color: var(--slate); margin: 0; }
.article-card-foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 840px;
}
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.faq-list summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  flex: none;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details .faq-body {
  padding: 0 20px 18px;
  color: var(--slate);
  font-size: 15px;
  max-width: 72ch;
}

/* ---------- Контакты и форма заявки ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: stretch;
}
.contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-phone-big {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.1;
}
.contact-phone-big:hover { color: var(--brand); }
.contact-dl {
  margin: 0;
  display: grid;
  gap: 12px;
}
.contact-dl dt { font-size: 13px; color: var(--muted); }
.contact-dl dd { margin: 2px 0 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.contact-dl dd small { display: block; font-size: 14px; font-weight: 400; color: var(--slate); margin-top: 2px; }

.lead-form {
  display: grid;
  gap: 12px;
}
.lead-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
}
.lead-form input[type="text"],
.lead-form input[type="tel"],
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 15.5px;
}
.lead-form textarea { min-height: 82px; resize: vertical; }
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px rgba(214, 20, 31, 0.14);
}
.channel-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.channel-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}
.channel-radio input { margin: 0; accent-color: var(--brand); }
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  font-weight: 400;
  color: var(--slate);
  line-height: 1.45;
  cursor: pointer;
}
.consent-label input { margin-top: 3px; accent-color: var(--brand); flex: none; }
.consent-label a { color: var(--ink); text-decoration: underline; }
.form-hint { font-size: 13px; color: var(--brand-dark); font-weight: 500; margin: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- Внутренние страницы: услуги и статьи ---------- */
.breadcrumbs {
  padding-block: 16px 0;
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
}
.breadcrumbs a { color: var(--slate); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-dark); text-decoration: underline; }

.page-hero {
  padding-block: 24px 36px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: start;
}
.page-hero h1 { font-size: clamp(28px, 3.8vw, 44px); }

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 40px;
  padding-block: 36px 60px;
  align-items: start;
}
.prose {
  min-width: 0;
  max-width: 72ch;
}
.prose h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin-top: 36px;
  margin-bottom: 14px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 18.5px;
  margin-top: 22px;
  margin-bottom: 10px;
}
.prose p { color: var(--ink-soft); }
.prose ul, .prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--ink-soft);
  display: grid;
  gap: 8px;
}
.prose li strong { color: var(--ink); }

/* Блок «Главное» — прямой ответ для Алисы и клиента */
.summary-box {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 22px;
  margin-bottom: 28px;
}
.summary-box-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 8px;
}
.summary-box p { font-size: 16px; color: var(--ink); margin: 0; }

.pain-box {
  background: var(--brand-tint);
  border: 1px solid #f4c7ca;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 22px;
}
.pain-box strong { display: block; color: var(--brand-dark); margin-bottom: 6px; font-size: 15px; }
.pain-box p { color: var(--ink-soft); margin: 0; font-size: 15px; }

.note-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-block: 20px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.note-box strong { color: var(--ink); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-block: 16px 24px;
  background: var(--surface);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14.5px;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: var(--paper);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
tr:last-child td { border-bottom: 0; }

.sticky-aside {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.aside-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.aside-card-dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.aside-card-dark h3 { color: #fff; }
.aside-card-dark p { color: #d1d5db; font-size: 14px; }
.aside-tel {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
}
.aside-card-dark .aside-tel { color: #fff; }
.aside-meta { font-size: 13.5px; color: var(--slate); line-height: 1.5; }
.aside-card .btn { width: 100%; }

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.toc-list a {
  color: var(--slate);
  text-decoration: none;
  display: block;
  padding-left: 10px;
  border-left: 2px solid var(--line);
}
.toc-list a:hover { color: var(--ink); border-left-color: var(--brand); }

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.related-link {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-decoration: none;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.related-link:hover { border-color: var(--brand); background: var(--brand-tint); }
.related-link strong { font-size: 15px; color: var(--ink); }
.related-link span { font-size: 13px; color: var(--muted); }

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13.5px;
  color: var(--slate);
  margin-top: 12px;
}

.sources-list {
  margin-top: 10px;
  padding-left: 20px;
  font-size: 14px;
  color: var(--slate);
  display: grid;
  gap: 6px;
}
.sources-list a { color: var(--ink-soft); }

/* ---------- Подвал ---------- */
.site-footer {
  background: var(--ink);
  color: #cbd5e1;
  font-size: 14px;
  padding-block: 44px 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #2a3038;
}
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 12px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
}
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 13px;
  color: #9ca3af;
}
.footer-bottom a { color: #e5e7eb; }

/* ---------- Фиксированная мобильная панель связи ---------- */
.mobile-dock {
  display: none;
}

/* ---------- Модальное окно MAX ---------- */
dialog.pk-dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(480px, calc(100% - 28px));
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(18, 20, 23, 0.24);
}
dialog.pk-dialog::backdrop {
  background: rgba(18, 20, 23, 0.55);
  backdrop-filter: blur(3px);
}
.dialog-head {
  padding: 22px 24px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dialog-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-size: 22px;
  line-height: 1;
}
.dialog-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.copy-row strong { font-family: var(--font-display); font-size: 18px; }

/* ---------- Быстрые чипы болей в Hero, калькулятор ФН и схема ФНС ---------- */
.pain-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.pain-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.pain-chip:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--brand-tint);
}
.pain-chip--urgent {
  border-color: #f3c1c4;
  background: var(--brand-tint);
  color: var(--brand-dark);
}

.fn-calc-box {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 20px;
}
.fn-calc-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.fn-calc-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.fn-calc-select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
}
.fn-calc-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
}
.fn-calc-check input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--brand);
  flex: none;
}

.map-scheme-card,
.scheme-card {
  margin: 22px 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(18, 20, 23, 0.04);
}
.map-scheme-card svg,
.scheme-card svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Плашка Cookie («Понятно») ---------- */
.cookie-bar {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 45;
  max-width: 360px;
  background: rgba(18, 20, 23, 0.94);
  color: #e5e7eb;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar a { color: #fff; text-decoration: underline; }
.cookie-bar button {
  background: #fff;
  color: var(--ink);
  border: 0;
  border-radius: 6px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 12.5px;
  flex: none;
}

/* ---------- Адаптивность ---------- */
@media (max-width: 1020px) {
  .hero-grid,
  .receipt-split,
  .contact-grid,
  .page-hero-grid,
  .editorial-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .sticky-aside { position: static; }
  .task-grid,
  .product-grid,
  .articles-grid,
  .maps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .selector-steps { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-messengers { display: none; }
}

@media (max-width: 820px) {
  .topbar { display: none; }
  .wrap { padding-inline: 16px; }
  .header-in { min-height: 62px; gap: 10px; }
  .brand-logo img { height: 32px; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 14px 16px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-left: 0;
    box-shadow: 0 14px 28px rgba(18, 20, 23, 0.1);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a {
    padding: 11px 8px;
    font-size: 16px;
    border-bottom: 1px solid var(--paper);
  }
  .header-phone strong { font-size: 15px; }
  .header-phone small { display: none; }
  .menu-btn { display: inline-flex; }

  .hero { padding-block: 16px 24px; }
  .hero-grid { gap: 16px; }
  .hero-copy { gap: 11px; }
  .loc-badge {
    font-size: 12.5px;
    padding: 5px 12px 5px 9px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hero-lead { font-size: 15px; line-height: 1.48; }
  .pain-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: -16px;
    padding-inline: 16px;
    padding-bottom: 2px;
    gap: 8px;
  }
  .pain-chips::-webkit-scrollbar { display: none; }
  .pain-chip {
    flex: none;
    min-height: 44px;
    padding: 8px 14px;
    font-size: 13.5px;
    white-space: nowrap;
  }
  .hero .cta-cluster.cta-hero { display: none; }
  .proof-strip {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 4px 12px;
    font-size: 12.5px;
  }
  .proof-item { min-height: 28px; }
  .hero-caption-bar {
    margin-top: 8px;
    padding: 10px 12px;
    gap: 8px;
  }
  .hero-caption-bar strong { font-size: 13.5px; }
  .hero-caption-bar span { font-size: 12px; }
  .band { padding-block: 40px; }
  .fns-banner { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
  .visual-duo { grid-template-columns: minmax(0, 1fr); }

  /* Мобильная нижняя панель связи */
  .mobile-dock {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .dock-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 48px;
    padding: 7px 4px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    text-decoration: none;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ink);
    min-width: 0;
  }
  .dock-btn svg { width: 17px; height: 17px; }
  .dock-call { background: var(--brand); border-color: var(--brand); color: #fff; }
  .dock-wa svg { color: var(--wa-dark); }
  .dock-tg svg { color: var(--tg-dark); }
  .dock-max svg { color: var(--max-dark); }

  .site-footer { padding-bottom: 92px; }
  .cookie-bar {
    left: 10px;
    right: 10px;
    bottom: 72px;
    max-width: none;
    padding: 8px 12px;
    font-size: 12px;
    gap: 10px;
  }
}

@media (max-width: 580px) {
  .task-grid,
  .product-grid,
  .articles-grid,
  .maps-grid,
  .step-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cta-cluster {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  .cta-cluster .btn {
    width: 100%;
    padding: 12px 10px;
    font-size: 14px;
    justify-content: center;
  }
  .loc-badge {
    border-radius: 999px;
    line-height: 1.3;
    padding: 5px 12px 5px 9px;
  }
  .hero-caption-bar {
    flex-direction: row;
    align-items: center;
  }
  .selector-card { padding: 20px 16px; }
  .contact-box { padding: 20px 18px; }
  .receipt-box { padding: 18px 16px 22px; }
  .header-phone { display: none; }
  .header-call-mob { display: inline-flex; }
  .header-actions { gap: 8px; }
}

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