/*
 * Главная (редизайн 19.10.2026) — макет Site / SiteLight (docs/redesign-1910/design/src).
 *
 * Общее (шапка, подвал, CTA, кнопки, .r-block, .r-k, .r-h2, токены тем) — в
 * assets/r26.css. Здесь — только блоки главной, классы с приставкой h-.
 *
 * Цвета — через токены: пары «тёмная → светлая» сняты из макета построчно. Где
 * пара не совпала ни с одним общим токеном, заведён свой --h-… ниже.
 *
 * Размеры: в макете у <a> и <div> box-sizing: content-box, у нас border-box
 * (site.css). Поэтому у блоков с отступами и min-height здесь стоит ПОЛНАЯ
 * высота: min-height макета + отступы + рамка (например, 300 + 2×28 = 356).
 */

:root {
  --h-card-bg: #1A0F2E;                 /* подложка фото карты */
  --h-sunk: #0F0F15;                    /* утопленные панели расчёта */
  --h-pill: #1C1C26;                    /* монета в поле суммы */
  --h-over: rgba(10, 10, 15, 0.7);      /* плашка цены поверх фото */
  --h-glow: rgba(91, 63, 235, 0.3);
  --h-shadow-b: rgba(91, 63, 235, 0.35);
  --h-ok-line: rgba(61, 214, 140, 0.25);
  --h-ok-fill: rgba(61, 214, 140, 0.08);
  --h-live: rgba(61, 214, 140, 0.12);

  /* Телефон */
  --ph-card: #15151D;                   /* карточки главного экрана */
  --ph-faint: #6E6D85;                /* копейки, шевроны */
  --ph-ic: #1C1C26;                     /* значок пустой истории */
  --ph-tap: #C4B8FF;
  --ph-ok: rgba(10, 10, 15, 0.9);
  --ph-nav-bg: #5B3FEB;
  --ph-nav-fg: #FFFFFF;
  --ph-pill-bg: rgba(91, 63, 235, 0.2);
  --ph-pill-fg: #B3A6FF;
  --ph-logo-bg: #15151D;
  --ph-logo-line: rgba(255, 255, 255, 0.08);
  --ph-bat: rgba(243, 242, 248, 0.5);
  --ph-home: rgba(243, 242, 248, 0.55);
  --ph-sh: rgba(0, 0, 0, 0.5);          /* тень нижней панели */
  --ph-bsh: rgba(91, 63, 235, 0.35);    /* тень фиолетовых кнопок */
}
:root[data-theme="light"] {
  --h-card-bg: #E6DFF5;
  --h-sunk: #F4F3F7;
  --h-pill: #E4E2EC;
  --h-over: rgba(255, 255, 255, 0.75);
  --h-glow: rgba(91, 63, 235, 0.14);
  --h-shadow-b: rgba(91, 63, 235, 0.25);
  --h-ok-line: rgba(23, 138, 80, 0.25);
  --h-ok-fill: rgba(23, 138, 80, 0.06);
  --h-live: rgba(23, 138, 80, 0.12);

  --ph-card: #FFFFFF;
  --ph-faint: #A09EB3;
  --ph-ic: #F4F3F7;
  --ph-tap: #8E7CFF;
  --ph-ok: rgba(244, 243, 247, 0.94);
  --ph-nav-bg: rgba(91, 63, 235, 0.12);
  --ph-nav-fg: #4A2FD6;
  --ph-pill-bg: rgba(91, 63, 235, 0.12);
  --ph-pill-fg: #4A2FD6;
  --ph-logo-bg: #15131F;
  --ph-logo-line: transparent;
  --ph-bat: rgba(21, 19, 31, 0.45);
  --ph-home: rgba(21, 19, 31, 0.4);
  --ph-sh: rgba(21, 19, 31, 0.12);
  --ph-bsh: rgba(91, 63, 235, 0.25);
}

/* ══ Общее для секций ════════════════════════════════════════════════════ */
.h-sec { padding-top: 40px; display: flex; flex-direction: column; gap: 32px; }
.h-sec-head { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.h-sec-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.h-sec .r-lead { line-height: 1.55; }
/* В макете заголовки переносятся обычным образом (общий слой ставит balance). */
@media (min-width: 720px) { .h-h1, .r-wrap .r-h2, .h-thing h3 { text-wrap: wrap; } }
.h-k { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
/* Вторичная кнопка-ссылка у заголовка секции (48 + рамка). */
.h-more {
  height: 50px; padding: 0 20px; border-radius: 14px; box-sizing: border-box;
  background: var(--r-surface-3); border: 1px solid var(--r-line-2); color: var(--r-text);
  font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  white-space: nowrap;
}
.h-more:hover { background: var(--r-hover); color: var(--r-text); }
.h-arr { color: var(--r-accent); display: inline-block; }
[dir="rtl"] .h-arr { transform: scaleX(-1); }

/* Числа («4–10%», «1.5% + 1 USDT», «5 000») в арабском не должны переставляться
   алгоритмом направления письма: изолируем их слева направо, выравнивая по правому краю. */
[dir="rtl"] .h-num { direction: ltr; unicode-bidi: isolate; text-align: right; }
.h-preset { direction: ltr; unicode-bidi: isolate; }

/* ══ Первый экран ════════════════════════════════════════════════════════ */
.h-top { padding-top: 12px; }
.h-hero {
  background: var(--r-surface-2); padding: 56px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 24px; align-items: center;
}
.h-hero-glow {
  position: absolute; inset-inline-end: -120px; top: -120px; width: 720px; height: 720px; border-radius: 999px;
  background: radial-gradient(circle, var(--h-glow) 0%, rgba(91, 63, 235, 0) 60%); pointer-events: none;
}
.h-hero-txt { position: relative; display: flex; flex-direction: column; gap: 26px; max-width: 580px; min-width: 0; }
.h-badge {
  align-self: flex-start; display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: var(--r-hover); border: 1px solid var(--r-line-2); color: var(--r-text-2);
}
[dir="rtl"] .h-badge { padding: 8px 8px 8px 16px; }
.h-badge b { font-size: 12px; font-weight: 800; background: var(--r-brand); color: #FFFFFF; padding: 4px 10px; border-radius: 999px; }
.h-h1 { margin: 0; font-size: 60px; font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
.h-acc { color: var(--r-accent); }
.h-lead { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.55; color: var(--r-muted); }
.h-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.h-btns .r-btn { height: 56px; padding: 0 28px; font-size: 16px; border: 0; }
.h-btn2 {
  height: 58px; padding: 0 28px; border-radius: 16px; box-sizing: border-box;
  background: var(--r-surface-3); border: 1px solid var(--r-line-3); color: var(--r-text);
  font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap;
}
.h-btn2:hover { background: var(--r-hover); color: var(--r-text); }
.h-hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 460px; }
.h-hero-vid { width: 520px; height: 520px; max-width: 100%; aspect-ratio: 1 / 1; margin: -60px 0; }
.h-video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 42%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 50%, #000 42%, transparent 70%);
}

/* ══ Фото карты ══════════════════════════════════════════════════════════ */
.h-s16 { padding-top: 16px; }
.h-photo {
  background: var(--h-card-bg); min-height: 562px; /* 480 + 2×40 + рамка */
  display: flex; align-items: center; justify-content: center; padding: 40px;
}
.h-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.h-photo-price {
  position: absolute; inset-inline-start: 32px; bottom: 32px; padding: 18px 22px; border-radius: 20px;
  background: var(--h-over); border: 1px solid var(--r-line-3);
  display: flex; flex-direction: column; gap: 6px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.h-photo-price span { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; color: var(--r-muted); text-transform: uppercase; }
.h-photo-price b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.h-photo-chips { position: absolute; inset-inline-end: 32px; bottom: 32px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.h-pchip {
  font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 999px;
  background: var(--r-active); border: 1px solid var(--r-line-2); white-space: nowrap;
}

/* ══ Плитки фактов ═══════════════════════════════════════════════════════ */
.h-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.h-tile {
  border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 10px;
  min-height: 150px; box-sizing: border-box; color: inherit; text-decoration: none; min-width: 0;
}
a.h-tile:hover { color: inherit; }
.h-tile--lilac { grid-column: span 2; background: #CDBFFF; color: #15131F; flex-direction: row; align-items: center; gap: 24px; }
.h-tile--lilac b { font-size: 72px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.h-tile--lilac .h-tile-t { display: flex; flex-direction: column; gap: 4px; }
.h-tile--lilac strong { font-size: 18px; font-weight: 800; }
.h-tile--lilac small { font-size: 14px; font-weight: 600; opacity: 0.7; }
.h-tile--plain { background: var(--r-surface); border: 1px solid var(--r-line); box-shadow: var(--r-block-shadow); }
.h-tile-n { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.h-tile-s { font-size: 15px; font-weight: 600; margin-top: auto; }
.h-tile--plain .h-tile-n { color: var(--r-accent); }
.h-tile--plain .h-tile-s { color: var(--r-text-2); }
.h-tile--brand { position: relative; overflow: hidden; background: var(--r-brand); color: #FFFFFF; }
.h-tile--brand img { position: absolute; inset-inline-end: -24px; top: -16px; width: 150px; height: 150px; object-fit: contain; opacity: 0.95; }
.h-tile--brand .h-tile-n, .h-tile--brand .h-tile-s { position: relative; }
.h-tile--brand .h-tile-s { opacity: 0.9; }
.h-tile--wide {
  grid-column: span 4; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; min-height: 120px;
}
.h-tile--wide .h-tile-n { color: var(--r-green); }
.h-tile--wide .h-tile-t { display: flex; flex-direction: column; gap: 6px; }
.h-tile--wide .h-tile-s { margin-top: 0; }
.h-tile--wide img { width: 120px; height: 120px; object-fit: contain; margin: -20px 0; flex: none; }

/* ══ Тарифы ══════════════════════════════════════════════════════════════ */
.h-fees { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.h-fee { padding: 24px; display: flex; flex-direction: column; gap: 10px; border-radius: 24px; color: inherit; text-decoration: none; min-width: 0; }
a.h-fee:hover { color: inherit; }
.h-fee .h-k { color: var(--r-muted); }
.h-fee-v { font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.h-fee-s { font-size: 13px; color: var(--r-muted); line-height: normal; }
.h-fee--big {
  grid-column: span 2; padding: 32px; min-height: 304px; /* 240 + 2×32 */
  justify-content: space-between; gap: 16px; background: #CDBFFF; color: #15131F; border: none; border-radius: 32px;
}
.h-fee--big img { position: absolute; inset-inline-end: -10px; top: 50%; transform: translateY(-50%); width: 230px; height: 230px; object-fit: contain; }
.h-fee--big .h-k { color: inherit; opacity: 0.7; position: relative; }
.h-fee--big .h-fee-v { font-size: 96px; line-height: 0.95; letter-spacing: -0.05em; position: relative; }
.h-fee--big .h-fee-s { font-size: 16px; font-weight: 700; max-width: 240px; color: inherit; position: relative; }
.h-fee--art { padding: 28px; min-height: 294px; /* 236 + 2×28 + рамка */ border-radius: 32px; }
.h-fee--art img { position: absolute; inset-inline-end: -8px; top: -6px; width: 112px; height: 112px; object-fit: contain; }
.h-fee--art .h-k { max-width: 150px; }
.h-fee--art .h-fee-v { margin-top: auto; font-size: 36px; color: var(--r-accent); }
.h-fee--art .h-fee-s { font-size: 14px; }
.h-fee--brand { background: var(--r-brand); color: #FFFFFF; border: none; min-height: 292px; }
.h-fee--brand img { inset-inline-end: -6px; top: -4px; }
.h-fee--brand .h-k { color: inherit; opacity: 0.8; }
.h-fee--brand .h-fee-v { color: inherit; }
.h-fee--brand .h-fee-s { color: inherit; opacity: 0.9; }

/* ══ Где работает: два фото ══════════════════════════════════════════════ */
.h-uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 16px; }
.h-use {
  min-height: 356px; /* 300 + 2×28 */ padding: 28px; margin: 0;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  background: #0A0A0F; border: none; color: #FFFFFF;
}
.h-use img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h-use-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 10, 15, 0.9) 0%, rgba(10, 10, 15, 0.55) 32%, rgba(10, 10, 15, 0) 62%); }
.h-use h3 { position: relative; margin: 0; font-size: 22px; font-weight: 800; color: #FFFFFF; line-height: normal; letter-spacing: 0; }
.h-use p { position: relative; margin: 0; font-size: 15px; color: rgba(255, 255, 255, 0.82); line-height: 1.5; max-width: 480px; }

/* ══ «Деньги двигаются» + расчёт ═════════════════════════════════════════ */
.h-sec--16 { gap: 16px; }
.h-move {
  padding: 32px 56px; background: var(--r-surface-2);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 32px; align-items: center;
}
.h-move-glow { position: absolute; inset: 0; border-radius: 32px; overflow: hidden; pointer-events: none; }
.h-move-glow::before {
  content: ''; position: absolute; inset-inline-end: -60px; top: -100px; width: 560px; height: 560px; border-radius: 999px;
  background: radial-gradient(circle, var(--r-glow) 0%, rgba(91, 63, 235, 0) 62%);
}
.h-move-txt { position: relative; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.h-stats { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 8px; }
.h-stat {
  padding: 14px 18px; border-radius: 18px; background: var(--r-fill-3); border: 1px solid var(--r-line-2);
  display: flex; flex-direction: column; gap: 2px;
}
.h-stat b { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--r-accent); }
.h-stat b.h-g { color: var(--r-green); }
.h-stat span { font-size: 12px; color: var(--r-muted); }
.h-move-art { position: relative; display: flex; justify-content: center; align-items: center; }
.h-move-art img { position: relative; width: 400px; height: 400px; max-width: 100%; object-fit: contain; margin: -36px 0; }

.h-calc {
  padding: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 24px; align-items: stretch;
  overflow: visible; /* список монет выезжает за край блока */
}
.h-calc-in {
  display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: 22px;
  background: var(--h-sunk); border: 1px solid var(--r-line); min-width: 0;
}
.h-calc-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.h-calc-t { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.h-calc .live {
  display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0;
  color: var(--r-green); background: var(--h-live); padding: 5px 10px; border-radius: 999px;
}
.h-calc .live i { width: 6px; height: 6px; border-radius: 999px; background: var(--r-green); }
.h-calc .live.beat i::after { border-color: var(--r-green); }
.h-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.h-calc .h-k { font-size: 11px; color: var(--r-muted); }
.h-amt-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px;
  border-radius: 16px; background: var(--r-surface-3); border: 1px solid var(--r-line-2);
}
.h-amt {
  flex: 1; min-width: 0; width: 100%; padding: 0; margin: 0; border: 0; background: transparent; outline: none;
  color: var(--r-text); font: inherit; font-size: 36px; font-weight: 800; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; line-height: normal; -moz-appearance: textfield; appearance: textfield;
}
.h-amt::-webkit-outer-spin-button, .h-amt::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.h-amt-row:focus-within { border-color: var(--r-brand-2); }
.h-calc .pk-btn {
  height: 40px; padding: 0 14px; gap: 8px; border-radius: 12px; border: 0; background: var(--h-pill);
  font-size: 14px; font-weight: 800; color: var(--r-text);
}
.h-calc .pk-btn:hover { background: var(--r-raise); }
.h-calc .pk-btn[aria-expanded="true"] { background: var(--r-raise); }
.h-calc .pk-btn .coin { width: 20px; height: 20px; }
.h-calc .pk-arr { display: none; }
.h-calc .pk-panel { background: var(--r-surface); border-color: var(--r-line-2); box-shadow: var(--r-pop-shadow); }
.h-calc .pk-item:hover { background: var(--r-hover); }
.h-presets { display: flex; gap: 8px; flex-wrap: wrap; }
.h-preset {
  height: 34px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--r-line-2); background: transparent;
  color: var(--r-text-2); font-size: 13px; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums;
}
.h-preset:hover { background: var(--r-hover); color: var(--r-text); }
.h-preset.on { border-color: var(--r-brand); background: var(--r-brand); color: #FFFFFF; }
.h-calc-foot { margin-top: auto; font-size: 12px; color: var(--r-faint); }
.h-calc-err { margin: 0; font-size: 12px; color: var(--r-red); }
.h-out { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.h-out-row {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 20px;
  background: var(--h-sunk); border: 1px solid var(--r-line-2);
}
.h-out-row--ok { background: var(--h-ok-fill); border-color: var(--h-ok-line); }
.h-out-ic {
  width: 48px; height: 48px; flex: none; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--r-brand-tint); color: var(--r-link);
}
.h-out-row--ok .h-out-ic { background: var(--r-green-tint); color: var(--r-green); }
.h-out-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.h-out-b b { font-size: 16px; font-weight: 800; }
.h-out-b span { font-size: 13px; color: var(--r-muted); }
.h-out-v { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.h-out-row--ok .h-out-v { color: var(--r-green); }
.h-out-note { margin: 0; font-size: 12px; color: var(--r-faint); line-height: 1.5; }
.h-out-more { margin-top: auto; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--r-link); }
.h-out-more:hover { color: var(--r-link-hover); }
.h-out-more .h-arr { color: inherit; }

/* ══ Продукт: три вещи и монеты ══════════════════════════════════════════ */
.h-head-720 { max-width: 720px; }
.h-three { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.h-thing { padding: 32px; display: flex; flex-direction: column; gap: 14px; min-height: 366px; /* 300 + 2×32 + рамка */ }
.h-thing img { width: 150px; height: 150px; object-fit: contain; margin-block: -20px -8px; margin-inline: -14px 0; }
.h-thing h3 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: normal; }
.h-thing p { margin: 0; font-size: 15px; color: var(--r-muted); line-height: 1.55; }
.h-coins { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.h-coin { padding: 16px 18px; display: flex; align-items: center; gap: 12px; border-radius: 20px; }
.h-coin svg { flex: none; }
.h-coin span { display: flex; flex-direction: column; }
.h-coin b { font-size: 15px; font-weight: 800; }
.h-coin small { font-size: 12px; color: var(--r-muted); }

/* ══ Карта за три касания: телефон и шаги ════════════════════════════════ */
.h-how {
  padding: 32px 56px; background: var(--r-surface-2);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 40px; align-items: center;
}
.h-how-glow {
  position: absolute; inset-inline-start: -60px; top: -100px; width: 640px; height: 640px; border-radius: 999px;
  background: radial-gradient(circle, var(--h-glow) 0%, rgba(91, 63, 235, 0) 62%); pointer-events: none;
}
.h-how-txt { position: relative; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.h-steps { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 0; margin: 0; list-style: none; }
.h-st {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 18px;
  border: 1px solid var(--r-line); background: var(--r-fill-1); animation: h-st 20s infinite both;
}
:root[data-theme="light"] .h-st { animation-name: h-st-l; }
@keyframes h-st { 0%, 24% { background: rgba(91, 63, 235, 0.18); border-color: #6D55F0; } 25.5%, 100% { background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.06); } }
@keyframes h-st-l { 0%, 24% { background: rgba(91, 63, 235, 0.1); border-color: #6D55F0; } 25.5%, 100% { background: rgba(21, 19, 31, 0.03); border-color: rgba(21, 19, 31, 0.06); } }
.h-st-n {
  width: 34px; height: 34px; flex: none; border-radius: 999px; background: var(--r-brand); color: #FFFFFF;
  font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.h-st-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.h-st-b b { font-size: 17px; font-weight: 800; }
.h-st-b span { font-size: 13px; color: var(--r-muted); line-height: 1.45; }
.h-bar { width: 56px; height: 4px; flex: none; border-radius: 999px; background: var(--r-line-2); overflow: hidden; }
.h-bar i { display: block; height: 4px; width: 0; border-radius: 999px; background: var(--r-accent); animation: h-fill 20s linear infinite both; }
@keyframes h-fill { 0% { width: 0; } 25% { width: 100%; } 25.1%, 100% { width: 0; } }
.h-chips2 { display: flex; gap: 8px; flex-wrap: wrap; }
.h-chips2 span { font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 999px; background: var(--r-fill-3); border: 1px solid var(--r-line-2); }

/* Телефон: 389×800 в масштабе --ph-s (0.8 в макете). Внутри — экраны
   приложения на языке страницы (подписи — строки самого приложения,
   data/r26-i18n/mockups.*.json). Рамка всегда слева направо; экран на
   арабском — справа налево, как приложение (fix-2010, зона mockups). */
.h-ph-col { position: relative; display: flex; justify-content: center; }
.h-ph-box { --ph-s: 0.8; position: relative; width: calc(389px * var(--ph-s)); height: calc(800px * var(--ph-s)); filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55)); flex: none; }
.h-ph { position: relative; width: 389px; height: 800px; transform: scale(var(--ph-s)); transform-origin: 0 0; }
.h-ph .h-scr {
  position: absolute; left: 14px; top: 12px; width: 361px; height: 776px; border-radius: 52px; overflow: hidden;
  background: var(--r-bg); color: var(--r-text); font-family: var(--r-font); line-height: normal; text-align: left;
}
.h-ph .h-frm { position: absolute; inset: 0; width: 389px; height: 800px; pointer-events: none; z-index: 9; }
.h-ph a { color: inherit; }
.h-s4 { position: absolute; inset: 0; padding: 62px 16px 0; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; opacity: 0; animation: h-s4k 20s infinite both; }
@keyframes h-s4k { 0% { opacity: 0; transform: translateX(26px); } 2.5% { opacity: 1; transform: none; } 23% { opacity: 1; transform: none; } 25% { opacity: 0; transform: translateX(-26px); } 100% { opacity: 0; transform: translateX(-26px); } }
.h-t4 { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 999px; border: 2px solid var(--ph-tap); background: rgba(196, 184, 255, 0.28); opacity: 0; pointer-events: none; z-index: 5; animation: h-t4k 20s infinite both; box-sizing: border-box; }
@keyframes h-t4k { 0%, 17% { opacity: 0; transform: scale(.4); } 18.5% { opacity: 1; transform: scale(1); } 22% { opacity: 0; transform: scale(1.9); } 100% { opacity: 0; } }
.h-t4e { animation-name: h-t4e; }
@keyframes h-t4e { 0%, 8.5% { opacity: 0; transform: scale(.4); } 10% { opacity: 1; transform: scale(1); } 13% { opacity: 0; transform: scale(1.9); } 100% { opacity: 0; } }
.h-a0 { animation: h-a0k 20s infinite both; }
.h-a1 { opacity: 0; animation: h-a1k 20s infinite both; }
@keyframes h-a0k { 0%, 6% { opacity: 1; } 7.5%, 100% { opacity: 0; } }
@keyframes h-a1k { 0%, 6% { opacity: 0; transform: translateY(6px); } 7.5%, 100% { opacity: 1; transform: none; } }
.h-pop { animation: h-popk 20s infinite both; }
@keyframes h-popk { 0%, 1% { opacity: 0; transform: scale(.86) rotate(-4deg); } 6%, 100% { opacity: 1; transform: none; } }
.h-ok4 { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--ph-ok); opacity: 0; animation: h-ok4k 20s infinite both; }
@keyframes h-ok4k { 0%, 12.5% { opacity: 0; } 14%, 23% { opacity: 1; } 25%, 100% { opacity: 0; } }
.h-hl { animation: h-hlk 20s infinite both; }
@keyframes h-hlk { 0%, 8.5% { box-shadow: 0 0 0 0 rgba(91, 63, 235, 0); } 10%, 100% { box-shadow: 0 0 0 2px #6D55F0; } }
/* Подложка под нижним меню: содержимое главной приложения уходит под меню и
   гаснет, а не выглядывает полоской между меню и краем экрана (fix-2010). */
.h-ph-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; background: linear-gradient(to bottom, transparent, var(--r-bg) 45%); pointer-events: none; }
/* Арабский: экран приложения зеркалится (рамка — нет). Касания не по центру
   встают на зеркальное место, стрелки «назад» и «дальше» разворачиваются. */
html[dir="rtl"] .h-ph .h-scr { direction: rtl; text-align: right; }
html[dir="rtl"] .h-t4[style*="--rtl-left"] { left: var(--rtl-left) !important; }
/* Суммы со знаком (−30 USDT, +1,000) — слева направо, как числа на остальном арабском сайте. */
html[dir="rtl"] .h-scr [style*="tabular-nums"] { unicode-bidi: plaintext; }
html[dir="rtl"] .h-scr svg:has(> path[d="m9 6 6 6-6 6"]),
html[dir="rtl"] .h-scr svg:has(> path[d="m15 6-6 6 6 6"]) { transform: scaleX(-1); }

/* Движение — только тем, кто его не отключил. Без движения телефон
   показывает первый экран целиком, шаги — подсветку первого. */
@media (prefers-reduced-motion: reduce) {
  .h-s4, .h-t4, .h-a0, .h-a1, .h-pop, .h-ok4, .h-hl, .h-st, .h-bar i { animation: none !important; }
  .h-s4-1 { opacity: 1; }
  .h-a1, .h-ok4, .h-t4 { opacity: 0; }
  .h-a0 { opacity: 1; }
}
/* Телефон вне экрана — анимации стоят (ставит assets/r26-home.js). */
.h-how.h-paused .h-s4, .h-how.h-paused .h-s4 *, .h-how.h-paused .h-st, .h-how.h-paused .h-bar i { animation-play-state: paused; }

/* ══ Безопасность ════════════════════════════════════════════════════════ */
.h-sec1 { padding-top: 40px; }
.h-secu {
  padding: 48px 56px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 40px; align-items: center;
}
.h-secu-txt { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.h-checks { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; margin: 0; list-style: none; padding-inline-start: 0; }
.h-checks li { display: flex; gap: 14px; align-items: flex-start; }
.h-check { width: 28px; height: 28px; flex: none; border-radius: 999px; background: var(--r-green-tint); color: var(--r-green); display: flex; align-items: center; justify-content: center; }
.h-checks p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--r-text-2); }
.h-checks strong { color: var(--r-text); font-weight: 700; }
.h-secu-art { position: relative; align-self: stretch; min-height: 440px; }
.h-secu-art img { position: absolute; left: 50%; top: 50%; width: 590px; height: 590px; margin: -295px 0 0 -295px; object-fit: contain; max-width: none; }

/* ══ Вопросы ═════════════════════════════════════════════════════════════ */
.h-faq { padding-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 40px; align-items: start; }
.h-faq-head { display: flex; flex-direction: column; gap: 16px; max-width: 420px; }
.h-qas { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.h-qa { padding: 22px 26px; border-radius: 22px; }
.h-qa summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 800;
}
.h-qa summary::-webkit-details-marker { display: none; }
.h-qa summary::marker { content: ''; }
.h-qa summary svg { flex: none; color: var(--r-muted); }
.h-qa[open] summary svg { color: var(--r-accent); }
.h-qa .h-qa-v { display: none; }
.h-qa[open] .h-qa-v { display: block; }
.h-qa[open] .h-qa-h { display: none; }
.h-qa p { margin: 10px 0 0; font-size: 15px; color: var(--r-muted); line-height: 1.55; }

/* ══ Популярные гиды (tools/home-guides.mjs) ═════════════════════════════ */
.h-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.h-post { padding: 24px; display: flex; flex-direction: column; gap: 12px; color: var(--r-text); text-decoration: none; }
.h-post:hover { color: var(--r-text); border-color: var(--r-line-3); }
.h-post-img { display: block; height: 106px; /* 104 + рамка */ border-radius: 16px; overflow: hidden; background: var(--h-sunk); border: 1px solid var(--r-line); }
.h-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-post-k { font-size: 12px; font-weight: 700; color: var(--r-accent); }
.h-post b { font-size: 19px; font-weight: 800; line-height: 1.3; }
.h-post-d { font-size: 14px; color: var(--r-muted); line-height: 1.5; }

/* ══ Планшет и телефон ═══════════════════════════════════════════════════ */
@media (max-width: 1099px) {
  .h-fees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .h-hero { padding: 40px 32px; }
  .h-hero-art { min-height: 0; }
  .h-hero-vid { width: 420px; height: 420px; margin: -40px 0; }
  .h-photo { min-height: 440px; }
  .h-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-tile--wide { grid-column: span 2; }
  .h-move, .h-how { padding: 32px; }
  .h-secu { padding: 40px 32px; }
  .h-secu-art { min-height: 360px; }
  .h-secu-art img { width: 440px; height: 440px; margin: -220px 0 0 -220px; }
}
@media (max-width: 719px) {
  .h-sec { padding-top: 32px; gap: 22px; }
  .h-sec1, .h-faq { padding-top: 32px; }
  .h-faq { gap: 22px; }
  .h-hero { padding: 26px 20px 8px; gap: 8px; }
  .h-hero-txt { gap: 18px; }
  .h-h1 { font-size: clamp(34px, 9.4vw, 44px); letter-spacing: -0.03em; }
  .h-lead { font-size: 16px; }
  .h-btns .r-btn, .h-btn2 { flex: 1 1 auto; justify-content: center; height: 54px; padding: 0 20px; }
  .h-btn2 { height: 56px; }
  .h-hero-vid { width: 320px; height: 320px; margin: -24px 0 -16px; }
  .h-photo { min-height: 360px; padding: 20px; }
  .h-photo-price { inset-inline-start: 16px; bottom: 16px; padding: 12px 16px; border-radius: 16px; }
  .h-photo-price b { font-size: 22px; }
  .h-photo-chips { inset-inline-end: auto; inset-inline-start: 16px; top: 16px; bottom: auto; justify-content: flex-start; }
  /* Наверху фото тёмное: подложка как у плашки цены, иначе в светлой теме чипы пропадают. */
  .h-pchip { font-size: 12px; padding: 6px 10px; background: var(--h-over); border-color: var(--r-line-3); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .h-tiles { gap: 12px; }
  .h-tile { padding: 20px; min-height: 132px; border-radius: 22px; }
  .h-tile--lilac { gap: 16px; }
  .h-tile--lilac b { font-size: 56px; }
  .h-tile--lilac strong { font-size: 16px; }
  .h-tile--lilac small { font-size: 13px; }
  .h-tile-n { font-size: 34px; }
  .h-tile-s { font-size: 14px; }
  .h-tile--brand img { width: 110px; height: 110px; inset-inline-end: -20px; top: -14px; }
  .h-tile--wide { min-height: 104px; }
  .h-tile--wide img { width: 96px; height: 96px; margin: -16px 0; }
  .h-more { height: 48px; }
  .h-fees { gap: 12px; }
  .h-fee { padding: 20px; border-radius: 22px; }
  .h-fee-v { font-size: 26px; }
  .h-fee--big { padding: 24px; min-height: 250px; border-radius: 26px; }
  .h-fee--big .h-fee-v { font-size: 80px; }
  .h-fee--big img { width: 170px; height: 170px; inset-inline-end: -24px; }
  .h-fee--big .h-fee-s { max-width: 200px; font-size: 15px; }
  .h-fee--art { min-height: 220px; padding: 20px; border-radius: 26px; }
  .h-fee--art img { width: 88px; height: 88px; }
  .h-fee--art .h-fee-v { font-size: 30px; }
  .h-use { min-height: 300px; padding: 22px; }
  .h-use h3 { font-size: 20px; }
  .h-move { padding: 28px 20px; gap: 8px; }
  .h-move-art img { width: 260px; height: 260px; margin: -16px 0 -24px; }
  .h-stat { padding: 12px 14px; }
  .h-stat b { font-size: 24px; }
  .h-calc { padding: 16px; gap: 20px; }
  .h-calc-in { padding: 18px; }
  .h-amt { font-size: 30px; }
  .h-amt-row { padding: 12px 14px; }
  .h-out-row { padding: 16px; gap: 12px; }
  .h-out-ic { width: 40px; height: 40px; border-radius: 12px; }
  .h-out-v { font-size: 22px; }
  .h-thing { padding: 24px; min-height: 0; }
  .h-thing h3 { font-size: 24px; }
  .h-thing img { width: 120px; height: 120px; }
  .h-coins { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .h-coin { padding: 14px; }
  .h-how { padding: 28px 20px; gap: 28px; }
  .h-st { padding: 12px 14px; gap: 12px; }
  .h-st-b b { font-size: 16px; }
  .h-bar { width: 36px; }
  .h-secu { padding: 28px 20px; gap: 16px; }
  .h-secu-art { min-height: 280px; order: -1; }
  .h-secu-art img { width: 340px; height: 340px; margin: -170px 0 0 -170px; }
  .h-qa { padding: 18px 20px; border-radius: 20px; }
  .h-qa summary { font-size: 16px; }
  .h-post { padding: 18px; }
  .h-post b { font-size: 18px; }
}
@media (max-width: 559px) {
  .h-fee--art, .h-fee--brand { grid-column: span 2; min-height: 200px; }
}
@media (max-width: 479px) {
  /* Сумма — своей строкой под подписью: рядом она сжимала подпись в столбик. */
  .h-out-row { flex-wrap: wrap; row-gap: 6px; }
  .h-out-v { width: 100%; padding-inline-start: 52px; font-size: 24px; }
}
@media (max-width: 379px) {
  .h-ph-box { --ph-s: 0.66; }
  .h-tile--lilac { flex-direction: column; align-items: flex-start; gap: 10px; }
  .h-fees { grid-template-columns: minmax(0, 1fr); }
  .h-fee--big, .h-fee--art, .h-fee--brand { grid-column: auto; }
  .h-fee--big img { width: 120px; height: 120px; top: 20px; transform: none; inset-inline-end: -12px; }
  .h-coins { grid-template-columns: minmax(0, 1fr); }
  .h-bar { display: none; }
}
@media (max-width: 359px) {
  .h-hero { padding: 22px 16px 8px; }
  .h-photo-price b { font-size: 20px; }
  .h-move, .h-how, .h-secu { padding-left: 16px; padding-right: 16px; }
  .h-calc { padding: 12px; }
  .h-calc-in { padding: 14px; }
  .h-amt { font-size: 26px; }
  .h-thing, .h-post { padding: 18px; }
}
