:root {
  --navy: #172B32;
  --navy-2: #102228;
  --dark-teal: #1C5F5D;
  --teal: #267A78;
  --teal-2: #1F6462;
  --teal-light: #E8F2F1;
  --accent: #7A6238;
  --accent-2: #B8955C;
  --gold: #B8955C;
  --ink: #172B32;
  --muted: #5A6E74;
  --line: #E3EBEB;
  --bg: #F5F8F8;
  --bg-alt: #EDF2F2;
  --surface: #FFFFFF;
  --ok: #146C36;
  --err: #9F2D2D;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 6px 22px rgba(23, 43, 50, 0.06);
  --shadow-lg: 0 14px 40px rgba(23, 43, 50, 0.10);
  /* Системный стек: внешние шрифты запрещены CSP лендинга */
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
a { color: var(--teal); }
button, input, select, textarea { font: inherit; color: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-lg { width: 34px; height: 34px; }
.icon-fill { fill: currentColor; stroke: none; }

.skip-link { position: absolute; left: 8px; top: -60px; background: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid #2a8cff; outline-offset: 2px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 650; font-size: 0.98rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: default; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 1.05rem; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--navy); }
.btn-accent { background: var(--accent); color: var(--navy-2); box-shadow: 0 6px 18px rgba(198, 166, 107, 0.28); }
.btn-accent:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--navy); border-color: #c9d8df; }
.btn-ghost:hover { background: var(--teal-light); }
.btn-ghost-light { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.22); }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }

/* ---------- шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(247, 249, 248, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.15rem; flex: none; }
.brand-mark img { display: block; width: 41px; height: 34px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.96rem; }
.nav a:hover { background: var(--teal-light); color: var(--navy); }
.nav-partner { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.account-bar { display: flex; align-items: center; gap: 8px; }
.header-actions .btn { min-height: 40px; padding: 0 16px; }
.nav-toggle { display: none; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--navy); max-width: 180px; }
.user-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- первый экран ---------- */
.hero { background: var(--bg); color: var(--navy); position: relative; overflow: hidden; }
.hero::after { content: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 32px; align-items: center; padding: 56px 0 64px; position: relative; z-index: 1; }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.brand-hero { margin: 0 0 10px; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--teal); }
.hero h1 { font-size: clamp(1.85rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; max-width: 14em; color: var(--navy); }
.lead { margin-top: 16px; font-size: 1.12rem; color: var(--muted); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-audience { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }
.hero-audience a { color: rgba(255, 255, 255, 0.92); font-weight: 650; text-underline-offset: 3px; }
.hero-audience a:hover { color: var(--accent); }
.invite-hint {
  margin: 14px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); max-width: 46ch;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28); color: #fff;
}
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-end; }
.hero-panel {
  padding: 28px 26px; border-radius: 24px; background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(6px); max-width: 360px; margin-left: auto;
}
.hero-panel-label { display: inline-block; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--gold); margin-bottom: 10px; }
.hero-panel strong { display: block; font-size: 1.45rem; line-height: 1.2; margin-bottom: 10px; }
.hero-panel p { margin: 0; color: rgba(255, 255, 255, 0.82); }
.max-home { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.max-home .hint { color: rgba(255, 255, 255, 0.82); margin: 0; }

.hero-search {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 220px) auto; gap: 8px;
  margin-top: 28px; padding: 8px; background: #fff; border-radius: 999px; box-shadow: var(--shadow-lg); color: var(--ink);
}
.hero-search-field { display: flex; align-items: center; gap: 10px; padding-left: 16px; min-width: 0; color: var(--muted); }
.hero-search input { border: 0; background: transparent; height: 48px; min-width: 0; width: 100%; outline: none; box-shadow: none; }
.cat-menu { min-width: 0; position: relative; }
.cat-menu-btn {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 48px; min-width: 0;
  padding: 0 12px 0 14px; border: 0; border-left: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--ink); cursor: pointer; font: inherit; text-align: left;
}
.cat-menu-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.cat-menu-chevron { width: 18px; height: 18px; color: var(--muted); transition: transform 0.15s; }
.cat-menu-btn[aria-expanded="true"] .cat-menu-chevron { transform: rotate(180deg); }
.cat-menu-list {
  position: fixed; z-index: 30; margin: 0; padding: 6px; list-style: none;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 16px 40px rgba(13, 59, 79, 0.18); overflow: auto;
}
.cat-menu-list [role="option"] {
  display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 12px;
  border-radius: 12px; cursor: pointer; font-weight: 650; white-space: nowrap;
}
.cat-menu-list [role="option"] .icon { width: 18px; height: 18px; color: var(--teal); }
.cat-menu-list [role="option"] .cat-menu-check { margin-left: auto; color: var(--teal); }
.cat-menu-list [role="option"]:hover,
.cat-menu-list [role="option"]:focus { background: var(--bg-alt); outline: none; }
.cat-menu-list [role="option"][aria-selected="true"] { background: #e6f3f4; color: var(--navy); }
.hero-search:focus-within, .hero-search.cat-open { outline: 3px solid rgba(255, 209, 102, 0.9); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.28); font-weight: 600; font-size: 0.93rem; cursor: pointer;
}
.chip:hover { background: rgba(255, 255, 255, 0.26); }
.chip .icon { width: 18px; height: 18px; }

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; display: block; }
.brand-mark .atom-mini { display: block; width: 24px; height: 24px; }
.art-route { animation: route-dash 18s linear infinite; }
@keyframes route-dash { to { stroke-dashoffset: -280; } }
@media (prefers-reduced-motion: reduce) {
  .art-route { animation: none; }
}

/* ---------- цифры ---------- */
.stats { margin-top: -28px; position: relative; z-index: 2; }
.stat-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.stat-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--teal-light); color: var(--teal); flex: none; }
.stat-num { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--navy); }
.stat-label { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }
.stat-note { margin-top: 10px; color: var(--muted); font-size: 0.85rem; text-align: center; }

/* ---------- разделы ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 28px; max-width: 46rem; }
.section-head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); letter-spacing: -0.015em; color: var(--navy); font-weight: 800; line-height: 1.15; }
.section-lead { margin-top: 12px; color: var(--muted); font-size: 1.05rem; max-width: 46ch; }
.section-cta-row { margin-top: 28px; }
.section-cta-row .btn { white-space: normal; max-width: 100%; height: auto; min-height: 44px; padding-block: 10px; text-align: center; }
.empty { padding: 28px; background: var(--surface); border: 1px dashed #c3d3da; border-radius: var(--radius); color: var(--muted); text-align: center; }

/* категории — информационные плитки (без клика до этапа C) */
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cat-tile {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px; text-align: left; cursor: default;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.cat-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; flex: none; background: var(--c, var(--teal)); }
.cat-name { font-weight: 700; color: var(--navy); line-height: 1.2; }
.cat-count { display: block; color: var(--muted); font-size: 0.86rem; margin-top: 2px; font-weight: 500; }
/* Палитра категорий: ключ pal-1…pal-12 приходит из справочника (/api/public/categories), произвольных цветов и inline-стилей нет.
   Тот же набор — на карте (public/map/map.css) и в админке. */
.c-pal-1 { --c: #0b6b74; }
.c-pal-2 { --c: #8a5a44; }
.c-pal-3 { --c: #b3261e; }
.c-pal-4 { --c: #7b4fd6; }
.c-pal-5 { --c: #2f5fc4; }
.c-pal-6 { --c: #2e9d5b; }
.c-pal-7 { --c: #7f9a12; }
.c-pal-8 { --c: #c98a00; }
.c-pal-9 { --c: #d9631f; }
.c-pal-10 { --c: #1c8aa0; }
.c-pal-11 { --c: #c44b7a; }
.c-pal-12 { --c: #5b6f78; }

/* ряды карточек */
.row-block + .row-block { margin-top: 36px; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.row-head h3 { font-size: 1.35rem; color: var(--navy); font-weight: 750; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--teal); font-weight: 650; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.link-btn:hover { text-decoration: underline; }
.link-btn .icon { width: 18px; height: 18px; }

.cards-scroll { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; padding: 4px 0 16px; margin: 0; scroll-snap-type: x mandatory; list-style: none; -webkit-overflow-scrolling: touch; max-width: 100%; }
.cards-scroll > li { flex: 0 0 min(280px, 78vw); scroll-snap-align: start; min-width: 0; }
.cards-peek > li { flex: 0 0 min(280px, calc((100% - 20px) / 2.28)); }
.row-block { min-width: 0; }
.card-summary { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.cards-grid > li { min-width: 0; }

.card {
  position: relative; display: flex; flex-direction: column; height: 100%; width: 100%; text-align: left; padding: 0; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-photo { position: relative; aspect-ratio: 4 / 3; background: #dfeaee; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ribbon { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(13, 59, 79, 0.88); color: #fff; font-size: 0.78rem; font-weight: 700; }
.rating-pill { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 750; font-size: 0.88rem; box-shadow: var(--shadow); }
.rating-pill .icon { width: 15px; height: 15px; color: var(--gold); }
.rating-pill small { color: var(--muted); font-weight: 600; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { font-size: 0.8rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 0.04em; }
.card-title { font-size: 1.05rem; font-weight: 750; color: var(--navy); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-feed .card-body { padding: 12px 12px 14px; gap: 6px; }
.card-feed .card-title { font-size: 0.92rem; -webkit-line-clamp: 4; }
.card-feed .card-summary { -webkit-line-clamp: 3; }
.card-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.9rem; }
.card-meta .icon { width: 17px; height: 17px; }
.card-price { margin-top: auto; padding-top: 6px; font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.card-price small { font-weight: 500; color: var(--muted); font-size: 0.85rem; }
.card-item { position: relative; }
.card-partner { font-size: 0.82rem; font-weight: 700; color: var(--navy); }
.card-stats { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-rate { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 700; color: var(--navy); min-width: 0; }
.card-rate .stars .icon { width: 14px; height: 14px; }
.card-rate-empty { color: var(--muted); font-weight: 600; }
.card-used { color: var(--muted); font-size: 0.8rem; font-weight: 650; white-space: nowrap; }
.discount-badge {
  position: absolute; left: 10px; bottom: 10px; z-index: 1;
  padding: 6px 10px; border-radius: 10px; background: var(--accent); color: #fff;
  font-weight: 800; font-size: 1.05rem; line-height: 1; box-shadow: var(--shadow);
}
.fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 36px; height: 36px; border: 0; border-radius: 50%; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: #fff; color: #8aa0a8; box-shadow: var(--shadow);
}
.fav-btn:hover, .fav-btn.on { color: var(--accent); }
.fav-btn .icon { width: 20px; height: 20px; }
.deal { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.deal-prices { display: grid; gap: 1px; }
.deal-old { color: var(--muted); text-decoration: line-through; font-weight: 650; font-size: 0.92rem; }
.deal-now { font-size: 1.45rem; font-weight: 800; color: var(--navy); line-height: 1.05; }
.deal-save {
  margin: 0; white-space: pre-line; text-align: right; font-weight: 800; font-size: 0.82rem; line-height: 1.25;
  color: #c2410c; background: #fff1e8; border-radius: 12px; padding: 6px 10px;
}

.load-more { display: flex; justify-content: center; margin-top: 22px; }

/* отзывы */
.review-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.review {
  display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars .icon { width: 18px; height: 18px; }
.stars .off { color: #d4dde1; }
.review-text { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.review-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #e6f3f4; color: var(--teal); font-weight: 800; flex: none; }
.review-author { font-weight: 700; color: var(--navy); line-height: 1.2; }
.review-about { display: block; background: none; border: 0; padding: 0; color: var(--teal); font-size: 0.86rem; cursor: pointer; text-align: left; }
.review-about:hover { text-decoration: underline; }
.tag-demo { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #eef2f4; color: var(--muted); font-size: 0.75rem; font-weight: 700; }

/* как это работает */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; position: relative; }
.steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps li { position: relative; text-align: center; padding: 8px 10px; counter-increment: step; min-width: 0; }
.step-ico { position: relative; display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--surface); border: 2px solid #cfe3e6; color: var(--teal); box-shadow: var(--shadow); }
.step-ico::after { content: counter(step); position: absolute; right: -4px; top: -4px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--navy-2); display: grid; place-items: center; font-weight: 800; font-size: 0.9rem; }
.steps h3 { margin-top: 14px; font-size: 1.05rem; color: var(--navy); }
.steps p { color: var(--muted); margin-top: 6px; font-size: 0.94rem; }
.steps li:not(:last-child)::before { content: ""; position: absolute; top: 50px; left: calc(50% + 52px); width: calc(100% - 104px + 18px); border-top: 3px dotted #b5ced3; }

/* преимущества */
.benefit-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.benefit-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; display: grid; gap: 8px; min-height: 100%;
}
.benefit-ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--teal-light); color: var(--teal); }
.benefit-card h3 { color: var(--navy); font-size: 1.08rem; line-height: 1.25; }
.benefit-card p { color: var(--muted); font-size: 0.96rem; }

/* карта */
.map-card { margin: 0; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow); }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 560px; background: #dfeaee; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-card figcaption { margin-top: 10px; padding: 0 4px 4px; font-size: 0.85rem; color: var(--muted); }

/* призыв партнёрам */
.band { background: linear-gradient(145deg, var(--navy-2) 0%, var(--navy) 42%, var(--teal) 100%); color: #fff; padding: 56px 0; }
.band-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.band h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); max-width: 18ch; line-height: 1.15; color: #fff; }
.band p { margin-top: 10px; color: rgba(255, 255, 255, 0.88); max-width: 42ch; }
.band-list { margin: 16px 0 0; padding: 0 0 0 1.15rem; color: rgba(255, 255, 255, 0.9); display: grid; gap: 6px; }

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 760px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 18px; }
.faq-item summary {
  cursor: pointer; list-style: none; min-height: 56px; display: flex; align-items: center;
  font-weight: 700; color: var(--navy); padding: 14px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; margin-left: auto; color: var(--teal); font-size: 1.35rem; font-weight: 500; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 0 16px; color: var(--muted); max-width: 58ch; }

/* финальный CTA */
.join-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.join-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; display: grid; gap: 12px; align-content: start; box-shadow: var(--shadow);
}
.join-card h3 { color: var(--navy); font-size: 1.35rem; }
.join-card p { color: var(--muted); }
.join-card .btn { justify-self: start; }

/* подвал */
.site-footer { background: var(--bg); color: var(--ink); padding: 36px 0; border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--navy); }
.footer-brand img { display: block; width: 41px; height: 34px; filter: none; opacity: 1; }
.footer-sub { color: var(--muted); margin-top: 6px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 22px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- диалоги ---------- */
.modal { border: 0; padding: 0; border-radius: 22px; width: min(460px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: auto; box-shadow: var(--shadow-lg); color: var(--ink); }
.modal-wide { width: min(860px, calc(100% - 24px)); }
.modal-offer { width: min(672px, calc(100% - 48px)); max-width: calc(100% - 48px); }
@media (max-width: 900px) {
  .modal-offer { width: calc(100% - 32px); max-width: calc(100% - 32px); }
}
@media (max-width: 520px) {
  .modal-offer { width: 100%; max-width: none; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
}
.modal::backdrop { background: rgba(7, 28, 38, 0.6); }
.modal-close { position: absolute; right: 12px; top: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line); display: grid; place-items: center; cursor: pointer; }
.modal-inner { padding: 28px 24px 24px; }
.modal h2 { color: var(--navy); font-size: 1.5rem; margin-bottom: 6px; padding-right: 36px; }
.modal-sub { color: var(--muted); margin-bottom: 16px; }
.tabs { display: flex; gap: 6px; padding: 4px; background: var(--bg-alt); border-radius: 999px; margin-bottom: 18px; }
.tab { flex: 1; min-height: 40px; border: 0; background: transparent; border-radius: 999px; font-weight: 650; cursor: pointer; color: var(--muted); }
.tab[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 650; font-size: 0.93rem; }
.field input, .field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid #c9d8df; border-radius: var(--radius-sm); background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(11, 107, 116, 0.25); border-color: var(--teal); }
.hint { color: var(--muted); font-size: 0.84rem; }
.alert { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 0.95rem; }
.alert-error { background: #fdecea; color: var(--err); }
.alert-ok { background: #e7f6ec; color: var(--ok); }
.alert-info { background: #e8f1f6; color: var(--navy); }
.form-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }

/* ---------- юридические страницы (/privacy/consent/) ---------- */
.legal { max-width: 820px; padding: 36px 0 56px; line-height: 1.6; }
.legal > * + * { margin-top: 14px; }
.legal-head { display: grid; gap: 8px; margin-bottom: 8px; }
.legal h1 { color: var(--navy); font-size: clamp(1.6rem, 4.5vw, 2.3rem); line-height: 1.15; font-weight: 800; }
.legal-meta { color: var(--muted); font-weight: 650; }
.legal h2 { color: var(--navy); font-size: 1.2rem; margin-top: 28px; }
.legal h3 { color: var(--navy); font-size: 1.08rem; margin-top: 22px; }
.legal-wide { max-width: 1080px; }
.legal-layout { display: grid; gap: 22px; align-items: start; }
.legal-toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: doc; }
.legal-toc li { counter-increment: doc; min-width: 0; }
.legal-toc a {
  display: block; padding: 10px 12px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-weight: 650; line-height: 1.35;
}
.legal-toc a::before { content: counter(doc) ". "; }
.legal-toc a[aria-current="page"] { border-color: var(--teal); background: var(--teal-light); }
body.legal-shell {
  color-scheme: light;
  background: var(--bg);
  color: var(--ink);
  font-family: Bahnschrift, "Segoe UI", system-ui, sans-serif;
}
body.legal-shell :focus-visible { outline: 3px solid #1f6462; outline-offset: 2px; }
body.legal-shell .site-header { background: rgba(245, 248, 248, 0.92); }
.legal-doc-title { margin-top: 0; }
.legal-pending { color: var(--muted); }
@media (min-width: 900px) {
  .legal-layout { grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); }
}
.legal ul, .legal ol { margin: 0; padding-left: 24px; display: grid; gap: 6px; }
.legal p, .legal li { overflow-wrap: anywhere; }
.legal-back { margin-top: 32px; }

/* ---------- форма заявки организации ---------- */
.modal-form { width: min(620px, calc(100% - 24px)); }
.modal-form h2:focus { outline: none; }
.field select { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid #c9d8df; border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.field select:focus { outline: 3px solid rgba(11, 107, 116, 0.25); border-color: var(--teal); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--err); }
.field-row { display: grid; gap: 0 14px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.field-error { color: var(--err); font-size: 0.86rem; font-weight: 600; }
.field-error[hidden] { display: none; }
.req { color: var(--err); }
.contact-hint { margin: -6px 0 14px; }
.check { margin: 4px 0 18px; display: grid; gap: 6px; }
.check label { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9rem; line-height: 1.4; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--teal); cursor: pointer; }
.check input:focus-visible { outline: 3px solid rgba(11, 107, 116, 0.35); outline-offset: 2px; }
.consent-hint { margin: 0 0 0 34px; }
/* виды деятельности: чекбоксы из справочника (до 5) + поле «Другое» */
.cat-field { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; display: grid; gap: 6px; }
.cat-field legend { font-weight: 650; font-size: 0.93rem; padding: 0; margin-bottom: 6px; }
.cat-field:focus { outline: none; }
.check-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.check-grid label {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; cursor: pointer;
  border: 1.5px solid #c9d8df; border-radius: var(--radius-sm); background: #fff; font-weight: 600; font-size: 0.93rem; line-height: 1.25;
}
.check-grid input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--teal); cursor: pointer; }
.check-grid input:focus-visible { outline: 3px solid rgba(11, 107, 116, 0.35); outline-offset: 2px; }
.check-grid label:has(input:checked) { border-color: var(--teal); background: #eaf5f6; }
.check-grid label:has(input:disabled) { opacity: 0.55; cursor: not-allowed; }
.cat-field[aria-invalid="true"] .check-grid label { border-color: var(--err); }
.cat-other { margin-top: 8px; }
@media (min-width: 560px) { .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.review-note { margin: -4px 0 14px; }
.form-alt { margin-top: 12px; text-align: center; }
.form-alt a { color: var(--teal); font-weight: 650; }
/* Ловушка для ботов: человек поле не видит и до него не дойти с клавиатуры. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.offer-photo { position: relative; width: 100%; aspect-ratio: 672 / 378; height: auto; background: #e7eef1; overflow: hidden; touch-action: pan-y; }
.offer-photo:focus { outline: 2px solid var(--teal); outline-offset: -2px; }
.offer-track { display: flex; height: 100%; transition: transform .45s ease; }
.offer-slide { position: relative; flex: 0 0 100%; height: 100%; min-width: 0; }
.offer-slide img, .offer-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; background: #e7eef1; display: block; pointer-events: none; user-select: none; }
.offer-nav {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; border-radius: 50%; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(13, 59, 79, 0.72); color: #fff;
}
.offer-nav .icon { width: 18px; height: 18px; }
.offer-nav-prev { left: 8px; }
.offer-nav-prev .icon { transform: scaleX(-1); }
.offer-nav-next { right: 8px; }
.offer-nav:hover { background: rgba(13, 59, 79, 0.9); }
.offer-dots { position: absolute; left: 50%; bottom: 10px; z-index: 2; transform: translateX(-50%); display: flex; gap: 6px; }
.offer-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.55);
}
.offer-dots button[aria-current="true"] { background: #fff; }
.offer-body { padding: 10px 16px 12px; display: grid; gap: 6px; }
.offer-body h2 { font-size: 1.12rem; line-height: 1.2; padding-right: 0; margin: 0; }
.offer-body .deal-now { font-size: 1.15rem; }
.offer-body .deal-save { font-size: 0.75rem; padding: 4px 8px; }
.offer-kicker { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0; }
.offer-dot { color: var(--muted); }
.offer-lead { margin: 0; color: #2a3f48; font-size: 0.86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.fact { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); font-weight: 650; font-size: 0.82rem; }
.fact .icon { width: 15px; height: 15px; color: var(--teal); }
.offer-desc { white-space: pre-line; overflow-wrap: anywhere; color: #2a3f48; margin: 0; }
.offer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.offer-actions .btn { flex: 1 1 140px; justify-content: center; min-height: 44px; padding: 0 12px; }
.offer-body .offer-actions { flex-wrap: wrap; }
.offer-body h2 { font-size: 1.45rem; line-height: 1.2; }
.offer-back-link { margin-bottom: 2px; }
.offer-back-link .icon { transform: scaleX(-1); }
.offer-org-btn { justify-self: start; padding: 0; border: 0; background: none; color: var(--teal); font-weight: 750; cursor: pointer; text-align: left; }
.offer-org-btn:hover { text-decoration: underline; }
.offer-fav { left: 12px; right: auto; top: 12px; z-index: 4; }
.offer-zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  width: 40px; height: 40px; border: 0; border-radius: 50%; padding: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); color: var(--navy);
}
.offer-clamp { max-height: 11em; overflow: hidden; }
.offer-clamp.is-open { max-height: none; }
.offer-org-head { display: flex; align-items: center; gap: 12px; }
.offer-logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #e7eef1; }
.offer-org-photo { width: 100%; max-height: 240px; object-fit: cover; border-radius: 12px; background: #e7eef1; }
.offer-dock { display: none; }
.photo-lightbox { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(7, 28, 38, 0.94); }
.photo-lightbox::backdrop { background: transparent; }
.photo-lightbox img { position: absolute; inset: 48px 16px; margin: auto; max-width: min(1100px, calc(100% - 32px)); max-height: calc(100% - 96px); object-fit: contain; }
.lightbox-bar .modal-close { position: absolute; }
@media (max-width: 720px) {
  .offer-dock {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
    background: #fff; border-top: 1px solid var(--line);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }
  .offer-dock .btn { width: 100%; min-height: 48px; }
  .offer-use-inline { display: none; }
  .offer-wrap { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}
.offer-body .offer-actions .btn { flex: 1 1 180px; min-height: 44px; padding: 0 12px; font-size: 0.92rem; }
.offer-jump {
  position: sticky; top: 0; z-index: 2; display: flex; gap: 0; padding-right: 46px;
  background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.offer-jump-btn {
  flex: 1; min-height: 44px; border: 0; background: none; cursor: pointer;
  font-weight: 750; color: var(--teal); 
}
.offer-jump-btn:hover, .offer-jump-btn:focus-visible { background: var(--bg-alt); }
.offer-section { padding: 16px 16px 18px; scroll-margin-top: 48px; display: grid; gap: 10px; }
.offer-section + .offer-section { border-top: 8px solid var(--bg-alt); }
.offer-section h3 { margin: 0; font-size: 1.05rem; color: var(--navy); }
.offer-block { display: grid; gap: 10px; }
.offer-block + .offer-block { padding-top: 8px; }
.offer-map { width: 100%; height: clamp(220px, 32vw, 380px); border: 0; border-radius: 12px; background: #dfeaee; }
.offer-reviews { padding: 0; border: 0; display: grid; gap: 12px; }
.offer-reviews h3 { font-size: 1.05rem; color: var(--navy); }
.card-partner, .offer-org { display: block; font-size: 0.86rem; font-weight: 700; color: var(--teal); letter-spacing: 0.02em; }
.offer-includes { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: #2a3f48; }
.offer-wrap { display: grid; padding-bottom: 24px; position: relative; }
@media (min-width: 721px) {
  .offer-body { padding: 12px 20px 14px; }
  .offer-body h2 { font-size: 1.55rem; }
  .offer-section { padding: 16px 20px 18px; }
}
.qr-sheet {
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  margin: 0;
  padding: 28px 20px 32px;
  border: 0;
  background: #f4f7f6;
  color: #172b32;
}
.qr-sheet::backdrop { background: #f4f7f6; }
.qr-sheet-body {
  min-height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  text-align: center;
}
.qr-sheet-kicker { margin: 0; color: #5d737a; font-size: 0.95rem; }
.qr-sheet-body h2 { margin: 0; max-width: 22rem; font-size: 1.35rem; line-height: 1.25; }
.qr-sheet-code {
  width: min(280px, 78vw);
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #d5e0e4;
}
.qr-sheet-code svg { display: block; width: 100%; height: auto; }
.qr-sheet-timer {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.qr-sheet-note { margin: 0; max-width: 24rem; color: #5d737a; line-height: 1.4; }
.qr-sheet-body .btn { min-width: 220px; }
.offer-ticket { perspective: 1400px; }
.offer-ticket-inner {
  display: grid;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.offer-ticket.is-flipped .offer-ticket-inner { transform: rotateY(180deg); }
.offer-face { grid-area: 1 / 1; background: #fff; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 0 0 22px 22px; }
.offer-back { transform: rotateY(180deg); }
.offer-back-body { justify-items: center; text-align: center; }
.offer-back-body h2 { padding-right: 36px; }
.offer-qr { width: min(220px, 70%); background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--line); }
.offer-qr svg { display: block; width: 100%; height: auto; }
.offer-back-meta { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .offer-ticket-inner { transition: none; }
}
.mini-review { padding: 14px; border-radius: var(--radius-sm); background: var(--bg-alt); display: grid; gap: 6px; overflow-wrap: anywhere; }
.mini-review header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.star-input { display: flex; gap: 4px; }
.star-btn { background: none; border: 0; padding: 2px; cursor: pointer; color: #cfd8dc; }
.star-btn .icon { width: 32px; height: 32px; }
.star-btn.on { color: var(--gold); }

/* уведомление */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 90; background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-lg); max-width: calc(100% - 24px); text-align: center; }
.noscript { padding: 16px; background: #fff3cd; text-align: center; }

/* ---------- адаптив ---------- */
@media (min-width: 560px) {
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  .steps-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps-5 li::before { display: none; }
}
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; padding: 40px 0 48px; }
  .hero-art { max-width: 360px; margin: 8px auto 0; opacity: 0.92; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .steps-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .steps li::before { display: none; }
}
@media (max-width: 860px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); flex-direction: column; padding: 10px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; min-height: 44px; }
  /* specificity выше .nav a — иначе ink на navy даёт контраст ~1.1 */
  .nav a.nav-partner {
    display: inline-flex; align-items: center; justify-content: center;
    margin-top: 8px; min-height: 44px; padding: 12px 18px;
    background: var(--navy); color: #fff; border-radius: 999px; font-weight: 700;
  }
  .nav a.nav-partner:hover,
  .nav a.nav-partner:focus-visible {
    background: var(--navy-2); color: #fff;
  }
  .nav a.nav-partner:active {
    background: var(--dark-teal); color: #fff;
  }
  .nav-toggle { display: inline-grid; }
  .join-grid { grid-template-columns: 1fr; }
  .header-actions #partner-open { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 44px 0; }
  .hero h1 { font-size: clamp(2.125rem, 8vw, 2.5rem); max-width: none; }
  .section h2 { font-size: clamp(1.75rem, 6vw, 2.125rem); }
  .hero-art {
    display: block; width: 100%; max-width: 300px; margin: 4px auto 0; opacity: 1;
  }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-search { grid-template-columns: 1fr; border-radius: 24px; }
  .cat-menu-btn { border-left: 0; border-top: 1px solid var(--line); padding-left: 16px; }
  .hero-search .btn { width: 100%; }
  .stat-row { grid-template-columns: 1fr; }
  .stats { margin-top: -20px; }
  .cat-grid, .benefit-grid, .review-grid { grid-template-columns: 1fr; }
  .steps, .steps-5 { grid-template-columns: 1fr; gap: 18px; }
  .steps li { text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; }
  .steps .step-ico { grid-row: span 2; }
  .steps h3 { margin-top: 0; }
  .step-ico { width: 64px; height: 64px; }
  .user-chip { max-width: 96px; }
  .brand-text { font-size: 1.02rem; }
  .map-frame { height: 420px; }
  .band .btn, .join-card .btn { width: 100%; justify-self: stretch; }
}
@media (max-width: 390px) {
  .container { width: calc(100% - 24px); }
  .header-actions .btn { padding: 0 12px; }
  .brand-text { font-size: 0.95rem; }
}
@media (max-width: 360px) {
  .user-chip { display: none; }
  .brand-text { font-size: 0.92rem; }
}
body.cabinet-open #main { display: none; }
.cabinet { padding: 20px 0 96px; }
.cabinet-layout { display: grid; gap: 16px; }
.cabinet-nav { display: flex; gap: 8px; overflow: auto; }
.cabinet-nav button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 14px; white-space: nowrap; cursor: pointer;
}
.cabinet-nav button[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.cabinet-main { display: grid; gap: 14px; min-width: 0; }
.cabinet-card, .cabinet-note { background: var(--bg-alt); border-radius: var(--radius); padding: 16px; }
.cabinet-note { background: #fff7ef; }
.cabinet-form { display: grid; gap: 12px; max-width: 420px; }
.cabinet-form label { display: grid; gap: 4px; font-size: 0.92rem; }
.cabinet-form input { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: #fff; }
.cabinet-form input:disabled { background: var(--bg-alt); color: var(--muted); }
.cabinet-meta { color: var(--muted); font-size: 0.92rem; }
.cabinet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cabinet-item { display: grid; grid-template-columns: 88px 1fr; gap: 12px; background: #fff; border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.cabinet-item img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--radius-sm); background: var(--bg-alt); }
.cabinet-item h3 { font-size: 1rem; }
.qr-box svg { width: 160px; height: 160px; }
@media (min-width: 800px) {
  .cabinet-layout { grid-template-columns: 220px 1fr; align-items: start; }
  .cabinet-nav { flex-direction: column; position: sticky; top: 84px; }
  .cabinet-nav button { text-align: left; border-radius: var(--radius-sm); }
}
@media (max-width: 799px) {
  .cabinet-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: #fff; border-top: 1px solid var(--line); padding: 8px;
  }
}
.prose { max-width: 62ch; color: var(--ink); font-size: 1.05rem; }
.prose-light { color: rgba(255, 255, 255, 0.86); }
.muted-note { color: var(--muted); margin-top: 12px; }

.section-dark { background: var(--navy); color: #fff; }
.section-dark-soft { background: var(--dark-teal); color: #fff; }
.section-head-light .section-lead { color: rgba(255, 255, 255, 0.78); }
.section-dark h2, .section-dark-soft h2 { color: #fff; }

.band-soft { background: linear-gradient(120deg, #eef5f4, #f7f5ef); color: var(--ink); }
.band-soft h2 { color: var(--navy); }

.flow-track {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px;
}
.flow-track li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; min-width: 0;
}
.flow-n {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal-light); color: var(--dark-teal); font-weight: 800; margin-bottom: 10px;
}
.flow-track h3 { font-size: 1.02rem; color: var(--navy); margin-bottom: 6px; }
.flow-track p { color: var(--muted); font-size: 0.95rem; }

.scheme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.scheme-card {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius); padding: 22px 20px;
}
.scheme-card h3 { margin: 0 0 12px; font-size: 1.1rem; }
.scheme-steps { margin: 0; padding-left: 1.2rem; color: rgba(255, 255, 255, 0.86); display: grid; gap: 8px; }

.pill-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li {
  padding: 8px 14px; border-radius: 999px; background: var(--teal-light); color: var(--dark-teal); font-weight: 650; font-size: 0.92rem;
}
.check-list { margin: 0; padding-left: 1.2rem; display: grid; gap: 8px; color: var(--ink); max-width: 52ch; }

.participants-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px;
}
.partner-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.partner-filters .chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--navy);
  font-weight: 650; cursor: pointer;
}
.partner-filters .chip[aria-pressed="true"] { background: var(--dark-teal); border-color: var(--dark-teal); color: #fff; }
.partner-filters .chip .n { font-size: 0.8rem; color: var(--muted); font-weight: 700; }
.partner-filters .chip[aria-pressed="true"] .n { color: rgba(255, 255, 255, 0.75); }
.partners-status { margin: 0 0 14px; color: var(--muted); font-weight: 600; }
.partners-status[data-kind="error"] { color: var(--err); }
.partners-status[data-kind="ok"] { display: none; }
.partner-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
}
.partner-card {
  display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; min-width: 0; box-shadow: var(--shadow);
}
.partner-card-media {
  width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; object-fit: cover;
  background: linear-gradient(145deg, var(--dark-teal), var(--teal));
}
.partner-card-media-icon {
  object-fit: contain; object-position: center; padding: 18px;
  background: linear-gradient(160deg, #163a48 0%, #1f5c5a 55%, #267a78 100%);
}
.partner-card-fallback {
  display: grid; place-items: center; color: #fff; font-size: 1.6rem; font-weight: 800;
}
.partner-card-fallback-cat .icon {
  width: 56px; height: 56px; color: rgba(255, 255, 255, 0.92);
}
.partner-card h3 { margin: 0; color: var(--navy); font-size: 1.08rem; }
.partner-card-cats { margin: 0; color: var(--teal); font-size: 0.85rem; font-weight: 650; }
.partner-card-summary {
  margin: 0; color: var(--muted); font-size: 0.95rem;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.partner-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.partner-card-actions a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 650; font-size: 0.88rem;
}
.partner-card-actions a:hover { border-color: var(--teal); color: var(--teal); }
.partners-map-note { margin-top: 16px; color: var(--muted); font-size: 0.92rem; max-width: 70ch; }
.partners-empty { padding: 28px 18px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.partners-empty button {
  margin-top: 12px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--teal); color: #fff; font-weight: 700; cursor: pointer;
}

@media (max-width: 980px) {
  .flow-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scheme-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-grid { grid-template-columns: 1fr; padding: 40px 0 48px; }
  .hero-panel { margin: 0; max-width: none; }
  .flow-track { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .participants-toolbar { align-items: stretch; }
  .participants-toolbar .btn { width: 100%; }
}

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

/* ---------- редизайн главной: сеть, путь, сравнение, цикл ---------- */
.hero-network {
  position: relative; width: 100%; min-height: 340px; max-width: 420px; margin-left: auto;
  border-radius: 28px; background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16); overflow: hidden;
}
.hero-network::before {
  content: ""; position: absolute; inset: 18% 16%; border-radius: 50%;
  border: 1.5px dashed rgba(198, 166, 107, 0.45); pointer-events: none;
}
.hero-network-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 108px; height: 108px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
  background: linear-gradient(145deg, var(--dark-teal), var(--teal));
  color: #fff; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25); z-index: 2;
}
.hero-node {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.94);
  color: var(--navy); font-weight: 700; font-size: 0.86rem; box-shadow: var(--shadow); z-index: 2;
}
.hero-node .icon { width: 18px; height: 18px; color: var(--teal); }
.hero-node-1 { top: 18px; left: 22px; }
.hero-node-2 { top: 28px; right: 18px; }
.hero-node-3 { bottom: 78px; left: 14px; }
.hero-node-4 { bottom: 28px; right: 28px; }
.hero-node-5 { bottom: 18px; left: 38%; }

.split-block {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px; align-items: start;
}
.prose-lg { font-size: 1.12rem; line-height: 1.6; }
.infographic { margin: 0; }
.infographic svg { width: 100%; height: auto; display: block; }
.infographic figcaption { margin-top: 12px; color: var(--muted); font-size: 0.95rem; max-width: 46ch; }

.eco-map { margin: 0; }
.eco-desktop { width: 100%; height: auto; display: block; max-width: 440px; margin: 0 auto; }
.eco-mobile {
  display: none; list-style: none; margin: 0; padding: 0;
  grid-template-columns: 1fr; gap: 10px;
}
.eco-mobile li {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 12px;
  display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: start;
}
.eco-step-n {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(38, 122, 120, 0.12); color: var(--teal); font-weight: 800; grid-row: span 2;
}
.eco-mobile strong { display: block; font-size: 0.98rem; color: var(--navy); }
.eco-mobile p { margin: 0; color: var(--muted); font-size: 0.9rem; }

@keyframes eco-dash {
  to { stroke-dashoffset: -24; }
}
.eco-flow-out {
  stroke-dasharray: 4 4;
  animation: eco-dash 1.8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .eco-flow-out,
  .eco-flow-in {
    animation: none;
  }
}

.value-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.value-grid-org { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.value-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow); min-width: 0;
}
.value-ico {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--teal-light); color: var(--teal); margin-bottom: 12px;
}
.value-card h3 { color: var(--navy); font-size: 1.08rem; line-height: 1.3; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: 0.96rem; margin: 0; }

.journey {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
  counter-reset: none;
}
.journey-step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 14px; min-width: 0;
}
.journey-step:not(:last-child)::after {
  content: ""; position: absolute; top: 34px; right: -10px; width: 16px; height: 2px;
  background: var(--gold); opacity: 0.7; z-index: 1;
}
.journey-n {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal-light); color: var(--dark-teal); font-weight: 800; margin-bottom: 10px;
}
.journey-step h3 { font-size: 1rem; color: var(--navy); margin-bottom: 6px; }
.journey-step p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.compare {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch;
}
.compare-side {
  border-radius: var(--radius); padding: 24px 22px; border: 1px solid var(--line); min-width: 0;
}
.compare-coupon { background: var(--bg-alt); }
.compare-turcard {
  background: linear-gradient(160deg, rgba(38, 122, 120, 0.1), rgba(198, 166, 107, 0.12));
  border-color: rgba(38, 122, 120, 0.28);
}
.compare-label {
  display: inline-block; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 14px;
}
.compare-turcard .compare-label { color: var(--dark-teal); }
.compare-side ul { margin: 0; padding-left: 1.15rem; display: grid; gap: 10px; color: var(--ink); }
.compare-vs {
  align-self: center; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: var(--navy);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}

.band-access, .band-apply {
  background: linear-gradient(145deg, var(--navy-2) 0%, var(--navy) 42%, var(--dark-teal) 100%);
  color: #fff; padding: 56px 0;
}
.band-access h2, .band-apply h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.25rem); max-width: 20ch; line-height: 1.15; }
.band-access p, .band-apply p { color: rgba(255, 255, 255, 0.88); }
.access-steps { margin: 16px 0 0; padding-left: 1.2rem; color: rgba(255, 255, 255, 0.9); display: grid; gap: 6px; }
.access-note { margin-top: 14px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.78); max-width: 46ch; }
.btn-ghost-on-dark {
  background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost-on-dark:hover { background: rgba(255, 255, 255, 0.2); }

.cycle-map { margin: 0; }
.cycle-desktop { width: 100%; height: auto; display: block; max-width: 900px; margin: 0 auto; }
.cycle-mobile {
  display: none; margin: 0; padding: 0;
  grid-template-columns: 1fr; gap: 10px;
}
.cycle-mobile-kicker {
  margin: 0;
  color: rgba(247, 245, 239, 0.9);
  font-size: 0.95rem;
  font-weight: 650;
  text-align: center;
}
.cycle-orgs-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
}
.cycle-org-card {
  margin: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 12px 10px;
  min-width: 0;
}
.cycle-org-card.cycle-tone-a { border-color: rgba(198, 166, 107, 0.55); }
.cycle-org-card.cycle-tone-b { border-color: rgba(109, 181, 177, 0.55); }
.cycle-org-card.cycle-tone-c { border-color: rgba(217, 192, 138, 0.55); }
.cycle-org-card.cycle-tone-d { border-color: rgba(143, 180, 196, 0.55); }
.cycle-org-card strong { display: block; font-size: 0.94rem; color: #fff; }
.cycle-org-card p { margin: 4px 0 0; color: rgba(255, 255, 255, 0.78); font-size: 0.84rem; }
.cycle-guests {
  display: inline-flex; gap: 5px; margin-top: 6px; align-items: center;
}
.cycle-offer-chips {
  display: inline-block; margin-top: 8px;
  color: rgba(247, 245, 239, 0.82); font-size: 0.82rem;
}
.cycle-guests i {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
  background: currentColor;
}
.cycle-tone-a .cycle-guests { color: #C6A66B; }
.cycle-tone-b .cycle-guests { color: #6DB5B1; }
.cycle-tone-c .cycle-guests { color: #D9C08A; }
.cycle-tone-d .cycle-guests { color: #8FB4C4; }
.cycle-guests-mixed i:nth-child(1) { background: #C6A66B; }
.cycle-guests-mixed i:nth-child(2) { background: #6DB5B1; }
.cycle-guests-mixed i:nth-child(3) { background: #D9C08A; }
.cycle-guests-mixed i:nth-child(4) { background: #8FB4C4; }
.cycle-mobile-join {
  margin: 0; text-align: center; color: var(--gold); font-size: 1.35rem; line-height: 1;
}
.cycle-hub-card {
  background: linear-gradient(145deg, rgba(16, 43, 58, 0.85), rgba(38, 122, 120, 0.55));
  border: 1px solid rgba(198, 166, 107, 0.4);
  border-radius: var(--radius);
  padding: 14px 12px;
  text-align: center;
}
.cycle-hub-card strong {
  display: block; color: #fff; font-size: 1.08rem; font-weight: 800;
}
.cycle-hub-card p {
  margin: 4px 0 0; color: rgba(255, 255, 255, 0.82); font-size: 0.88rem;
}
.cycle-hub-card .cycle-guests { justify-content: center; }
.cycle-mobile-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 8px;
}
.cycle-mobile-steps li {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius); padding: 12px 10px; min-width: 0;
  display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: start;
}
.cycle-n {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(198, 166, 107, 0.25); color: var(--gold); font-weight: 800; grid-row: span 2;
}
.cycle-mobile-steps strong { display: block; font-size: 0.98rem; color: #fff; }
.cycle-mobile-steps p { margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 0.9rem; }
.cycle-caption { margin-top: 14px; color: rgba(255, 255, 255, 0.78); max-width: 68ch; font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) {
  .cycle-desktop path,
  .cycle-mobile-join {
    transition: none;
    animation: none;
  }
}

.faq-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.faq-group { margin: 0 0 12px; color: var(--navy); font-size: 1.05rem; }

@media (max-width: 980px) {
  .split-block, .faq-columns { grid-template-columns: 1fr; }
  .value-grid, .value-grid-org { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-step:not(:last-child)::after { display: none; }
  .compare { grid-template-columns: 1fr; }
  .compare-vs { justify-self: center; }
}
@media (max-width: 640px) {
  .hero-network {
    width: 100%; min-height: 220px; max-width: 300px; margin: 8px auto 0; border-radius: 22px;
  }
  .hero-network-core { width: 86px; height: 86px; font-size: 0.92rem; }
  .hero-node { padding: 8px 11px; font-size: 0.78rem; gap: 6px; }
  .hero-node .icon { width: 15px; height: 15px; }
  .hero-node-1 { top: 12px; left: 14px; }
  .hero-node-2 { top: 16px; right: 12px; }
  .hero-node-3 { bottom: 48px; left: 10px; }
  .hero-node-4 { bottom: 16px; right: 16px; }
  .hero-node-5 { display: none; }
  .value-grid, .value-grid-org, .journey { grid-template-columns: 1fr; }
  .band-actions { justify-content: stretch; flex-direction: column; align-items: stretch; flex: 1 1 100%; width: 100%; }
  .band-actions .btn { width: 100%; }
  .infographic svg.cycle-desktop { display: none; }
  .cycle-mobile { display: grid; }
  .infographic svg.eco-desktop { display: none; }
  .eco-mobile { display: grid; }
}
@media (max-width: 390px) {
  .hero-art { max-width: 260px; }
  .hero-network { min-height: 200px; max-width: 260px; }
  .hero-node-4 { display: none; }
  .hero-node-3 { bottom: 18px; left: 18px; }
  .hero h1 { font-size: 1.85rem; }
  .lead { font-size: 1.02rem; }
}

/* Знак ProtonGo: ядро, орбиты и узлы. Без движения знак виден целиком. */
.hero-art .atom { max-width: 460px; margin-left: auto; }
.atom-plate {
  max-width: 460px; margin: 0 auto; padding: 8px;
  background: var(--bg); border-radius: 28px;
}
.atom { display: block; width: 100%; height: auto; overflow: visible; }
.atom-b .orbit-3 { opacity: 1; }

html.atom-motion .atom-b:not(.is-done) .orbit-3 { opacity: 0; }

html.atom-motion .atom.is-done .atom-core { animation: atom-core-in 0.45s ease both; }
html.atom-motion .atom.is-done .orbit-1 { animation: atom-draw 0.7s ease 0.35s both; }
html.atom-motion .atom.is-done .orbit-2 { animation: atom-draw 0.7s ease 0.75s both; }
html.atom-motion .atom.is-done .atom-node { animation: atom-in 0.35s ease 1.2s both; }
html.atom-motion .atom.is-done .orbit-impulse {
  animation: atom-run 9s linear 1.7s infinite;
  animation-play-state: paused;
}
html.atom-motion .atom.is-done.is-live .orbit-impulse { animation-play-state: running; }
html.atom-motion .atom.is-done .atom-node-hot {
  animation: atom-in 0.35s ease 1.2s both, atom-glow 9s linear 1.7s infinite;
  animation-play-state: running, paused;
}
html.atom-motion .atom.is-done.is-live .atom-node-hot { animation-play-state: running, running; }
html.atom-motion .atom-b.is-done .orbit-3 { animation: atom-fade 0.7s ease 0.25s both; }

@keyframes atom-core-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes atom-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes atom-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes atom-run { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
@keyframes atom-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes atom-glow {
  0%, 10% { stroke: #C6A66B; }
  18%, 100% { stroke: #102B3A; }
}

@media (prefers-reduced-motion: reduce) {
  .atom .atom-core,
  .atom .atom-node,
  .atom .orbit,
  .atom .orbit-impulse,
  .atom-b .orbit-3 {
    opacity: 1;
    stroke-dashoffset: 0;
    animation: none !important;
  }
  .atom .atom-node-hot { stroke: #102B3A; }
}
@media (max-width: 640px) {
  .hero-art .atom, .atom-plate { max-width: 300px; margin-inline: auto; }
}
@media (max-width: 360px) {
  .hero-art .atom, .atom-plate { max-width: 240px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}

/* Главная: концепция A. Deep Technology. Только body.home, остальные страницы не затронуты. */
body.home {
  background: var(--ds-color-bg);
  color: var(--ds-color-text);
  font-family: var(--ds-font-family);
  overflow-x: hidden;
  color-scheme: light;
}
body.home::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at 78% 0%, rgba(38, 122, 120, 0.07), transparent 42%);
}
body.home .site-header,
body.home #main,
body.home .site-footer,
body.home #cabinet { position: relative; z-index: 1; }
body.home :focus-visible { outline: 3px solid var(--ds-color-focus); outline-offset: 2px; }

body.home .site-header {
  background: rgba(245, 248, 248, 0.92);
  border-bottom-color: var(--ds-color-border);
  color: var(--ds-color-text);
}
body.home .brand {
  color: var(--ds-color-text);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
body.home .nav a { color: var(--ds-color-text-muted); }
body.home .nav a:hover { background: transparent; color: var(--ds-color-text); }
body.home .icon-btn { background: transparent; border-color: var(--ds-color-border); color: var(--ds-color-text); }
body.home .site-header .btn-ghost,
body.home #main .btn-ghost,
body.home #main .btn-ghost-on-dark {
  background: transparent;
  color: var(--ds-color-text);
  border-color: var(--ds-color-border);
  border-radius: 0;
  box-shadow: none;
}
body.home #main .btn-ghost:hover,
body.home #main .btn-ghost-on-dark:hover,
body.home .site-header .btn-ghost:hover { background: transparent; border-color: #267A78; color: var(--ds-color-text); }
body.home .site-header .btn-primary,
body.home #main .btn-accent,
body.home #main .btn-primary,
body.home .modal .btn-primary,
body.home .modal .btn-accent {
  background: var(--ds-color-action);
  color: var(--ds-color-action-text);
  border-color: transparent;
  border-radius: var(--ds-radius-button);
  box-shadow: none;
  transition: background var(--ds-duration-fast) var(--ds-ease), transform 0.1s var(--ds-ease);
}
body.home .site-header .btn-primary:hover,
body.home #main .btn-accent:hover,
body.home #main .btn-primary:hover,
body.home .modal .btn-primary:hover,
body.home .modal .btn-accent:hover {
  background: var(--ds-color-action-hover);
  color: var(--ds-color-action-text);
}
body.home .site-header .btn-primary:active,
body.home #main .btn-accent:active,
body.home #main .btn-primary:active,
body.home .modal .btn-primary:active,
body.home .modal .btn-accent:active {
  background: color-mix(in srgb, var(--ds-color-action-hover) 72%, var(--ds-color-bg));
}
body.home .site-header .btn-primary:disabled,
body.home #main .btn-primary:disabled,
body.home #main .btn-accent:disabled,
body.home .modal .btn-primary:disabled,
body.home .modal .btn-accent:disabled,
body.home .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
body.home .site-header .btn-primary:disabled:hover,
body.home #main .btn-primary:disabled:hover,
body.home #main .btn-accent:disabled:hover,
body.home .modal .btn-primary:disabled:hover,
body.home .modal .btn-accent:disabled:hover,
body.home #cabinet .btn-primary:disabled:hover {
  background: var(--ds-color-action);
  color: var(--ds-color-action-text);
}
body.home #main a:not(.btn) { color: var(--ds-color-teal-accent); }
body.home #main a:not(.btn):hover { color: var(--ds-color-text); }

body.home .hero {
  min-height: 0;
  display: block;
  padding: 56px 0 40px;
  overflow: visible;
  background: transparent;
  color: var(--ds-color-text);
}
body.home .hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: stretch;
  gap: clamp(28px, 3vw, 48px);
}
body.home .datum { display: none; }
body.home .hero-copy { position: relative; z-index: 2; max-width: none; }
body.home .kicker {
  margin: 0 0 18px;
  color: var(--ds-color-text-muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
body.home .hero h1 {
  font-size: clamp(2.5rem, 4.5vw, 4.55rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 11em;
  color: var(--ds-color-text);
}
body.home .hero .lead { color: var(--ds-color-text-muted); max-width: 42ch; font-size: 17px; }
body.home .hero-art {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  width: min(100%, 440px);
  max-width: 440px;
  margin-inline: auto;
  opacity: 1;
  transform: none;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: none;
  mask-image: none;
}
body.home .hero-art svg,
body.home .atom-plate svg { width: 100%; height: auto; display: block; }
@media (min-width: 1024px) {
  /* Высоту Hero задаёт текст. Атом вписывается в эту высоту и не растягивает секцию. */
  body.home .hero-art {
    container-type: size;
    align-self: stretch;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
  }
  body.home .hero-art .atom {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(100cqw, 100cqh, 440px);
    height: min(100cqw, 100cqh, 440px);
    max-width: none;
    transform: translate(-50%, -50%);
  }
  body.home .platform-grid { align-items: stretch; }
  body.home #audience-exchange .atom-plate {
    container-type: size;
    position: relative;
    align-self: stretch;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
  }
  body.home #audience-exchange .atom-plate .atom {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(100cqw, 100cqh, 460px);
    height: min(100cqw, 100cqh, 460px);
    max-width: none;
    transform: translate(-50%, -50%);
  }
}
body.home .hero-art .atom,
body.home .atom-plate { max-width: none; margin: 0; background: transparent; border-radius: 0; padding: 0; }

body.home .hero-art .core { opacity: 0; transform-box: fill-box; transform-origin: center; }
body.home .hero-art .orbit { stroke-dasharray: 100; stroke-dashoffset: 100; }
body.home .hero-art .halo,
body.home .hero-art .glint,
body.home .hero-art .node,
body.home .hero-art .impulse { opacity: 0; }
body.home .hero-art.play .core { animation: dt-core 0.9s cubic-bezier(.2,.7,.2,1) forwards; }
body.home .hero-art.play .halo-1 { animation: dt-fade 0.9s 0.25s ease forwards; }
body.home .hero-art.play .orbit-1 { animation: dt-draw 1.15s 0.28s cubic-bezier(.4,0,.15,1) forwards; }
body.home .hero-art.play .halo-2 { animation: dt-fade 0.9s 0.48s ease forwards; }
body.home .hero-art.play .orbit-2 { animation: dt-draw 1.2s 0.5s cubic-bezier(.4,0,.15,1) forwards; }
body.home .hero-art.play .halo-3 { animation: dt-fade 0.9s 0.7s ease forwards; }
body.home .hero-art.play .orbit-3 { animation: dt-draw 1.25s 0.72s cubic-bezier(.4,0,.15,1) forwards; }
body.home .hero-art.play .halo-4 { animation: dt-fade 0.9s 0.92s ease forwards; }
body.home .hero-art.play .orbit-4 { animation: dt-draw 1.2s 0.94s cubic-bezier(.4,0,.15,1) forwards; }
body.home .hero-art.play .halo-5 { animation: dt-fade 0.9s 1.12s ease forwards; }
body.home .hero-art.play .orbit-5 { animation: dt-draw 1.15s 1.14s cubic-bezier(.4,0,.15,1) forwards; }
body.home .hero-art.play .node { animation: dt-fade 0.55s 1.55s ease forwards; }
body.home .hero-art.play .impulse-1 { animation: dt-fade 0.35s 1.7s both, dt-run 7.4s linear infinite; animation-delay: 1.7s, -0.6s; }
body.home .hero-art.play .impulse-2 { animation: dt-fade 0.35s 1.82s both, dt-run 11.8s linear infinite; animation-delay: 1.82s, -4.9s; }
body.home .hero-art.play .impulse-3 { animation: dt-fade 0.35s 1.94s both, dt-run 9.1s linear infinite; animation-delay: 1.94s, -2.4s; animation-direction: normal, reverse; }
body.home .hero-art.play .impulse-4 { animation: dt-fade 0.35s 2.06s both, dt-run 15.6s linear infinite; animation-delay: 2.06s, -9.2s; }
body.home .hero-art.play .impulse-5 { animation: dt-fade 0.35s 2.18s both, dt-run 8.6s linear infinite; animation-delay: 2.18s, -6.1s; animation-direction: normal, reverse; }
body.home .hero-art.play .node-hot .halo {
  animation: dt-fade 0.55s 1.55s ease forwards, dt-halo 6.4s 2.1s ease-in-out infinite;
}
body.home .hero-art.play .impulse,
body.home .hero-art.play .node-hot .halo { animation-play-state: paused; }
body.home .hero-art.play.is-live .core-fire { animation: dt-fire 4.6s ease-in-out infinite; }
body.home .hero-art.play.is-live .impulse,
body.home .hero-art.play.is-live .node-hot .halo,
body.home .hero-art.play.is-live .core-fire { animation-play-state: running; }
body.home .platform .impulse-1 { animation: dt-run 7.4s -0.6s linear infinite; }
body.home .platform .impulse-2 { animation: dt-run 11.8s -4.9s linear infinite; }
body.home .platform .impulse-3 { animation: dt-run 9.1s -2.4s linear infinite reverse; }
body.home .platform .impulse-4 { animation: dt-run 15.6s -9.2s linear infinite; }
body.home .platform .impulse-5 { animation: dt-run 8.6s -6.1s linear infinite reverse; }
body.home .platform .impulse { animation-play-state: paused; }
body.home .platform.is-live .impulse,
body.home .platform.is-live .core-fire { animation-play-state: running; }
body.home .platform.is-live .core-fire { animation: dt-fire 5.2s ease-in-out infinite; }
body.home .platform .node-hot .halo { opacity: 0.35; }
body.home .platform.is-live .node-hot .halo { animation: dt-halo 6.4s ease-in-out infinite; }
body.home .dt-rule { width: 0; height: 1px; margin: 18px 0; background: #C6A66B; transition: width 0.8s ease; }
body.home .platform.is-on .dt-rule { width: 72px; }
@keyframes dt-core { from { opacity: 0; transform: scale(0.72); } to { opacity: 1; transform: scale(1); } }
@keyframes dt-draw { to { stroke-dashoffset: 0; } }
@keyframes dt-fade { to { opacity: 1; } }
@keyframes dt-run { to { stroke-dashoffset: -100; } }
@keyframes dt-halo { 0%, 100% { opacity: 0.28; } 50% { opacity: 1; } }
@keyframes dt-fire { 0%, 100% { opacity: 0.78; } 50% { opacity: 1; } }
@keyframes dt-rise { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }

body.home .section h2,
body.home .band h2 { color: var(--ds-color-text); font-weight: 600; letter-spacing: -0.03em; }
body.home .section-lead,
body.home .prose,
body.home .muted-note,
body.home .check-list { color: var(--ds-color-text-muted); }
body.home .prose-lg { color: var(--ds-color-text); }
body.home .section-alt { background: transparent; }
body.home #how-it-works,
body.home #guest-path,
body.home #access-cta,
body.home #audience-exchange,
body.home #quality-fit { background: var(--ds-color-surface-sunken); }
body.home #for-guests,
body.home #not-coupons,
body.home #for-organizations,
body.home #org-benefits,
body.home #faq { background: transparent; }
body.home #participants,
body.home #apply,
body.home #final-cta { background: var(--ds-color-surface); }
body.home .band { background: var(--ds-color-surface); }
body.home #access-cta.band { background: var(--ds-color-surface-sunken); }

body.home .dt-points,
body.home .dt-steps {
  list-style: none;
  margin: 8px 0 0;
  padding: 0 0 0 28px;
  border-left: 1px solid var(--ds-color-border);
}
body.home .dt-points li,
body.home .dt-steps li { position: relative; padding: 0 0 22px; color: var(--ds-color-text-muted); }
body.home .dt-points li::before,
body.home .dt-steps li::before {
  content: "";
  position: absolute;
  left: -33px; top: 7px;
  width: 9px; height: 9px;
  border: 1px solid #267A78;
  border-radius: 50%;
  background: var(--ds-color-surface-sunken);
}
body.home .dt-points strong,
body.home .dt-steps strong { display: block; color: var(--ds-color-text); font-weight: 600; margin-bottom: 4px; }
body.home .platform-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) minmax(260px, 0.9fr);
  gap: 36px;
  align-items: center;
}
body.home .cycle-caption { color: var(--ds-color-text-muted); max-width: 52ch; }

body.home .value-card,
body.home .join-card,
body.home .compare-side,
body.home .faq-item,
body.home .partner-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.home .value-grid,
body.home .value-grid-org { gap: 0 32px; }
body.home .value-card { border-top: 1px solid var(--ds-color-border); padding: 22px 0; }
body.home .value-card h3,
body.home .join-card h3,
body.home .partner-card h3,
body.home .compare-label,
body.home .journey-step h3 { color: var(--ds-color-text); }
body.home .value-card p,
body.home .join-card p,
body.home .partner-card-summary,
body.home .journey-step p,
body.home .compare-side li { color: var(--ds-color-text-muted); }
body.home .value-ico { background: transparent; border: 1px solid var(--ds-color-border); border-radius: 50%; color: var(--ds-color-teal-accent); }
body.home .compare-coupon,
body.home .compare-turcard { background: transparent; }
body.home .journey { display: block; margin: 0; padding: 0 0 0 28px; border-left: 1px solid var(--ds-color-border); }
body.home .journey-step { background: transparent; border: 0; box-shadow: none; padding: 0 0 22px; position: relative; }
body.home .journey-step::after { display: none; }
body.home .journey-n {
  position: absolute; left: -40px; top: 0;
  background: var(--ds-color-surface-sunken); color: var(--ds-color-text); border: 1px solid #267A78;
}
body.home .compare-side { border-top: 1px solid var(--ds-color-border); }
body.home .compare-vs { color: #C6A66B; }
body.home .faq-group { color: var(--ds-color-text-muted); letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; font-weight: 600; }
body.home .faq-item { border-top: 1px solid var(--ds-color-border); padding: 0; }
body.home .faq-item summary { color: var(--ds-color-text); }
body.home .faq-item summary::after { color: #267A78; }
body.home .faq-item p { color: var(--ds-color-text-muted); }
body.home #final-cta .join-card { border-top: 1px solid var(--ds-color-border); padding: 28px 8px 8px 0; }
body.home #final-cta .join-card h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.03em; font-weight: 600; }

body.home .partner-grid { grid-template-columns: 1fr; gap: 0; }
body.home .partner-card {
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 4px;
  align-items: start;
  border-top: 1px solid var(--ds-color-border);
  padding: 22px 0;
}
body.home .partner-card-media {
  grid-row: 1 / span 4;
  width: 64px; height: 64px; aspect-ratio: auto;
  border-radius: 50%;
  border: 1px solid #267A78;
  object-fit: cover;
}
body.home .partner-card-fallback { color: var(--ds-color-text); font-size: 1.2rem; }
body.home .partner-card-fallback-cat .icon { width: 28px; height: 28px; }
body.home .partner-card h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
body.home .partner-card-actions a {
  border-radius: 0;
  border-color: var(--ds-color-border);
  color: var(--ds-color-text);
  background: transparent;
}
body.home .partner-filters .chip {
  border-radius: 0;
  background: transparent;
  border-color: var(--ds-color-border);
  color: var(--ds-color-text);
}
body.home .partner-filters .chip[aria-pressed="true"] { background: var(--ds-color-action); border-color: var(--ds-color-action); color: var(--ds-color-action-text); }
body.home .partner-filters .chip .n,
body.home .partner-filters .chip[aria-pressed="true"] .n { color: var(--ds-color-text-muted); }
body.home .partners-map-note,
body.home .partners-status { color: var(--ds-color-text-muted); }

body.home .site-footer { background: var(--ds-color-bg); border-top: 1px solid var(--ds-color-border); }
body.home .footer-brand { letter-spacing: 0.16em; text-transform: uppercase; font-size: 12px; font-weight: 600; }
body.home .footer-sub { color: var(--ds-color-text-muted); }
body.home .site-footer a { color: var(--ds-color-text-muted); }
body.home .site-footer a:hover { color: var(--ds-color-text); }

@media (max-width: 1023px) {
  body.home .hero {
    position: relative;
    overflow: hidden;
    padding: 36px 0 40px;
  }
  body.home .hero-layout {
    position: relative;
    isolation: isolate;
    display: block;
  }
  /* Маска между атомом и текстом: приглушает ядро, оставляет орбиты видимыми. */
  body.home .hero-layout::before {
    content: "";
    position: absolute;
    z-index: 1;
    pointer-events: none;
    inset: -20% -8% 8% -4%;
    background:
      radial-gradient(circle at 68% 26%, rgba(245, 248, 248, 0.66) 0%, rgba(245, 248, 248, 0.28) 14%, rgba(245, 248, 248, 0) 32%),
      linear-gradient(90deg, rgba(245, 248, 248, 0.22) 0%, rgba(245, 248, 248, 0.1) 48%, rgba(245, 248, 248, 0) 78%);
  }
  body.home .hero-layout::after {
    content: "";
    position: absolute;
    z-index: 1;
    pointer-events: none;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30%;
    background: linear-gradient(180deg, rgba(245, 248, 248, 0) 0%, rgba(245, 248, 248, 0.28) 55%, rgba(245, 248, 248, 0.62) 100%);
  }
  body.home .hero-copy { position: relative; z-index: 2; }
  body.home .hero-art {
    position: absolute;
    z-index: 0;
    top: 0;
    right: max(-12px, calc((100% - 100vw) / 2 + 10px));
    left: auto;
    width: 340px;
    max-width: none;
    margin: 0;
    opacity: 1;
  }
  body.home #audience-exchange { position: relative; overflow: hidden; }
  body.home #audience-exchange .platform-grid {
    position: relative;
    isolation: isolate;
    display: block;
  }
  body.home #audience-exchange .platform-grid::before {
    content: "";
    position: absolute;
    z-index: 1;
    pointer-events: none;
    left: -8%;
    bottom: -10%;
    width: 72%;
    height: 70%;
    background:
      radial-gradient(circle at 38% 62%, rgba(245, 248, 248, 0.48) 0%, rgba(245, 248, 248, 0) 30%);
  }
  body.home #audience-exchange .platform-grid::after {
    content: "";
    position: absolute;
    z-index: 1;
    pointer-events: none;
    inset: 0;
    background: linear-gradient(100deg, rgba(245, 248, 248, 0.05) 0%, rgba(245, 248, 248, 0.22) 34%, rgba(245, 248, 248, 0.48) 70%, rgba(245, 248, 248, 0.62) 100%);
  }
  body.home #audience-exchange .atom-plate {
    position: absolute;
    z-index: 0;
    top: auto;
    right: auto;
    bottom: 18px;
    left: max(-36px, calc((100% - 100vw) / 2 + 4px));
    width: 300px;
    max-width: none;
    margin: 0;
    pointer-events: none;
    opacity: 0.95;
  }
  body.home #audience-exchange .platform-grid > div:last-child {
    position: relative;
    z-index: 2;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  body.home #audience-exchange { overflow: visible; }
  body.home #audience-exchange .platform-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1fr);
    align-items: center;
    gap: 28px;
  }
  body.home #audience-exchange .platform-grid::before,
  body.home #audience-exchange .platform-grid::after { content: none; }
  body.home #audience-exchange .atom-plate {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: min(100%, 340px);
    margin: 0;
    opacity: 1;
  }
}
@media (max-width: 860px) {
  body.home .nav { background: var(--ds-color-surface); border-bottom-color: var(--ds-color-border); }
  body.home .nav a.nav-partner { background: var(--ds-color-action); color: var(--ds-color-action-text); border-radius: var(--ds-radius-button); }
  body.home .nav a.nav-partner:hover,
  body.home .nav a.nav-partner:focus-visible { background: var(--ds-color-action-hover); color: var(--ds-color-action-text); }
}
@media (max-width: 430px) {
  body.home .hero-art { width: 292px; top: -6px; }
  body.home #audience-exchange .atom-plate { width: 268px; bottom: 28px; }
  body.home .hero-cta { flex-direction: column; align-items: stretch; }
  body.home .hero-cta .btn { width: 100%; }
}
@media (max-width: 390px) {
  body.home .hero-art { width: 268px; top: -4px; }
  body.home #audience-exchange .atom-plate { width: 250px; bottom: 36px; }
}
@media (max-width: 360px) {
  body.home .hero-art { width: 248px; top: 0; }
  body.home #audience-exchange .atom-plate { width: 236px; bottom: 28px; }
  body.home .hero h1 { font-size: 1.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  body.home .core,
  body.home .node,
  body.home .glint,
  body.home .halo,
  body.home .impulse,
  body.home .core-fire,
  body.home .orbit-3 { opacity: 1 !important; animation: none !important; transform: none !important; }
  body.home .orbit { stroke-dashoffset: 0 !important; animation: none !important; }
  body.home .dt-rule { width: 72px !important; transition: none !important; }
}
html.reduce body.home .core,
html.reduce body.home .node,
html.reduce body.home .glint,
html.reduce body.home .halo,
html.reduce body.home .impulse,
html.reduce body.home .core-fire,
html.reduce body.home .orbit-3 { opacity: 1 !important; animation: none !important; transform: none !important; }
html.reduce body.home .orbit { stroke-dashoffset: 0 !important; animation: none !important; }
html.reduce body.home .dt-rule { width: 72px !important; transition: none !important; }

/* E.5.3. Нижние секции, диалоги и кабинет гостя читают токены. Админка и правовые страницы вне body.home. */
body.home .section,
body.home .band { color: var(--ds-color-text); }
body.home .section h2,
body.home .band h2 { color: var(--ds-color-text); font-weight: var(--ds-font-weight-medium); }
body.home .section-lead,
body.home .prose,
body.home .muted-note,
body.home .check-list,
body.home .cycle-caption { color: var(--ds-color-text-muted); }
body.home .prose-lg,
body.home .value-card h3,
body.home .join-card h3,
body.home .partner-card h3,
body.home .compare-label,
body.home .journey-step h3,
body.home .dt-points strong,
body.home .dt-steps strong,
body.home .faq-item summary { color: var(--ds-color-text); }
body.home #how-it-works,
body.home #guest-path,
body.home #access-cta,
body.home #audience-exchange,
body.home #quality-fit,
body.home #access-cta.band { background: var(--ds-color-surface-sunken); }
body.home #participants,
body.home #apply,
body.home #final-cta,
body.home .band { background: var(--ds-color-surface); }
body.home .dt-points,
body.home .dt-steps,
body.home .journey { border-left-color: var(--ds-color-border); }
body.home .dt-points li::before,
body.home .dt-steps li::before { border-color: var(--ds-color-teal-accent); background: var(--ds-color-surface-sunken); }
body.home .value-card,
body.home .faq-item,
body.home .partner-card,
body.home .compare-side,
body.home #final-cta .join-card { border-top-color: var(--ds-color-border); }
body.home .value-ico,
body.home .partner-card-actions a,
body.home .partner-filters .chip { border-color: var(--ds-color-border); }
body.home .partner-card-media,
body.home .journey-n { border-color: var(--ds-color-teal-accent); }
body.home .journey-n { background: var(--ds-color-surface-sunken); color: var(--ds-color-text); }
body.home .partner-filters .chip[aria-pressed="true"] {
  background: var(--ds-color-action);
  border-color: var(--ds-color-action);
  color: var(--ds-color-action-text);
}
body.home .partner-filters .chip[aria-pressed="true"] .n { color: var(--ds-color-action-text); }
body.home .compare-side {
  background: transparent;
  border: 0;
  border-top: var(--ds-border-width) solid var(--ds-color-border);
  border-radius: var(--ds-radius-surface);
  box-shadow: none;
}
body.home .compare-coupon,
body.home .compare-turcard { background: transparent; }
body.home .compare-side ul,
body.home .compare-vs { color: var(--ds-color-text-muted); }
body.home .compare-vs {
  background: var(--ds-color-bg);
  border: var(--ds-border-width) solid var(--ds-color-border-strong);
  box-shadow: none;
}
body.home .faq-item summary::after,
body.home .site-header .btn-ghost:hover,
body.home #main .btn-ghost:hover { border-color: var(--ds-color-teal-accent); }
body.home .site-footer { background: var(--ds-color-bg); border-top-color: var(--ds-color-border); }
body.home .site-footer a,
body.home .footer-sub,
body.home .kicker,
body.home .hero .lead { color: var(--ds-color-text-muted); }
body.home .site-footer a:hover,
body.home .nav a:hover { color: var(--ds-color-text); }
body.home .empty {
  background: transparent;
  border: var(--ds-border-width) dashed var(--ds-color-border-strong);
  border-radius: var(--ds-radius-control);
  color: var(--ds-color-text-muted);
}
body.home .toast {
  background: var(--ds-color-surface);
  color: var(--ds-color-text);
  border: var(--ds-border-width) solid var(--ds-color-border-strong);
  border-radius: var(--ds-radius-button);
  box-shadow: var(--ds-shadow-overlay);
}
body.home .noscript {
  background: var(--ds-color-warning-bg);
  color: var(--ds-color-warning);
}
body.home .skip-link { background: var(--ds-color-surface); color: var(--ds-color-text); }

body.home .modal {
  background: var(--ds-color-surface);
  color: var(--ds-color-text);
  border: var(--ds-border-width) solid var(--ds-color-border);
  border-radius: var(--ds-radius-surface);
  box-shadow: var(--ds-shadow-overlay);
}
body.home .modal::backdrop { background: rgba(23, 43, 50, 0.46); }
body.home .modal h2,
body.home .offer-section h3,
body.home .offer-reviews h3,
body.home .offer-body h2 { color: var(--ds-color-text); }
body.home .modal-sub,
body.home .hint,
body.home .modal .field label,
body.home .cat-field legend { color: var(--ds-color-text-muted); }
body.home .modal-close,
body.home .offer-zoom {
  background: var(--ds-color-surface-sunken);
  color: var(--ds-color-text);
  border: var(--ds-border-width) solid var(--ds-color-border);
  border-radius: var(--ds-radius-control);
}
body.home .tabs {
  background: var(--ds-color-surface-sunken);
  border-radius: var(--ds-radius-control);
}
body.home .tab { color: var(--ds-color-text-muted); border-radius: var(--ds-radius-control); }
body.home .tab[aria-selected="true"] {
  background: var(--ds-color-action);
  color: var(--ds-color-action-text);
  box-shadow: none;
}
body.home .modal .field input,
body.home .modal .field textarea,
body.home .modal .field select {
  background: var(--ds-color-surface-sunken);
  color: var(--ds-color-text);
  border: var(--ds-border-width-strong) solid var(--ds-color-border);
  border-radius: var(--ds-radius-control);
  min-height: var(--ds-size-control);
}
body.home .modal .field input:focus,
body.home .modal .field textarea:focus,
body.home .modal .field select:focus {
  outline: 3px solid var(--ds-color-focus);
  border-color: var(--ds-color-teal-accent);
}
body.home .modal .field input[aria-invalid="true"],
body.home .modal .field select[aria-invalid="true"],
body.home .modal .field textarea[aria-invalid="true"],
body.home .cat-field[aria-invalid="true"] .check-grid label { border-color: var(--ds-color-danger); }
body.home .field-error,
body.home .req,
body.home .form-error { color: var(--ds-color-danger); }
body.home .alert { border-radius: var(--ds-radius-control); }
body.home .alert-error { background: var(--ds-color-danger-bg); color: var(--ds-color-danger); }
body.home .alert-ok { background: var(--ds-color-success-bg); color: var(--ds-color-success); }
body.home .alert-info { background: var(--ds-color-info-bg); color: var(--ds-color-info); }
body.home .modal .link-btn,
body.home .modal a:not(.btn),
body.home .form-alt a,
body.home .offer-org-btn { color: var(--ds-color-info); }
body.home .check input,
body.home .check-grid input { accent-color: var(--ds-color-teal-accent); }
body.home .check-grid label {
  background: var(--ds-color-surface-sunken);
  border-color: var(--ds-color-border);
  border-radius: var(--ds-radius-control);
  color: var(--ds-color-text);
}
body.home .check-grid label:has(input:checked) {
  border-color: var(--ds-color-teal-accent);
  background: var(--ds-color-teal);
}
body.home .modal .btn-ghost {
  background: transparent;
  color: var(--ds-color-text);
  border-color: var(--ds-color-border);
  border-radius: var(--ds-radius-button);
  box-shadow: none;
}
body.home .modal .btn-ghost:hover { border-color: var(--ds-color-teal-accent); background: transparent; }
body.home .offer-photo,
body.home .offer-slide img,
body.home .offer-photo img,
body.home .offer-logo,
body.home .offer-org-photo { background: var(--ds-color-surface-sunken); }
body.home .offer-lead,
body.home .offer-desc,
body.home .offer-includes,
body.home .offer-dot { color: var(--ds-color-text-muted); }
body.home .fact {
  background: var(--ds-color-bg);
  color: var(--ds-color-text);
  border-radius: var(--ds-radius-control);
}
body.home .offer-jump {
  background: var(--ds-color-surface);
  border-color: var(--ds-color-border);
}
body.home .offer-jump-btn { color: var(--ds-color-info); }
body.home .offer-jump-btn:hover,
body.home .offer-jump-btn:focus-visible { background: var(--ds-color-hover); }
body.home .offer-section + .offer-section { border-top-color: var(--ds-color-bg); }
body.home .offer-face { background: var(--ds-color-surface); }
body.home .offer-qr { background: #fff; }
body.home .mini-review { background: var(--ds-color-bg); }
body.home .star-btn { color: var(--ds-color-text-muted); }
body.home .star-btn.on { color: var(--ds-color-gold-ink); }
body.home .offer-nav { background: rgba(23, 43, 50, 0.55); color: #fff; }
body.home .atom-mini ellipse[stroke="#7dccc7"] { stroke: #267A78; }
body.home .atom-mini ellipse[stroke="#9BAEB0"] { stroke: #5A6E74; }
body.home .atom-mini circle[fill="#F4F7F6"],
body.home .atom-mini circle[fill="#d5e2e0"] { fill: #267A78; }
body.home .atom-mini circle[fill="#8aa3a6"] { fill: #5A6E74; }
body.home .hero-art .impulse,
body.home .atom-plate .impulse { stroke: #1F6462; }
body.home .hero-art .impulse-glow,
body.home .atom-plate .impulse-glow { stroke: #B8955C; }
@media (max-width: 720px) {
  body.home .offer-dock {
    background: var(--ds-color-surface);
    border-top-color: var(--ds-color-border);
  }
}
@media (max-width: 390px) {
  body.home .modal-inner { padding: var(--ds-space-5) var(--ds-space-4) var(--ds-space-4); }
  body.home .modal:not(.modal-offer) { width: calc(100% - 16px); }
}

body.home #cabinet {
  background: var(--ds-color-bg);
  color: var(--ds-color-text);
  font-family: var(--ds-font-family);
  font-size: var(--ds-font-size-body);
  line-height: var(--ds-font-line-body);
  min-height: calc(100vh - 72px);
}
body.home #cabinet h2 { font-size: var(--ds-font-size-h1); font-weight: var(--ds-font-weight-semibold); line-height: var(--ds-font-line-heading); color: var(--ds-color-text); }
body.home #cabinet h3 { font-size: var(--ds-font-size-h3); color: var(--ds-color-text); }
body.home #cabinet .cabinet-meta,
body.home #cabinet .hint { color: var(--ds-color-text-muted); font-size: var(--ds-font-size-caption); }
body.home #cabinet .cabinet-nav button {
  background: transparent;
  color: var(--ds-color-text-muted);
  border: var(--ds-border-width) solid var(--ds-color-border);
  border-radius: var(--ds-radius-control);
  min-height: var(--ds-size-control-sm);
}
body.home #cabinet .cabinet-nav button[aria-current="page"] {
  background: var(--ds-color-action);
  border-color: var(--ds-color-action);
  color: var(--ds-color-action-text);
}
body.home #cabinet .cabinet-card,
body.home #cabinet .cabinet-note,
body.home #cabinet .cabinet-item {
  background: var(--ds-color-surface);
  color: var(--ds-color-text);
  border: var(--ds-border-width) solid var(--ds-color-border);
  border-radius: var(--ds-radius-surface);
  box-shadow: var(--ds-shadow-surface);
}
body.home #cabinet .cabinet-note { background: var(--ds-color-info-bg); color: var(--ds-color-info); }
body.home #cabinet .cabinet-form input {
  background: var(--ds-color-surface-sunken);
  color: var(--ds-color-text);
  border: var(--ds-border-width-strong) solid var(--ds-color-border);
  border-radius: var(--ds-radius-control);
  min-height: var(--ds-size-control);
  padding: var(--ds-pad-control-y) var(--ds-pad-control-x);
}
body.home #cabinet .cabinet-form input:focus { outline: 3px solid var(--ds-color-focus); border-color: var(--ds-color-teal-accent); }
body.home #cabinet .cabinet-form input:disabled { background: var(--ds-color-bg); color: var(--ds-color-text-muted); }
body.home #cabinet .btn-primary {
  background: var(--ds-color-action);
  color: var(--ds-color-action-text);
  border-radius: var(--ds-radius-button);
  box-shadow: none;
  min-height: var(--ds-size-control);
}
body.home #cabinet .btn-primary:hover { background: var(--ds-color-action-hover); color: var(--ds-color-action-text); }
body.home #cabinet .btn-primary:active { background: color-mix(in srgb, var(--ds-color-action-hover) 72%, var(--ds-color-bg)); }
body.home #cabinet .btn-ghost {
  background: transparent;
  color: var(--ds-color-text);
  border-color: var(--ds-color-border);
  border-radius: var(--ds-radius-button);
}
body.home #cabinet .btn-ghost:hover { border-color: var(--ds-color-teal-accent); background: var(--ds-color-hover); }
body.home #cabinet .link-btn { color: var(--ds-color-info); }
body.home #cabinet .qr-box {
  width: fit-content;
  background: #fff;
  padding: var(--ds-space-2);
  border-radius: var(--ds-radius-control);
}
body.home #cabinet .empty { text-align: start; }
@media (min-width: 800px) {
  body.home .cabinet-layout { grid-template-columns: var(--ds-nav-width) minmax(0, 1fr); }
}
@media (max-width: 799px) {
  body.home .cabinet-nav {
    background: var(--ds-color-surface);
    border-top: var(--ds-border-width) solid var(--ds-color-border);
  }
  body.home #cabinet { padding-bottom: 108px; }
}
@media (max-width: 360px) {
  body.home .cabinet-item { grid-template-columns: 64px minmax(0, 1fr); }
  body.home .cabinet-item img { width: 64px; height: 64px; }
}

/* Гостевое приложение: оболочка на высоту экрана, прокручивается только рабочая область. */
body.guest-app {
  overflow: hidden;
  height: 100dvh;
  background: var(--ds-color-bg);
  color-scheme: light;
}
body.guest-app .site-header,
body.guest-app #main,
body.guest-app .site-footer { display: none !important; }
body.guest-app #cabinet {
  display: flex;
  flex-direction: column;
  width: min(480px, 100%);
  max-width: 100%;
  height: 100dvh;
  min-height: 0 !important;
  margin-inline: auto;
  padding: 0 !important;
  overflow: hidden;
  background: var(--ds-color-bg);
  color: var(--ds-color-text);
}
body.guest-app .gw-top,
body.guest-app .gw-main,
body.guest-app .gw-tabbar { min-width: 0; max-width: 100%; }
body.guest-app .gw-top {
  flex: none;
  padding: 12px 16px 10px;
  background: var(--ds-color-bg);
  border-bottom: 1px solid var(--ds-color-border);
}
body.guest-app .gw-top h1[hidden] { display: none; }
body.guest-app .gw-top h1 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 600;
}
body.guest-app .gw-search { margin: 0; }
body.guest-app .gw-search input,
body.guest-app .cabinet-form input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--ds-color-field-border);
  border-radius: 10px;
  background: var(--ds-color-field);
  color: var(--ds-color-text);
}
body.guest-app .gw-chips {
  display: flex;
  gap: 8px;
  margin-top: 0;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
}
body.guest-app .gw-chips::-webkit-scrollbar { display: none; }
body.home.guest-app #cabinet .gw-chip {
  flex: none;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--ds-color-border);
  border-radius: 999px;
  background: var(--ds-color-surface);
  color: var(--ds-color-text);
  cursor: pointer;
}
body.home.guest-app #cabinet .gw-chip[aria-pressed="true"] {
  background: var(--ds-color-action);
  border-color: var(--ds-color-action);
  color: var(--ds-color-action-text);
}
body.guest-app .gw-main {
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 16px 16px 20px;
}
body.guest-app .gw-max { margin: 0 0 10px; }
body.guest-app .gw-max .btn { width: 100%; }
body.guest-app .gw-preview {
  margin: 0 0 10px;
  color: var(--ds-color-text-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}
body.guest-app .gw-preview .link-btn {
  color: var(--ds-color-text);
  font: inherit;
  text-decoration: underline;
}
body.guest-app .gw-geo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 12px;
  max-width: 100%;
  color: var(--ds-color-text-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}
body.guest-app .gw-geo p { margin: 0; flex: 1 1 12rem; min-width: 0; }
body.guest-app .gw-geo .btn { flex: none; max-width: 100%; }
body.guest-app .gw-tabbar {
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  background: var(--ds-color-surface);
  border-top: 1px solid var(--ds-color-border);
  overflow: hidden;
}
body.home.guest-app #cabinet .gw-tabbar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  min-width: 0;
  padding: 4px 2px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ds-color-text-muted);
  cursor: pointer;
  white-space: normal;
}
body.home.guest-app #cabinet .gw-tabbar button span {
  max-width: 100%;
  font-size: 10px;
  line-height: 1.15;
  text-align: center;
}
body.home.guest-app #cabinet .gw-tabbar button .icon { width: 22px; height: 22px; }
body.home.guest-app #cabinet .gw-tabbar button[aria-current="page"] {
  background: var(--ds-color-action);
  color: var(--ds-color-action-text);
}
body.home.guest-app #cabinet .gw-tabbar button[aria-current="page"] .icon {
  color: var(--ds-color-action-text);
}
body.home.guest-app #cabinet .gw-tabbar button:hover { background: var(--ds-color-hover); }
body.home.guest-app #cabinet .gw-tabbar button[aria-current="page"]:hover { background: var(--ds-color-action-hover); }
body.home.guest-app #cabinet .gw-tabbar button:focus-visible { outline: 3px solid var(--ds-color-focus); outline-offset: -3px; }
body.home.guest-app #cabinet .gw-tabbar button:active { background: var(--ds-color-surface-sunken); }
body.guest-app .gw-cards,
body.guest-app .gw-visits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
body.guest-app .gw-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 18px 0 8px;
}
body.guest-app .gw-group:first-child .gw-group-head { margin-top: 0; }
body.home.guest-app #cabinet .gw-group h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  color: var(--ds-color-text);
}
body.guest-app .gw-rail-nav { display: none; gap: 6px; }
body.guest-app .gw-rail-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--ds-color-border);
  border-radius: 999px;
  background: var(--ds-color-surface);
  color: var(--ds-color-text);
  display: grid;
  place-items: center;
  cursor: pointer;
}
body.guest-app .gw-rail-btn .icon { width: 16px; height: 16px; }
body.guest-app .gw-rail-prev .icon { transform: scaleX(-1); }
body.guest-app .gw-rail {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0 0 8px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  max-width: 100%;
}
body.guest-app .gw-rail::-webkit-scrollbar { display: none; }
body.guest-app .gw-rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
body.guest-app .gw-rail .gw-card {
  flex: 0 0 min(440px, 100%);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
@media (max-width: 760px) {
  body.guest-app .gw-rail .gw-card:first-child:nth-last-child(n+2),
  body.guest-app .gw-rail .gw-card:first-child:nth-last-child(n+2) ~ .gw-card {
    flex-basis: calc(100% - 40px);
  }
}
body.guest-app .gw-stack { grid-template-columns: 1fr; }
body.guest-app .gw-card,
body.guest-app .gw-visit {
  position: relative;
  min-width: 0;
  background: var(--ds-color-surface);
  border: 1px solid var(--ds-color-border);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--ds-shadow-surface);
}
body.guest-app .gw-open {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
body.guest-app .gw-shots {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ds-color-surface-sunken);
}
body.guest-app .gw-shot-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}
body.guest-app .gw-shot-track img,
body.guest-app .gw-shots .gw-photo-empty {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.guest-app .gw-photo-empty {
  display: grid;
  place-items: center;
  color: var(--ds-color-text-muted);
  font-size: 12px;
}
@media (prefers-reduced-motion: reduce) {
  body.guest-app .gw-shot-track { transition: none; }
}
body.guest-app .gw-copy { display: grid; gap: 2px; min-width: 0; padding-right: 28px; }
body.guest-app .gw-copy strong,
body.guest-app .gw-org,
body.guest-app .gw-sum,
body.guest-app .gw-meta { overflow-wrap: anywhere; }
body.guest-app .gw-copy strong,
body.guest-app .gw-sum {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
body.guest-app .gw-org,
body.guest-app .gw-sum,
body.guest-app .gw-meta { color: var(--ds-color-text-muted); font-size: 0.92rem; }
body.guest-app .gw-copy strong { font-size: 1.08rem; line-height: 1.25; }
body.guest-app .gw-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  margin-top: 4px;
}
body.guest-app .gw-price-old {
  color: var(--ds-color-text-muted);
  text-decoration: line-through;
  font-size: 0.95rem;
}
body.guest-app .gw-price-now {
  color: var(--ds-color-text);
  font-weight: 750;
  font-size: 1.2rem;
  line-height: 1.1;
}
body.guest-app .gw-price-off {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ds-color-action);
  color: var(--ds-color-action-text);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}
body.guest-app .gw-price-note {
  color: var(--ds-color-text-muted);
  font-size: 0.86rem;
}
body.guest-app .gw-eta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 6px;
}
body.guest-app .gw-eta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ds-color-text);
  font-size: 0.95rem;
  font-weight: 650;
}
body.guest-app .gw-eta-item .icon {
  width: 18px;
  height: 18px;
  color: var(--ds-color-action);
}
body.guest-app .gw-fav {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
}
body.guest-app .gw-empty { color: var(--ds-color-text-muted); margin: 8px 0; }
body.guest-app .gw-empty-block { display: grid; gap: 12px; justify-items: start; }
body.guest-app .gw-note {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ds-color-info-bg);
  color: var(--ds-color-info);
}
body.guest-app .gw-review { display: grid; gap: 4px; margin-top: 8px; min-width: 0; }
body.guest-app .gw-review form { display: grid; gap: 8px; min-width: 0; }
body.guest-app .gw-review textarea,
body.guest-app .gw-review .field { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
body.guest-app .cabinet-form { max-width: 420px; }
body.guest-app .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 800px) {
  body.guest-app .gw-cards:not(.gw-stack) { grid-template-columns: 1fr 1fr; }
  body.home.guest-app #cabinet .gw-tabbar button span { font-size: 12px; }
  body.guest-app .gw-rail-nav { display: flex; }
}
