/*
  DIRECTION CONTRACT — Табло вокзала (Departure board)
  THESIS: Пополнение — это отправление. Каждый заказ читается как строка табло:
  куда, сколько, статус. Посетитель видит состояние без расшифровки.
  OWN-WORLD: Чёрное табло с белыми буквами и жёлтыми цифрами, строки с выравниванием
  по колонкам, статусы «Посадка / В пути / Прибыл» как в аэропорту и на вокзале.
  Барлоу Конденсед (заголовки и названия станций), JetBrains Mono (цифры и коды
  строк), Golos Text (текст).
  STORY: Выбор региона — выбор направления. Сумма — строка с ценой. Комиссия и итог
  выведены колонками до оплаты, без сюрпризов в последний шаг.
  FIRST VIEWPORT: Табло направлений: строки регионов и способов с ценами, жёлтый
  CTA «Пополнить», заголовок крупно.
  FORM: Из розданных направлений назначено №5 (колонка АЗС); пользователь выбрал
  табло вокзала (его выбор важнее ролла).
  FINISH: unreviewed and undocumented is unfinished; this build ends with the
  finish review, the verdict, DESIGN.md.
*/

/* ============ TOKENS ============ */
:root{
  --bg: #06080c;
  --bg-1: #0c1119;
  --bg-2: #131a25;
  --panel: #0e1520;
  --line: rgba(120,180,255,.14);
  --line-strong: rgba(120,180,255,.3);
  --text: #e7f0ff;
  --text-dim: #9fb0c4;
  --text-faint: #6f8198;

  --amber: #35e0ff;
  --amber-2: #9af4ff;
  --green: #7dff8a;
  --red: #ff6b7a;
  --blue: #6ea8ff;

  --font-display: "Exo 2", "Arial Narrow", sans-serif;
  --font-body: "Golos Text", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 0;
  --measure: 68ch;
  --container: 1180px;
  --gutter: 24px;
  --row: 56px;

  --ease: cubic-bezier(.16,1,.3,1);
}

/* ============ PAYON: технологичная система ============
   Холодная графитовая база, голубой акцент, сетка 40px как чертёж,
   срезанные углы у действий. Цифры в моно, заголовки в Exo 2. */
/* ============ RESET ============ */
*, *::before, *::after{ box-sizing: border-box; }
html{ color-scheme: dark; -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(120,180,255,.09) 1px, transparent 1.2px);
  background-size: 28px 28px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg{ display:block; max-width:100%; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input{ font: inherit; color: inherit; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,p{ margin:0; }

::selection{ background: var(--amber); color: #06080c; }

/* focus ring — board amber, never suppressed */
:focus-visible{ outline: 2px solid var(--amber); outline-offset: 2px; }

/* scrollbar */
*{ scrollbar-color: var(--amber) var(--bg-1); scrollbar-width: thin; }
*::-webkit-scrollbar{ width: 10px; height: 10px; }
*::-webkit-scrollbar-track{ background: var(--bg-1); }
*::-webkit-scrollbar-thumb{ background: var(--line-strong); border: 2px solid var(--bg-1); }

/* board digits: tabular, monospace */
.mono, .num, .qty-control span, #qtyValue, .price, .summary-row span:last-child,
.pay-btn span, #checkoutTotal, #payBtnTotal, #payBtnTotal2, #sumAmount, #sumFee,
#sumTotal, #btnTotal, .fee-badge, .countdown, .stat-badge, .cat-tab, .quick-amount{
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.icon{ width: 1em; height: 1em; fill: none; stroke: currentColor; flex: none; }
.icon.filled{ fill: currentColor; stroke: none; }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* removed decorations kept as no-ops so existing markup stays valid */
.hazard-rule{ display:none; }
.corner-frame{ position: relative; }

/* ============ LAYOUT HELPERS ============ */
.container{ max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section{ max-width: var(--container); margin: 0 auto; padding: 56px var(--gutter); }
.section h2{
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .005em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:24px; }
.section-head h2{ margin-bottom:0; }
.see-all{
  font-family: var(--font-mono); font-size: 13px; color: var(--amber);
  border-bottom: 1px solid var(--amber); padding-bottom: 2px; white-space:nowrap;
}
.see-all:hover{ color: var(--amber-2); }

/* ============ HEADER: station bar ============ */
.site-header{
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  padding: 0 max(var(--gutter), calc((100% - var(--container)) / 2));
  min-height: 64px;
  background: #03050a;
  border-bottom: 1px solid var(--line-strong);
}
.logo{
  display:flex; align-items:center; gap:10px;
  font-family: var(--font-display); font-weight:700; font-size:22px; line-height:1;
  letter-spacing: .02em; text-transform: uppercase; white-space:nowrap;
}
.logo .mark{ width:24px; height:24px; color: var(--amber); }
.logo .accent{ color: var(--amber); }

.header-nav{ display:flex; align-items:center; gap:22px; flex:1; min-width:0; }
.dropdown{ position:relative; }
.dropdown-btn{
  display:flex; align-items:center; gap:6px;
  font-family: var(--font-mono); font-size:13px; letter-spacing:.04em; text-transform:uppercase;
  color: var(--text-dim); white-space:nowrap;
  cursor:pointer; list-style:none;
}
.dropdown-btn::-webkit-details-marker{ display:none; }
.dropdown-btn:hover{ color: var(--text); }
.dropdown-btn .icon{ width:12px; height:12px; transition: transform .15s var(--ease); }
.dropdown[open] .dropdown-btn .icon{ transform: rotate(180deg); }
.dropdown[open] .dropdown-btn{ color: var(--amber); }

.dropdown-menu{
  position:absolute; top: calc(100% + 10px); left:0; z-index:50;
  min-width: 260px;
  display:flex; flex-direction:column;
  border:1px solid var(--line-strong); background: #03050a;
}
.dropdown-menu a{
  display:flex; align-items:center; gap:10px;
  padding:0 14px; min-height: var(--row); font-size:14px; color: var(--text-dim);
  border-bottom:1px solid var(--line);
}
.dropdown-menu a:last-child{ border-bottom:0; }
.dropdown-menu a .icon{ width:15px; height:15px; color: var(--amber); flex:none; }
.dropdown-menu a .flag{ width:22px; height:15px; flex:none; }
.dropdown-menu a:hover{ color: #03050a; background: var(--amber); }
.dropdown-menu a:hover .icon{ color: #03050a; }

.search-box{
  display:flex; align-items:center; gap:8px;
  flex: 1; max-width: 340px;
  padding: 0 12px; min-height: 40px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  color: var(--text-dim);
}
.search-box:focus-within{ border-color: var(--amber); color: var(--text); }
.search-box .icon{ width:15px; height:15px; flex:none; }
.search-box input{
  background:none; border:0; color: var(--text); width:100%; font-size:14px; outline: none;
}
.search-box input::placeholder{ color: var(--text-faint); }

.blog-link{
  display:flex; align-items:center; gap:6px;
  font-family: var(--font-mono); font-size:13px; letter-spacing:.04em; text-transform:uppercase;
  color: var(--text-dim); white-space:nowrap;
}
.blog-link .icon{ width:14px; height:14px; }
.blog-link:hover{ color: var(--text); }

.header-actions{ display:flex; align-items:center; gap:16px; }
.cart-icon{
  position:relative; display:flex; align-items:center; justify-content:center;
  width:40px; height:40px; color: var(--text-dim); border:1px solid var(--line);
}
.cart-icon:hover{ color: var(--text); border-color: var(--line-strong); }
.cart-icon .icon{ width:18px; height:18px; }
.cart-icon .badge{
  position:absolute; top:-7px; right:-7px;
  min-width:18px; height:18px; padding:0 4px;
  display:flex; align-items:center; justify-content:center;
  background: var(--amber); color:#06080c;
  font-family: var(--font-mono); font-size:11px; font-weight:700;
}
.cart-icon .badge[hidden]{ display:none; }

/* ============ BREADCRUMBS ============ */
.breadcrumbs{
  padding-top:16px; padding-bottom:4px;
  font-family: var(--font-mono); font-size:12px; letter-spacing:.03em;
  color: var(--text-faint); text-transform: uppercase;
}
.breadcrumbs a:hover{ color: var(--amber); }
.breadcrumbs span{ margin: 0 6px; }

/* ============ HOME HERO: departure board ============ */
.home-hero{
  position: relative;
  display:grid; grid-template-columns: 1.15fr .85fr; gap:0;
  align-items:start;
  max-width: var(--container); margin:0 auto; padding: 40px var(--gutter) 40px;
  border-bottom: 1px solid var(--line);
}
.home-hero > div:first-child{ padding-right: 40px; display:flex; flex-direction:column; justify-content:center; }
.home-hero h1{
  font-family: var(--font-display); font-weight:700;
  font-size: clamp(40px, 6vw, 84px); line-height:.92;
  text-transform: uppercase; text-wrap: balance;
}
.home-hero .lead{
  margin-top:22px; max-width: 46ch; color: var(--text-dim); font-size:17px;
}
.badge-row{ display:flex; flex-wrap:wrap; gap:0; margin-top:24px; }
.stat-badge{
  display:flex; align-items:center; gap:10px;
  padding:0 14px 0 0; min-height: 44px; margin-right: 22px; font-size:13px; letter-spacing:.03em;
  color: var(--amber); text-transform: uppercase;
}
.stat-badge .icon{ width:14px; height:14px; }

.trust-list{ margin-top:28px; display:flex; flex-direction:column; border-top:1px solid var(--line); }
.trust-list li{
  display:flex; align-items:center; gap:12px; min-height: var(--row);
  border-bottom:1px solid var(--line); color: var(--text-dim); font-size:15px;
}
.trust-list .ico{
  flex:none; width:20px; height:20px;
  display:flex; align-items:center; justify-content:center; color: var(--green);
}
.trust-list .ico .icon{ width:14px; height:14px; }

.catalog-cta{
  display:inline-flex; align-items:center; gap:10px; align-self:flex-start; margin-top:30px;
  min-height: 56px; padding: 0 26px;
  font-family: var(--font-display); font-size:20px; font-weight:700; letter-spacing:.02em; text-transform:uppercase;
  color:#06080c; background: var(--amber);
  transition: background .15s var(--ease);
}
.catalog-cta:hover{ background: var(--amber-2); }
.catalog-cta .icon{ width:18px; height:18px; }

/* destinations as board rows */
.icon-grid{
  display:flex; flex-direction:column;
  background: #03050a; border:1px solid var(--line-strong);
  margin-top: 0; align-self: start;
}
.icon-tile{
  display:flex; align-items:center; gap:14px;
  min-height: 64px; padding: 0 18px;
  border-bottom:1px solid var(--line);
  font-family: var(--font-display); font-size:22px; font-weight:600; text-transform:uppercase; letter-spacing:.02em;
  color: var(--text);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.icon-tile:last-child{ border-bottom:0; }
.icon-tile::after{
  content:"→"; margin-left:auto; font-family: var(--font-mono); font-size:16px; color: var(--amber);
}
.icon-tile:hover{ background: var(--amber); color:#06080c; }
.icon-tile:hover::after{ color:#06080c; }
.icon-tile .ico-circle{
  width:32px; height:32px; flex:none; display:flex; align-items:center; justify-content:center;
  color: var(--amber); overflow:hidden;
}
.icon-tile:hover .ico-circle{ color:#06080c; }
.icon-tile .ico-circle .icon{ width:20px; height:20px; }
.icon-tile .ico-circle img.sbp-icon{ width:24px; height:24px; filter: grayscale(1) sepia(1) saturate(5) hue-rotate(-8deg) brightness(1.05); }
.icon-tile .ico-circle svg.flag{ width:100%; height:100%; }

/* ============ CONDITION BAR (fee / limit gauge) ============ */
.condition-bar{ display:flex; flex-direction:column; gap:8px; }
.condition-bar .row{ display:flex; justify-content:space-between; align-items:baseline; font-size:13px; }
.condition-bar .row .label{ color: var(--text-faint); font-family: var(--font-mono); text-transform:uppercase; letter-spacing:.03em; font-size:12px; }
.condition-bar .row .value{ font-family: var(--font-mono); color: var(--text); }
.condition-bar .track{
  display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:2px; height:10px;
}
.condition-bar .seg{ background: var(--bg-2); border:1px solid var(--line); }
.condition-bar .seg.on{ background: var(--green); border-color: var(--green); }
.condition-bar .seg.over{ background: var(--amber); border-color: var(--amber); }
.condition-bar .seg.danger{ background: var(--red); border-color: var(--red); }

/* ============ COUNTDOWN: flip-board readout ============ */
.countdown-panel{
  border:1px solid var(--line-strong); background: #03050a;
  padding: 26px 24px; display:flex; flex-direction:column; gap:10px;
}
.countdown-panel .label{
  font-family: var(--font-mono); font-size:12px; letter-spacing:.04em;
  text-transform:uppercase; color: var(--text-faint);
}
.countdown-panel .value{
  font-family: var(--font-mono); font-weight:700;
  font-size: clamp(44px, 7vw, 76px); line-height:1;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.countdown-panel .value small{ font-size:.3em; color: var(--text-dim); margin-left:10px; text-transform: uppercase; }

/* ============ CAROUSEL: tickets ============ */
.carousel-wrap{ position:relative; }
.carousel{
  display:flex; gap:0; overflow-x:auto; scroll-snap-type:x mandatory;
  padding-bottom:4px; scrollbar-width:none; border-top:1px solid var(--line-strong);
}
.carousel::-webkit-scrollbar{ display:none; }
.carousel-card{
  flex:0 0 240px; scroll-snap-align:start;
  display:flex; flex-direction:column; gap:10px;
  padding:20px; border-right:1px solid var(--line); border-bottom:1px solid var(--line);
  background: var(--bg);
  transition: background .15s var(--ease);
}
.carousel-card:hover{ background: var(--bg-2); }
.carousel-card .ico-circle{
  width:32px; height:32px; display:flex; align-items:center; justify-content:center;
  color: var(--amber); overflow:hidden; flex:none;
}
.carousel-card .ico-circle .icon{ width:20px; height:20px; }
.carousel-card .name{ font-family: var(--font-display); font-size:22px; font-weight:700; text-transform:uppercase; line-height:1.05; }
.carousel-card .desc{ font-size:13px; color: var(--text-dim); }
.carousel-card .price{
  margin-top:auto; padding-top:12px; border-top:1px dashed var(--line-strong);
  font-family: var(--font-mono); font-size:18px; color: var(--amber);
}
.carousel-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px; display:flex; align-items:center; justify-content:center;
  border:1px solid var(--line-strong); background: #03050a; color: var(--text-dim);
  z-index:5;
}
.carousel-nav:hover{ color: #06080c; background: var(--amber); border-color: var(--amber); }
.carousel-nav.prev{ left:-22px; }
.carousel-nav.next{ right:-22px; }
.carousel-nav .icon{ width:16px; height:16px; }
.carousel-nav.prev .icon{ transform: rotate(180deg); }

/* ============ SECTIONS: HITS + CATALOG ============ */
.hits-grid{ display:flex; flex-direction:column; border-top:1px solid var(--line-strong); }
.hit-card{
  display:flex; align-items:center; gap:16px;
  min-height: 72px; padding: 12px 0;
  border-bottom:1px solid var(--line);
}
.hit-card:hover .name{ color: var(--amber); }
.hit-card .ico-circle{
  width:32px; height:32px; flex:none; display:flex; align-items:center; justify-content:center;
  color: var(--amber);
}
.hit-card .ico-circle .icon{ width:20px; height:20px; }
.hit-card .info{ flex:1; min-width:0; }
.hit-card .name{ font-family: var(--font-display); font-size:24px; font-weight:700; text-transform:uppercase; line-height:1.05; }
.hit-card .desc{ font-size:13px; color: var(--text-dim); margin-top:2px; }
.buy-btn{
  flex:none; min-height: 44px; padding: 0 18px;
  display:inline-flex; align-items:center;
  font-family: var(--font-display); font-size:18px; font-weight:700; letter-spacing:.02em; text-transform:uppercase;
  color: #06080c; background: var(--amber);
  transition: background .15s var(--ease);
}
.buy-btn:hover{ background: var(--amber-2); }

.catalog-grid{
  display:grid; grid-template-columns: repeat(4, 1fr);
  border-top:1px solid var(--line-strong); border-left:1px solid var(--line);
}
.catalog-card{
  position:relative;
  display:flex; flex-direction:column; gap:12px;
  padding:22px 18px; border-right:1px solid var(--line); border-bottom:1px solid var(--line);
  transition: background .15s var(--ease);
}
.catalog-card:hover{ background: var(--bg-2); }
.catalog-card .ico-circle{
  width:32px; height:32px; display:flex; align-items:center; justify-content:center;
  color: var(--amber); overflow:hidden;
}
.catalog-card .ico-circle .icon{ width:20px; height:20px; }
.catalog-card .name{ font-family: var(--font-display); font-size:24px; font-weight:700; text-transform:uppercase; line-height:1.05; }
.catalog-card .desc{ font-size:13px; color: var(--text-dim); margin-top:4px; }
.fee-badge{
  display:inline-flex; align-items:center; gap:6px; margin-top:8px;
  font-size:12px; color: var(--green); letter-spacing:.02em;
}
.fee-badge .icon{ width:11px; height:11px; }
.catalog-card .price{ margin-top:8px; font-size:14px; color: var(--amber); }

/* ============ GAME KEYS ============ */
.keys-grid{
  display:grid; grid-template-columns: repeat(4, 1fr);
  border-top:1px solid var(--line-strong); border-left:1px solid var(--line);
}
.keys-grid.keys-grid-3{ grid-template-columns: repeat(3, 1fr); }
.key-card{
  display:flex; flex-direction:column;
  border-right:1px solid var(--line); border-bottom:1px solid var(--line); overflow:hidden;
  background: var(--bg);
  transition: background .15s var(--ease);
}
.key-card:hover{ background: var(--bg-2); }
.key-card .art{ position:relative; aspect-ratio: 460 / 215; background: #03050a; overflow:hidden; }
.key-card .art img{ width:100%; height:100%; object-fit:cover; }
.key-card .body{ padding:14px; display:flex; flex-direction:column; gap:10px; flex:1; }
.key-card .name{ font-family: var(--font-display); font-size:20px; font-weight:700; line-height:1.1; text-transform:uppercase; }
.key-card .price{ font-family: var(--font-mono); font-size:15px; color: var(--amber); }
.key-card .request{
  margin-top:auto; display:flex; align-items:center; gap:8px;
  font-family: var(--font-mono); font-size:12px; letter-spacing:.03em; text-transform:uppercase;
  color: var(--text-dim); padding-top:10px; border-top:1px dashed var(--line-strong);
  cursor:pointer; font: inherit; text-align:left; background:none;
}
.key-card .request .icon{ width:14px; height:14px; color: var(--amber); flex:none; }
.key-card .request:hover{ color: var(--amber); }
.keys-note{
  max-width: var(--container); margin: 0 auto 32px; padding: 0 var(--gutter);
  font-size:13px; color: var(--text-faint); max-width: var(--measure);
}

/* keys catalog toolbar (moved from keys.html) */
.cat-toolbar{ display:flex; flex-wrap:wrap; gap:14px; align-items:center; margin-bottom:14px; }
.cat-tabs{ display:flex; gap:0; flex-wrap:wrap; border:1px solid var(--line-strong); }
.cat-tab{
  min-height: 44px; padding: 0 18px;
  font-family: var(--font-mono); font-size:13px; text-transform:uppercase; letter-spacing:.03em;
  background:transparent; color:var(--text-dim); cursor:pointer;
  border-right:1px solid var(--line-strong);
}
.cat-tab:last-child{ border-right:0; }
.cat-tab:hover{ color: var(--text); }
.cat-tab.active{ background: var(--amber); color:#06080c; }
.cat-toolbar .input-lg{ flex:1 1 260px; min-width:0; }
.cat-info{ font-family:var(--font-mono); font-size:12.5px; color:var(--text-dim); margin:6px 0 14px; }
.cat-meta{ font-size:12px; color:var(--text-faint); margin-top:2px; }
.cat-art{
  display:flex; align-items:center; justify-content:center; min-height:120px;
  font-family:var(--font-display); font-size:34px; font-weight:700; text-transform:uppercase; color:var(--amber);
  background:#03050a;
}
.cat-more{ display:flex; justify-content:center; margin-top:18px; }
.cat-more .pay-btn{ width:auto; padding:0 28px; }

/* buy dialog (moved from keys.html) */
.buy-modal{ position:fixed; inset:0; z-index:1000; display:flex; align-items:center; justify-content:center; padding:16px; background:rgba(0,0,0,.78); overflow:auto; }
.buy-modal[hidden]{ display:none; }
.buy-box{
  position:relative; width:100%; max-width:480px; display:flex; flex-direction:column; gap:14px;
  padding:24px; background: var(--bg-1); border:1px solid var(--line-strong);
}
.buy-close{ position:absolute; top:6px; right:10px; background:none; border:0; color:var(--text-dim); font-size:28px; line-height:1; cursor:pointer; }
.buy-close:hover{ color: var(--amber); }
.buy-title{ font-family:var(--font-display); font-size:28px; font-weight:700; text-transform:uppercase; line-height:1.05; padding-right:28px; }
.buy-err{ color: var(--red); font-size:14px; text-align:center; min-height:0; }

/* ============ BLOG: departures list ============ */
.blog-grid, .blog-index-grid{
  display:grid; grid-template-columns: repeat(2, 1fr);
  border-top:1px solid var(--line-strong); border-left:1px solid var(--line);
}
.blog-index-grid{ grid-template-columns: repeat(3, 1fr); }
.blog-card{
  display:flex; gap:14px; padding:16px;
  border-right:1px solid var(--line); border-bottom:1px solid var(--line);
  background: var(--bg);
  transition: background .15s var(--ease);
}
.blog-card:hover{ background: var(--bg-2); }
.blog-index-grid .blog-card{ flex-direction:column; }
.thumb{
  flex:none; width:56px; height:56px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--line-strong); color: var(--amber); background:#03050a;
}
.blog-index-grid .thumb{ width:100%; height:96px; }
.thumb .icon{ width:22px; height:22px; }
.blog-card .body{ min-width:0; }
.blog-card .meta{
  font-family: var(--font-mono); font-size:12px; letter-spacing:.03em;
  color: var(--text-faint); text-transform:uppercase;
}
.blog-card .title{ margin-top:6px; font-family: var(--font-display); font-size:22px; font-weight:700; line-height:1.1; text-transform:uppercase; }
.blog-card .excerpt{ margin-top:6px; font-size:14px; color: var(--text-dim); line-height:1.5; }

/* ============ BLOG COVERS (SVG, assets/blog/*.svg) ============ */
.thumb.has-cover{ padding:0; overflow:hidden; background: #03050a; border-color: var(--line); }
.thumb.has-cover img{
  width:100%; height:100%; object-fit:cover; object-position:center;
  transition: filter .2s var(--ease), transform .4s var(--ease);
}
.blog-card:hover .thumb.has-cover img{ filter: brightness(1.15); transform: scale(1.02); }
.blog-grid .thumb.has-cover{ width:200px; height:84px; }
@media (prefers-reduced-motion: reduce){
  .thumb.has-cover img{ transition:none; }
  .blog-card:hover .thumb.has-cover img{ transform:none; }
}

/* ============ FOOTER ============ */
.site-footer{ border-top:1px solid var(--line-strong); margin-top:48px; background:#03050a; }
.footer-grid{
  max-width: var(--container); margin:0 auto; padding:40px var(--gutter);
  display:grid; grid-template-columns: repeat(3, 1fr); gap:32px;
}
.footer-col h4{
  font-family: var(--font-mono); font-size:12px; letter-spacing:.05em;
  text-transform:uppercase; color: var(--text-faint); margin-bottom:14px;
}
.footer-col{ display:flex; flex-direction:column; gap:0; }
.footer-col a{
  display:flex; align-items:center; gap:8px; min-height: 40px;
  font-size:14px; color: var(--text-dim); border-bottom:1px solid var(--line);
}
.footer-col a .icon{ width:13px; height:13px; color: var(--amber); }
.footer-col a:hover{ color: var(--amber); }

/* ============ HERO (sub-pages) ============ */
.hero{ max-width: var(--container); margin:0 auto; padding: 40px var(--gutter) 8px; border-bottom:1px solid var(--line); padding-bottom: 28px; }
.hero h1{
  font-family: var(--font-display); font-weight:700; text-transform:uppercase;
  font-size: clamp(40px, 6vw, 68px); line-height:.95; text-wrap:balance;
}
.hero .highlight{ color: var(--amber); }
.hero p{ margin-top:16px; max-width:60ch; color: var(--text-dim); font-size:16px; }

/* ============ PROMO (first top-up terms) ============ */
.promo-banner{
  max-width: var(--container); margin: 24px auto 0; padding: 20px var(--gutter);
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  border:1px solid var(--line-strong); background: #03050a;
}
.promo-banner .label{ font-family: var(--font-mono); font-size:12px; letter-spacing:.04em; color: var(--text-faint); text-transform:uppercase; }
.promo-banner .big{ margin-top:6px; font-family: var(--font-mono); font-size:26px; font-weight:700; color: var(--amber); }
.promo-banner .big span{ font-family: var(--font-body); font-weight:400; font-size:14px; color: var(--text-dim); margin-left:8px; }
.promo-banner .fine-print{ margin-top:8px; font-size:13px; color: var(--text-dim); max-width:60ch; }
.promo-banner .promo-check{
  flex:none; width:40px; height:40px; display:flex; align-items:center; justify-content:center;
  border:1px solid var(--green); color: var(--green);
}

/* ============ FEATURE PILLS ============ */
.feature-pills{ max-width: var(--container); margin: 20px auto 0; padding:0 var(--gutter); display:flex; flex-wrap:wrap; gap:0; }
.pill{ display:flex; align-items:center; gap:8px; padding:0 14px 0 0; min-height:40px; margin-right:20px; font-size:13px; color: var(--text-dim); text-transform:uppercase; letter-spacing:.02em; }
.pill .check{ display:flex; color: var(--green); }
.pill .check .icon{ width:12px; height:12px; }

/* ============ PAYMENT CARD (top-up form) ============ */
.payment-card{
  max-width: 580px; margin: 32px auto 64px; padding: 28px;
  border:1px solid var(--line-strong); background: var(--panel);
  display:flex; flex-direction:column; gap:22px;
}
.field-label{
  display:block; margin-bottom:10px;
  font-family: var(--font-mono); font-size:12px; letter-spacing:.04em;
  text-transform:uppercase; color: var(--text-faint);
}
.region-select{ display:grid; grid-template-columns: repeat(3, 1fr); gap:0; border:1px solid var(--line-strong); }
.region-option{
  position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:10px;
  padding:14px; min-height: 84px; border-right:1px solid var(--line-strong);
  font-family: var(--font-display); font-size:20px; font-weight:700; text-transform:uppercase; color: var(--text-dim);
  cursor:pointer; transition: background .15s var(--ease), color .15s var(--ease);
}
.region-option:last-child{ border-right:0; }
.region-option:hover{ color: var(--text); background: var(--bg-2); }
.region-option.active{ background: var(--amber); color:#06080c; }
.region-option .flag{ width:28px; height:19px; overflow:hidden; }
.region-option .warn{
  position:absolute; top:8px; right:8px; width:16px; height:16px;
  display:flex; align-items:center; justify-content:center; color: var(--amber);
}
.region-option.active .warn{ color:#06080c; }
.region-option .warn .icon{ width:13px; height:13px; }

.input-lg{
  width:100%; min-height: 56px; padding:0 16px; background: #03050a;
  border:1px solid var(--line-strong); color: var(--text); font-size:16px;
}
.input-lg::placeholder{ color: var(--text-faint); }
.input-lg:focus{ border-color: var(--amber); outline: none; box-shadow: inset 0 0 0 1px var(--amber); }

.amount-row{ display:flex; gap:0; }
.amount-row .input-lg{ flex:1; font-family: var(--font-mono); font-size:22px; }
.currency-select{
  flex:none; display:flex; align-items:center; gap:6px; padding:0 16px;
  border:1px solid var(--line-strong); border-left:0; font-family: var(--font-mono); font-size:14px; color: var(--text-dim);
}

.quick-amounts{ display:grid; grid-template-columns: repeat(4, 1fr); gap:0; border-top:1px solid var(--line); border-left:1px solid var(--line); }
.quick-amount{
  min-height: 52px; padding:0 8px; border-right:1px solid var(--line); border-bottom:1px solid var(--line);
  font-family: var(--font-mono); font-size:15px; color: var(--text-dim);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.quick-amount:hover{ color: var(--text); background: var(--bg-2); }
.quick-amount.active{ background: var(--amber); color:#06080c; font-weight:700; }

/* summary = boarding ticket */
.summary{ border:1px solid var(--line-strong); padding:16px; display:flex; flex-direction:column; gap:10px; background:#03050a; }
.summary-row{ display:flex; justify-content:space-between; font-size:14px; color: var(--text-dim); }
.summary-row span:last-child{ color: var(--text); }
.summary-row.total{ padding-top:12px; border-top:1px dashed var(--line-strong); font-size:16px; }
.summary-row.total span:last-child{ color: var(--amber); font-weight:700; }
.fee-free{ color: var(--green) !important; }

.pay-btn{
  width:100%; min-height: 60px; display:flex; align-items:center; justify-content:center; gap:10px;
  padding:0 16px; font-family: var(--font-display); font-size:22px; font-weight:700; letter-spacing:.02em; text-transform:uppercase;
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.pay-btn.primary{ background: var(--amber); color:#06080c; }
.pay-btn.primary:hover{ background: var(--amber-2); }
.pay-btn.secondary{ border:1px solid var(--line-strong); color: var(--text); }
.pay-btn.secondary:hover{ color: #06080c; background: var(--text); border-color: var(--text); }
.pay-btn:active{ transform: translateY(1px); }
.pay-btn .sbp-badge img{ width:18px; height:18px; }
.pay-btn[disabled]{ opacity:.4; cursor:not-allowed; }

.legal-note{ font-size:12.5px; color: var(--text-faint); line-height:1.6; }
.legal-note a{ color: var(--text-dim); text-decoration: underline; text-underline-offset:2px; }
.legal-note a:hover{ color: var(--amber); }

.legal-requisites dl{ display:grid; grid-template-columns:220px 1fr; gap:0; margin:0; border-top:1px solid var(--line); }
.legal-requisites dt, .legal-requisites dd{ padding:12px 0; border-bottom:1px solid var(--line); margin:0; }
.legal-requisites dt{ color:var(--text-dim); font-size:14px; }
.legal-requisites dd{ color:var(--text); font-size:15px; font-family: var(--font-mono); }
@media (max-width:560px){
  .legal-requisites dl{ grid-template-columns:1fr; }
  .legal-requisites dt{ border-bottom:0; padding-bottom:0; }
}

/* ============ CHECKOUT ============ */
.checkout-wrap{ max-width:580px; margin:0 auto; padding: 32px var(--gutter) 64px; display:flex; flex-direction:column; gap:22px; }
.checkout-wrap h1{
  font-family: var(--font-display); font-weight:700; text-transform:uppercase;
  font-size: clamp(34px, 5vw, 48px); line-height:1;
}
.product-row{ display:flex; align-items:center; gap:14px; padding:16px; border:1px solid var(--line-strong); background: var(--panel); }
.product-icon{ width:40px; height:40px; flex:none; display:flex; align-items:center; justify-content:center; color: var(--amber); }
.product-icon .icon{ width:22px; height:22px; }
.product-info .name{ font-family: var(--font-display); font-size:22px; font-weight:700; text-transform:uppercase; line-height:1.1; }
.product-info .price{ margin-top:4px; font-size:14px; color: var(--text-dim); }
.remove-item{ margin-left:auto; color: var(--text-faint); }
.remove-item:hover{ color: var(--red); }
.remove-item .icon{ width:16px; height:16px; }

.qty-row{ display:flex; align-items:center; justify-content:space-between; }
.qty-control{ display:flex; align-items:center; gap:0; border:1px solid var(--line-strong); }
.qty-btn{ width:44px; height:44px; display:flex; align-items:center; justify-content:center; color: var(--text-dim); }
.qty-btn:hover{ color: #06080c; background: var(--amber); }
.qty-btn .icon{ width:12px; height:12px; }
.qty-control span{ min-width:40px; text-align:center; font-size:15px; }

.field-group label{
  display:block; margin-bottom:8px; font-family: var(--font-mono); font-size:12px;
  letter-spacing:.04em; text-transform:uppercase; color: var(--text-faint);
}
.field-hint{ margin-top:6px; font-size:13px; color: var(--text-faint); }
.promo-row{ display:flex; gap:0; }
.apply-btn{
  flex:none; padding:0 18px; border:1px solid var(--line-strong); border-left:0;
  font-family: var(--font-mono); font-size:13px; text-transform:uppercase; color: var(--text-dim);
}
.apply-btn:hover{ color: #06080c; background: var(--amber); border-color: var(--amber); }

.empty-cart{
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:14px;
  padding: 56px 20px; border:1px solid var(--line-strong); background: var(--panel);
}
.empty-cart .ico-circle{
  width:48px; height:48px; display:flex; align-items:center; justify-content:center;
  color: var(--amber);
}
.empty-cart .ico-circle .icon{ width:26px; height:26px; }
.empty-cart .title{ font-family: var(--font-display); font-size:26px; font-weight:700; text-transform:uppercase; }
.empty-cart .desc{ font-size:14px; color: var(--text-dim); max-width:38ch; }

/* ============ ARTICLE / LEGAL TYPOGRAPHY ============ */
.article-cover{ max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.article-cover .thumb{ width:100%; height:200px; margin-top:8px; }
.article-cover .thumb .icon{ width:34px; height:34px; }
.article-wrap{ max-width: var(--measure); margin:0 auto; padding: 24px var(--gutter) 64px; }
.article-wrap > .meta{
  font-family: var(--font-mono); font-size:12px; letter-spacing:.03em;
  text-transform:uppercase; color: var(--text-faint);
}
.article-wrap h1{
  margin-top:12px; font-family: var(--font-display); font-weight:700;
  text-transform:uppercase; font-size: clamp(38px, 5vw, 56px); line-height:.98; text-wrap:balance;
}
.article-body{ margin-top:28px; display:flex; flex-direction:column; gap:16px; color: var(--text-dim); font-size:16px; }
.article-body h2{
  margin-top:12px; font-family: var(--font-display); font-weight:700; text-transform:uppercase;
  font-size:28px; line-height:1; color: var(--text); letter-spacing:.005em;
}
.article-body p{ line-height:1.7; }
.article-body ul{ display:flex; flex-direction:column; gap:0; padding-left:0; border-top:1px solid var(--line); }
.article-body ul li{ padding:10px 0; border-bottom:1px solid var(--line); line-height:1.6; }
.article-body a{ color: var(--amber); text-decoration:underline; text-underline-offset:2px; }
.article-body strong{ color: var(--text); }

.article-cta{
  margin-top:36px; padding:20px; border:1px solid var(--line-strong); background: var(--panel);
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
}
.article-cta .text{ font-size:16px; font-weight:600; }
.article-cta .pay-btn{ width:auto; min-height:48px; padding:0 22px; font-size:18px; }

/* ============ MOTION: one authored moment ============ */
@media (prefers-reduced-motion: no-preference){
  .home-hero > div:first-child, .hero, .payment-card, .checkout-wrap{
    animation: rise .5s var(--ease) both;
  }
  .icon-grid .icon-tile{ animation: rise .5s var(--ease) both; }
  .icon-grid .icon-tile:nth-child(1){ animation-delay: .04s; }
  .icon-grid .icon-tile:nth-child(2){ animation-delay: .08s; }
  .icon-grid .icon-tile:nth-child(3){ animation-delay: .12s; }
  .icon-grid .icon-tile:nth-child(4){ animation-delay: .16s; }
  .icon-grid .icon-tile:nth-child(5){ animation-delay: .20s; }
  .icon-grid .icon-tile:nth-child(6){ animation-delay: .24s; }
}
@keyframes rise{ from{ opacity:0; transform: translateY(8px); } to{ opacity:1; transform:none; } }

/* ============ FAQ ============ */
.faq-list{ display:flex; flex-direction:column; border-top:1px solid var(--line-strong); max-width: var(--measure); }
.faq-item{ border-bottom:1px solid var(--line); padding:16px 0; }
.faq-item summary{ cursor:pointer; font-family: var(--font-display); font-size:22px; font-weight:700; text-transform:uppercase; color: var(--text); list-style:none; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item[open] summary{ color: var(--amber); }
.faq-item p{ margin:12px 0 0; color: var(--text-dim); line-height:1.6; }

/* ============ RELATED ARTICLES ============ */
.related{ margin: 44px 0 0; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.related h3{ font-family: var(--font-display); font-size: 26px; font-weight:700; text-transform:uppercase; margin: 0 0 8px; color: var(--text); }
.related ul{ margin: 0; padding-left: 0; border-top:1px solid var(--line); }
.related li{ border-bottom:1px solid var(--line); }
.related li a{ display:block; padding:12px 0; color: var(--amber); }
.related li a:hover{ color: var(--amber-2); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px){
  .home-hero{ grid-template-columns: 1fr; }
  .home-hero > div:first-child{ padding-right: 0; }
  .icon-grid{ margin-top: 32px; width: 100%; }
  .catalog-grid{ grid-template-columns: repeat(2, 1fr); }
  .keys-grid{ grid-template-columns: repeat(3, 1fr); }
  .blog-grid{ grid-template-columns: 1fr; }
  .blog-index-grid{ grid-template-columns: repeat(2, 1fr); }
  .footer-grid{ grid-template-columns: repeat(3, 1fr); gap:24px; }
  .search-box{ display:none; }
}

@media (max-width: 680px){
  .site-header{ flex-wrap:wrap; gap:12px; padding:14px 16px; min-height: 0; }
  .header-nav{ order:3; width:100%; }
  .dropdown{ display:none; }
  .container, .section, .home-hero, .hero, .footer-grid, .breadcrumbs{ padding-left:16px; padding-right:16px; }
  .home-hero{ gap:24px; padding-top:24px; }
  .home-hero h1{ font-size: clamp(40px, 13vw, 56px); }
  .catalog-grid{ grid-template-columns: 1fr; }
  .keys-grid{ grid-template-columns: repeat(2, 1fr); }
  .keys-grid.keys-grid-3{ grid-template-columns: repeat(2, 1fr); }
  .blog-index-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap:28px; }
  .region-select{ grid-template-columns: 1fr; }
  .region-option{ border-right:0; border-bottom:1px solid var(--line-strong); min-height: 60px; flex-direction:row; align-items:center; }
  .region-option:last-child{ border-bottom:0; }
  .quick-amounts{ grid-template-columns: repeat(3, 1fr); }
  .carousel-nav{ display:none; }
  .promo-banner{ flex-direction:column; align-items:flex-start; }
  .payment-card, .checkout-wrap{ margin-left:16px; margin-right:16px; width:auto; padding: 22px; }
  .stat-badge{ margin-right: 16px; }
}

/* ============ PAYON: срезанные углы у действий ============ */
.catalog-cta, .pay-btn.primary, .buy-btn, .article-cta .pay-btn{
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.pay-btn.primary{ letter-spacing: .04em; }
.payment-card, .countdown-panel, .summary{
  background-image: linear-gradient(90deg, rgba(53,224,255,.5), transparent 40%);
  background-size: 100% 1px; background-repeat: no-repeat;
}
.icon-grid{ background-color: #03050a; }
.icon-tile:hover{ box-shadow: inset 3px 0 0 var(--amber); }
