/* Первый экран посадочной ветхой валюты (поток 7, 06.11.2026, этап 2).
   Секция .kwh строится скриптом worn-hero.js из живой лестницы /api/app/rates и
   встаёт ПЕРЕД старой страницей конструктора; старый hero-блок #ko-block-1723332311
   при этом прячется. Если запрос упал или лестница пустая, класс .kwh-on не ставится
   и страница выглядит как раньше: лучше старый экран, чем экран без курса. */

.kwh {
  --kwh-green: #00736A;
  --kwh-green-2: #0b8f83;
  --kwh-ink: #15302c;
  --kwh-muted: #5d716e;
  --kwh-line: #dfe9e7;
  --kwh-soft: #f1f7f6;
  --kwh-usd: #1f8a5e; --kwh-usd-2: #0f5f3f;
  --kwh-eur: #2456b3; --kwh-eur-2: #15397f;
  --kwh-gbp: #6b3fa0; --kwh-gbp-2: #472470;
  --kwh-chf: #c93a35; --kwh-chf-2: #8e2420;
  display: none;
  background: radial-gradient(1200px 520px at 15% -10%, #e4f3f0 0%, rgba(228,243,240,0) 60%), #f6f9f8;
  color: var(--kwh-ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  padding: 44px 0 40px;
}
html.kwh-on .kwh { display: block; }
html.kwh-on #ko-block-1723332311 { display: none !important; }
/* 06.11: блок «Как мы принимаем» в index.html подтянут к старому экрану на -48px — с новым экраном
   он наезжал на список преимуществ (срезал последний пункт). При новом экране отступ убираем. */
html.kwh-on #ko-block-1613539451 { margin-top: 0 !important; }
.kwh * { box-sizing: border-box; }
.kwh__left, .kwh__right { min-width: 0; }
.kwh__in { max-width: 1240px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px 56px; align-items: start; }

/* ---- левая колонка ---- */
.kwh__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--kwh-green); background: #fff; border: 1px solid var(--kwh-line); border-radius: 999px; padding: 6px 12px 6px 8px; margin: 0 0 18px; }
.kwh__eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.15); }
.kwh__h1 { margin: 0; font-family: 'Onest', 'Inter', Arial, sans-serif; font-weight: 800; font-size: 50px; line-height: 1.08; letter-spacing: -.015em; color: var(--kwh-ink); }
.kwh__h1 b { color: var(--kwh-green); font-weight: 800; white-space: nowrap; }
.kwh__h1 .kwh__h1-cur { color: var(--kwh-cur, var(--kwh-green)); }
.kwh__lead { margin: 16px 0 0; font-size: 17px; line-height: 1.5; color: #334744; max-width: 560px; }

.kwh__calc { margin-top: 24px; background: #fff; border: 1px solid var(--kwh-line); border-radius: 18px; box-shadow: 0 14px 40px rgba(16,52,48,.10); padding: 18px 18px 16px; }
.kwh__calc-l { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--kwh-muted); margin: 0 0 10px; }
.kwh__chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 12px; }
.kwh__chip { appearance: none; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--kwh-line); background: #fff; border-radius: 12px; padding: 7px 10px; font: inherit; font-size: 13px; font-weight: 600; color: var(--kwh-ink); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.kwh__chip em { font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 14px; background: var(--c); flex: none; }
.kwh__chip[aria-pressed="true"] { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.kwh__chip:focus-visible { outline: 2px solid var(--kwh-green-2); outline-offset: 2px; }
.kwh__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; }
.kwh__amt { position: relative; display: flex; }
.kwh__amt input { width: 100%; height: auto; min-height: 58px; align-self: stretch; border: 1.5px solid var(--kwh-line); border-radius: 14px; padding: 0 54px 0 16px; font: inherit; font-size: 24px; font-weight: 700; color: var(--kwh-ink); font-variant-numeric: tabular-nums; background: var(--kwh-soft); }
.kwh__amt input:focus { outline: none; border-color: var(--kwh-green-2); background: #fff; }
.kwh__amt span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 18px; font-weight: 700; color: var(--kwh-cur, var(--kwh-green)); }
.kwh__out { border-radius: 14px; background: var(--kwh-soft); border: 1.5px solid transparent; padding: 8px 16px; display: flex; flex-direction: column; justify-content: center; min-height: 58px; }
.kwh__out-l { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--kwh-muted); }
.kwh__out-v { font-size: 24px; font-weight: 800; color: var(--kwh-green); line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kwh__out-v.is-call { font-size: 17px; }
.kwh__out-s { font-size: 12px; color: var(--kwh-muted); line-height: 1.3; }
.kwh__out-s a { color: var(--kwh-green); font-weight: 700; text-decoration: none; border-bottom: 1px dashed currentColor; }
.kwh__fine { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: var(--kwh-muted); }

.kwh__cta { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 14px; }
.kwh__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 56px; border-radius: 14px; font-size: 16px; font-weight: 700; text-decoration: none; padding: 0 22px; white-space: nowrap; transition: filter .15s, transform .15s; }
.kwh__btn:hover { filter: brightness(1.05); }
.kwh__btn:active { transform: translateY(1px); }
.kwh__btn--main { background: linear-gradient(90deg, #08b86b, #2b8f9e); color: #fff; box-shadow: 0 10px 24px rgba(8,184,107,.25); }
.kwh__btn--call { background: #fff; border: 1.5px solid var(--kwh-line); color: var(--kwh-ink); }
.kwh__btn--call small { display: block; font-size: 11px; font-weight: 500; color: var(--kwh-muted); line-height: 1.1; }
.kwh__btn--call svg { width: 18px; height: 18px; color: var(--kwh-green); flex: none; }
.kwh__tg { margin-top: 10px; font-size: 13px; color: var(--kwh-muted); }
.kwh__tg a { color: #1d7fd0; font-weight: 600; text-decoration: none; }

.kwh__trust { display: grid; grid-template-columns: 1.18fr 1fr; gap: 10px 20px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 14px; color: #334744; }
.kwh__trust li { display: flex; gap: 9px; align-items: flex-start; line-height: 1.35; }
.kwh__trust svg { width: 18px; height: 18px; flex: none; color: var(--kwh-green); margin-top: 1px; }

/* ---- правая колонка: плитки валют и лестница ---- */
.kwh__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kwh__tile { position: relative; appearance: none; border: 0; text-align: left; cursor: pointer; border-radius: 18px; padding: 14px 14px 12px; color: #fff; background: linear-gradient(145deg, var(--c), var(--c2)); box-shadow: 0 10px 26px color-mix(in srgb, var(--c) 28%, transparent); font: inherit; overflow: hidden; transition: transform .15s, box-shadow .15s; min-height: 168px; display: flex; flex-direction: column; }
/* В Safari содержимое <button> центрируется по умолчанию — прижимаем к левому краю */
.kwh__tile, .kwh__chip { text-align: left; align-items: flex-start; }
.kwh__tile > * { width: 100%; text-align: left; }
.kwh__tile-h { justify-content: flex-start; }
.kwh__tile-r { align-self: flex-start; }
.kwh__tile:hover { transform: translateY(-2px); }
.kwh__tile[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--c), 0 10px 26px color-mix(in srgb, var(--c) 28%, transparent); }
.kwh__tile:focus-visible { outline: 3px solid var(--kwh-ink); outline-offset: 2px; }
.kwh__tile-h { display: flex; align-items: center; gap: 10px; }
.kwh__tile-sym { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; font-family: 'Onest', 'Inter', Arial, sans-serif; font-weight: 800; font-size: 24px; flex: none; backdrop-filter: blur(2px); }
.kwh__tile-n { font-size: 15px; font-weight: 700; line-height: 1.15; }
.kwh__tile-n small { display: block; font-size: 11px; font-weight: 500; opacity: .85; }
.kwh__tile-r { margin-top: auto; padding-top: 12px; font-size: 13px; opacity: .92; max-width: 58% !important; position: relative; z-index: 1; }
.kwh__tile-r b { display: block; font-size: 22px; line-height: 1.05; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.kwh__tile-r span { display: block; font-size: 12px; font-weight: 600; opacity: .85; margin-top: 2px; }
/* место под купюру: пока фотографий нет — стилизованная банкнота, при появлении фото
   скрипт кладёт <img> в тот же слот */
.kwh__note { position: absolute; right: -10px; top: 70px; width: 98px; height: 51px; transform: rotate(-12deg); border-radius: 8px; opacity: .92; pointer-events: none; }
.kwh__note img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; box-shadow: 0 8px 20px rgba(0,0,0,.28); }
.kwh__note svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 8px 14px rgba(0,0,0,.25)); }

.kwh__ladder { margin-top: 14px; background: #fff; border: 1px solid var(--kwh-line); border-radius: 18px; padding: 16px 18px 14px; box-shadow: 0 14px 40px rgba(16,52,48,.08); }
.kwh__ladder-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.kwh__ladder-t { margin: 0; font-size: 16px; font-weight: 700; }
.kwh__ladder-t span { color: var(--kwh-cur, var(--kwh-green)); }
.kwh__upd { font-size: 12px; color: var(--kwh-muted); white-space: nowrap; }
.kwh__table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.kwh__table th { font-size: 11px; font-weight: 600; color: var(--kwh-muted); text-transform: uppercase; letter-spacing: .04em; text-align: left; padding: 0 8px 6px; }
.kwh__table th:last-child, .kwh__table td:last-child { text-align: right; }
.kwh__table td { padding: 7px 8px; border-top: 1px solid var(--kwh-line); font-variant-numeric: tabular-nums; }
.kwh__table td:last-child { font-weight: 700; }
.kwh__table tr.is-cur td { background: var(--kwh-soft); }
.kwh__table tr.is-cur td:first-child { box-shadow: inset 3px 0 0 var(--kwh-cur, var(--kwh-green)); }
.kwh__table tr.is-top td:last-child { color: var(--kwh-green); }
.kwh__call { color: var(--kwh-green); font-weight: 700; text-decoration: none; border-bottom: 1px dashed currentColor; }
.kwh__ladder-f { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: var(--kwh-muted); }
.kwh__bulk { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #fff7e8; border: 1px solid #f3dfb3; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; }
.kwh__bulk-t { font-size: 14px; font-weight: 700; color: #5b3d00; line-height: 1.3; }
.kwh__bulk-d { grid-column: 1; font-size: 12px; color: #7a5a1c; line-height: 1.4; }
.kwh__bulk-a { grid-column: 2; grid-row: 1 / span 2; font-size: 13px; font-weight: 700; color: #5b3d00; text-decoration: none; border: 1px solid #e3c27a; border-radius: 10px; padding: 8px 12px; text-align: center; line-height: 1.25; background: #fff; white-space: nowrap; }
.kwh__bulk-a small { display: block; font-weight: 500; font-size: 11px; color: #7a5a1c; }
.kwh__more { display: none; }

/* ---- планшет ---- */
@media screen and (max-width: 1100px) {
  .kwh__in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .kwh__h1 { font-size: 40px; }
}
/* ---- телефон ---- */
@media screen and (max-width: 640px) {
  .kwh { padding: 22px 0 28px; }
  .kwh__in { padding: 0 16px; gap: 18px; }
  /* на телефоне колонки «растворяются», порядок: заголовок → лента курсов → калькулятор → доверие → ступени */
  .kwh__left, .kwh__right { display: contents; }
  .kwh__in > *, .kwh__left > *, .kwh__right > * { min-width: 0; }
  .kwh__eyebrow { order: 1; margin: 0; justify-self: start; }
  .kwh__h1 { order: 2; margin-top: -4px; }
  .kwh__lead { order: 3; margin-top: -6px; }
  .kwh__tiles { order: 4; }
  .kwh__calc { order: 5; }
  .kwh__trust { order: 6; margin-top: 0; }
  .kwh__ladder { order: 7; margin-top: 0; }
  .kwh__eyebrow { margin-bottom: 12px; font-size: 12px; }
  .kwh__h1 { font-size: 30px; line-height: 1.12; }
  .kwh__lead { font-size: 15px; margin-top: 10px; }
  /* плитки — лента курсов, листается пальцем */
  .kwh__tiles { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 6px 16px 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .kwh__tiles::-webkit-scrollbar { display: none; }
  .kwh__tile { flex: 0 0 158px; min-height: 128px; scroll-snap-align: start; padding: 12px 12px 10px; }
  .kwh__tile-sym { width: 34px; height: 34px; font-size: 20px; border-radius: 10px; }
  .kwh__tile-r b { font-size: 22px; }
  .kwh__tile-r { max-width: 62%; }
  .kwh__note { width: 88px; height: 46px; right: -12px; top: 58px; }
  .kwh__calc { padding: 14px 14px 12px; margin-top: 0; }
  .kwh__chips { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .kwh__chip { padding: 6px 6px; font-size: 12px; gap: 6px; justify-content: center; }
  .kwh__chip span { display: none; }
  .kwh__row { grid-template-columns: 1fr; grid-auto-rows: 1fr; gap: 8px; }
  .kwh__amt input { height: auto; min-height: 54px; font-size: 22px; }
  .kwh__cta { grid-template-columns: 1fr; }
  .kwh__btn { height: 54px; }
  .kwh__trust { grid-template-columns: 1fr; gap: 8px; font-size: 13px; }
  .kwh__ladder { padding: 14px 14px 12px; }
  .kwh__more { display: block; width: 100%; appearance: none; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--kwh-green); padding: 8px 0 0; cursor: pointer; text-align: left; }
  .kwh__ladder:not(.is-open) .kwh__table, .kwh__ladder:not(.is-open) .kwh__ladder-f { display: none; }
  .kwh__bulk { grid-template-columns: 1fr; }
  .kwh__bulk-a { grid-column: 1; grid-row: auto; margin-top: 6px; }
}

/* 06.11: картинка телефона со скрином канала («анонимно», USDT, заграничные счета) снята
   до замены — compliance P0 и модерация Директа. Правило держим и для старого экрана,
   который показывается, если лестница не загрузилась. */
.ko-elem__17233323111764946085601000005 { display: none !important; }

/* 06.11, решение владельца: блок «Более 10 лет помогаем» с основателями снят
   (год основания 2021, людей на странице не будет). */
#ko-block-1613539481 { display: none !important; }

/* 06.11, этап 1 аудита: плавающая кнопка Telegram не ложится на калькулятор —
   пока первый экран в кадре, её прячет worn-hero.js (класс kwh-hero-in). */
html.kwh-hero-in .kob-tg-float { opacity: 0; pointer-events: none; transition: opacity .2s; }
.kob-tg-float { transition: opacity .2s; }
/* На телефоне купюра на плитках закрывала цифру курса — на узких экранах плитка без купюры. */
@media (max-width: 640px) { .kwh__note { display: none; } }
/* Старые блоки Tilda на телефоне выпускали картинки за правый край (хвост в «3 шаге»):
   режем по горизонтали на уровне блока, вертикаль и тени не трогаем. */
@media (max-width: 1239px) { #ko-old-page .ko-rec { overflow-x: clip !important; } }
