/* ============================================================
   Главная страница платформы. Тёмная тема, единая с лекциями.
   ============================================================ */

:root {
  --bg:          #0e1117;
  --bg-soft:     #161b22;
  --bg-card:     #1c232c;
  --bg-card-2:   #222a35;
  --line:        #2a3340;

  --text:        #e6edf3;
  --text-dim:    #8b96a3;
  --text-muted:  #6b7480;

  --accent:      #6fb1ff;
  --accent-soft: rgba(111,177,255,0.10);
  --accent-line: rgba(111,177,255,0.28);

  --warn:        #ffc26b;
  --warn-soft:   rgba(255,194,107,0.10);
  --warn-line:   rgba(255,194,107,0.30);

  --serif: "Iowan Old Style", "Charter", "Cambria", "Georgia", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background:
    radial-gradient(900px 500px at 90% -5%, #1c2a45 0%, transparent 60%),
    radial-gradient(700px 400px at -10% 10%, #16243a 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

::selection { background: rgba(111,177,255,0.30); color: #fff; }

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 44px 24px 88px;
}

/* ============== BRAND (в шапке левой панели) ============== */
.site-brand {
  display: flex; align-items: center; justify-content: center;
  margin: 0 0 6px; padding: 0;
  transition: opacity 0.2s;
}
.site-brand img { height: auto; width: 100%; max-width: 168px; display: block; }
.site-brand:hover { opacity: 0.82; }

/* ============== HOME LAYOUT (десктоп) ==============
   Три зоны: слева — панель локации (лого, город, время, погода) одним
   столбцом; по центру — вращающийся глобус; справа, вплотную к краю —
   Windy на всю ширину и два столбца боксов (METAR/TAF · NOTAM/новости). */
.home-layout {
  display: grid;
  grid-template-columns: minmax(178px, 13.2%) minmax(0, 1fr) minmax(408px, 33%);
  grid-template-rows: 1fr;
  grid-template-areas: "side main aside";
  column-gap: 30px;
  align-items: start;
  max-width: 1720px;
  margin: 0 auto;
  padding: 16px 30px 12px;
}
.home-layout .wrap {
  grid-area: main;
  max-width: none; margin: 0; padding: 0;
  align-self: center;
  display: flex; align-items: center; justify-content: center;
}
.home-layout .wrap .globe-nav { width: 100%; }
.home-layout .tiles { margin-top: 0; }

/* Левая панель — один столбец: бренд, город, время, погода. */
.home-side {
  grid-area: side;
  display: flex; flex-direction: column; gap: 9px;
  margin-top: 10px;
}

/* Правая панель — прижата к краю: Windy на всю ширину, ниже два столбца. */
.home-ops {
  grid-area: aside;
  display: flex; flex-direction: column; gap: 9px;
  margin-top: 10px;
}
.home-ops__cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 9px;
  align-items: start;
}
.home-ops__col { display: flex; flex-direction: column; gap: 9px; }

/* Планшет/узкий десктоп: одна колонка сверху вниз — левая панель, глобус,
   правая панель. Внутри левой панели боксы выстраиваются в ряд. */
@media (max-width: 1280px) {
  .home-layout {
    grid-template-columns: minmax(0, 860px);
    grid-template-rows: none;
    grid-template-areas: "side" "main" "aside";
    column-gap: 0;
    justify-content: center;
    max-width: none;
    padding: 0 24px 48px;
  }
  .home-layout .wrap { display: block; align-self: auto; }
  .home-side {
    margin-top: 26px;
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 12px; align-items: start;
  }
  .home-side .site-brand { grid-column: 1 / -1; margin: 4px auto 8px; }
  .home-ops { margin-top: 16px; }
}

/* ============== OPS BOXES (city / weather / metar / …) ============== */
.ops {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 13px 9px;
  color: var(--text);
}
.ops__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ops__title {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 700;
}
.ops__msg { color: var(--text-muted); font-size: 12.5px; padding: 4px 0; }
.ops__foot { margin-top: 7px; color: var(--text-muted); font-size: 10px; letter-spacing: 0.02em; line-height: 1.35; }

/* ---- бокс: карта ветра Windy ---- */
.ops__windy {
  position: relative;
  height: 188px;
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b0f14;
}
.ops__windy iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
}

.ops__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px;
  border-top: 1px solid var(--line); padding-top: 9px; margin-top: 9px;
}
.ops__grid div { color: var(--text-muted); font-size: 11px; line-height: 1.3; }
.ops__grid div.wide { grid-column: 1 / -1; }
.ops__grid b { display: block; margin-top: 1px; color: var(--text); font-size: 13.5px; font-weight: 600; }

/* ---- box 1: city / location (подсвечен синим — задаёт данные всей панели) ---- */
.ops--loc {
  padding-top: 14px;
  border-color: var(--accent-line);
  background:
    linear-gradient(180deg, rgba(111,177,255,0.07) 0%, rgba(111,177,255,0) 46%),
    var(--bg-card);
  box-shadow: 0 0 0 1px var(--accent-line), 0 0 26px rgba(111,177,255,0.14);
}
.ops__search { position: relative; }
.ops__input {
  width: 100%; box-sizing: border-box;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 9px; padding: 8px 10px 8px 30px; color: var(--text);
  font-size: 13px; font-family: var(--sans); outline: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b96a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.3-4.3'/></svg>");
  background-repeat: no-repeat; background-position: 9px center; background-size: 14px;
  transition: border-color 0.2s;
}
.ops__input:focus { border-color: var(--accent-line); }
.ops__input::placeholder { color: var(--text-muted); }
.ops__sugg {
  list-style: none; margin: 6px 0 0; padding: 4px;
  position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
  background: var(--bg-card-2); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 14px 34px rgba(0,0,0,0.5);
}
.ops__sugg li {
  padding: 7px 8px; border-radius: 7px; cursor: pointer;
  color: var(--text); font-size: 13px; line-height: 1.3;
}
.ops__sugg li:hover, .ops__sugg li.on { background: var(--accent-soft); }
.ops__sugg small { color: var(--text-muted); }
.ops__city { margin-top: 8px; font-weight: 600; font-size: 16px; font-family: var(--serif); line-height: 1.25; }
.ops__region { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-dim); font-family: var(--sans); margin-top: 1px; }

/* ---- бокс: местное время выбранного города ---- */
.ops--time { text-align: center; padding: 13px 13px 12px; }
.ops__clock {
  font-family: var(--serif);
  font-size: 46px; line-height: 1; letter-spacing: 0.015em;
  color: var(--text); font-variant-numeric: tabular-nums;
}
.ops__utc {
  margin-top: 6px; font-family: var(--sans);
  font-size: 12px; letter-spacing: 0.10em; color: var(--accent);
}
.ops__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.chip {
  font-family: var(--sans); font-size: 12px; line-height: 1.2;
  padding: 5px 10px; border-radius: 100px; white-space: nowrap;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--text-dim);
  cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.chip:hover { border-color: var(--accent-line); color: var(--text); }
.chip.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); font-weight: 600; }
.chip--more { padding: 5px 9px; font-weight: 600; min-width: 26px; text-align: center; }
.chip--more:hover { border-color: var(--accent-line); color: var(--accent); }
.ops__air { margin-top: 8px; color: var(--text-dim); font-size: 12px; }

/* ---- две кнопки под погодой: настройки + переключатель темы ---- */
.ops__actions { display: flex; gap: 9px; }
.ops__btn {
  flex: 1; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg-card); color: var(--text-dim);
  cursor: pointer; font-family: var(--sans);
  transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.12s;
}
.ops__btn:hover { border-color: var(--accent-line); color: var(--accent); background: var(--bg-card-2); }
.ops__btn:active { transform: scale(0.97); }
.ops__btn svg { width: 20px; height: 20px; display: block; }
/* солнце — в тёмной теме (по умолчанию), луна — в светлой */
.ops__btn .ico-moon { display: none; }
:root[data-theme="light"] .ops__btn .ico-sun { display: none; }
:root[data-theme="light"] .ops__btn .ico-moon { display: block; }

/* ---- weather box ---- */
.wx__main { display: flex; align-items: center; gap: 10px; }
.wx__icon { color: var(--accent); flex-shrink: 0; }
.wx__icon svg { width: 40px; height: 40px; }
.wx__temp { font-family: var(--serif); font-size: 30px; line-height: 1; letter-spacing: -0.01em; }
.wx__cond { margin-top: 4px; color: var(--text-dim); font-size: 13px; }

/* ---- metar box ---- */
#ops-metar, #ops-taf, #ops-notam { position: relative; }
/* NOTAM — карусель: один самый актуальный NOTAM, листается как новости */
.nt { margin-top: 4px; }
.nt__item { transition: opacity 0.14s ease; }
.nt__top { display: flex; align-items: baseline; gap: 9px; }
.nt__num { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 700; color: var(--accent); font-size: 12.5px; }
.nt__typ { font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
/* фиксированная высота сводки — чтобы бокс не «прыгал» при листании */
.nt__sum { height: 82px; overflow: hidden; margin-top: 5px; }
.nt__tag { font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.3; }
.nt__ru { margin-top: 5px; font-size: 12.5px; line-height: 1.45; color: var(--text-dim); }
.nt__when { margin-top: 5px; font-size: 11.5px; color: var(--text-dim); }
.nt__toggle {
  margin-top: 8px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  color: var(--accent); font-size: 11.5px; font-weight: 600; cursor: pointer;
  font-family: var(--sans); transition: background 0.15s, border-color 0.15s;
}
.nt__toggle:hover { background: rgba(111,177,255,0.2); border-color: var(--accent); }
.nt__expl { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 4px; }
.nt__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.nt__count { font-size: 11.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.nt__nav {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--text-dim); font-size: 15px; line-height: 1;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.15s, color 0.15s;
}
.nt__nav:hover { border-color: var(--accent); color: var(--accent); }

/* Авиановости — карусель */
.nw { margin-top: 4px; }
.nw__item {
  display: block; text-decoration: none; color: inherit;
  transition: opacity 0.14s ease;
}
.nw__title {
  font-size: 14px; line-height: 1.42; font-weight: 600; color: var(--text);
  height: 60px; overflow: hidden;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
}
.nw__item:hover .nw__title { color: var(--accent); }
.nw__src { margin-top: 7px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.nw__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 13px; }
.nw__count { font-size: 11.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.nw__nav {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--text-dim); font-size: 15px; line-height: 1;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.15s, color 0.15s;
}
.nw__nav:hover { border-color: var(--accent); color: var(--accent); }
.mx__raw {
  margin-top: 9px; border-top: 1px solid var(--line); padding-top: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 10.5px; line-height: 1.42; color: var(--text-dim);
  word-break: break-word;
  max-height: 42px; overflow-y: auto;
}
.ops__footrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.mx__help {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  color: var(--accent); font-size: 12px; font-weight: 700; line-height: 1;
  cursor: pointer; font-family: var(--sans);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.mx__help:hover { background: rgba(111,177,255,0.2); border-color: var(--accent); }
.mx__help:active { transform: scale(0.94); }
.mx__explain {
  position: absolute; left: 12px; right: auto; bottom: 44px; z-index: 45;
  width: min(340px, calc(100vw - 40px));
  max-height: 60vh; overflow-y: auto;
  background: var(--bg-card-2); border: 1px solid var(--accent-line);
  border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.6);
}
.mx__ex-head {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 700; margin-bottom: 8px;
}
.mx__ex-row {
  padding: 7px 0; border-bottom: 1px solid var(--line);
  font-size: 12.5px; line-height: 1.5; color: var(--text-dim);
}
.mx__ex-row:last-child { border-bottom: 0; padding-bottom: 0; }
.mx__ex-tok {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 700; color: var(--accent); font-size: 12px;
}

/* ============== HERO ============== */
.home-hero { margin-bottom: 20px; }
.eyebrow {
  color: var(--accent); font-size: 11.5px; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 600;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.eyebrow .pill {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 3px 9px; border-radius: 100px;
  letter-spacing: 0.12em; font-size: 11px;
}
.home-hero h1 {
  font-family: var(--serif);
  font-size: 46px; line-height: 1.1;
  margin: 0; letter-spacing: -0.015em; font-weight: 600;
}
.home-hero .lede {
  color: var(--text-dim);
  font-size: 17.5px; line-height: 1.6;
  margin: 18px 0 0; max-width: 60ch;
}

/* ============== GLOBE NAV (голограмма) ============== */
/* По умолчанию скрыт: если WebGL/JS недоступны — остаются плашки .tiles.
   globe.js вешает body.globe-on только после успешного старта. */
.globe-nav { display: none; }
body.globe-on .globe-nav { display: block; }
body.globe-on .tiles { display: none; }

.globe-nav {
  margin-top: 8px;
  position: relative;
}
.globe-nav__stage {
  position: relative;
  width: 100%;
  height: 560px;
  margin: 0 auto;
  cursor: grab;
  transition: opacity 0.5s ease, transform 0.9s cubic-bezier(.4,.05,.2,1);
}
.globe-nav__stage:active { cursor: grabbing; }
.globe-nav__stage canvas { display: block; outline: none; }
/* «провал» в раздел — сцена растворяется и чуть приближается */
.globe-nav__stage.is-diving { opacity: 0; transform: scale(1.12); pointer-events: none; }

.globe-nav__hint {
  text-align: center;
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600;
}

/* ---- HTML-маркеры разделов на сфере ---- */
.gmark {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  user-select: none;
  transition: opacity 0.35s ease;
  white-space: nowrap;
}
.gmark__pin {
  position: relative;
  width: 12px; height: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.gmark__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #bfe0ff;
  box-shadow: 0 0 0 4px rgba(122,196,255,0.16), 0 0 12px rgba(122,196,255,0.9);
}
/* пульсирующее кольцо вокруг точки */
.gmark__pin::before {
  content: ""; position: absolute; inset: 50% auto auto 50%;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; border: 1px solid rgba(122,196,255,0.7);
  animation: gmarkPulse 2.6s ease-out infinite;
}
@keyframes gmarkPulse {
  0%   { transform: scale(0.6); opacity: 0.9; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}
.gmark__label {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--serif);
  font-size: 14.5px; font-weight: 600; color: var(--text);
  background: rgba(14,20,32,0.72);
  border: 1px solid var(--accent-line);
  padding: 4px 11px; border-radius: 100px;
  backdrop-filter: blur(3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  transition: border-color 0.18s, background 0.18s, transform 0.18s, color 0.18s;
}
.gmark:hover .gmark__label,
.gmark:focus-visible .gmark__label {
  border-color: var(--accent);
  background: rgba(23,34,52,0.92);
  transform: translateY(-1px);
}
.gmark:hover .gmark__dot {
  background: #eaf5ff;
  box-shadow: 0 0 0 5px rgba(122,196,255,0.22), 0 0 16px rgba(122,196,255,1);
}
.gmark:focus-visible { outline: none; }

/* «скоро» — приглушённый жёлтый маркер, некликабельный переход */
.gmark.is-soon { cursor: default; }
.gmark.is-soon .gmark__dot {
  background: var(--warn);
  box-shadow: 0 0 0 4px rgba(255,194,107,0.14), 0 0 10px rgba(255,194,107,0.7);
}
.gmark.is-soon .gmark__pin::before { border-color: rgba(255,194,107,0.6); }
.gmark.is-soon .gmark__label { color: var(--text-dim); border-color: var(--warn-line); }
.gmark.is-soon:hover .gmark__label { border-color: var(--warn-line); background: rgba(14,20,32,0.72); transform: none; }
.gmark.is-soon:hover .gmark__dot { background: var(--warn); box-shadow: 0 0 0 4px rgba(255,194,107,0.14), 0 0 10px rgba(255,194,107,0.7); }
.gmark__soon {
  font-family: var(--sans); font-style: normal;
  font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--warn);
  background: var(--warn-soft); border: 1px solid var(--warn-line);
  padding: 1px 6px; border-radius: 100px; line-height: 1.35;
}

/* точки на обратной стороне шара скрываем целиком */
.gmark.is-back { opacity: 0; }

/* ---- неоновая пульсирующая зелёная метка выбранного города ---- */
.citymark {
  position: relative;
  width: 16px; height: 16px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.citymark__core {
  position: absolute; top: 50%; left: 50%;
  width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: #55ff9e;
  box-shadow:
    0 0 6px 2px rgba(46,255,140,0.95),
    0 0 15px 5px rgba(46,255,140,0.7),
    0 0 30px 10px rgba(46,255,140,0.4);
  animation: cityGlow 1.5s ease-in-out infinite;
}
/* расходящееся неоновое кольцо */
.citymark::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; border: 2px solid rgba(46,255,140,0.8);
  box-shadow: 0 0 8px rgba(46,255,140,0.6);
  animation: cityRing 1.9s cubic-bezier(.2,.6,.3,1) infinite;
}
@keyframes cityGlow {
  0%, 100% {
    transform: scale(0.88);
    box-shadow:
      0 0 5px 2px rgba(46,255,140,0.85),
      0 0 12px 4px rgba(46,255,140,0.55),
      0 0 24px 8px rgba(46,255,140,0.32);
  }
  50% {
    transform: scale(1.14);
    box-shadow:
      0 0 9px 3px rgba(46,255,140,1),
      0 0 22px 7px rgba(46,255,140,0.85),
      0 0 40px 14px rgba(46,255,140,0.5);
  }
}
@keyframes cityRing {
  0%   { transform: scale(0.5); opacity: 0.95; }
  100% { transform: scale(3.6); opacity: 0; }
}

/* короткий отклик на клик по «скоро»-маркеру (раздел ещё не готов) */
.gmark--nudge .gmark__label { animation: gmarkNudge 0.42s ease; }
@keyframes gmarkNudge {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  45% { transform: translateX(3px); }
  70% { transform: translateX(-2px); }
}

@media (max-width: 620px) {
  .globe-nav__stage { height: 470px; }
  .gmark__label { font-size: 13px; padding: 3px 9px; }
}

/* ============== CLICKABLE TILES ============== */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 208px);
  gap: 16px;
  margin-top: 40px;
  justify-content: center;
}
.tile {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.tile::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 100% 0%, var(--accent-soft) 0%, transparent 55%);
  opacity: 0; transition: opacity 0.25s;
  pointer-events: none;
}
.tile:hover {
  border-color: var(--accent-line);
  background: var(--bg-card-2);
  transform: translateY(-3px);
}
.tile:hover::after { opacity: 1; }
.tile__icon {
  display: inline-flex;
  color: var(--accent);
  transition: transform 0.25s, color 0.2s;
}
.tile__icon svg { width: 40px; height: 40px; }
.tile__glyph {
  font-family: var(--serif);
  font-size: 15px; font-weight: 600; letter-spacing: 0.3px;
  fill: currentColor; stroke: none;
}
.tile:hover .tile__icon { transform: translateY(-1px); }
.tile__body { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; }
.tile__title {
  font-family: var(--serif);
  font-size: 21px; font-weight: 600; color: var(--text);
  line-height: 1.15; letter-spacing: 0.005em;
  display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.tile__desc {
  color: var(--text-dim); font-size: 13px; line-height: 1.5;
}

/* «скоро» — раздел ещё не подключён */
.tile.is-soon { opacity: 0.85; }
.tile.is-soon:hover { transform: none; border-color: var(--warn-line); background: var(--bg-card); }
.tile.is-soon:hover::after { opacity: 0; }
.tile.is-soon .tile__icon { color: var(--warn); }
.tile.is-soon:hover .tile__icon { transform: none; }

.badge-soon {
  font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--warn);
  background: var(--warn-soft); border: 1px solid var(--warn-line);
  padding: 2px 8px; border-radius: 100px; line-height: 1.4;
  font-family: var(--sans);
}

/* ============== LIVE INFO ============== */
.live { margin-top: 56px; }
.live__heading {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 600; margin-bottom: 16px;
}
.live__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.info-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.info-card__top {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.info-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.info-card__icon svg { width: 22px; height: 22px; }
.info-card__name {
  font-size: 14px; font-weight: 600; color: var(--text);
  letter-spacing: 0.005em;
}
.info-card__value {
  font-family: var(--serif);
  font-size: 22px; font-weight: 700; color: var(--text-dim);
  line-height: 1.15; letter-spacing: -0.01em;
  margin-top: 2px;
}
.info-card__note {
  color: var(--text-muted); font-size: 12.5px; line-height: 1.45;
}
.badge-stub {
  font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; color: var(--text-muted);
  background: rgba(139,150,163,0.10); border: 1px solid rgba(139,150,163,0.22);
  padding: 2px 7px; border-radius: 100px; line-height: 1.4;
  margin-left: auto;
}

/* ============== FOOTER ============== */
.home-footer {
  margin: 2px 24px 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--text-muted); font-size: 12px;
  text-align: center;
}

/* ============== MOBILE ============== */
@media (max-width: 820px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .live__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .home-layout { padding: 20px 16px 40px; }
  .home-side { grid-template-columns: 1fr; }
  .home-ops__cols { grid-template-columns: 1fr; }
  .site-brand { margin: 20px auto 6px; }
  .site-brand img { height: 98px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .live__grid { grid-template-columns: 1fr; }
  .tile { padding: 18px; border-radius: 16px; }
  .tile__icon svg { width: 34px; height: 34px; }
  .tile__title { font-size: 19px; }
}

/* ============== «Факт дня»: самолётик с ленточкой ============== */
.factplane {
  position: fixed; left: 0; right: 0;
  z-index: 9990; pointer-events: none;
  will-change: transform;
}
.fp__group {
  display: inline-flex; align-items: center;
  white-space: nowrap; will-change: transform;
}
/* самолёт летит вправо: нос по умолчанию смотрит вправо. Влево — зеркалим. */
.fp__group--rtl .fp__plane { transform: scaleX(-1); }

.fp__plane {
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 9px rgba(0,0,0,0.5));
  animation: fpBob 2.6s ease-in-out infinite;
}
.fp__img { display: block; width: 96px; height: auto; }

.fp__rope {
  flex: 0 0 auto; width: 30px; height: 0;
  border-top: 2px dashed rgba(226,237,251,0.55);
  align-self: center;
}

.fp__ribbon {
  flex: 0 0 auto;
  background: linear-gradient(180deg, #f6f2e8 0%, #ece5d3 100%);
  color: #16222f;
  padding: 9px 18px; border-radius: 6px;
  font-family: var(--serif); font-size: 16px; line-height: 1.3;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(0,0,0,0.06);
  transform-origin: center;
  animation: fpFlutter 1.5s ease-in-out infinite;
}

@keyframes fpBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.fp__group--rtl .fp__plane { animation: fpBobRtl 2.6s ease-in-out infinite; }
@keyframes fpBobRtl {
  0%, 100% { transform: scaleX(-1) translateY(0); }
  50%      { transform: scaleX(-1) translateY(-6px); }
}
@keyframes fpFlutter {
  0%   { transform: skewX(0deg)    translateY(0);    }
  25%  { transform: skewX(-2.5deg) translateY(-3px); }
  50%  { transform: skewX(0deg)    translateY(0);    }
  75%  { transform: skewX(2.5deg)  translateY(3px);  }
  100% { transform: skewX(0deg)    translateY(0);    }
}

@media (prefers-reduced-motion: reduce) {
  .factplane { display: none; }
}
@media (max-width: 720px) {
  .fp__ribbon { font-size: 14px; padding: 8px 14px; }
  .fp__img { width: 72px; }
}
