/* ===== Tokens ===== */
:root {
  --bg: #0a0d13;
  --bg-alt: #0e1219;
  --surface: #131826;
  --card: #161c2b;
  --border: #232b3d;
  --ink: #eaeef6;
  --ink-2: #a3adc2;
  --muted: #6b7692;
  --accent: #d9ab4a;
  --accent-soft: rgba(217, 171, 74, .12);
  --teal: #4fd1c5;
  --teal-soft: rgba(79, 209, 197, .12);
  --good: #35c48d;
  --bad: #e5645a;
  --radius: 16px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Segoe UI Arabic", Tahoma, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 28px; }
h3 { font-size: 20px; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Reveal animations ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .orb { animation: none !important; }
}

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 13, 19, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 20px;
}
.brand { font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: .5px; }
.brand-dot { color: var(--accent); }
.brand:hover { text-decoration: none; }
/* ссылки в строке шапки (как раньше); полную карту открывает бургер */
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.nav-links a {
  color: var(--ink-2); font-size: 13.5px; padding: 7px 11px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface); text-decoration: none; }
.nav-links a.active { color: var(--accent); }
/* пока карта открыта, дублирующая строка ссылок в полосе плавно гаснет
   (visibility с задержкой - полоса не прыгает по ширине) */
.nav-links { transition: opacity .2s ease, visibility 0s linear .2s; }
.nav.map-open .nav-links { opacity: 0; visibility: hidden; }
/* ===== Мега-меню бургера: карта сайта колонками, плавное открытие ===== */
.nav-map {
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(10, 13, 19, .96); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  max-height: calc(100vh - 60px); overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-10px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.nav-map.open {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  transition: opacity .25s ease, transform .25s ease;
}
.nav-map-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 22px 24px 26px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px;
}
.nm-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nm-h {
  color: var(--ink); font-weight: 700; font-size: 14.5px; padding: 6px 8px;
  border-radius: 8px; margin-bottom: 4px;
}
.nm-h:hover { color: var(--accent); text-decoration: none; }
.nm-i {
  display: flex; align-items: baseline; gap: 8px; min-width: 0;
  color: var(--ink-2); font-size: 13px; padding: 6px 8px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.nm-i:hover { color: var(--ink); background: var(--surface); text-decoration: none; }
.nm-i i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--accent); flex: 0 0 auto; }
.nm-i span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) {
  .nav-map-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nm-i span { white-space: normal; }
}
@media (max-width: 560px) { .nav-map-inner { grid-template-columns: 1fr; } }
.lang-switch { display: flex; gap: 4px; }
.lang-switch button {
  background: none; border: 1px solid var(--border); color: var(--ink-2);
  padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600;
  transition: all .2s; font-family: var(--font);
}
.lang-switch button:hover { border-color: var(--accent); color: var(--ink); }
.lang-switch button.active { background: var(--accent); border-color: var(--accent); color: #14100a; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 110px 0 90px; text-align: center; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; opacity: .55; will-change: transform; transform: translateZ(0); }
.o1 { width: 560px; height: 560px; background: radial-gradient(circle, rgba(74,60,16,.75) 0%, transparent 65%); top: -180px; left: -140px; animation: drift 16s ease-in-out infinite alternate; }
.o3 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(26,36,66,.7) 0%, transparent 65%); top: 30%; left: 55%; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.15); } }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .8px;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid rgba(217, 171, 74, .25);
  padding: 7px 16px; border-radius: 100px; margin-bottom: 26px; text-transform: uppercase;
}
.hero h1 { font-size: clamp(38px, 7vw, 68px); letter-spacing: -1px; margin-bottom: 18px; }
.hero-sub { font-size: clamp(17px, 2.4vw, 21px); color: var(--ink-2); max-width: 680px; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }

.btn {
  display: inline-block; padding: 13px 28px; border-radius: 12px; font-weight: 700; font-size: 15.5px;
  transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; border: none; font-family: var(--font);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #14100a; box-shadow: 0 6px 24px rgba(217, 171, 74, .25); }
.btn-primary:hover { box-shadow: 0 10px 32px rgba(217, 171, 74, .4); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; text-align: start; }
.stat {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 20px; transition: transform .25s, border-color .25s;
  cursor: pointer; font-family: var(--font); color: inherit; display: flex;
  flex-direction: column; align-items: flex-start;
}
.stat:hover { transform: translateY(-4px); border-color: var(--accent); }
.stat-more {
  margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--teal);
  text-transform: uppercase; letter-spacing: .6px;
}
.stat-more::after { content: " \2197"; }
.stat:hover .stat-more { text-decoration: underline; }
.stat-num { font-size: 30px; font-weight: 800; color: var(--accent); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.stat-cap { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.lead { font-size: 18px; color: var(--ink-2); max-width: 800px; margin-bottom: 36px; }
.note { font-size: 14.5px; color: var(--muted); margin-top: 24px; font-style: italic; }

/* Objective band */
.band { background: linear-gradient(120deg, #14110a 0%, #0e1219 60%); padding: 60px 0; }
.band-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: center; }
.band h2 { margin-bottom: 14px; }
.band p { color: var(--ink-2); }
.obj-cards { display: flex; flex-direction: column; gap: 12px; }
.obj-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-weight: 600;
}
.obj-k { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; }

/* Timeline (усовершенствованная) */
.timeline { position: relative; padding-inline-start: 8px; }
.timeline::before {
  content: ""; position: absolute; inset-inline-start: 27px; top: 20px; bottom: 30px;
  width: 2px; background: linear-gradient(var(--accent), var(--teal), var(--border));
  border-radius: 2px;
}
.tl-item { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 12px 0; align-items: start; }
.tl-marker {
  position: relative; z-index: 1; width: 54px; height: 54px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s, border-color .25s;
}
.tl-item:hover .tl-marker { transform: scale(1.08); border-color: var(--accent); }
.tl-ico { font-size: 24px; line-height: 1; }
.tl-marker.tl-now::after {
  content: ""; position: absolute; inset: -4px; border-radius: 16px;
  border: 2px solid var(--teal); opacity: .7; animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
.tl-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 20px; transition: transform .25s, border-color .25s;
}
.tl-item:hover .tl-card { transform: translateY(-3px); border-color: #3a4560; }
.tl-future .tl-card { border-style: dashed; }
.tl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 7px; }
.tl-year { font-weight: 800; color: var(--accent); font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tl-year b { color: var(--teal); }
.tl-tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  padding: 3px 10px; border-radius: 100px; background: var(--surface); border: 1px solid var(--border);
}
.cat-edu { color: var(--teal); border-color: rgba(79, 209, 197, .35); }
.cat-work { color: var(--accent); border-color: rgba(217, 171, 74, .35); }
.cat-biz { color: #c98bff; border-color: rgba(201, 139, 255, .35); }
.cat-goal { color: var(--ink-2); }
.tl-card h3 { margin-bottom: 6px; font-size: 17.5px; }
.tl-card p { color: var(--ink-2); font-size: 15px; }

/* Cases */
.case {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px; margin-bottom: 26px; transition: border-color .3s;
}
.case:hover { border-color: #3a4560; }
.case-head { margin-bottom: 16px; }
.case-head h3 { font-size: 24px; margin-top: 12px; }
.case p { color: var(--ink-2); margin-bottom: 14px; }
.badge {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .4px;
  padding: 6px 14px; border-radius: 100px; text-transform: uppercase;
}
.badge-gold { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(217, 171, 74, .3); }
.badge-teal { background: var(--teal-soft); color: var(--teal); border: 1px solid rgba(79, 209, 197, .3); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.metric {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.metric b { font-size: 24px; color: var(--ink); font-variant-numeric: tabular-nums; }
.metric span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.case-links { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 600; font-size: 14.5px; }
a.metric-link { text-decoration: none; cursor: pointer; }
a.metric-link:hover { border-color: var(--accent); transform: translateY(-2px); }
a.metric-link b { color: var(--accent); }

/* Startup tiles */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; }
.tile {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 6px; transition: transform .25s, border-color .25s;
}
.tile:hover { transform: translateY(-4px); border-color: var(--teal); }
.tile b { font-size: 28px; color: var(--teal); font-variant-numeric: tabular-nums; }
.tile span { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.tile-grade b { color: var(--accent); font-size: 24px; }
.feature-rows { display: flex; flex-direction: column; gap: 10px; }
.frow {
  display: grid; grid-template-columns: 170px 1fr; gap: 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px;
  color: var(--ink-2); font-size: 15px;
}
.fk { color: var(--accent); font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .5px; padding-top: 2px; }

/* Thesis */
.thesis-topic { font-size: clamp(19px, 2.6vw, 24px); font-weight: 700; color: var(--ink); margin-bottom: 16px; max-width: 900px; }
.downloads h3 { margin-bottom: 16px; }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dl {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px; color: var(--ink); font-weight: 600; font-size: 14.5px;
  transition: border-color .2s, transform .2s;
}
.dl:hover { border-color: var(--accent); transform: translateY(-3px); text-decoration: none; }
.dl small { color: var(--muted); font-weight: 400; font-size: 12px; }
.dl::before { content: "\2193"; color: var(--accent); font-size: 16px; font-weight: 800; }

/* панель управления в «Обо мне»: гид слева, тумблер анимаций справа */
.ab-controls {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; margin-top: 22px;
}

/* Quotes */
.quotes { display: flex; flex-direction: column; gap: 18px; }
blockquote {
  background: var(--card); border: 1px solid var(--border);
  border-inline-start: 3px solid var(--accent);
  border-radius: var(--radius); padding: 26px 30px;
}
blockquote p { color: var(--ink); font-size: 16.5px; margin-bottom: 12px; }
blockquote footer { color: var(--muted); font-size: 14px; }
/* кнопки «оригинал/скачать» на карточке отзыва - колонкой СПРАВА от текста */
.q-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }
.q-btn {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .2px; text-align: center;
  padding: 6px 12px; border: 1px solid rgba(22, 35, 46, .3); border-radius: 999px;
  text-decoration: none; transition: border-color .2s, transform .2s; white-space: nowrap;
}
.q-btn:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.q-btn-dl::before { content: "\2193 "; color: var(--accent); font-weight: 800; }
/* письмо «в пути» (появится после подписания) */
.q-pending { opacity: .8; }
.q-pending p { margin-bottom: 0; font-style: italic; }
/* модалка просмотра оригинала (страницы-картинки, как у письма Фонда) */
.modal-pdf { max-width: min(880px, 96vw); }
.modal-pdf h3 { font-size: 15px; padding-inline-end: 40px; }
.modal-pdf .rec-pages { margin: 14px 0 16px; }

/* Demos */
.demo-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; margin-bottom: 24px;
}
.demo-card h3 { margin-bottom: 10px; color: var(--teal); }
.demo-card > p { color: var(--ink-2); margin-bottom: 20px; max-width: 840px; }
.hash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hash-grid label { display: block; font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }
textarea, input[type="text"], .ai-input input {
  width: 100%; background: var(--bg); color: var(--ink);
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  font-family: var(--font); font-size: 15px; resize: vertical;
  transition: border-color .2s;
}
textarea:focus, .ai-input input:focus { outline: none; border-color: var(--teal); }
.hash-out {
  display: block; font-family: var(--mono); font-size: 12px; color: var(--teal);
  background: var(--bg); border: 1px dashed var(--border); border-radius: 8px;
  padding: 10px 12px; margin-top: 10px; word-break: break-all; min-height: 38px;
  direction: ltr; text-align: left;
}
.hash-verdict { margin-top: 16px; font-weight: 700; font-size: 15.5px; min-height: 24px; }
.hash-verdict.ok { color: var(--good); }
.hash-verdict.fail { color: var(--bad); }
.hash-grid .stack-lbl { margin-top: 14px; }
.cipher-in { font-family: var(--mono); font-size: 12px; color: var(--teal); line-height: 1.55; word-break: break-all; }

.calc { display: grid; gap: 22px; max-width: 720px; }
.calc-row { display: grid; gap: 8px; }
.calc-row label { font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.calc-row output { font-weight: 800; font-size: 22px; color: var(--accent); font-variant-numeric: tabular-nums; }
input[type="range"] { accent-color: var(--accent); width: 100%; }
.calc-out { display: flex; flex-direction: column; gap: 8px; }
.calc-out > div {
  display: flex; justify-content: space-between; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 18px;
  color: var(--ink-2); font-size: 15px;
}
.calc-out b { color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-total { border-color: var(--accent) !important; }
.calc-total b { color: var(--accent); font-size: 18px; }

/* Каналы продвижения */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0 10px; }
.channel {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px 22px; display: flex; flex-direction: column; gap: 9px;
  transition: border-color .2s, transform .2s;
}
.channel:hover { border-color: var(--teal); transform: translateY(-3px); }
.channel .ch-ico { font-size: 20px; color: var(--accent); line-height: 1; }
.channel h4 { font-size: 16px; color: var(--ink); font-weight: 700; }
.channel p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; flex: 1; }
.channel .ch-tag {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .3px;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid rgba(217, 171, 74, .35); border-radius: 999px; padding: 4px 11px;
  text-transform: uppercase;
}
@media (max-width: 900px) { .channels { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .channels { grid-template-columns: 1fr; } }

/* Итоги кампании: цифры */
.promo-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 22px 0 8px; }
.pstat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 14px; text-align: center; }
.pstat b { display: block; font-size: 23px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.1; }
.pstat span { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.35; }

/* Библиотека инвест-ниш */
.niche-block > p { color: var(--ink-2); margin-bottom: 6px; max-width: 900px; }
.niche-feat {
  display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; margin: 16px 0 20px; transition: border-color .2s, transform .2s;
}
.niche-feat:hover { border-color: var(--accent); transform: translateY(-3px); text-decoration: none; }
.niche-feat img { width: 100%; height: 100%; min-height: 148px; object-fit: cover; display: block; }
.niche-feat .nf-txt { padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.niche-feat .nf-txt b { font-size: 16.5px; color: var(--ink); }
.niche-feat .nf-txt small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.niche-feat .nf-dl { color: var(--accent); font-weight: 700; font-size: 13px; margin-top: 4px; }
.niches { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; margin: 4px 0; }
.niches .dl small { text-transform: none; }

/* SWOT-анализ */
.swot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 4px; }
.swot-q { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.swot-q h5 { font-size: 13.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px; display: flex; align-items: center; gap: 9px; color: var(--ink); }
.swot-q h5 b { width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: var(--bg); flex: none; }
.swot-q p { font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.swot-s { border-color: rgba(53, 196, 141, .3); } .swot-s h5 b { background: var(--good); }
.swot-w { border-color: rgba(229, 100, 90, .3); } .swot-w h5 b { background: var(--bad); }
.swot-o { border-color: rgba(79, 209, 197, .3); } .swot-o h5 b { background: var(--teal); }
.swot-t { border-color: rgba(217, 171, 74, .3); } .swot-t h5 b { background: var(--accent); }
@media (max-width: 620px) { .swot { grid-template-columns: 1fr; } }

/* Вывод-пивот */
.pivot-decision {
  background: var(--accent-soft); border-inline-start: 3px solid var(--accent);
  border-radius: 0 12px 12px 0; padding: 16px 20px; margin-top: 14px;
  color: var(--ink); font-size: 15px; line-height: 1.6;
}

/* Гирлянда между щитами студии и лейбла */
.hw-garland { position: absolute; left: 250vw; width: 100vw; height: 300px; bottom: 368px; z-index: 0; pointer-events: none; }
.hw-wire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hw-lantern { position: absolute; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.hw-lantern .stem { width: 1px; height: 9px; background: #5a6488; }
.hw-lantern .bulb {
  width: 9px; height: 9px; border-radius: 50%; background: #ffe2a6;
  box-shadow: 0 0 9px 2px rgba(255, 201, 110, .6);
  animation: hwTwinkle 2.4s ease-in-out infinite; animation-delay: var(--d, 0s);
}
@keyframes hwTwinkle {
  0%, 100% { opacity: 1; box-shadow: 0 0 9px 2px rgba(255, 201, 110, .6); }
  50% { opacity: .5; box-shadow: 0 0 5px 1px rgba(255, 201, 110, .32); }
}
html.is-linear .hw-garland, body.modal-open .hw-garland { display: none; }
@media (max-width: 700px) { .hw-garland { display: none; } }
@media (prefers-reduced-motion: reduce) { .hw-lantern .bulb { animation: none; } }
@media (max-width: 560px) { .niche-feat { grid-template-columns: 1fr; } .niche-feat img { min-height: 170px; } }

/* Мини-схема процедуры */
.miniflow { display: flex; align-items: stretch; flex-wrap: wrap; gap: 10px; margin: 6px 0 18px; }
.mf-step {
  flex: 1 1 130px; min-width: 130px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 5px;
}
.mf-step .mf-n {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--bg); background: var(--teal);
}
.mf-step b { font-size: 13.5px; color: var(--ink); line-height: 1.25; }
.mf-step i { font-style: normal; font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.mf-branch { border-color: rgba(217, 171, 74, .4); }
.mf-branch .mf-n, .mf-end .mf-n { background: var(--accent); color: #1a1206; }
.mf-end { border-color: var(--accent); background: var(--accent-soft); }
.mf-arr { align-self: center; color: var(--muted); font-weight: 800; font-size: 15px; }
@media (max-width: 560px) {
  .miniflow { flex-direction: column; }
  .mf-arr { transform: rotate(90deg); }
}

/* AI */
.ai-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.ai-input { display: flex; gap: 12px; margin-bottom: 22px; }
.ai-input input { flex: 1; }
.ai-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ai-col { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 18px; min-height: 160px; }
.ai-col-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 12px;
}
.ai-col-head b { color: var(--teal); font-size: 15px; }
.ai-meta { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ai-answer { font-size: 14.5px; color: var(--ink-2); white-space: pre-wrap; }
.ai-answer.loading { color: var(--muted); font-style: italic; }
.ai-answer.error { color: var(--bad); }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.skill { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: transform .25s, border-color .25s; }
.skill:hover { transform: translateY(-4px); border-color: var(--accent); }
.skill h3 { font-size: 16px; color: var(--accent); margin-bottom: 8px; }
.skill p { font-size: 14px; color: var(--ink-2); }

/* Навыки: плитки-квадраты по группам + диагональная волна при наведении */
.sk-groups { display: flex; flex-direction: column; gap: 20px; }
.sk-gh {
  display: flex; align-items: center; gap: 9px; margin-bottom: 12px;
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--teal);
}
.sk-gico { font-size: 16px; }
.sk-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sk-tile {
  min-height: 58px; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 10px 14px; font-size: 13.5px; line-height: 1.3; font-weight: 700; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  text-decoration: none; cursor: default; will-change: transform;
  transition: transform .28s cubic-bezier(.2,.7,.3,1), border-color .25s, color .25s, background .25s, box-shadow .25s;
}
/* программы (есть сайт) - жёлтая подсветка и клик -> сайт */
.sk-tile.sk-tool { color: var(--accent); border-color: rgba(217, 171, 74, .38); cursor: pointer; }
/* наведение на билборд навыков -> сквозная волна по всем плиткам (по индексу = искосок).
   Задержка ОТРИЦАТЕЛЬНАЯ: все плитки стартуют уже в разных фазах, волна идёт сразу
   и непрерывно (при положительной дальние плитки «ждут» до 3с - казалось, что сбивается). */
.sk-groups:hover .sk-tile {
  animation: skWave 1.25s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.1s);
}
.sk-tile:hover {
  animation: none !important;
  border-color: var(--teal); color: var(--ink); background: var(--card);
  transform: translateY(-5px) scale(1.05); box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}
.sk-tile.sk-tool:hover {
  border-color: var(--accent); color: var(--accent); background: var(--accent-soft);
  box-shadow: 0 10px 26px rgba(217, 171, 74, .22);
}
@keyframes skWave { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .sk-groups:hover .sk-tile { animation: none; } }
@media (max-width: 560px) { .sk-tiles { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); } }

/* Docs */
.doc-facts { max-width: 840px; display: flex; flex-direction: column; gap: 14px; }
.doc-facts p { color: var(--ink-2); padding-inline-start: 18px; border-inline-start: 2px solid var(--border); }

/* Footer */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 70px 0 40px; }
.contact-row { display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 26px; }
.contact { font-size: 17px; font-weight: 600; color: var(--ink); }
a.contact:hover { color: var(--teal); }
.footer-note { color: var(--muted); font-size: 14px; max-width: 720px; margin-bottom: 24px; }
.footer-copy { color: var(--muted); font-size: 13px; }

/* ===== Бургер (классические три палочки, все ширины) ===== */
.burger {
  display: flex; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 6px;
}
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Кнопка «Гид» ===== */
.btn-tour {
  background: var(--teal-soft); color: var(--teal); border: 1px solid rgba(79, 209, 197, .4);
}
.btn-tour::before { content: "\25B6"; font-size: 11px; margin-inline-end: 7px; }
.btn-tour:hover { background: rgba(79, 209, 197, .18); }

/* ===== Хаб (главная навигация) ===== */
.hub { padding: 44px 0; background: var(--bg-alt); }
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: -70px; }
.hub-card {
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 28px 26px; color: var(--ink);
  transition: transform .28s, border-color .28s, box-shadow .28s; overflow: hidden;
}
.hub-card::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(120% 120% at 100% 0%, var(--accent-soft), transparent 60%);
}
.hub-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 16px 40px rgba(0, 0, 0, .3); text-decoration: none; }
.hub-card:hover::after { opacity: 1; }
.hub-ico { font-size: 34px; display: block; margin-bottom: 14px; }
.hub-card h3 { font-size: 20px; margin-bottom: 8px; position: relative; }
.hub-card p { color: var(--ink-2); font-size: 14.5px; position: relative; }
.hub-go { display: inline-block; margin-top: 16px; color: var(--accent); font-weight: 700; font-size: 14px; position: relative; }
.hub-go::after { content: " \2192"; }
.hub-card:hover .hub-go { text-decoration: underline; }

/* ===== Кнопка «наверх» ===== */
.back-top {
  position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 55;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: #14100a; border: none; cursor: pointer;
  font-size: 22px; font-weight: 800; line-height: 1;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .25s, transform .25s; box-shadow: 0 8px 24px rgba(217, 171, 74, .35);
}
.back-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { transform: translateY(-3px); }

/* ===== AI: примеры + markdown ===== */
.ai-examples { display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 22px; }
.chip-btn { cursor: pointer; font-family: var(--font); transition: border-color .2s, color .2s; text-align: start; }
.chip-btn:hover { border-color: var(--teal); color: var(--teal); }
.ai-answer p { margin-bottom: 8px; }
.ai-answer p:last-child { margin-bottom: 0; }
.ai-answer ul { margin: 6px 0 8px; padding-inline-start: 20px; }
.ai-answer li { margin-bottom: 4px; }
.ai-answer strong { color: var(--ink); font-weight: 700; }
.ai-disclaimer {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 12.5px; line-height: 1.55; color: var(--muted);
}
.ai-answer code { font-family: var(--mono); font-size: 13px; background: var(--surface); padding: 1px 5px; border-radius: 5px; }

/* ===== Гид-тур ===== */
.tour-veil {
  position: fixed; inset: 0; z-index: 90; background: rgba(5, 7, 11, .55);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.tour-veil.show { opacity: 1; pointer-events: auto; }
.tour-card {
  position: fixed; inset-inline: 0; bottom: 24px; margin: 0 auto; z-index: 96;
  max-width: 520px; width: calc(100% - 40px);
  background: var(--card); border: 1px solid var(--accent); border-radius: 16px;
  padding: 22px 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s;
}
.tour-card.show { opacity: 1; transform: none; pointer-events: auto; }
.tour-step { color: var(--ink); font-size: 16px; line-height: 1.55; margin-bottom: 16px; }
.tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tour-progress { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.tour-btns { display: flex; gap: 8px; }
.tour-btns .btn { padding: 9px 20px; font-size: 14px; }
.tour-close { padding: 9px 14px !important; }
.tour-focus {
  position: relative; z-index: 91; border-radius: 14px;
  box-shadow: 0 0 0 3px var(--accent), 0 0 0 9999px rgba(5, 7, 11, .55);
  scroll-margin-top: 80px; transition: box-shadow .3s;
}

/* ===== Модель-калькуляторы (формула + таблица + зачем) ===== */
.model-formula {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  margin: 6px 0 16px; overflow: hidden;
}
.model-formula summary {
  cursor: pointer; padding: 12px 16px; font-weight: 700; font-size: 13.5px;
  color: var(--teal); text-transform: uppercase; letter-spacing: .5px; list-style: none;
}
.model-formula summary::-webkit-details-marker { display: none; }
.model-formula summary::before { content: "\1D453(x)  "; font-family: var(--mono); color: var(--muted); }
.model-formula[open] summary { border-bottom: 1px solid var(--border); }
.model-formula pre {
  font-family: var(--mono); font-size: 13px; color: var(--ink-2); line-height: 1.7;
  padding: 14px 16px; white-space: pre-wrap; direction: ltr; text-align: start;
}
.model-table { width: 100%; border-collapse: collapse; margin: 4px 0 16px; }
.model-table td {
  padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 14.5px;
  transition: background .3s;
}
.model-table td:first-child { color: var(--ink-2); }
.model-table td:last-child {
  text-align: end; font-weight: 700; color: var(--ink); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.model-table tr.sub td { color: var(--muted); }
.model-table tr.sub td:last-child { color: var(--bad); font-weight: 600; }
.model-table tr.sum td { border-top: 1px solid var(--border); }
.model-table tr.sum td:last-child { color: var(--ink); }
.model-table tr.total td { border-top: 2px solid var(--border); border-bottom: none; padding-top: 13px; }
.model-table tr.total td:first-child { color: var(--ink); font-weight: 700; }
.model-table tr.total td:last-child { color: var(--ink); font-size: 16px; }
.model-table tr.total.accent td:last-child { color: var(--accent); font-size: 18px; }
.model-table td.flash { animation: valFlash .55s ease; }
@keyframes valFlash { 0% { background: var(--teal-soft); } 100% { background: transparent; } }
.model-table td.neg { color: var(--bad) !important; }
.model-table td.pos { color: var(--good) !important; }
.model-table td.flash-neg { animation: valFlashNeg .55s ease; }
@keyframes valFlashNeg { 0% { background: rgba(229, 90, 90, .22); } 100% { background: transparent; } }
.model-why {
  font-size: 14px; color: var(--ink-2); background: var(--accent-soft);
  border-inline-start: 3px solid var(--accent); border-radius: 0 10px 10px 0;
  padding: 12px 16px; margin-top: 4px;
}
.model-sub { font-size: 15px; color: var(--muted); margin: 8px 0 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.cb b.flash { animation: valFlash .55s ease; }

/* Сравнительная таблица сценариев */
.table-scroll { overflow-x: auto; }
.scenario-table { min-width: 480px; }
.scenario-table th {
  padding: 11px 14px; font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .4px; color: var(--ink-2); border-bottom: 1px solid var(--border); text-align: end;
}
.scenario-table th:first-child { text-align: start; }
.scenario-table td:not(:first-child) {
  text-align: end; font-weight: 700; color: var(--ink);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.scenario-table .sc-best { background: var(--accent-soft); }
.scenario-table th.sc-best { color: var(--accent); box-shadow: inset 0 2px 0 var(--accent); }
.scenario-table tr.sum td:not(:first-child) { color: var(--teal); }
.scenario-table tr.total.accent td:not(:first-child) { color: var(--accent); font-size: 15px; }
.scenario-table tbody tr:hover td { background: var(--surface); }
.scenario-table tbody tr:hover .sc-best { background: rgba(217, 171, 74, .16); }

/* Мини-график столбиков */
.mini-bars { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 18px; }
.mbar { display: grid; grid-template-columns: 108px 1fr auto; align-items: center; gap: 12px; }
.mbar-l { font-size: 13px; color: var(--ink-2); }
.mbar-track { height: 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.mbar-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), #3aa89e); border-radius: 7px; transition: width .5s ease; }
.mbar.best .mbar-track i { background: linear-gradient(90deg, var(--accent), #b8892f); }
.mbar-v { font-size: 13px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 58px; text-align: end; }
.mbar.best .mbar-v { color: var(--accent); }

/* ===================== СЦЕНА «НОЧНОЙ ПЕРЕЛЁТ: Москва → Дубай» ===================== */
.scene {
  position: fixed; inset: 0; height: 100vh;
  z-index: -1; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg,
    var(--skyA, #070b14) 0%, var(--skyB, #0b1220) 55%, var(--skyC, #0d1626) 100%);
}
/* город спуска: на переходе вверх уходит вниз и уменьшается */
.city {
  position: absolute; inset: 0;
  transform: translateY(calc(var(--tu, 0) * 100%)) scale(calc(1.15 - var(--tu, 0) * .25));
  transform-origin: 50% 100%; will-change: transform;
}
/* звёзды (два мерцающих слоя, гаснут к «земле») */
.starfield {
  position: absolute; top: 0; left: 0; right: 0; height: 100%;
  opacity: calc(1 - var(--dawn, 0));
  background-repeat: repeat;
  -webkit-mask-image: linear-gradient(#000 80%, transparent 100%);
  mask-image: linear-gradient(#000 80%, transparent 100%);
}
.sf1 {
  background-image:
    radial-gradient(1.5px 1.5px at 25px 35px, #fff, transparent),
    radial-gradient(1px 1px at 120px 90px, #dfe6ff, transparent),
    radial-gradient(1.2px 1.2px at 200px 20px, #fff, transparent),
    radial-gradient(1px 1px at 310px 140px, #cbd6ff, transparent),
    radial-gradient(1.4px 1.4px at 420px 60px, #fff, transparent);
  background-size: 460px 220px;
  animation: twinkle 5s ease-in-out infinite alternate;
}
.sf2 {
  background-image:
    radial-gradient(1px 1px at 60px 160px, #fff, transparent),
    radial-gradient(1.3px 1.3px at 180px 200px, #ffedc4, transparent),
    radial-gradient(1px 1px at 260px 70px, #fff, transparent),
    radial-gradient(1px 1px at 390px 180px, #e8eeff, transparent);
  background-size: 520px 260px;
  animation: twinkle 7s ease-in-out infinite alternate-reverse;
}
@keyframes twinkle { from { opacity: .45; } to { opacity: .95; } }
/* падающая звезда */
.shooting-star {
  position: absolute; top: 5%; inset-inline-start: 72%;
  width: 2px; height: 2px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, .7);
  animation: shoot 8s ease-in infinite; opacity: 0;
}
.shooting-star::after {
  content: ""; position: absolute; right: 0; top: 0; width: 110px; height: 1.5px;
  background: linear-gradient(270deg, #fff, transparent);
  transform: rotate(29deg); transform-origin: right center;
}
@keyframes shoot {
  0% { transform: translate(0, 0); opacity: 0; }
  4% { opacity: 1; }
  16% { transform: translate(-340px, 190px); opacity: 0; }
  100% { transform: translate(-340px, 190px); opacity: 0; }
}
/* ===== Слои скайлайна: чистые силуэты во всю высоту ===== */
.skyline { position: absolute; inset: 0; }
.bld {
  position: absolute; display: block;
  left: var(--l); width: var(--w); top: var(--t); bottom: 0;
  background: var(--c, #101a30);
}
.sky-far .bld { --c: #0b1122; opacity: .9; }
.sky-mid .bld { --c: #101a30; }
.sky-near .bld { --c: #16213a; box-shadow: 0 0 50px rgba(0, 0, 0, .55); }
/* уступ на крыше */
.bld.b-step::before {
  content: ""; position: absolute; bottom: 100%; left: 18%; right: 18%; height: 34px;
  background: inherit;
}
/* шпиль + маячок */
.bld.b-spire::before {
  content: ""; position: absolute; bottom: 100%; left: 50%; width: 3px; height: 64px;
  margin-left: -1.5px; background: inherit;
}
.bld.b-spire::after, .bld.b-step::after {
  content: ""; position: absolute; left: 50%; margin-left: -2.5px;
  width: 5px; height: 5px; border-radius: 50%; background: #ff5b4d;
  box-shadow: 0 0 8px #ff5b4d; animation: blinkDot 1.7s steps(2) infinite;
}
.bld.b-spire::after { bottom: calc(100% + 64px); }
.bld.b-step::after { bottom: calc(100% + 34px); }
/* редкие огоньки на ближних зданиях */
.bld.b-lit {
  background-image:
    radial-gradient(3px 4px at 30% 90px, rgba(255, 210, 122, .9), transparent),
    radial-gradient(3px 4px at 68% 320px, rgba(255, 210, 122, .55), transparent),
    radial-gradient(3px 4px at 42% 690px, rgba(255, 210, 122, .7), transparent);
  background-repeat: repeat-y; background-size: 100% 940px;
}
@keyframes blinkDot { 50% { opacity: 0; } }

/* единая картинка: секции полностью прозрачны, сцена не режется плашками;
   читаемость несут карточки контента, а не фоновые затемнения */
body { background: #04060d; position: relative; }
.hero, .section, .section-alt, .hub, .band { background: transparent; }

/* ===== Маршрут рейса MOW - DXB (прогресс чтения) ===== */
.flight-route {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 46;
  display: flex; align-items: center; gap: 10px; direction: ltr;
  background: rgba(8, 11, 18, .72); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: 100px; padding: 6px 16px;
}
.fr-city { font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: var(--ink-2); }
.fr-city.fr-dxb { color: var(--accent); }
.fr-line {
  position: relative; width: min(180px, 26vw); height: 2px;
  background: repeating-linear-gradient(90deg, #3a4560 0 5px, transparent 5px 10px);
}
.fr-plane {
  position: absolute; top: 50%; left: 0; margin-top: -7.5px; margin-left: -8px;
  font-style: normal; font-size: 15px; line-height: 1; color: #e9c07a;
  transition: left .15s linear;
}

/* ===== Созвездие достижений ===== */
.cstar {
  position: absolute; z-index: 2; width: 13px; height: 13px; border-radius: 50%;
  background: #fff; border: none; cursor: pointer;
  box-shadow: 0 0 10px #fff, 0 0 24px rgba(255, 255, 255, .55);
  animation: starPulse 2.6s ease-in-out infinite; transition: transform .2s;
  /* центрируем точку на её координате: концы пунктира созвездия нарисованы по
     ЦЕНТРАМ звёзд, а top/left задаёт угол точки - без сдвига линия «кривая» */
  transform: translate(-50%, -50%);
}
.cstar:hover { transform: translate(-50%, -50%) scale(1.6); }
@keyframes starPulse { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }

/* ===== Письмо-телеграмма ===== */
.telegram {
  position: relative; width: 100%;
  background: rgba(16, 20, 30, .94); border: 1px solid var(--accent);
  border-radius: 16px; padding: 46px 52px; box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
}
.telegram::before {
  content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(217, 171, 74, .4);
  border-radius: 10px; pointer-events: none;
}
.tg-dear { font-weight: 700; color: var(--ink); margin-bottom: 16px; font-size: 16.5px; }
.tg-body { white-space: pre-line; color: var(--ink-2); font-size: 15.5px; line-height: 1.75; columns: 2; column-gap: 44px; }
/* на мобильной письмо - ОБЫЧНЫЙ блок (columns:auto), не multicol: multicol + max-height
   у свёрнутого письма плодил overflow-колонки вбок (scrollWidth ~3000px) */
@media (max-width: 760px) { .tg-body { columns: auto; } }
/* подпись: печатная строка + скан автографа (белый на тёмной карточке) */
.tg-signblock { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.tg-sign { white-space: pre-line; margin: 0; color: var(--ink); font-weight: 600; font-style: italic; }
.tg-autograph {
  height: 96px; width: auto; max-width: 320px; object-fit: contain;
  /* белые чернила на тёмном - screen убирает чёрный/прозрачный фон подписи */
  mix-blend-mode: screen; filter: brightness(1.15); opacity: .95;
}

/* ===== Чек-ин документов (посадочные талоны) ===== */
.passes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pass {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 20px 16px; padding-inline-end: 46px;
  color: var(--ink); font-weight: 600; overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.pass:hover { transform: translateY(-4px); border-color: var(--accent); text-decoration: none; }
.pass-tag {
  order: 2; font-size: 11px; letter-spacing: 2px; color: var(--muted); font-weight: 800;
}
.pass b { order: 1; font-size: 15px; line-height: 1.35; }
.pass-ok {
  position: absolute; top: 12px; inset-inline-end: 14px; width: 26px; height: 26px;
  border: 2px solid var(--good); color: var(--good); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; transform: rotate(-12deg);
}

/* ===== LED-строка навыков ===== */
.led-ticker {
  overflow: hidden; background: #0a0c12; border-block: 2px solid #1c2333; padding: 13px 0;
}
.led-inner { display: flex; width: max-content; animation: ledScroll 45s linear infinite; }
.led-ticker:hover .led-inner { animation-play-state: paused; }
.led-inner span {
  white-space: nowrap; font-family: var(--mono); font-weight: 700; font-size: 15px;
  letter-spacing: 3px; color: #ffc65c; text-shadow: 0 0 9px rgba(255, 180, 60, .55);
}
@keyframes ledScroll { to { transform: translateX(-50%); } }

/* ===== Билборд (SHA-256) ===== */
.billboard {
  border: 12px solid #1a2030; border-bottom-width: 16px; border-radius: 10px;
  position: relative; margin-bottom: 40px;
  box-shadow: 0 -24px 80px rgba(217, 171, 74, .12), 0 24px 50px rgba(0, 0, 0, .5);
}
/* Две ножки под .billboard-боксом УБРАНЫ по просьбе пользователя. */
.billboard::before, .billboard::after { content: none; }

/* ===== Табло-чипы навигатора ===== */
.chips-row.board .chip {
  font-family: var(--mono); background: #0b0e15; border-color: #232a3a; border-radius: 8px;
  letter-spacing: 1px;
  box-shadow: inset 0 7px 10px -7px rgba(255, 255, 255, .18), inset 0 -7px 10px -7px rgba(0, 0, 0, .85);
}
.chips-row.board .chip i { color: #8fa0bf; }

/* ===== Футер-контакты (дорога переехала на трассу) ===== */
.footer { background: transparent; border-top: none; padding-top: 0; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer h2, .footer .contact { color: #241a0c; }
a.contact:hover { color: #0b3f38; }
.footer-note { color: #4a3a1d; }
.footer-copy { color: #5d4a26; }
.tlight { display: flex; align-items: center; gap: 12px; }
.tl-lamps {
  display: flex; flex-direction: column; gap: 5px;
  background: #15171c; border: 2px solid #2a2d35; border-radius: 10px; padding: 7px 6px;
}
.tl-lamps i { width: 12px; height: 12px; border-radius: 50%; opacity: .35; }
.tl-lamps i:nth-child(1) { background: #e5645a; }
.tl-lamps i:nth-child(2) { background: #e8c14b; }
.tl-lamps i.on { background: #35c48d; opacity: 1; box-shadow: 0 0 10px #35c48d; }
.tl-label { font-weight: 700; color: #241a0c; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .shooting-star, .flight-route { display: none; }
  .led-inner, .starfield, .bld::after { animation: none; }
}

/* Кикер-глава над разделом */
.kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--teal); margin-bottom: 12px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--teal); border-radius: 2px; }

/* Бейдж «интерактивная модель» */
.live-badge {
  display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 100px;
  background: var(--teal-soft); color: var(--teal); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; border: 1px solid rgba(79, 209, 197, .3);
}
.live-badge::before { content: "\25C9  "; font-size: 9px; vertical-align: middle; }

/* ===== Кастомный слайдер с заливкой ===== */
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px;
  border-radius: 6px; background: var(--border); outline: none; cursor: pointer;
  --fill: 20%;
  background-image: linear-gradient(90deg, var(--accent), var(--teal));
  background-size: var(--fill) 100%; background-repeat: no-repeat;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--accent); cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4); transition: transform .15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--ink);
  border: 3px solid var(--accent); cursor: pointer;
}
input[type="range"]::-moz-range-progress { background: var(--accent); height: 8px; border-radius: 6px; }
/* B. мобильные слайдеры: тап-зона >=34px, трек визуально тонкий (клип фона по content-box),
   ползунок крупнее - иначе высота инпута 8px слишком мала для пальца */
@media (max-width: 700px) {
  input[type="range"] {
    height: 34px; padding: 13px 0; box-sizing: border-box;
    background-origin: content-box; background-clip: content-box;
  }
  input[type="range"]::-webkit-slider-thumb { width: 26px; height: 26px; }
  input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; }
}

/* ===== Кнопка перехода в ответе ИИ ===== */
.go-btn {
  display: inline-block; margin-top: 12px; padding: 8px 16px; border-radius: 100px;
  background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent);
  font-family: var(--font); font-weight: 700; font-size: 13.5px; cursor: pointer;
  transition: background .2s, transform .2s;
}
.go-btn::after { content: " \2192"; }
.go-btn:hover { background: rgba(217, 171, 74, .18); transform: translateY(-1px); }

/* ===== Подсветка секции при переходе от ИИ ===== */
.sec-flash { animation: secFlash 1.8s ease-out; }
@keyframes secFlash {
  0% { box-shadow: inset 0 0 0 3px var(--accent); }
  100% { box-shadow: inset 0 0 0 3px transparent; }
}

/* ===== Нумерация разделов ===== */
body { counter-reset: sec; }
.section { counter-increment: sec; }
/* блок «Проекты» (билборды) = раздел 05: сам не .section, но занимает номер в счётчике,
   чтобы Траектория стала 06, ВКР 07, Отзывы 08 (билборды внутри маркированы N/05) */
.zone--highway { counter-increment: sec; }
/* контакты (футер) = раздел 09: продолжаем сквозную нумерацию */
.footer { counter-increment: sec; }
.section > .container > h2::before,
.footer .footer-top > h2::before {
  content: counter(sec, decimal-leading-zero) " / ";
  color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 800;
  opacity: .55; margin-inline-end: 4px;
}

/* ===== Стаггер появления ===== */
.hub-card.reveal:nth-child(2) { transition-delay: .08s; }
.hub-card.reveal:nth-child(3) { transition-delay: .16s; }
.timeline .tl-item.reveal:nth-child(2) { transition-delay: .06s; }
.timeline .tl-item.reveal:nth-child(3) { transition-delay: .12s; }
.timeline .tl-item.reveal:nth-child(4) { transition-delay: .18s; }
.timeline .tl-item.reveal:nth-child(5) { transition-delay: .24s; }
.timeline .tl-item.reveal:nth-child(6) { transition-delay: .30s; }
.quotes blockquote.reveal:nth-child(2) { transition-delay: .1s; }
.quotes blockquote.reveal:nth-child(3) { transition-delay: .2s; }
.quotes blockquote.reveal:nth-child(4) { transition-delay: .3s; }
.quotes blockquote.reveal:nth-child(5) { transition-delay: .4s; }

/* ===== Chips ===== */
.chips-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.chip {
  display: inline-flex; align-items: baseline; gap: 7px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 100px;
  padding: 8px 16px; font-weight: 800; font-size: 14.5px; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.chip i { font-style: normal; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.chip-gold { border-color: rgba(217, 171, 74, .45); color: var(--accent); }

/* ===== Навигатор мер ===== */
.nv-filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.nv-filters select, .nv-filters input {
  background: var(--bg); color: var(--ink); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 14px; font-family: var(--font); font-size: 14.5px;
}
.nv-filters select:focus, .nv-filters input:focus { outline: none; border-color: var(--teal); }
.nv-filters input { flex: 1; min-width: 200px; }
.nv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.nv-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 6px;
  transition: border-color .2s, transform .2s;
}
.nv-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.nv-card b { font-size: 15px; color: var(--ink); }
.nv-card .nv-full { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.nv-card .nv-amount { font-size: 13.5px; color: var(--accent); font-weight: 700; margin-top: 2px; }
.nv-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.nv-badge {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  padding: 3px 9px; border-radius: 100px; background: var(--surface);
  border: 1px solid var(--border); color: var(--ink-2);
}
.nv-badge.lvl-r { color: var(--teal); border-color: rgba(79, 209, 197, .35); }
.nv-badge.lvl-f { color: var(--accent); border-color: rgba(217, 171, 74, .35); }
.nv-more-row { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.nv-count { color: var(--muted); font-size: 13.5px; }

/* ===== Калькуляторы: переключатель ===== */
.calc-toggle { display: flex; gap: 10px; flex-wrap: wrap; }
.tgl {
  background: var(--bg); border: 1px solid var(--border); color: var(--ink-2);
  border-radius: 10px; padding: 10px 18px; cursor: pointer; font-family: var(--font);
  font-size: 14px; font-weight: 600; transition: all .2s;
}
.tgl:hover { border-color: var(--accent); color: var(--ink); }
.tgl.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

/* ===== PESTEL ===== */
.pestel { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.pestel details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 0; overflow: hidden;
}
.pestel summary {
  cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; align-items: center; gap: 12px; font-size: 15px;
}
.pestel summary::-webkit-details-marker { display: none; }
.pestel summary b {
  color: var(--accent); font-size: 17px; width: 28px; height: 28px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); border-radius: 8px;
}
.pestel details[open] summary { border-bottom: 1px solid var(--border); }
.pestel details p { padding: 12px 18px 16px; color: var(--ink-2); font-size: 14px; }

/* ===== Студия ===== */
.sub-h { margin: 34px 0 18px; font-size: 20px; color: var(--teal); }
.st-verdict { font-weight: 800; font-size: 17px; min-height: 26px; }
.st-verdict.ok { color: var(--good); }
.st-verdict.fail { color: var(--bad); }
.capex-bars { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.cb { display: grid; grid-template-columns: 220px 1fr 48px; align-items: center; gap: 14px; font-size: 13.5px; color: var(--ink-2); }
.cb b { color: var(--ink); font-variant-numeric: tabular-nums; text-align: end; }
.cb-bar { height: 10px; background: var(--bg); border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.cb-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #b8892f); border-radius: 6px; }

/* ===== Эволюция (Excel -> бот -> СРМ) ===== */
.evo { display: flex; align-items: stretch; gap: 12px; margin: 26px 0 8px; flex-wrap: wrap; }
.evo-step {
  flex: 1; min-width: 180px; background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 5px;
}
.evo-step b { color: var(--teal); font-size: 15.5px; }
.evo-step span { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.evo-arrow { display: flex; align-items: center; color: var(--accent); font-size: 22px; font-weight: 800; }

/* ===== Бренд-кейс ===== */
.brand-case {
  display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; margin-top: 26px;
}
.brand-logo {
  font-family: "Arial Narrow", Arial, sans-serif; font-weight: 700; font-size: 52px;
  letter-spacing: 1px; color: var(--ink); text-align: center;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 40px 10px; direction: ltr;
}
.brand-body h3 { color: var(--accent); margin-bottom: 8px; }
.brand-body > p { color: var(--ink-2); font-size: 14.5px; }

/* ===== Modals (пруф-окна) ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(5, 7, 11, .72); backdrop-filter: blur(8px);
}
.modal-overlay.open { display: flex; animation: mFade .22s ease; }
@keyframes mFade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; max-width: 640px; width: 100%; max-height: 86vh;
  overflow-y: auto; padding: 32px; animation: mUp .28s ease;
}
@keyframes mUp { from { transform: translateY(22px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h3 { color: var(--accent); font-size: 21px; margin-bottom: 12px; padding-inline-end: 34px; }
.modal > p { color: var(--ink-2); font-size: 15px; margin-bottom: 18px; }
.modal-close {
  position: absolute; top: 14px; inset-inline-end: 14px;
  background: var(--surface); border: 1px solid var(--border); color: var(--ink-2);
  width: 34px; height: 34px; border-radius: 10px; font-size: 20px; line-height: 1;
  cursor: pointer; transition: color .2s, border-color .2s;
}
.modal-close:hover { color: var(--ink); border-color: var(--accent); }
.proof-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.proof-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 16px; font-size: 14.5px;
}
.proof-row b { color: var(--ink); font-weight: 600; }
.proof-row span { color: var(--accent); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.modal-actions .btn { padding: 11px 22px; font-size: 14.5px; }
body.modal-open { overflow: hidden; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .stats, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .band-grid, .hash-grid, .ai-cols, .brand-case { grid-template-columns: 1fr; }
  .skills, .grid-3, .dl-grid, .metrics, .nv-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-grid { grid-template-columns: 1fr; margin-top: 0; }
  .cb { grid-template-columns: 130px 1fr 44px; }
  .nav-links { display: none; } /* на узких экранах навигация только через бургер */
}
@media (max-width: 560px) {
  .skills, .grid-3, .dl-grid, .metrics, .nv-grid, .pestel { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; gap: 6px; }
  .ai-input { flex-direction: column; }
  .evo { flex-direction: column; }
  .evo-arrow { justify-content: center; transform: rotate(90deg); }
  .mbar { grid-template-columns: 78px 1fr auto; gap: 8px; }
  .mbar-l { font-size: 12px; }
}

/* на мобильных плашка рейса перекрывала контент у нижней кромки - прячем */
@media (max-width: 900px) { .passes { grid-template-columns: repeat(2, 1fr); } .flight-route { display: none; } }
@media (max-width: 560px) { .passes { grid-template-columns: 1fr; } .telegram { padding: 30px 22px; } .tg-stamp { position: static; display: inline-block; margin-bottom: 14px; transform: rotate(-2deg); } .cstar { display: none; } .hero-hint { display: none; } }

/* Подсказка в герое (вместо плиток-цифр) */
.hero-hint { font-size: 13px; color: var(--muted); margin-top: 10px; }
.hero-hint::before { content: "\2736  "; color: #fff; }

/* ===== Билборды: лицо щита (панельная механика удалена - рост через .bbx) ===== */
.bb-face {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  max-width: 920px; background: rgba(16, 20, 30, .9);
  border: 1px solid var(--border); border-radius: 16px; padding: 24px 28px;
  cursor: pointer; transition: border-color .25s, transform .25s, box-shadow .25s;
}
.bb-face:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.bb-thesis { color: var(--ink-2); font-size: 16px; flex: 1; min-width: 250px; margin: 0; }

/* ===== Пруф-кнопки ===== */
.proof-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 22px; }
.btn-rec { margin-inline-start: auto; }
.rec-pages { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 4px; }
.rec-pages img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border); }
.rec-sub { font-size: 15px; font-weight: 700; color: var(--ink); margin: 12px 0 2px; }
.btn-proof { background: transparent; color: var(--teal); border: 1px solid rgba(79, 209, 197, .5); }
.btn-proof:hover { background: var(--teal-soft); border-color: var(--teal); }

/* ===== Стена работ ===== */
.wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 6px 0 20px; }
.wsite {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; color: var(--ink); transition: border-color .2s, transform .2s;
}
.wsite:hover { border-color: var(--accent); transform: translateY(-3px); text-decoration: none; }
.wsite img { width: 28px; height: 28px; border-radius: 6px; filter: grayscale(1); transition: filter .25s; }
.wsite:hover img { filter: none; }
.wsite b { font-size: 13.5px; font-family: var(--mono); }
.wsite span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.wall-langs { font-size: 13px; color: var(--muted); margin: 0 0 20px; font-family: var(--mono); }
.wall-langs a { color: var(--accent); font-weight: 600; }
.wall-langs a:hover { text-decoration: underline; }

/* ===== Блок-схема бота ===== */
.bot-scheme { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.bs-node {
  flex: 1; min-width: 170px; position: relative;
  background: #0b0e15; border: 1px solid #232a3a; border-radius: 12px; padding: 14px 16px 14px 44px;
}
.bs-node i {
  position: absolute; inset-inline-start: 12px; top: 14px;
  width: 22px; height: 22px; border-radius: 50%; font-style: normal; font-weight: 800; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-soft); color: var(--teal); border: 1px solid rgba(79,209,197,.4);
}
.bs-node b { display: block; font-size: 15.5px; color: var(--ink); margin-bottom: 3px; }
.bs-node span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.bs-node.bs-final { border-color: rgba(217, 171, 74, .5); flex-basis: 100%; }
.bs-node.bs-final i { background: var(--accent-soft); color: var(--accent); border-color: rgba(217,171,74,.5); }
.bs-arrow { align-self: center; color: var(--accent); font-weight: 800; font-size: 20px; }
.bs-node.bs-final { padding: 15px 20px; text-align: center; }
.bs-node.bs-final i { position: static; display: inline-flex; width: 26px; height: 26px; font-size: 15px; margin: 0 11px 0 0; vertical-align: middle; }
.bs-node.bs-final b { display: inline; font-size: 18px; text-transform: uppercase; letter-spacing: .8px; vertical-align: middle; }
.bs-node.bs-final span { display: inline; font-size: 15px; text-transform: uppercase; letter-spacing: .8px; vertical-align: middle; }
.bs-node.bs-final span::before { content: "\00B7"; margin: 0 9px; color: var(--muted); }
.nv-lead-row { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 8px; }
.nv-lead-row .lead { flex: 1; min-width: min(300px, 100%); margin: 0; }
.nv-actions { flex: none; flex-direction: column; align-items: stretch; margin: 0; }

/* ===== Вкладки калькуляторов ===== */
.calc-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }


/* ===== Плавающая почта ===== */
.float-mail {
  position: fixed; inset-inline-end: 22px; bottom: 80px; z-index: 55;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--ink);
  font-size: 19px; transition: border-color .2s, transform .2s, background .2s;
}
.float-mail:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-3px); text-decoration: none; }

@media (max-width: 900px) { .wall { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .wall { grid-template-columns: 1fr; } .bot-scheme { flex-direction: column; } .bs-arrow { transform: rotate(90deg); align-self: flex-start; margin-inline-start: 22px; } }

/* ===== Вывески на кронштейнах: зигзаг, тусклый неон, зажигание ===== */
.bb-face { position: relative; }
.bb-face.bb-left { margin-inline-end: auto; transform-origin: left top; }
.bb-face.bb-right { margin-inline-start: auto; transform-origin: right top; }
/* кронштейн-штанга удалён: дизайн центрированный, мачта теперь на .slot (за баннером) */
.bb-face::before { content: none; }
/* тусклый режим + лёгкое покачивание */
.bb-face { opacity: .82; animation: swaySign 7s ease-in-out infinite; }
@keyframes swaySign { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(.5deg); } }
.bb-face.bb-right { animation-name: swaySignR; animation-delay: 1.6s; }
@keyframes swaySignR { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(-.5deg); } }
/* неон по типам */
.bb-face.neon-gold { border-color: rgba(217,171,74,.4); }
.bb-face.neon-teal { border-color: rgba(79,209,197,.4); }
.bb-face:hover { opacity: 1; }
.bb-face.neon-gold:hover { border-color: var(--accent); box-shadow: 0 0 24px rgba(217,171,74,.35), 0 14px 40px rgba(0,0,0,.35); }
.bb-face.neon-teal:hover { border-color: var(--teal); box-shadow: 0 0 24px rgba(79,209,197,.3), 0 14px 40px rgba(0,0,0,.35); }
/* свет вывески на «фасад» под ней */
.bb-face::after {
  content: ""; position: absolute; top: 100%; left: 12%; right: 12%; height: 70px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(217,171,74,.14), transparent 75%);
  opacity: 0; transition: opacity .35s; pointer-events: none;
}
.bb-face.neon-teal::after { background: radial-gradient(60% 100% at 50% 0%, rgba(79,209,197,.13), transparent 75%); }
.bb-face:hover::after { opacity: 1; }
/* вспышка-«щелчок» при включении */
.bb-face.bb-igniting { animation: ignite .24s ease; opacity: 1; }
@keyframes ignite {
  0% { filter: brightness(1); } 30% { filter: brightness(2.1); }
  45% { filter: brightness(.8); } 70% { filter: brightness(1.9); } 100% { filter: brightness(1.15); }
}
/* иконка вывески */
.bb-ico { font-size: 30px; line-height: 1; }
.bb-ico-blok {
  font-family: "Arial Narrow", Arial, sans-serif; font-weight: 700; font-size: 26px;
  color: var(--teal); text-shadow: 0 0 10px rgba(79,209,197,.8), 0 0 26px rgba(79,209,197,.45);
  letter-spacing: 1px;
}
/* ===== Неон «1» флагмана ===== */
.neon-one {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 54px; height: 54px; margin-inline-end: 14px; border-radius: 12px;
  font-size: 34px; font-weight: 900; color: #ffd77a;
  border: 2px solid rgba(255, 207, 107, .75); background: rgba(60, 44, 8, .35);
  text-shadow: 0 0 12px rgba(255, 207, 107, .9), 0 0 34px rgba(255, 190, 80, .5);
  box-shadow: 0 0 18px rgba(255, 207, 107, .35), inset 0 0 14px rgba(255, 207, 107, .15);
  animation: neonFlicker 4s linear infinite;
}
@keyframes neonFlicker { 0%, 92%, 96%, 100% { opacity: 1; } 93%, 95% { opacity: .55; } }
/* ===== Флип-появление чипов-табло ===== */
.reveal.visible .chip { animation: flapIn .5s ease backwards; }
.reveal.visible .chip:nth-child(2) { animation-delay: .08s; }
.reveal.visible .chip:nth-child(3) { animation-delay: .16s; }
.reveal.visible .chip:nth-child(4) { animation-delay: .24s; }
.reveal.visible .chip:nth-child(5) { animation-delay: .32s; }
@keyframes flapIn { from { transform: rotateX(-88deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 700px) { .slot::before { display: none; } }
@media (prefers-reduced-motion: reduce) { .bb-face, .neon-one { animation: none; } .reveal.visible .chip { animation: none; } }

.with-neon { display: flex; align-items: center; }

/* ===== Линии созвездия (ховер любой звезды) ===== */
.cline { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .4s; }
.hero:has(.cstar:hover) .cline { opacity: 1; }
/* ===== Окна-годы траектории загораются при появлении ===== */
.tl-item .tl-marker { transition: border-color .5s, box-shadow .5s, background .5s; }
.tl-item.visible .tl-marker {
  border-color: rgba(217, 171, 74, .65); background: #1b2030;
  box-shadow: 0 0 18px rgba(217, 171, 74, .3);
}
/* ===== Здание-академия: фронтон ===== */
.bld.b-cap::before {
  content: ""; position: absolute; bottom: 100%; left: -10%; right: -10%; height: 30px;
  background: inherit; clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
/* ===== Кнопка звука города ===== */
.snd {
  background: none; border: 1px solid var(--border); color: var(--ink-2);
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 15px;
  transition: border-color .2s, color .2s;
  margin-inline-start: auto; /* прижимает правую группу: звук / язык / бургер */
}
.snd:hover { border-color: var(--accent); color: var(--ink); }
.snd.on { border-color: var(--teal); color: var(--teal); box-shadow: 0 0 10px rgba(79,209,197,.25); }
/* ===== Курсор-прожектор ===== */
.spotlight {
  position: fixed; top: 0; left: 0; width: 460px; height: 460px; z-index: 1;
  margin: -230px 0 0 -230px; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(circle, rgba(255, 219, 140, .05) 0%, transparent 60%);
}
body:hover .spotlight { opacity: 1; }
/* ===== Прилёт карточек навигатора (как строки рейсов) ===== */
.nv-card { animation: nvIn .34s ease backwards; }
@keyframes nvIn { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (hover: none), (max-width: 900px) { .spotlight { display: none; } }
@media (prefers-reduced-motion: reduce) { .nv-card { animation: none; } .spotlight { display: none; } }

/* кронштейны не должны создавать гор. скролл: секции-билборды режут по краю */
section.bb { overflow-x: clip; }
@supports not (overflow-x: clip) { section.bb { overflow-x: hidden; } }

/* ===== Контакты: верхний этаж подъёма (дорога и барханы переехали на трассу) ===== */
.footer { position: relative; }
.footer .container { position: relative; z-index: 1; }

/* ===== Трафик в обе стороны (каждая машина кликабельна) ===== */
.veh {
  position: absolute; background: none; border: none; padding: 0; line-height: 1;
  display: inline-block; cursor: pointer; z-index: 3;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5));
}
.veh-car { display: block; line-height: 1; }
/* детальные SVG-машины: высота через em - масштаб задаёт font-size полосы */
.veh-car svg { display: block; height: .95em; width: auto; }
.veh:hover .veh-car { transform: translateY(-2px); }
/* дальняя полоса - едут вправо (машина отзеркалена, текст пузыря - обратно) */
.veh.far { bottom: 48px; font-size: 26px; animation: driveR linear infinite; opacity: .9; }
.veh.far .veh-car { transform: scaleX(-1); }
.veh.f1 { animation-duration: 31s; animation-delay: -12s; }
.veh.f2 { animation-duration: 46s; animation-delay: -30s; font-size: 30px; }
.veh.f3 { animation-duration: 38s; animation-delay: -3s; }
@keyframes driveR { from { inset-inline-start: -90px; } to { inset-inline-start: 102%; } }
/* ближняя полоса - едут влево */
.veh.near { bottom: 5px; font-size: 34px; animation: driveL linear infinite; }
.veh.near.car { animation-duration: 27s; animation-delay: -5s; }
.veh.n1 { animation-duration: 34s; animation-delay: -21s; }
.veh.n2 { animation-duration: 17s; animation-delay: -9s; font-size: 27px; }
.veh.n3 { animation-duration: 41s; animation-delay: -33s; font-size: 29px; }
@keyframes driveL { from { inset-inline-start: 102%; } to { inset-inline-start: -90px; } }
.veh.stopped { animation-play-state: paused; }
/* пузырь-реплика над машиной */
.veh-bubble {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) scale(.9);
  white-space: nowrap; font-size: 12px; font-weight: 700; font-family: var(--mono);
  color: #0c1018; background: #e2c477; padding: 5px 11px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
}
.veh-bubble::after {
  content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px;
  border: 5px solid transparent; border-top-color: #e2c477;
}
.veh.far .veh-bubble { transform: translateX(-50%) scale(.9); }
.veh.stopped .veh-bubble { opacity: 1; transform: translateX(-50%) scale(1); }
.veh.far.stopped .veh-bubble { transform: translateX(-50%) scale(1); }

/* ===== Фонари вдоль трассы: кликабельны, за каждым факт (пара к звёздам сверху) ===== */
.hw-post {
  position: absolute; bottom: 40px; background: none; border: none; padding: 0; line-height: 1;
  cursor: pointer; z-index: 3; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .5));
}
.hw-post-svg { display: block; line-height: 1; }
.hw-post-svg svg { display: block; height: 100px; width: auto; overflow: visible; }
.hw-post.p1 { inset-inline-start: 12%; }
.hw-post.p2 { inset-inline-start: 39%; }
.hw-post.p3 { inset-inline-start: 64%; }
.hw-post.p4 { inset-inline-start: 87%; }
.hw-post .lamp-bulb { fill: #4a4436; transition: fill .3s; }
.hw-post .lamp-glow { opacity: 0; transition: opacity .35s; }
.hw-post:hover .lamp-bulb, .hw-post.stopped .lamp-bulb { fill: #ffe9b0; }
.hw-post:hover .lamp-glow, .hw-post.stopped .lamp-glow { opacity: .18; }
.hw-post .veh-bubble { bottom: calc(100% + 2px); }
.hw-post.stopped .veh-bubble { opacity: 1; transform: translateX(-50%) scale(1); }
/* активный (кликнутый) элемент выше остальных - бабл машины не перекрывается фонарями */
.veh.stopped, .hw-post.stopped { z-index: 5; }
/* подсказка про кликабельность трассы: на песке, посередине второй полосы барханов;
   едет вместе с лентой щитов (та же скорость -600vw) - остаётся под первым щитом */
.hw-hint {
  position: absolute; left: 50%; bottom: -73px; z-index: 6;
  transform: translateX(-50%) translate3d(calc(var(--hp) * -600vw), 0, 0);
  will-change: transform;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .3px; text-align: center;
  color: #3a2708; opacity: .9; pointer-events: none; white-space: nowrap; transition: opacity .3s;
}
body.modal-open .hw-hint { opacity: 0; }
@media (max-width: 700px) { .hw-hint { font-size: 10px; bottom: -56px; } }

/* ===== Лампы-прожекторы на вывесках ===== */
.bb-lamps { position: absolute; top: -13px; left: 0; right: 0; pointer-events: none; }
.bb-lamps i {
  position: absolute; top: 0; width: 10px; height: 13px; border-radius: 4px 4px 0 0;
  background: #1a2030;
}
.bb-lamps i::after {
  content: ""; position: absolute; top: 12px; left: 50%; margin-left: -3px;
  width: 6px; height: 6px; border-radius: 50%; background: #4a4436;
  transition: background .3s, box-shadow .3s;
}
.bb-lamps i:nth-child(1) { left: 22%; }
.bb-lamps i:nth-child(2) { right: 22%; }
.bb-face:hover .bb-lamps i::after { background: #ffe9b0; box-shadow: 0 0 12px rgba(255, 220, 130, .9); }
/* рама-щит вокруг вывески (поверх неона) */
.bb-face { box-shadow: 0 0 0 7px #161c2b, 0 10px 30px rgba(0, 0, 0, .4); }
@media (prefers-reduced-motion: reduce) { .veh { animation: none; } }

.footer { overflow-x: clip; }

/* ===================================================================
   П-СКРОЛЛ: спуск (Москва, ночь) -> трасса (рассвет) -> подъём (Дубай)
   =================================================================== */
:root { --hp: 0; --tu: 0; --dawn: 0; --arr: 0; }

/* --- Зоны --- */
.zone--turn { height: 56vh; position: relative; }
.turn-cap {
  position: sticky; top: 26vh; text-align: center; margin: 0 auto;
  max-width: 900px; padding: 0 26px;
  font-family: var(--display, var(--mono)); font-size: clamp(16px, 2vw, 22px);
  font-weight: 500; line-height: 1.6; letter-spacing: .2px;
  color: var(--ink); text-transform: none; font-style: italic;
  opacity: var(--capO, 0); transform: translateY(calc((1 - var(--capO, 0)) * 12px)); direction: ltr; text-wrap: balance;
}

/* --- Трасса: сцена-липучка и лента --- */
.zone--highway { height: 700vh; position: relative; }
.highway__stage {
  position: sticky; top: 0; height: 100vh;
  overflow: hidden;
}
.highway__track {
  position: relative; z-index: 3;
  display: flex; height: 100%; width: 700vw;
  will-change: transform; direction: ltr;
  transform: translate3d(calc(var(--hp) * -600vw), 0, 0);
}
/* щит прижат к низу слота: низ панели + ножки 160px = верх дороги
   (дорога: 116px песка + 84px полотна + 4px кромки = 204px от низа сцены) */
.slot {
  width: 100vw; flex: 0 0 100vw; position: relative; isolation: isolate;
  display: grid; place-items: end center; padding: 0 6vw 364px;
}
/* трек щитов (z-3) лежит выше дороги (z-2) и пустыми слотами глотал клики по
   машинам. Слоты прозрачны для кликов; кликается только сам щит/крестик. */
.highway__track, .slot { pointer-events: none; }
.slot .bb-face, .slot.is-open, .bbx-close, .bbx { pointer-events: auto; }

/* --- Башни трассы: два плана, горизонтальный параллакс --- */
.hw-towers {
  position: absolute; left: 0; bottom: 196px; height: 46vh; width: 320vw;
  z-index: 1; will-change: transform;
}
.hw-t1 { transform: translate3d(calc(var(--hp) * -180vw), 0, 0); opacity: .85; }
.hw-t2 { transform: translate3d(calc(var(--hp) * -90vw), 0, 0); opacity: .55; height: 56vh; }
.hw-towers i {
  position: absolute; bottom: 0; left: var(--l); width: var(--w); height: var(--h);
  background-color: #0d1526;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .06);
}
/* дальний план: только этажные линии, без окон */
.hw-t2 i {
  background-image: linear-gradient(rgba(255, 255, 255, .045) 2px, transparent 2px);
  background-size: 100% 20px;
}
/* ближний план: сетка светящихся окон */
.hw-t1 i {
  background-color: #101a30;
  background-image:
    linear-gradient(rgba(255, 210, 122, .16) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 210, 122, .16) 2px, transparent 2px);
  background-size: 10px 15px;
}

/* --- Бегущая строка на трассе: ниже пилюли перелёта (top 70 + ~34px) --- */
.highway__stage .led-ticker {
  position: absolute; top: 124px; left: 0; right: 0; z-index: 2;
  opacity: calc(.4 + .6 * (1 - var(--dawn)));
}

/* --- Самолёт с плакатом-баннером вместо бегущей строки. Летит по небу
   трассы; баннер по мере скролла (--hp) показывает разные навыки. --- */
.sky-tow {
  position: absolute; top: 128px; left: 0; z-index: 2;
  display: inline-flex; align-items: center; pointer-events: none;
  animation: towFly 26s linear infinite; will-change: transform;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35));
}
@keyframes towFly { from { transform: translateX(-125%); } to { transform: translateX(118vw); } }
.tow-banner {
  position: relative; color: #241706;
  font-family: "Impact", "Haettenschweiler", "Franklin Gothic Bold", "Arial Narrow", sans-serif;
  font-weight: 400; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  padding: 7px 16px; border-radius: 1px;
  /* тканевый вымпел: тонкие панели-швы + светотень */
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 1px, transparent 1px 24px),
    linear-gradient(180deg, #f8db88, #e8b95a 55%, #d9a642);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -3px 5px rgba(120,80,20,.28), 0 4px 10px rgba(0,0,0,.3);
  transform-origin: right center; animation: towFlutter 1.9s ease-in-out infinite;
}
/* ласточкин хвост на заднем (левом) крае баннера */
.tow-banner::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -13px; width: 14px;
  background: linear-gradient(180deg, #f0cd72, #d9a642); clip-path: polygon(100% 0, 100% 100%, 0 50%);
}
@keyframes towFlutter { 0%, 100% { transform: skewY(-1.4deg); } 50% { transform: skewY(1.4deg); } }
/* канат теперь нарисован внутри SVG самолёта (без разрыва); баннер вплотную */
.tow-plane { display: block; margin-inline-start: -1px; }
.tow-plane svg { height: 37px; width: auto; display: block; }
.modal-open .sky-tow { animation-play-state: paused; }
html.is-linear .sky-tow { display: none; }
@media (prefers-reduced-motion: reduce) { .sky-tow { animation: none; left: 20px; } .tow-banner { animation: none; } }

/* --- Дорога под лентой (листается вместе со сценой трассы) --- */
.highway__road { position: absolute; left: 0; right: 0; bottom: 116px; z-index: 4; }
body.modal-open .highway__road { visibility: hidden; }
.highway__road .road {
  position: relative; height: 84px; margin: 0;
  /* асфальт с лёгким рельефом + бордюр-отбойник сверху */
  background:
    linear-gradient(180deg, #1b1e25 0 3px, transparent 3px),        /* верхняя кромка-отбойник */
    linear-gradient(180deg, #16181e 0%, #101216 55%, #0c0d11 100%); /* полотно */
  border-top: 4px solid #2a2d35;
  box-shadow: inset 0 6px 12px rgba(0, 0, 0, .5);
}
/* сплошные краевые линии (обочины) */
.highway__road .road::before {
  content: ""; position: absolute; left: 0; right: 0; top: 9px; bottom: 8px; pointer-events: none;
  border-top: 2px solid rgba(226, 232, 240, .22);
  border-bottom: 2px solid rgba(226, 232, 240, .16);
}
/* прерывистая осевая: бежит вместе с лентой */
.road-dash {
  position: absolute; left: 0; top: 50%; height: 5px; margin-top: -2.5px; width: 320vw;
  background: repeating-linear-gradient(90deg, #e2c477 0 40px, transparent 40px 84px);
  opacity: .85; will-change: transform;
  transform: translate3d(calc(var(--hp) * -220vw), 0, 0);
}

/* --- ПЕСОК под дорогой: плоские слои-барханы в палитре сайта --- */
.highway__water {
  position: absolute; left: 0; right: 0; bottom: 0; height: 116px; z-index: 1; overflow: hidden;
  background: linear-gradient(180deg, #c99a3f 0%, #b8862e 42%, #9c6f24 100%);
}
/* верхний слой бархана - светлее, срез волной */
.highway__water::before {
  content: ""; position: absolute; left: -10%; right: -10%; top: 0; height: 46px;
  background: #d9ab4a;
  clip-path: polygon(0 0, 100% 0, 100% 62%, 82% 78%, 64% 58%, 44% 82%, 26% 62%, 0 84%);
}
/* нижний слой - тень между барханами */
.highway__water::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 52px;
  background: #8a6020;
  clip-path: polygon(0 46%, 22% 24%, 40% 48%, 58% 22%, 78% 46%, 100% 28%, 100% 100%, 0 100%);
}
.highway__water .w-shine { display: none; }
@media (prefers-reduced-motion: reduce) { .highway__water .w-shine { animation: none; } }

/* --- Лицо щита в слоте --- */
.slot .bb-face {
  flex-direction: column; align-items: flex-start; justify-content: flex-start;
  gap: 12px; width: min(560px, 88vw); min-height: 340px;
  padding: 26px 30px; animation: none; opacity: 1; cursor: pointer;
  /* НЕПРОЗРАЧНОЕ лицо: город сквозь щит не просвечивает (совпадает с телом .97) */
  background-color: #0e121c;
  box-shadow:
    0 0 0 7px #161c2b,
    0 0 calc(28px * (1 - var(--dawn))) rgba(217, 171, 74, calc(.3 * (1 - var(--dawn)))),
    0 14px 44px rgba(0, 0, 0, .45);
}
/* моно-опора: одна центральная мачта с решёткой-фермой до дороги.
   Высота 164 (нахлёст -4 под щит + 160 до полотна на 204 от низа сцены) */
/* мачта = псевдоэлемент СЛОТА (не лица): у лица постоянный transform от swaySign =>
   контекст наложения, из-за которого мачта-псевдоэлемент лица не может уйти за фон.
   На слоте мачта рисуется ДО лица (.bbx) => лицо перекрывает верх мачты = «за баннером». */
.slot::before {
  content: ""; position: absolute; bottom: 196px; left: 50%;
  width: 30px; margin-left: -15px; height: 190px; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(45deg, transparent 0 7px, rgba(255,255,255,.05) 7px 9px),
    repeating-linear-gradient(-45deg, transparent 0 7px, rgba(255,255,255,.05) 7px 9px),
    linear-gradient(90deg, #33405f 0 3px, #202840 3px 22px, #10141f 22px 30px);
}
.slot::after {
  content: ""; position: absolute; bottom: 196px; left: 50%;
  margin-left: -45px; width: 90px; height: 18px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, #2a3550, #0a0e18);
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
  border-radius: 0 0 3px 3px;
}
.bb-face .bb-num {
  font-family: var(--mono); font-size: 13px; font-weight: 800; letter-spacing: 2px;
  color: var(--accent); opacity: .65;
}
.bb-face .bb-title { font-size: 24px; margin: 0; display: flex; gap: 12px; align-items: center; }
.slot .bb-thesis { flex: 0 1 auto; min-width: 0; font-size: 15px; }
.bb-face .bb-proof {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline;
  font-family: var(--mono); font-size: 13px; line-height: 1.5;
}
.bb-face .bb-proof b { color: var(--accent); font-weight: 700; }
.bb-face .bb-proof i { color: var(--muted); font-style: normal; padding: 0 2px; }
.slot .bb-face:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }

/* ===================================================================
   ПЕСОК: зона после трассы. Обычный вертикальный скролл, без механики.
   Дорога осталась наверху как граница, ниже - песчаные слои и контент.
   =================================================================== */
.asc-stage { position: static; height: auto; overflow: visible; }
.asc-col { display: flex; flex-direction: column; transform: none; }

/* ПЕСОК после трассы = ЕДИНЫЙ дюнный грунт на всю зону (камера в землю).
   Грунт ПРОКРУЧИВАЕТСЯ вместе с контентом (scroll, не fixed) - тайл дюн
   повторяется по вертикали, камни/кактусы едут вместе со своим оазисом. */
.zone--ascent {
  position: relative; overflow: hidden;
  background:
    url("../img/dunes.svg") top center / 100% auto repeat-y scroll,
    linear-gradient(180deg, #9c6f24 0%, #b8862e 14%, #c99a3f 38%, #d4a54a 100%);
}
/* тень от дороги на въезде в песок */
.zone--ascent::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px;
  background: linear-gradient(180deg, #8a6020 0%, rgba(138, 96, 32, 0) 100%);
  pointer-events: none;
}
.zone--ascent .floor { min-height: auto; display: block; padding: 70px 0; position: relative; }
.zone--ascent .floor > .container { width: 100%; }
.asc-col .floor { border-block: none; }
/* контент появляется снизу - единое правило со всем сайтом */
.zone--ascent .reveal { transform: translateY(26px); }
.zone--ascent .reveal.visible { transform: none; }
/* день: текст на песке тёмный, внутри тёмных карточек остаётся светлым */
.zone--ascent { color: #2b1c07; }
.zone--ascent h2 { color: #1f1204; }
.zone--ascent .kicker { color: #7a5215; }
.zone--ascent .sub-h, .zone--ascent .downloads h3 { color: #1f1204; }
.zone--ascent .thesis-topic { color: #3a2708; }
.zone--ascent .tl-label { color: #4a3210; }
.zone--ascent .footer-note, .zone--ascent .footer-copy { color: #5a3f14; }
.zone--ascent .contact { color: #0c5a52; }
.zone--ascent .tl-card, .zone--ascent .tile, .zone--ascent .frow,
.zone--ascent .evo-step, .zone--ascent .chip, .zone--ascent .dl,
.zone--ascent blockquote { color: var(--ink-2); }
.zone--ascent .tl-card h3, .zone--ascent .tile b { color: var(--ink); }
/* забытые акценты дня: абзац на песке, стрелки шагов, номер раздела, кнопка-пруф */
.zone--ascent .band p { color: #3a2708; }
.zone--ascent .evo-arrow,
.zone--ascent .section > .container > h2::before { color: #7a5215; }
.zone--ascent .btn-proof { color: #0c5a52; border-color: rgba(12, 90, 82, .55); }
.zone--ascent .btn-proof:hover { background: rgba(12, 90, 82, .12); border-color: #0c5a52; }

/* =====================================================================
   ОАЗИСЫ: контент-блоки как водоёмы на песке (сцену впрыскивает oasisInit)
   ===================================================================== */
.oasis {
  position: relative; background: transparent !important; border: none !important;
  box-shadow: none !important; padding: 46px 11% 44px; margin: 0;
  overflow: visible; text-align: center;
  display: flex; flex-direction: column; justify-content: center;
}
.oasis-scene {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  filter: drop-shadow(0 20px 30px rgba(40, 26, 6, .38)); pointer-events: none;
}
.oasis > *:not(.oasis-scene):not(.oasis-palm) { position: relative; z-index: 2; }
/* текст внутри оазиса - ЧЁРНЫЙ (вода светлая) */
.oasis, .oasis h2, .oasis h3, .oasis p, .oasis b, .oasis span, .oasis a,
.oasis .fk, .oasis footer, .oasis blockquote {
  color: #08121a !important;
}
.oasis footer { color: #123 !important; opacity: .82; }
.oasis .tl-year { color: #073a2e !important; }
.oasis .tl-year b { color: #0a4f3a !important; }
.oasis .tl-tag {
  background: rgba(6, 30, 26, .16) !important; color: #06121a !important; border: none;
}
.oasis .tile, .oasis .frow, .oasis .chip, .oasis .dl {
  background: rgba(255, 255, 255, .42) !important; border: 1px solid rgba(6, 30, 40, .22) !important;
}
/* пальмы по краям оазиса (отдельно, не растягиваются) */
.oasis-palm {
  position: absolute; z-index: 1; width: 104px; height: 150px; pointer-events: none;
  background-repeat: no-repeat; background-size: contain; background-position: bottom;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='104' height='150'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M52 150 Q45 88 56 50' stroke='%235c3f1f' stroke-width='7'/%3E%3Cg stroke='%233c5a2c' stroke-width='6'%3E%3Cpath d='M56 52 Q30 34 6 44'/%3E%3Cpath d='M56 52 Q82 34 100 44'/%3E%3Cpath d='M56 52 Q38 22 16 16'/%3E%3Cpath d='M56 52 Q74 22 94 16'/%3E%3Cpath d='M56 52 Q56 20 56 8'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.oasis-palm { width: 92px; height: 132px; }
.oasis-palm.op-l { bottom: -12px; inset-inline-start: -18px; transform: rotate(-8deg); }
.oasis-palm.op-r { top: -14px; inset-inline-end: -14px; height: 112px; transform: scaleX(-1) rotate(-6deg); }
.oasis.flip .oasis-scene { transform: scaleX(-1); }
/* мобильные: рисованная сцена не тянется под высокий узкий текст (текст
   вылезал на песок) - вместо неё чистый водоём-скругление */
@media (max-width: 700px) {
  .oasis-scene, .oasis-palm { display: none; }
  .oasis {
    background: rgba(217, 240, 248, .96) !important;
    border-radius: 26px; padding: 22px 18px;
    box-shadow: 0 14px 28px rgba(40, 26, 6, .28) !important;
  }
}
/* шапка оазиса (год + тег) по центру - как заголовок и абзац */
.oasis .tl-head { justify-content: center; }

/* --- Траектория как цепочка оазисов --- */
.zone--ascent .timeline { padding: 0; display: flex; flex-direction: column; gap: 48px; }
.zone--ascent .timeline::before { display: none; }
.zone--ascent .tl-item { display: block; padding: 0; grid-template-columns: none; }
.zone--ascent .tl-marker { display: none; }
.zone--ascent .tl-item .tl-card {
  width: min(660px, 95%); min-height: 0; transition: transform .25s;
}
.zone--ascent .tl-item:nth-child(odd) .tl-card { margin-inline-start: 0; margin-inline-end: auto; }
.zone--ascent .tl-item:nth-child(even) .tl-card { margin-inline-start: auto; margin-inline-end: 0; }
.zone--ascent .tl-item:hover .tl-card { transform: translateY(-4px); }
.zone--ascent .tl-item .tl-card h3 { color: #05121a !important; }

/* --- Рекомендации и Цель как оазисы --- */
.zone--ascent #quotes .quotes { gap: 28px; }
.zone--ascent #quotes blockquote.oasis { width: min(600px, 94%); }
.zone--ascent #quotes blockquote:nth-child(odd).oasis { margin-inline-start: 0; margin-inline-end: auto; }
.zone--ascent #quotes blockquote:nth-child(even).oasis { margin-inline-start: auto; margin-inline-end: 0; }
.zone--ascent #goal .reveal.oasis { width: min(600px, 94%); margin: 10px auto; }

/* =====================================================================
   ВКР НА БАРХАНАХ: камера смотрит В ЗЕМЛЮ (фон-дюны fixed, без неба)
   ===================================================================== */
/* фон-дюны теперь на всей зоне ascent (см. выше) - секция прозрачна и
   показывает тот же непрерывный грунт, без горизонтального шва с траекторией */
.zone--ascent #thesis.thesis-dunes {
  position: relative; background: transparent;
}
.thesis-dunes > .container { position: relative; z-index: 1; }
.thesis-dunes .kicker { color: #7a5215 !important; }
.thesis-dunes h2, .thesis-dunes .sub-h, .thesis-dunes .downloads h3 { color: #1c1103 !important; }
.thesis-dunes .thesis-topic {
  color: #3a2708 !important; border-inline-start: 3px solid #a9792b; padding-inline-start: 14px; font-style: italic;
}
.thesis-dunes > .container > p { color: #3a2708 !important; }

/* ОЦЕНКИ = медальоны-печати */
.thesis-dunes .grades { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.thesis-dunes .tile-grade {
  width: 220px; flex: 0 0 auto; text-align: center;
  background: rgba(255, 251, 240, .9) !important; border: 1px solid rgba(138, 82, 20, .25) !important;
  border-radius: 18px; padding: 22px 18px 18px; box-shadow: 0 16px 30px rgba(70, 45, 10, .28);
}
.thesis-dunes .tile-grade .seal {
  width: 68px; height: 68px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; font-size: 15px; color: #6b3d0a;
  background: radial-gradient(circle at 38% 32%, #ffe6a6, #e6b25a 70%, #c78f34);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .5), 0 6px 14px rgba(120, 80, 20, .3);
}
.thesis-dunes .tile-grade b { display: block; font-size: 19px; color: #241505 !important; }
.thesis-dunes .tile-grade > span:last-child { display: block; margin-top: 6px; font-size: 12.5px; color: #6b4a1a !important; }

/* цифры / KPI / этапы / чипы / файлы = светлые карточки на песке */
.thesis-dunes .grid-4 .tile, .thesis-dunes .frow, .thesis-dunes .evo-step,
.thesis-dunes .chip, .thesis-dunes .dl {
  background: rgba(255, 251, 240, .82) !important; border: 1px solid rgba(138, 82, 20, .26) !important; color: #3a2708 !important;
}
.thesis-dunes .grid-4 .tile b { color: #7a3d0a !important; }
.thesis-dunes .grid-4 .tile span, .thesis-dunes .evo-step span, .thesis-dunes .chip i,
.thesis-dunes .dl small { color: #6b4a1a !important; }
.thesis-dunes .evo-step b, .thesis-dunes .dl span, .thesis-dunes .chip { color: #241505 !important; }
.thesis-dunes .frow span { color: #3a2708 !important; }
.thesis-dunes .frow .fk, .thesis-dunes .evo-arrow, .thesis-dunes .chip b { color: #8a5214 !important; }

/* =====================================================================
   МОРСКАЯ ЗОНА: после ВКР пляж -> вода. Тот же приём что пустыня
   (камера в воду, грунт едет с контентом, тайл repeat-y). Волны по всей
   ширине (плоская текстура), лодки по краям. Глубина растёт к подвалу.
   ===================================================================== */
.sea-zone {
  position: relative; overflow: hidden;
  background:
    /* затемнение к низу = глубина океана к контактам */
    linear-gradient(180deg, rgba(9,42,66,0) 0%, rgba(9,42,66,0) 44%, rgba(7,33,55,.5) 74%, rgba(3,18,38,.96) 100%),
    /* тайл волн + лодки */
    url("../img/sea.svg") top center / 100% auto repeat-y scroll,
    /* базовая вода: мелко (бирюза) -> глубоко */
    linear-gradient(180deg, #3aa0c8 0%, #2f8fbb 45%, #1d6b93 78%, #0e4468 100%);
}
/* пляж-переход песок->вода на стыке с ВКР. Отрицательный нахлёст убран:
   overflow:hidden у sea-zone срезал его, оставляя ровную кромку. Теперь svg
   виден целиком, верхний градиент подгоняет цвет под низ пустыни (#d4a54a) */
.beach {
  height: 150px; margin-bottom: -2px; position: relative; z-index: 1;
  background:
    linear-gradient(180deg, #d4a54a 0, #d4a54a 22px, rgba(212,165,74,0) 78px),
    url("../img/beach.svg") top center / 100% 150px no-repeat;
}
/* номер раздела на воде - золотой (var(--accent)), как у остальных разделов
   (и как у 09/Контакты в футере ниже), а не белёсый */
.sea-zone .section > .container > h2::before { color: var(--accent) !important; }
/* секции внутри прозрачны - показывают воду */
.sea-zone .section, .sea-zone .section-alt, .sea-zone .band, .sea-zone .footer {
  background: transparent !important; border: none !important;
}
.sea-zone > section, .sea-zone > .band { position: relative; z-index: 1; }
.sea-zone h2 { color: #f2fbff !important; text-shadow: 0 2px 14px rgba(3,26,45,.55); }

/* --- Отзывы = светлые «плоты» на воде (цвета нормальные, читаемые) --- */
.sea-zone #quotes { position: relative; z-index: 1; }
.sea-zone .quotes { display: flex; flex-direction: column; gap: 26px; margin-top: 24px; }
.sea-zone .quotes blockquote {
  background: rgba(255,255,255,.92) !important; border: 1px solid rgba(255,255,255,.7) !important;
  border-radius: 16px; padding: 22px 28px; margin: 0; width: min(760px, 94%);
  box-shadow: 0 16px 34px rgba(3,28,48,.4);
  color: #16232e !important;
}
.sea-zone .quotes blockquote:nth-child(odd) { margin-inline-start: 0; margin-inline-end: auto; }
.sea-zone .quotes blockquote:nth-child(even) { margin-inline-start: auto; margin-inline-end: 0; }
.sea-zone .quotes blockquote p { color: #16232e !important; }
.sea-zone .quotes blockquote footer { color: #45606f !important; }
.sea-zone .quotes .q-btn {
  color: #16232e !important; background: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.7); box-shadow: 0 10px 22px rgba(3,28,48,.35);
}
.sea-zone .quotes .q-btn:hover { border-color: var(--accent); }
.sea-zone .quotes blockquote.q-pending { background: rgba(255,255,255,.72) !important; border: 1px dashed rgba(255,255,255,.9) !important; }
/* кнопки ВНЕ карточки, на воде рядом с плотом: у нечётных - справа снаружи,
   у чётных - слева снаружи; текст карточки ничем не поджат */
.sea-zone .quotes blockquote { position: relative; }
.sea-zone .quotes blockquote > .q-actions {
  position: absolute; top: 50%; transform: translateY(-50%);
  left: calc(100% + 18px); right: auto;
  flex-direction: column; justify-content: center; margin: 0; min-width: 104px;
}
.sea-zone .quotes blockquote:nth-child(even) > .q-actions { left: auto; right: calc(100% + 18px); }
/* узкие экраны: снаружи места нет - кнопки возвращаются в карточку рядом под текст */
@media (max-width: 1000px) {
  .sea-zone .quotes blockquote > .q-actions,
  .sea-zone .quotes blockquote:nth-child(even) > .q-actions {
    position: static; transform: none; flex-direction: row; justify-content: flex-end;
    margin-top: 14px; min-width: 0;
  }
}

/* --- Цель = красивый крупный текст на воде, без карточки --- */
.sea-zone #goal { text-align: center; padding: 56px 0 66px; }
.sea-zone #goal h2 { color: #f6fdff !important; font-size: clamp(30px, 5vw, 52px); margin-bottom: 14px; }
.sea-zone #goal p {
  color: #e2f3fb !important; font-size: clamp(16px, 2.2vw, 20px); line-height: 1.6;
  max-width: 780px; margin: 0 auto; text-shadow: 0 2px 12px rgba(3,26,45,.55);
}

/* --- Контакты = глубина океана, красиво оформленный подвал --- */
.sea-zone #contact { position: relative; padding-top: 46px; }
/* световые лучи + пузырьки в глубине */
.sea-zone #contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background:
    linear-gradient(122deg, transparent 46%, rgba(180,225,245,.10) 48%, transparent 52%),
    linear-gradient(64deg, transparent 60%, rgba(180,225,245,.08) 62%, transparent 66%),
    radial-gradient(4px 4px at 18% 30%, rgba(220,242,251,.5), transparent 60%),
    radial-gradient(3px 3px at 74% 22%, rgba(220,242,251,.45), transparent 60%),
    radial-gradient(5px 5px at 60% 62%, rgba(220,242,251,.35), transparent 60%),
    radial-gradient(3px 3px at 34% 74%, rgba(220,242,251,.4), transparent 60%),
    radial-gradient(4px 4px at 88% 68%, rgba(220,242,251,.3), transparent 60%);
}
.sea-zone #contact > .container { position: relative; z-index: 1; }
.sea-zone #contact h2 { color: #f0fafe !important; }
.sea-zone #contact .contact { color: #d6eef9 !important; }
.sea-zone #contact .contact:hover { color: #ffffff !important; }
.sea-zone #contact .footer-note { color: #a7cadb !important; max-width: 720px; margin-left: auto; margin-right: auto; }
/* лаконичный подвал: справка о документах спрятана в раскрывашку */
.footer-details { margin: 6px auto 20px; max-width: 760px; }
.footer-details summary {
  cursor: pointer; display: inline-block; list-style: none;
  font-family: var(--mono); font-size: 13px; letter-spacing: .3px;
  color: #a7cadb; border-bottom: 1px dashed rgba(167, 202, 219, .5); padding-bottom: 2px;
  transition: color .2s;
}
.footer-details summary::-webkit-details-marker { display: none; }
.footer-details summary:hover { color: #eaf6fb; }
.footer-details[open] summary { margin-bottom: 16px; }
.footer-details .footer-note { margin-bottom: 12px; font-size: 13.5px; }
.sea-zone #contact .footer-copy { color: #7ea7bc !important; }
.sea-zone .btn-proof { color: #d6f0fb !important; border-color: rgba(214,240,251,.55) !important; }
.sea-zone .btn-proof:hover { background: rgba(214,240,251,.14) !important; border-color: #d6f0fb !important; }
.sea-zone .btn-primary { background: #ffd15e !important; color: #16232e !important; box-shadow: 0 8px 22px rgba(3,28,48,.45); }
/* подвал-океан по центру, аккуратно */
.sea-zone #contact { text-align: center; }
.sea-zone #contact .footer-top { flex-direction: column; align-items: center; justify-content: center; gap: 12px; margin-bottom: 22px; }
.sea-zone #contact .proof-actions { justify-content: center; }
.sea-zone #contact .contact-row { justify-content: center; }
.sea-zone #contact .contact:hover { text-decoration: underline; }
/* статус-плашка «Открыт к предложениям» вместо светофора */
.status-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px;
  border-radius: 100px; font-weight: 700; font-size: 14px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(214,240,251,.3); color: #eaf6fb;
}
.status-dot {
  width: 10px; height: 10px; border-radius: 50%; background: #35c48d; flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(53,196,141,.55); animation: statusPulse 2.2s ease-out infinite;
}
@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(53,196,141,.5); }
  70% { box-shadow: 0 0 0 11px rgba(53,196,141,0); }
  100% { box-shadow: 0 0 0 0 rgba(53,196,141,0); }
}
@media (prefers-reduced-motion: reduce) { .status-dot { animation: none; } }

/* --- Док: секции спрятаны всегда (контент переезжает в щиты на bbInit);
   без этого до отработки JS все 7 секций мигают внизу страницы --- */
.bb-dock section { display: none; }

/* самолёт летит прямо: поворотов по фазам нет */
.fr-plane { transition: left .15s linear; }
/* звёзды: при полном рассвете цикл отрисовки останавливается */
.stars-off .starfield, .stars-off .shooting-star { display: none; }

/* --- Плоский разворот (мобильные, reduced-motion, ручной тумблер) --- */
html.is-linear .zone--turn { height: auto; padding: 30px 0; }
html.is-linear .turn-cap { position: static; opacity: 1; }
html.is-linear .zone--highway { height: auto; }
html.is-linear .highway__stage { position: static; height: auto; overflow: visible; }
html.is-linear .highway__track { display: block; width: 100%; transform: none; }
html.is-linear .slot { width: 100%; padding: 26px 6vw; place-items: center; }
/* плоская версия: щиты не узкие «квадраты», а широкие полосы во всю колонку */
html.is-linear .bbx, html.is-linear .bbx.is-open { width: min(1100px, 100%); }
html.is-linear .slot .bb-face { width: 100%; max-width: none; min-height: 0; }
/* полоса ниже: кнопка «Внутри посмотреть» справа на уровне номера и заголовка.
   Только на широких экранах - на мобильных кнопка сжимала заголовок в столбик */
@media (min-width: 701px) {
  html.is-linear .slot .bb-face {
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 20px;
  }
  html.is-linear .slot .bb-face .bb-open-btn {
    grid-column: 2; grid-row: 1 / span 2; align-self: center; justify-self: end; margin: 0;
  }
  html.is-linear .slot .bb-face .bb-thesis,
  html.is-linear .slot .bb-face .bb-proof { grid-column: 1 / -1; }
}
html.is-linear .slot::before, html.is-linear .slot::after { display: none; }
html.is-linear .highway__road, html.is-linear .highway__water, html.is-linear .hw-towers { display: none; }
/* плоская версия: ночная зона щитов растворяется в песок, а не обрывается линией */
html.is-linear .zone--highway::after {
  content: ""; display: block; height: 180px;
  background: linear-gradient(180deg, rgba(138, 96, 32, 0) 0%, rgba(138, 96, 32, .55) 62%, #8a6020 100%);
}
html.is-linear .highway__stage .led-ticker { position: static; opacity: 1; }
html.is-linear .zone--ascent .floor { min-height: auto; }
html.is-linear .city { transform: none; }
/* плоская версия = статичная: без бегущих строк, звёзд и въездов контента */
html.is-linear .led-inner,
html.is-linear .starfield,
html.is-linear .shooting-star,
html.is-linear .reveal.visible .chip,
html.is-linear .nv-card { animation: none !important; }
html.is-linear .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
html.is-linear .fr-plane { display: none; }
html.is-linear .flight-route { display: none; }

/* ===================================================================
   ЭТАП 2 (ТЗ 6): рост щита на месте - прототип на щите «Стартап»
   =================================================================== */
.slot { overflow: hidden; }
.slot.is-open {
  overflow-y: auto; overscroll-behavior: contain;
  place-items: start center; padding-top: 84px; padding-bottom: 48px;
}
.bbx { position: relative; width: min(560px, 88vw); transition: width 460ms cubic-bezier(.16, 1, .3, 1); }
.bbx.is-open { width: min(1100px, 88vw); }
.bbx .bb-face { width: 100%; min-height: 0; }
.slot.is-open .bb-face { cursor: default; }
.slot.is-open::before, .slot.is-open::after { display: none; }
.bbx .bb-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 460ms cubic-bezier(.16, 1, .3, 1);
}
.bbx.is-open .bb-body { grid-template-rows: 1fr; }
.bbx .bb-inner { overflow: hidden; min-height: 0; }
.bbx.is-open .bb-inner {
  background: rgba(11, 15, 26, .97);
  border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 20px 20px; padding: 8px 34px 34px;
}
/* крестик прикреплён к верхнему-правому углу самого щита, не плавает в шве */
.bbx-close {
  display: none; position: absolute; top: 12px; inset-inline-end: 12px; z-index: 6;
  align-items: center; justify-content: center;
  background: rgba(11, 15, 26, .9);
}
.bbx.is-open .bbx-close { display: flex; }
/* приглушение соседей: края их щитов остаются видны (ширина 88vw, не 92) */
.highway__track.has-open .slot:not(.is-open) {
  opacity: .45; filter: saturate(.7);
  transition: opacity 200ms, filter 200ms;
}
html.is-linear .slot.is-open { overflow: visible; padding-top: 46px; }

/* ===================================================================
   ФИКС ОТКРЫТИЯ ЩИТОВ (мульти-аудит): центр, липкое лицо+крестик, скрим,
   без дубль-заголовка, заморозка сцены, a11y
   =================================================================== */
/* открытая шапка компактна и в обычном потоке (не липкая - не перекрывает контент);
   крестик вынесен в плавающую кнопку .hw-close в углу */
.slot.is-open .bb-face { min-height: 0; max-width: none; }   /* шапка во всю ширину панели, вровень с контентом */
.slot.is-open .bb-thesis, .slot.is-open .bb-proof, .slot.is-open .bb-open-btn { display: none; }
.bbx.is-open .bbx-close { display: none; }   /* крестик щита заменён плавающим .hw-close */
/* плавающий крестик: всегда виден в правом верхнем углу, пока щит открыт */
.hw-close {
  position: absolute; top: 76px; inset-inline-end: 22px; z-index: 8;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border);
  background: rgba(11, 15, 26, .92); color: var(--ink); font-size: 26px; line-height: 1;
  display: none; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color .2s, color .2s, transform .2s;
}
body.modal-open .hw-close { display: flex; }
.hw-close:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.06); }
.hw-close:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
/* убрать дубль-заголовок/кикер и лишние отступы у перенесённого контейнера */
.bbx .bb-inner > .container > h2, .bbx .bb-inner > .container > .kicker { display: none; }
.bbx .bb-inner > .container { max-width: none; margin: 0; padding: 0; }
/* скрим сцены под открытым щитом (ниже ленты z-3, выше дороги/города z<=2) */
.hw-scrim {
  position: absolute; inset: 0; z-index: 2; background: rgba(6, 9, 15, .82);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
body.modal-open .hw-scrim { opacity: 1; pointer-events: auto; }
/* заморозка анимаций сцены под модалкой */
.modal-open .veh, .modal-open .starfield, .modal-open .shooting-star { animation-play-state: paused; }
/* самолёт-баннер и пилюля MOW->DXB лежат поверх открытого щита - прячем */
.modal-open .sky-tow, .modal-open .flight-route { display: none; }
/* заметный фокус на крестике - как у лица */
.bbx-close:focus-visible, .modal-close:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
/* в линейном режиме соседние щиты не глушим (они в вертикальном потоке) */
html.is-linear .highway__track.has-open .slot:not(.is-open) { opacity: 1; filter: none; }
/* убрать боковой прыжок при появлении/скрытии скроллбара под модалкой */
html { scrollbar-gutter: stable; }
/* =====================================================================
   МОБИЛЬНЫЙ ПАКЕТ (аудит 2026-07): тап-цели, типографика, воздух.
   Блок в конце файла - переопределяет ранние media-правила.
   ===================================================================== */
@media (max-width: 900px) {
  /* тап-цели не меньше 44px */
  .burger { padding: 14px 10px; }
  .snd { width: 44px; height: 44px; }
  .lang-switch button { min-height: 44px; }
  .q-btn { font-size: 13px; padding: 11px 16px; }
  .sea-zone #contact .contact { display: block; padding: 12px 0; }
}
@media (max-width: 700px) {
  /* мобильная типографская шкала */
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .lead { font-size: 16.5px; }
  .eyebrow { font-size: 11.5px; letter-spacing: .4px; }
  .hub-card { padding: 22px 20px; }
  .hub-card h3 { font-size: 18px; }
  .bb-face .bb-title { font-size: 20px; }
  html.is-linear .slot .bb-face { padding: 20px 18px; }
  html.is-linear .slot { padding: 18px 5vw; }
  /* воздух: узкий контейнер и компактные секции */
  .container { padding: 0 18px; }
  .section { padding: 48px 0; }
  .hero { padding: 44px 0 36px; }
  /* тезис щита - 3 строки, полный материал внутри щита */
  html.is-linear .slot .bb-face .bb-thesis {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
}
/* «Подробнее» у длинных примечаний - активен только на мобильных */
.m-more { display: none; }
@media (max-width: 700px) {
  p.m-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  p.m-clamp.m-open { display: block; -webkit-line-clamp: unset; }
  .m-more {
    display: inline-block; background: none; border: none; cursor: pointer;
    color: var(--accent); font-weight: 700; font-size: 13.5px; padding: 8px 0 0;
  }
}

/* =====================================================================
   МОБИЛЬНЫЙ ПАКЕТ 2 (полный аудит): плитки, медальоны, документы,
   кейсы, письмо, закрытие щита, типографика ВКР
   ===================================================================== */
/* F. в плоском режиме открытому щиту возвращается собственный крестик */
html.is-linear .bbx.is-open .bbx-close { display: flex; }
/* открытый щит: шапка в одну колонку (заголовок слева), справа - место под крестик,
   иначе при гриде 1fr auto заголовок уезжал вправо и налезал на крестик */
@media (min-width: 701px) {
  html.is-linear .slot.is-open .bb-face { grid-template-columns: 1fr; padding-inline-end: 54px; }
}

@media (max-width: 700px) {
  /* A. стат-плитки 2x2 с компактными числами */
  .grid-4, .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid-4 .tile, .stats .tile { padding: 14px 12px; text-align: center; }
  .grid-4 .tile b, .stats .tile b { font-size: 26px; display: block; }
  .grid-4 .tile span, .stats .tile span { font-size: 12.5px; line-height: 1.35; display: block; }
  /* A. чипы-метрики: сетка равной ширины вместо лесенки */
  .chips-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .chips-row .chip { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; text-align: center; width: auto; }
  /* B. медальоны оценок: печать слева, текст справа */
  .thesis-dunes .grades { flex-direction: column; gap: 10px; }
  .thesis-dunes .tile-grade {
    width: 100%; display: grid; grid-template-columns: 52px 1fr;
    column-gap: 14px; align-items: center; text-align: start; padding: 14px 16px;
  }
  .thesis-dunes .tile-grade .seal { width: 48px; height: 48px; margin: 0; font-size: 11px; grid-row: 1 / span 2; }
  .thesis-dunes .tile-grade b { font-size: 16px; }
  .thesis-dunes .tile-grade > span:last-child { margin-top: 2px; font-size: 12px; }
  /* C. документы PDF: компактные строки вместо высоких карточек */
  .dl { display: grid; grid-template-columns: 18px 1fr; column-gap: 10px; align-items: center; padding: 12px 14px; }
  .dl::before { grid-row: 1 / span 2; }
  /* E. кнопки-пруфы кейсов: сетка во всю ширину */
  .proof-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .proof-actions .btn { width: 100%; text-align: center; padding: 12px 10px; font-size: 14px; }
  .proof-actions .btn-primary { grid-column: 1 / -1; }
  .btn-rec { margin-inline-start: 0; }
  /* G1. типографика ВКР */
  .thesis-dunes h2 { font-size: 24px; }
  .thesis-dunes .thesis-topic { font-size: 16.5px; }
  /* D. мотивационное письмо свёрнуто до первого фрагмента */
  .telegram.m-fold:not(.m-open) .tg-body {
    max-height: 300px; overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 68%, transparent 100%);
  }
  .telegram.m-fold:not(.m-open) .tg-signblock { display: none; }
  .m-letter-more { font-size: 14.5px; padding: 4px 0 0; }
}

/* ===== Мобильные фиксы таблиц/калькуляторов (аудит мобильной #2) ===== */
@media (max-width: 700px) {
  /* таблицы-сценарии (4 колонки денежных сумм) физически не влезают в ~210px.
     не сжимаем в нечитаемое, а даём естественную ширину + аффорданс скролла (см. ниже) */
  .scenario-table { min-width: 0; font-size: 12.5px; }
  .scenario-table th, .scenario-table td { padding: 6px 8px; }
  .scenario-table td { white-space: nowrap; }
  .scenario-table th { white-space: normal; line-height: 1.2; }
}
/* аффорданс горизонтальной прокрутки для широких таблиц (фейд+стрелка справа) */
.xscroll-wrap { position: relative; }
.xscroll-fade {
  position: absolute; top: 0; right: 0; bottom: 0; width: 40px; pointer-events: none;
  display: flex; align-items: center; justify-content: flex-end;
  background: linear-gradient(90deg, transparent, var(--card) 75%);
  opacity: 0; transition: opacity .2s;
}
.xscroll-wrap.show-fade .xscroll-fade { opacity: 1; }
.xscroll-fade::after { content: "\2192"; color: var(--accent); font-size: 15px; font-weight: 700; margin-inline-end: 4px; }
@media (max-width: 700px) {
  /* capex-бары: колонка значения шире, число не режется */
  .cb { grid-template-columns: 104px 1fr 58px; gap: 10px; font-size: 12.5px; }
  .cb b { font-size: 12.5px; }
  /* калькуляторы: грид-колонка раздувалась под max-content (формулы в <pre> не
     переносились -> строки 487px -> обрез справа). колонка = ширина контейнера,
     формулы переносятся, блок <pre> при нужде скроллится сам */
  .calc, .calc-row { grid-template-columns: minmax(0, 1fr); }
  .model-formula pre { white-space: pre-wrap; word-break: break-word; overflow-x: auto; }
  /* КОРЕНЬ обрезки таблиц на мобильной: тройной вложенный padding (slot 5vw +
     bb-inner 34px + demo-card 30px) сжимал контент до ~207px, 2-колоночные таблицы
     (292px) торчали. ужимаем паддинги -> контенту ~295px, всё влезает */
  html.is-linear .slot { padding-inline: 3vw; }
  .bbx.is-open .bb-inner { padding: 8px 14px 20px; }
  .demo-card { padding: 18px 14px; }
}
