  :root {
    --bg: #0f1115;
    --panel: #171a21;
    --panel-2: #1e222b;
    --line: #2a2f3a;
    --text: #e8eaed;
    --muted: #8b919c;
    --accent: #f0b90b;
    --buy: #20b26c;
    --sell: #ef454a;
    --radius: 8px;
    --promo: var(--panel);
    --warn-bg: rgba(255, 176, 32, .08);
    --warn-line: rgba(255, 176, 32, .25);
    --warn-text: #d9c08a;
    --hover: rgba(255, 255, 255, .02);
    color-scheme: dark;
  }
  [data-theme="light"] {
    --bg: #f5f6f8;
    --panel: #ffffff;
    --panel-2: #eef0f3;
    --line: #e1e4e8;
    --text: #121214;
    --muted: #6b7280;
    --promo: var(--panel);
    --warn-bg: #fff8e6;
    --warn-line: #f5d68a;
    --warn-text: #7a5a12;
    --hover: rgba(0, 0, 0, .02);
    color-scheme: light;
  }
  body, .top, .sub, .promo, .field, table td, thead th { transition: background-color .2s, color .2s, border-color .2s; }
  .theme { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer;
    display: grid; place-items: center; color: var(--text); }
  .theme .sun { display: none; }
  [data-theme="light"] .theme .sun { display: block; }
  [data-theme="light"] .theme .moon { display: none; }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
  a { color: inherit; text-decoration: none; }
  button, input, select { font: inherit; color: inherit; }
  .wrap { width: 100%; max-width: var(--page-width, 1440px); margin: 0 auto; padding-inline: var(--page-gutter, 20px); }

  /* Шапка */
  .top { background: var(--panel); border-bottom: 1px solid var(--line); }
  .top .wrap { display: flex; align-items: center; gap: 28px; height: 56px; }
  .logo { font-weight: 700; font-size: 18px; letter-spacing: .3px; }
  .logo span { color: var(--accent); }
  .nav { display: flex; gap: 20px; color: var(--muted); }
  .nav a:hover, .nav a.on { color: var(--text); }
  .top .right { margin-left: auto; display: flex; gap: 10px; }
  .btn { border: 0; border-radius: 6px; padding: 8px 14px; cursor: pointer; background: var(--panel-2); }
  .btn.primary { background: var(--accent-bg); color: #fff; }

  /* Подменю P2P */
  .sub { border-bottom: 1px solid var(--line); }
  .sub .wrap { display: flex; gap: 24px; height: 48px; align-items: center; color: var(--muted); }
  .sub a.on { color: var(--text); font-weight: 600; }
  .sub .right { margin-left: auto; display: flex; gap: 18px; }

  /* Панель выбора */
  .bar { display: flex; align-items: center; gap: 24px; padding: 20px 0 12px; flex-wrap: wrap; }
  .side { display: inline-flex; background: var(--panel-2); border-radius: var(--radius); padding: 3px; }
  .side button { border: 0; background: transparent; padding: 7px 22px; border-radius: 6px; cursor: pointer; color: var(--muted); font-weight: 600; }
  .side button.on.buy { background: var(--buy-bg); color: #fff; }
  .side button.on.sell { background: var(--sell-bg); color: #fff; }
  .coins { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; flex: 1; min-width: 0; }
  .coin { display: grid; grid-template-columns: 34px 1fr; grid-template-areas: "ico ctop" "ico px"; column-gap: 10px; align-items: center;
    text-align: left; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
  .coin:hover { border-color: var(--muted); }
  .coin.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
  .coin .ico { grid-area: ico; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: none; }
  .coin .coin-top { grid-area: ctop; display: flex; align-items: center; gap: 6px; font-weight: 600; }
  .coin .coin-top small { color: var(--muted); font-weight: 400; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .coin { min-width: 0; }
  .coin .px { grid-area: px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; font-size: 13px; white-space: nowrap; min-width: 0; }
  .chg { font-size: 12px; }
  .chg.up { color: var(--buy); }
  .chg.down { color: var(--sell); }
  .live { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; white-space: nowrap; }
  .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
  .live.ok i { background: var(--buy-bg); box-shadow: 0 0 0 3px rgba(32, 178, 108, .2); }
  .live.err i { background: #ffb020; }

  .filters { display: flex; gap: 10px; padding-bottom: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .filters .left { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
  .field { display: flex; align-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; height: 38px; }
  .field input, .field select { background: transparent; border: 0; outline: 0; height: 100%; padding: 0 10px; }
  .field select option { background: var(--panel-2); }
  .field .suffix { padding: 0 10px; color: var(--muted); border-left: 1px solid var(--line); }
  .field.amount input { width: 160px; }
  .check { display: flex; align-items: center; gap: 6px; color: var(--muted); cursor: pointer; user-select: none; }
  .filters .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
  .field select { max-width: 100%; }
  .filters .field, .filters .dd > .btn, .filters #refresh { min-height: 42px; }
  .filters .dd > .btn, .filters #refresh { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

  /* Промо-баннер */
  .promo { display: flex; align-items: center; justify-content: center; gap: 32px; margin-top: 20px; padding: 14px 24px;
    background: var(--promo); border: 1px solid var(--line); border-radius: 10px; }
  .promo h2 { margin: 0 0 4px; font-size: 22px; line-height: 30px; }
  .promo p { margin: 0; color: var(--muted); font-size: 15px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .promo .go { display: inline-grid; place-items: center; height: 18px; padding: 0 10px; border-radius: 12px; background: var(--accent-bg); }
  .promo-ico { flex: none; width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; color: #fff;
    background: var(--p-gold, #f0b90b); box-shadow: 0 10px 28px rgba(240, 185, 11, .35); }

  /* Предупреждение */
  .notice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; margin-bottom: 14px; border-radius: 8px;
    background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-text); font-size: 13px; }
  .notice .ico { color: #ffb020; flex: none; margin-top: 1px; }
  .notice a { color: var(--accent); white-space: nowrap; margin-left: 4px; }
  .notice .x { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; }

  /* Две колонки: покупка и продажа */
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .col { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
  .col-head { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .col-head h3 { margin: 0; font-size: 17px; }
  .col-head.buy h3 { color: var(--buy); }
  .col-head.sell h3 { color: var(--sell); }
  .col-head .count { color: var(--muted); font-size: 13px; }
  .col-head .hint { margin-left: auto; color: var(--muted); font-size: 12px; }
  .ad { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "adv price" "lim act" "pays act";
    gap: 10px 16px; padding: 16px; border-bottom: 1px solid var(--line); }
  .ad:last-child { border-bottom: 0; }
  .ad:hover { background: var(--hover); }
  .ad .adv { grid-area: adv; }
  .ad .price { grid-area: price; text-align: right; }
  .ad .kv { grid-area: lim; font-size: 13px; }
  /* Карточки одной высоты в обеих колонках: метки и способы оплаты всегда в одну строку */
  .ad { grid-template-rows: auto auto 22px; align-items: start; }
  .ad .pays { grid-area: pays; flex-direction: row; flex-wrap: nowrap; gap: 12px; align-items: center; min-width: 0; overflow: hidden; }
  .ad .pay { min-width: 0; flex: 0 1 auto; }
  .ad .pay-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pay-more { flex: none; font-size: 12px; font-weight: 600; color: var(--muted); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line); }
  .ad .act { grid-area: act; align-self: end; }
  .ad .tags { flex-wrap: nowrap; overflow: hidden; min-height: 20px; }
  .ad .tags.tags-none { margin-top: 6px; }
  .ad .tag { flex: none; white-space: nowrap; }
  .adv { display: flex; gap: 10px; }
  .ava { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; position: relative; }
  .ava.online::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--buy-bg); border: 2px solid var(--bg); }
  .name { font-weight: 600; display: flex; align-items: center; gap: 6px; }
  .badge { font-size: 11px; color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 0 4px; }
  .meta { color: var(--muted); font-size: 12px; }
  .price { font-size: 18px; font-weight: 600; }
  .price small { font-size: 12px; color: var(--muted); font-weight: 400; }
  .kv { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; }
  .kv span:nth-child(odd) { color: var(--muted); }
  .pays { display: flex; flex-direction: column; gap: 4px; }
  .pay { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
  .trade { border: 0; border-radius: 6px; padding: 9px 18px; font-weight: 600; cursor: pointer; color: #fff; }
  .trade.buy { background: var(--buy-bg); }
  .trade.sell { background: var(--sell-bg); }
  .empty { text-align: center; color: var(--muted); padding: 60px 0; }

  .pager { display: flex; justify-content: center; gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
  main { padding-bottom: 48px; }
  .pager button { min-width: 34px; height: 34px; border: 1px solid var(--line); background: var(--panel); border-radius: 6px; cursor: pointer; }
  .pager button.on { background: var(--accent-bg); border-color: var(--accent-bg); color: #fff; }
  .pager button:disabled { opacity: .4; cursor: default; }

  /* Окно сделки */
  .modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 10; }
  .modal.open { display: flex; }
  .dialog { background: var(--panel); border-radius: 12px; width: 100%; max-width: 860px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
  .dialog .info { padding: 24px; border-right: 1px solid var(--line); }
  .dialog .form { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
  .dialog h3 { margin: 0 0 4px; }
  .terms { margin-top: 16px; background: var(--panel-2); border-radius: 8px; padding: 12px; color: var(--muted); font-size: 13px; white-space: pre-line; }
  .form label { color: var(--muted); font-size: 13px; }
  .form .field { height: 46px; }
  .form .field input { flex: 1; width: 100%; }
  .form .field .all { color: var(--accent); cursor: pointer; padding: 0 10px; }
  .err { color: var(--sell); font-size: 12px; min-height: 16px; }
  .row-btns { display: flex; gap: 10px; margin-top: auto; }
  .row-btns .btn { flex: 1; height: 44px; }
  .timer { color: var(--muted); font-size: 12px; }

  .toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--panel-2); border: 1px solid var(--line); padding: 10px 16px; border-radius: 8px; opacity: 0; transition: opacity .2s; pointer-events: none; }
  .toast.show { opacity: 1; }


  /* Подменю P2P и полоса входа */
  .sub .wrap { overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  .sub a:hover { color: var(--text); }
  .login-strip { background: var(--warn-bg); border-bottom: 1px solid var(--warn-line); font-size: 14px; }
  .login-strip .wrap { display: flex; align-items: center; gap: 8px; height: 44px; }
  .login-strip b { color: #ffb020; }
  .login-strip a { color: var(--accent); font-weight: 600; }
  .p2u-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr); align-items: center;
    gap: clamp(28px, 5vw, 64px); width: 100vw; max-width: none; min-height: 640px; margin: 0 0 0 calc(50% - 50vw);
    padding-block: clamp(44px, 6vw, 76px); padding-inline: max(32px, var(--page-inset)); overflow: hidden;
    border: 0; border-radius: 0; background: var(--panel-2); color: var(--text); }
  .hero-copy, .hero-visual { position: relative; z-index: 1; min-width: 0; }
  .p2u-hero h1 { max-width: 680px; margin: 0; font-size: clamp(72px, 8.5vw, 112px); line-height: .88; letter-spacing: -.07em; }
  .p2u-hero h1 span, .p2u-hero h1 strong { display: block; }
  .p2u-hero h1 span { font-weight: 850; }
  /* В светлой теме чистый жёлтый на белом не читается — --accent там затемнён (см. brand.css) */
  .p2u-hero h1 strong { margin-top: 8px; color: var(--brand-gold); font-weight: 850; }
  [data-theme="light"] .p2u-hero h1 strong { color: var(--accent); }
  .p2u-hero .page-lead { max-width: 500px; margin: 36px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 21px); line-height: 1.5; }
  .hero-signup { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; max-width: 540px; margin-top: 30px; }
  .hero-signup { padding: 6px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
  .hero-signup input { width: 100%; min-width: 0; height: 52px; padding: 0 14px; border: 0; border-radius: 10px;
    background: transparent; color: var(--text); font-size: 16px; outline: none; }
  .hero-signup input::placeholder { color: var(--muted); }
  .hero-signup input:focus { border-color: var(--brand-gold); box-shadow: 0 0 0 3px rgba(240,185,11,.12); }
  .hero-signup button { min-width: 132px; height: 54px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--brand-gold);
    color: var(--brand-charcoal); font-weight: 800; cursor: pointer; }
  .hero-signup button:hover { background: var(--brand-button-hover); }
  .hero-signup .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
  /* Подсказка поля «Email address → Phone number → Email or phone»: слова по очереди вылетают снизу вверх (js/index.js).
     Видна, пока поле пустое (:placeholder-shown при placeholder=" "); при «уменьшении движения» — одно слово без анимации */
  .hero-field { position: relative; display: block; min-width: 0; }
  .hero-ph { position: absolute; inset: 0 14px; overflow: hidden; pointer-events: none; color: var(--muted); font-size: 16px; }
  .hero-ph span { position: absolute; left: 0; top: 50%; white-space: nowrap; opacity: 0; transform: translateY(60%);
    transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .5s; }
  .hero-ph span.in { opacity: 1; transform: translateY(-50%); }
  .hero-ph span.out { opacity: 0; transform: translateY(-160%); }
  .hero-field input:not(:placeholder-shown) + .hero-ph { visibility: hidden; }
  @media (prefers-reduced-motion: reduce) { .hero-ph span { transition: none; } }
  .hero-note { max-width: 540px; margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
  .hero-note a { color: var(--accent); }
  .hero-note.ok { color: var(--buy); font-weight: 600; }
  .hero-note.bad { color: var(--sell); }
  .social-access { display: grid; gap: 10px; margin-top: 22px; }
  .social-label { color: var(--muted); font-size: 13px; }
  .social-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
  .social-btn { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel);
    color: var(--text); transition: transform .15s, border-color .15s, box-shadow .15s; }
  .social-btn svg { width: 24px; height: 24px; }
  .social-btn:hover { transform: translateY(-2px); border-color: var(--brand-gold); box-shadow: 0 8px 18px rgba(24,26,32,.08); text-decoration: none !important; }
  .store-area { margin-top: 24px; }
  .store-links { display: flex; flex-wrap: wrap; gap: 10px; }
  .store-badge { display: grid; grid-template-columns: 30px auto; align-items: center; column-gap: 9px; min-width: 154px; min-height: 54px; padding: 8px 14px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); }
  .store-badge svg { grid-row: 1 / 3; width: 27px; height: 27px; }
  .store-badge small { align-self: end; color: var(--muted); font-size: 10px; line-height: 1; }
  .store-badge b { align-self: start; font-size: 16px; line-height: 1.2; }
  .store-badge:hover { border-color: var(--brand-gold); text-decoration: none !important; }
  .hero-visual { display: grid; place-items: center; min-height: 450px; }
  .hero-brand-art { position: relative; display: grid; place-items: center; width: min(100%, 470px); aspect-ratio: 1;
    animation: hero-float 5s ease-in-out infinite; will-change: transform; }
  .hero-brand-mark { position: relative; z-index: 2; display: grid; place-items: center; width: 58%; aspect-ratio: 1; padding: 7%; border-radius: 27%;
    background: var(--panel); box-shadow: 0 28px 70px rgba(24,26,32,.12); transform: rotate(-4deg); }
  .hero-brand-mark img { display: block; width: 100%; height: auto; }
  .hero-token { position: absolute; z-index: 1; display: grid; place-items: center; width: 76px; aspect-ratio: 1; border-radius: 50%;
    border: 3px solid rgba(255,255,255,.9); box-shadow: 0 18px 32px rgba(24,26,32,.18); opacity: 0; overflow: hidden;
    color: #fff; font-size: 34px; font-weight: 850; line-height: 1; will-change: transform, opacity;
    animation: tile-flight var(--tile-speed, 8s) cubic-bezier(.45,.05,.2,1) var(--tile-delay, 0s) infinite; }
  .hero-token svg { display: block; width: 100%; height: 100%; }
  .hero-token.one { right: -1%; top: 7%; width: 86px; --tile-speed:8.6s; --tile-delay:-1.4s; --x-in:-54px; --y-in:58px; --x-mid:18px; --y-mid:-16px; --x-out:-22px; --y-out:24px; }
  .hero-token.two { left: 1%; bottom: 8%; width: 72px;
    --tile-speed:10.4s; --tile-delay:-6.1s; --x-in:72px; --y-in:-58px; --x-mid:-16px; --y-mid:14px; --x-out:28px; --y-out:-32px; }
  .hero-token.three { right: 12%; bottom: 0; width: 62px;
    --tile-speed:7.2s; --tile-delay:-3.7s; --x-in:-64px; --y-in:-76px; --x-mid:13px; --y-mid:9px; --x-out:-32px; --y-out:-22px; }
  .hero-token.four { left: 7%; top: 8%; width: 68px;
    --tile-speed:9.3s; --tile-delay:-7.8s; --x-in:66px; --y-in:68px; --x-mid:-18px; --y-mid:-9px; --x-out:24px; --y-out:34px; }
  .hero-token.five { right: -2%; top: 48%; width: 54px;
    --tile-speed:6.9s; --tile-delay:-2.6s; --x-in:-82px; --y-in:8px; --x-mid:12px; --y-mid:-18px; --x-out:-38px; --y-out:18px; }
  .hero-token.six { left: -3%; top: 43%; width: 78px;
    --tile-speed:11.2s; --tile-delay:-4.9s; --x-in:94px; --y-in:10px; --x-mid:-12px; --y-mid:22px; --x-out:34px; --y-out:-28px; }
  .hero-token.seven { left: 29%; top: -2%; width: 58px; background:#197a4b;
    --tile-speed:7.8s; --tile-delay:-5.5s; --x-in:18px; --y-in:88px; --x-mid:20px; --y-mid:-10px; --x-out:-24px; --y-out:30px; }
  .hero-token.eight { right: 28%; bottom: -3%; width: 66px; background:#2464a8;
    --tile-speed:9.9s; --tile-delay:-8.2s; --x-in:-12px; --y-in:-86px; --x-mid:-21px; --y-mid:11px; --x-out:27px; --y-out:-24px; }
  .hero-token.nine { left: 2%; top: 25%; width: 48px; background:#704a98;
    --tile-speed:8.1s; --tile-delay:-3.1s; --x-in:82px; --y-in:44px; --x-mid:-11px; --y-mid:-17px; --x-out:31px; --y-out:22px; }
  .hero-token.ten { right: 4%; bottom: 22%; width: 58px; background:#1c75b8;
    --tile-speed:10.7s; --tile-delay:-7.2s; --x-in:-76px; --y-in:-32px; --x-mid:16px; --y-mid:13px; --x-out:-29px; --y-out:-27px; }
  [data-theme="dark"] .p2u-hero { background: var(--bg); }
  [data-theme="dark"] .social-btn:hover, [data-theme="dark"] .store-badge:hover { background: var(--brand-surface); }
  [data-theme="dark"] .hero-brand-mark { box-shadow: 0 28px 70px rgba(0,0,0,.34); }
  [data-theme="dark"] .hero-token { border-color: rgba(255,255,255,.72); box-shadow: 0 18px 32px rgba(0,0,0,.38); }
  @keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
  @keyframes tile-flight {
    0% { opacity: 0; transform: translate3d(var(--x-in), var(--y-in), 0) scale(.28) rotate(-170deg); }
    14% { opacity: .95; }
    38% { opacity: 1; transform: translate3d(var(--x-mid), var(--y-mid), 0) scale(1.04) rotate(24deg); }
    68% { opacity: .9; transform: translate3d(0, 0, 0) scale(.92) rotate(118deg); }
    100% { opacity: 0; transform: translate3d(var(--x-out), var(--y-out), 0) scale(.42) rotate(300deg); }
  }
  @media (prefers-reduced-motion: reduce) { .hero-brand-art, .hero-token { animation: none; opacity: 1; } }
  @media (max-width: 860px) {
    .p2u-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; margin-top: 0; padding: 32px 20px; border-radius: 0; }
    .p2u-hero h1 { font-size: clamp(52px, 13vw, 72px); }
    .hero-visual { min-height: 340px; }
    .hero-brand-art { width: min(86%, 360px); }
  }
  @media (max-width: 480px) {
    .p2u-hero { gap: 24px; padding: 24px 16px; }
    .p2u-hero h1 { font-size: 52px; }
    .hero-signup { grid-template-columns: 1fr; }
    .hero-signup button { width: 100%; }
    .store-links { display: grid; grid-template-columns: 1fr 1fr; }
    .store-badge { min-width: 0; padding-inline: 10px; }
    .store-badge b { font-size: 14px; }
    .hero-visual { min-height: 300px; }
    .hero-brand-art { width: min(90%, 300px); }
  }

  /* Карусель промо */
  .carousel { position: relative; margin-top: 14px; }
  .carousel .slides { display: grid; }
  .carousel .dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; }
  .carousel .dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: var(--muted); opacity: .5; cursor: pointer; transition: width .3s; }
  .carousel .dots button.on { width: 18px; opacity: 1; background: var(--accent-bg); }

  /* Дополнительные монеты */
  .more-coins { flex-basis: 100%; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
  .more-coins .chip { display: inline-flex; align-items: center; gap: 6px; padding-left: 5px !important; }
  .chip { border: 1px solid var(--line); background: var(--panel); border-radius: 16px; padding: 4px 12px; cursor: pointer; font-weight: 600; font-size: 13px; }
  .chip.on { border-color: var(--accent); color: var(--accent); }
  .chip .chg { font-weight: 400; margin-left: 4px; }

  /* Выпадающие фильтры */
  .dd { position: relative; }
  .dd .menu { display: none; position: absolute; top: 44px; left: 0; z-index: 5; min-width: 250px; padding: 6px; background: var(--panel);
    border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
  .dd.open .menu { display: block; }
  .dd .menu label { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 6px; cursor: pointer; }
  .dd .menu label:hover { background: var(--panel-2); }
  .cnt { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 9px;
    background: var(--accent-bg); color: #fff; font-size: 11px; }
  .cnt:empty { display: none; }

  /* Метки объявлений */
  .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
  .tag { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--panel-2); color: var(--muted); }
  .tag.fast { color: var(--buy); background: rgba(32, 178, 108, .12); }
  .tag { display: inline-flex; align-items: center; gap: 4px; }
  .rel { display: inline-flex; align-items: center; gap: 3px; vertical-align: -1px; }
  .tag.warn { color: #d08a00; background: rgba(255, 176, 32, .14); }
  .pager .gap { align-self: center; color: var(--muted); padding: 0 2px; }

  /* Бегущая строка предупреждения */
  .notice { align-items: center; }
  .ticker { flex: 1; min-width: 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
  .track { display: inline-flex; white-space: nowrap; animation: marquee 70s linear infinite; }
  .track > span { padding-right: 120px; }
  .notice:hover .track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }
  @media (prefers-reduced-motion: reduce) {
    .track { animation: none; white-space: normal; }
    .track > span + span { display: none; }
  }

  /* Информационные разделы */
  .section { margin-top: 56px; }
  .section h2 { font-size: 24px; margin: 0 0 6px; }
  .section > p.lead { color: var(--muted); margin: 0 0 20px; }
  .tabs { display: inline-flex; gap: 4px; padding: 3px; background: var(--panel-2); border-radius: 8px; margin-bottom: 18px; }
  .tabs button { border: 0; background: none; padding: 6px 16px; border-radius: 6px; cursor: pointer; color: var(--muted); font-weight: 600; }
  .tabs button.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
  .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
  .card h3 { margin: 0 0 8px; font-size: 17px; }
  .card p { margin: 0; color: var(--muted); }
  .step .num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-bg); color: #fff;
    font-weight: 700; margin-bottom: 12px; }
  .benefits li { margin: 10px 0; color: var(--muted); }
  .benefits li b { color: var(--text); }
  .benefits ul { padding-left: 18px; margin: 0; }
  /* Карточки гайдов: вся карточка — ссылка */
  .guide { display: flex; flex-direction: column; transition: border-color .15s, transform .15s, box-shadow .15s; }
  .guide:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
  .guide-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
  .guide p { flex: 1; }
  .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
  .ico.blue { background: rgba(240, 185, 11, .12); color: var(--accent); }
  .ico.green { background: rgba(32, 178, 108, .12); color: #2bc27a; }
  .ico.red { background: rgba(239, 69, 74, .12); color: #f2565b; }
  .pill { font-size: 12px; padding: 3px 9px; border-radius: 10px; background: var(--panel-2); color: var(--muted); }
  .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--accent); font-weight: 600; font-size: 13px; }
  .go svg { transition: transform .15s; }
  .guide:hover .go svg, .news-card:hover .go svg { transform: translateX(3px); }
  .strip-ico { display: inline-grid; color: #ffb020; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
  @media (prefers-reduced-motion: reduce) { .guide, .news-card, .go svg { transition: none !important; } .guide:hover, .news-card:hover { transform: none; } }
  /* ===== Способы оплаты: общий компонент логотипа (сетка раздела и метки в объявлениях) ===== */
  .methods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .method { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; column-gap: 12px; min-height: 68px; min-width: 0;
    padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
  .method .m-txt { min-width: 0; display: grid; gap: 2px; }
  /* Название может занять две строки — длинные «ACH Bank Transfer» и «Bank of America» видны целиком */
  .method b { font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .method small { color: var(--muted); font-size: 12px; line-height: 1.2; }
  .methods-note { color: var(--muted); font-size: 12px; margin: 12px 0 0; padding-right: 64px; }
  /* Подложка: брендовые логотипы — на белом (фирменные цвета читаются в обеих темах), общие способы — контурная иконка на тинте */
  .pay-logo { --s: 16px; flex: none; display: inline-grid; place-items: center; width: calc(var(--s) + 6px); height: calc(var(--s) + 6px);
    border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .1); color: var(--accent); overflow: hidden; }
  .pay-logo img { display: block; width: var(--s); height: var(--s); object-fit: contain; }
  .method .pay-logo { width: 44px; height: 44px; border-radius: 12px; }
  .method .pay-logo img { width: 26px; height: 26px; }
  .method .pay-logo svg { width: 22px; height: 22px; }
  .pay-logo.generic { background: #fdf6dd; color: var(--accent); box-shadow: inset 0 0 0 1px rgba(29, 78, 216, .18); }
  .pay-logo.generic.bank { background: #fdf6dd; color: var(--accent); }
  .pay-logo.generic.wallet { background: #ecfdf3; color: #047857; box-shadow: inset 0 0 0 1px rgba(4, 120, 87, .2); }
  .pay-logo.generic.cash { background: #fff7e6; color: #a15c07; box-shadow: inset 0 0 0 1px rgba(161, 92, 7, .2); }
  .faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
  .faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
  .faq details[open] summary::after { content: "−"; }
  .faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

  /* Последние новости */
  .sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
  .sec-head .lead { color: var(--muted); margin: 0; }
  .sec-head .all { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; padding: 6px 12px;
    border: 1px solid var(--line); border-radius: 18px; }
  .sec-head .all:hover { border-color: var(--accent); }
  .news-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 0;
    transition: border-color .15s, transform .15s, box-shadow .15s; }
  .news-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
  .news-card .cover { height: 132px; }
  .news-card .txt { flex: 1; }
  .news-card p { margin: 0; color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  /* Обложка-картинка из covers/: заполняет кадр, объект чуть правее центра остаётся в кадре при обрезке */
  .cover.has-img::before { display: none; }
  .cover.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
  .cover.has-img .chip { z-index: 1; background: rgba(0, 0, 0, .45); backdrop-filter: blur(4px); }
  /* Обложка новости */
  .cover { position: relative; display: grid; place-items: center; overflow: hidden; color: #fff;
    background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--c) 85%, #fff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 55%, #000) 100%); }
  .cover::before { content: ""; position: absolute; inset: 0; opacity: .18;
    background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
    background-size: 22px 22px; -webkit-mask-image: radial-gradient(circle at 70% 40%, #000, transparent 70%); mask-image: radial-gradient(circle at 70% 40%, #000, transparent 70%); }
  .cover .glass { position: relative; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
    background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); box-shadow: 0 8px 24px rgba(0,0,0,.15); backdrop-filter: blur(4px); }
  .cover .chip { position: absolute; left: 12px; top: 12px; font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
    padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.25); color: #fff; }

  .news-card .pic { height: 110px; display: grid; place-items: center; font-size: 42px; background: var(--c);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(0, 0, 0, .15)); }
  .news-card .txt { padding: 14px 16px 16px; display: grid; gap: 6px; }
  .news-card .m { color: var(--muted); font-size: 12px; }
  .news-card .m b { color: var(--accent); font-weight: 600; }
  .news-card h3 { margin: 0; font-size: 16px; line-height: 1.35; }
  .news-card:hover h3 { color: var(--accent); }

  /* Подвал */
  footer { margin-top: 64px; background: var(--panel); border-top: 1px solid var(--line); padding: 40px 0 24px; font-size: 14px; }
  footer .cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
  footer h4 { margin: 0 0 12px; font-size: 14px; }
  footer .cols a { display: block; color: var(--muted); margin: 8px 0; }
  footer .cols a:hover { color: var(--text); }
  footer .bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding-top: 20px;
    border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
  footer .bottom a { color: var(--muted); }

  /* Кнопка поддержки */
  .support { position: fixed; right: 20px; bottom: 20px; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; z-index: 9;
    background: var(--accent-bg); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }


  /* Без сдвига шапки между страницами с прокруткой и без неё */
  html { scrollbar-gutter: stable; }
  .icon-btn, .theme { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer;
    display: grid; place-items: center; color: var(--text); flex: none; }
  .burger { display: none !important; }
  .mnav { display: none; }
  @media (max-width: 1100px) {
    .nav { display: none !important; }
    .burger { display: grid !important; }
    .top.open .mnav { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px; padding: 8px 20px 14px;
      border-top: 1px solid var(--line); background: var(--panel); }
    .mnav a { padding: 10px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; }
    .mnav a.on, .mnav a:hover { background: var(--panel-2); color: var(--text); }
  }

  .side-switch { display: none; }
  /* Самая узкая ширина: карточкам способов оплаты тесно в две колонки — одна колонка */
  @media (max-width: 359px) { .methods { grid-template-columns: minmax(0, 1fr) !important; } }

  /* ===== Карусель монет ===== */
  .coin-carousel { display: block; padding: 20px 0 12px; }
  .cc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
  .cc-title { font-weight: 700; font-size: 15px; }
  .cc-head .live { margin-left: auto; }
  .cc-nav { display: flex; gap: 6px; }
  .cc-btn { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--line);
    background: var(--panel); color: var(--text); cursor: pointer; transition: border-color .15s, opacity .15s; }
  .cc-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
  .cc-btn:disabled { opacity: .35; cursor: default; }
  .coin-carousel.no-scroll .cc-nav { display: none; }
  .cc-viewport { position: relative; }
  /* Затухание у края показывает, что ленту можно листать дальше */
  .cc-viewport::before, .cc-viewport::after { content: ""; position: absolute; top: 0; bottom: 0; width: 36px; z-index: 1; pointer-events: none;
    opacity: 0; transition: opacity .2s; }
  .cc-viewport::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
  .cc-viewport::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
  .coin-carousel.can-prev .cc-viewport::before, .coin-carousel.can-next .cc-viewport::after { opacity: 1; }
  .coin-carousel .coins { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 40px) / 4.6);
    gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain;
    padding: 2px; margin: -2px; }
  .coin-carousel .coins::-webkit-scrollbar { display: none; }
  .coin-carousel .coin { scroll-snap-align: start; }
  @media (max-width: 1100px) { .coin-carousel .coins { grid-auto-columns: calc((100% - 30px) / 3.4); } }
  @media (max-width: 860px) {
    .coin-carousel .coins { grid-auto-columns: 44%; }
    .cc-title { display: none; }
    .cc-head .live { margin-left: 0; margin-right: auto; }
    .cc-btn { width: 40px; height: 40px; }
  }
  @media (max-width: 400px) { .coin-carousel .coins { grid-auto-columns: 46%; } }
  @media (prefers-reduced-motion: reduce) { .coin-carousel .coins { scroll-behavior: auto; } }

  /* ===== Промо-карусель: карточки по две на экране, свайп и автопрокрутка ===== */
  .promos { position: relative; margin-top: 16px; }
  .promo-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 16px) / 2); gap: 16px; overflow-x: auto;
    scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 16px; }
  .promo-track::-webkit-scrollbar { display: none; }
  .promo-card { position: relative; overflow: hidden; scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 1fr) auto;
    align-items: center; gap: 12px; min-height: 168px; padding: 22px 24px; border-radius: 16px; border: 1px solid var(--line);
    background: radial-gradient(120% 140% at 100% 50%, color-mix(in srgb, var(--c1) 26%, transparent) 0%, transparent 55%),
      linear-gradient(135deg, color-mix(in srgb, var(--c1) 10%, var(--panel)), var(--panel));
    transition: border-color .2s, transform .2s; }
  .promo-card:hover { border-color: color-mix(in srgb, var(--c1) 60%, var(--line)); }
  .promo-card:hover .cta svg { transform: translateX(3px); }
  .pc-text { min-width: 0; }
  .eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .2px; padding: 3px 10px;
    border-radius: 20px; background: color-mix(in srgb, var(--c1) 16%, transparent); color: var(--text); }
  .eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--c1); }
  .promo-card h2 { margin: 10px 0 6px; font-size: 21px; line-height: 1.25; }
  .promo-card p { margin: 0; color: var(--muted); font-size: 14px; max-width: 360px; }
  .cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 13px;
    /* Кнопка темнее цвета карточки: белый текст читается с контрастом от 4.5:1 */
    color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 62%, #000), color-mix(in srgb, var(--c2) 62%, #000));
    box-shadow: 0 6px 16px color-mix(in srgb, var(--c1) 30%, transparent); }
  .cta svg { transition: transform .15s; }
  .pc-art { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
  .pc-art .orb { position: absolute; inset: 8px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--c1), var(--c2));
    opacity: .9; filter: saturate(1.1); box-shadow: 0 18px 40px color-mix(in srgb, var(--c2) 40%, transparent); }
  .pc-art .orb::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--c1) 50%, transparent); }
  .pc-art .glass { position: relative; width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; color: #fff;
    background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .45); backdrop-filter: blur(6px); transform: rotate(-8deg); }
  .pc-art .badge2 { position: absolute; right: -4px; bottom: 14px; padding: 4px 9px; border-radius: 10px; font-size: 12px; font-weight: 800;
    background: #0f1115; color: #fff; border: 1px solid rgba(255, 255, 255, .15); box-shadow: 0 6px 14px rgba(0, 0, 0, .25); transform: rotate(4deg); }
  [data-theme="light"] .pc-art .badge2 { background: #fff; color: #121214; border-color: var(--line); box-shadow: 0 6px 14px rgba(16, 24, 40, .12); }
  /* Стрелки — в шапке над лентой, как у карусели монет: карточки ничем не перекрыты.
     Когда все карточки видны сразу, листать нечего — стрелки и полоски скрыты. */
  .promos .cc-head { justify-content: space-between; }
  .promos .cc-title { display: block; }
  .promos.no-scroll .cc-nav, .promos.no-scroll .pdots { display: none; }
  /* Полоски вместо точек: активная заполняется, пока идёт автопрокрутка */
  .pdots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
  .pdots button { position: relative; width: 22px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: var(--line); cursor: pointer; overflow: hidden; }
  .pdots button::before { content: ""; position: absolute; inset: -10px -2px; }
  .pdots button.on { width: 36px; }
  .pdots button.on::after { content: ""; position: absolute; inset: 0; background: var(--accent-bg); transform-origin: left; animation: pfill var(--dur, 6s) linear forwards; }
  .promos.paused .pdots button.on::after { animation-play-state: paused; }
  @keyframes pfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @media (prefers-reduced-motion: reduce) { .promo-track { scroll-behavior: auto; } .pdots button.on::after { animation: none; transform: none; } }

  /* ===== Полоса приглашения войти ===== */
  .login-strip { background: linear-gradient(90deg, var(--warn-bg), transparent 70%), var(--panel); border-bottom: 1px solid var(--line); font-size: 14px; }
  .login-strip .wrap { display: flex; align-items: center; gap: 12px; height: auto; min-height: 52px; }
  .ls-ico { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--warn-strong);
    background: color-mix(in srgb, var(--warn-strong) 16%, transparent); }
  .ls-text { flex: 1; min-width: 0; }
  .ls-text b { color: var(--warn-strong); }
  .ls-act { display: flex; gap: 8px; align-items: center; flex: none; }
  .ls-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 8px; font-weight: 600; font-size: 13px; border: 1px solid var(--line); }
  .ls-btn.primary { background: var(--accent-bg); border-color: var(--accent-bg); color: #fff; }
  .ls-x { width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; font-size: 18px; }
  .ls-x:hover { background: var(--panel-2); color: var(--text); }

  /* ===== Бегущая строка советов ===== */
  .notice { display: flex; align-items: center; gap: 0; padding: 0; overflow: hidden; border-radius: 10px; }
  .notice .tip-label { flex: none; display: inline-flex; align-items: center; gap: 6px; align-self: stretch; padding: 0 12px; font-weight: 700; font-size: 13px;
    color: var(--warn-strong); background: color-mix(in srgb, var(--warn-strong) 12%, transparent); border-right: 1px solid var(--warn-line); }
  .notice .ticker { padding: 11px 0; }
  .notice .track > span { padding-right: 0; }
  .notice .track em { font-style: normal; padding: 0 18px; color: var(--warn-strong); }
  .notice .tip-more { flex: none; padding: 0 12px; font-weight: 600; font-size: 13px; color: var(--accent); white-space: nowrap; }
  .notice .x { margin: 0 6px 0 0; }
  .safety .ticker { padding: 11px 0; }
  .safety .track { animation-duration: 42s; }
  .safety .track > span { display: inline-flex; align-items: center; padding-right: 72px; }
  .safety .track b { color: var(--text); font-weight: 600; }

  /* ===== Светлая тема: цвета с достаточным контрастом на белом (от 4.5:1 для текста) ===== */
  /* Заливки кнопок с белым текстом: контраст от 4.5:1 в обеих темах (текстовые --accent/--buy/--sell остаются ярче) */
  :root { --warn-strong: #ffb020; --accent-bg: #f0b90b; --buy-bg: #15803d; --sell-bg: #dc2626; }
  [data-theme="light"] { --accent: #8f7114; --buy: #0b7a44; --sell: #d42f35; --muted: #596170; --warn-strong: #a15c07; }
  [data-theme="light"] .ico.blue { color: var(--accent); }
  [data-theme="light"] .ico.green { color: #0b7a44; }
  [data-theme="light"] .ico.red { color: #d42f35; }
  [data-theme="light"] .ico.amber { color: #b45309; }
  [data-theme="light"] .ico.purple { color: var(--accent); }
  [data-theme="light"] .login-strip b, [data-theme="light"] .strip-ico, [data-theme="light"] .notice .ico { color: var(--warn-strong); }
  [data-theme="light"] .tag.warn { color: #a15c07; }
  [data-theme="light"] .stars button { color: #8a919d; }
  [data-theme="light"] .stars button.on { color: #f59e0b; }
  [data-theme="light"] a.card:hover, [data-theme="light"] .guide:hover, [data-theme="light"] .news-card:hover,
  [data-theme="light"] .lead-card:hover, [data-theme="light"] .card:hover { box-shadow: 0 10px 24px rgba(16, 24, 40, .08); }
  [data-theme="light"] .side-switch, [data-theme="light"] .dd .menu { box-shadow: 0 8px 20px rgba(16, 24, 40, .10); }
  [data-theme="light"] .support { box-shadow: 0 6px 16px rgba(240, 185, 11, .30); }

  /* Мобильная версия */
  @media (max-width: 860px) {
    .nav, .sub .right, .top .right .btn:not(.primary) { display: none; }
    .filters .right { margin-left: 0; }
    .filters, .filters .left, .filters .right { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .filters { grid-template-columns: 1fr; }
    .filters .field, .filters .dd, .filters .dd > .btn { width: 100%; min-width: 0; }
    .field select, .field input { width: 100%; min-width: 0; }
    .field.amount { grid-column: 1 / -1; }
    .field.amount input { width: 100%; }
    .filters .right > .field:first-child { grid-column: 1 / -1; }
    .dd .menu { left: auto; right: 0; }
    .tabs { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
    .tabs button { flex: none; }
    .support { right: 14px; bottom: 14px; width: 46px; height: 46px; }
    /* Карусель на телефоне: одна карточка, край следующей виден */
    .promo-track { grid-auto-columns: 86%; gap: 12px; }
    .promo-card { min-height: 0; padding: 18px; grid-template-columns: minmax(0, 1fr) 92px; }
    .promo-card h2 { font-size: 18px; }
    .promo-card p { font-size: 13px; }
    .pc-art { width: 92px; height: 92px; }
    .pc-art .glass { width: 46px; height: 46px; border-radius: 14px; }
    .pc-art .glass svg { width: 24px; height: 24px; }
    .pc-art .badge2 { font-size: 11px; bottom: 4px; right: -6px; }
    .cta { min-height: 40px; }
    .pdots button::before { inset: -16px -2px; }
    /* Полоса входа: текст сверху, кнопки снизу */
    .login-strip .wrap { flex-wrap: wrap; gap: 8px 10px; padding-top: 10px; padding-bottom: 10px; }
    .ls-text { flex-basis: calc(100% - 82px); font-size: 13px; }
    .ls-act { width: 100%; padding-left: 40px; }
    .ls-btn { height: 38px; }
    .ls-x { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; }
    .login-strip { position: relative; }
    .notice .tip-label span { display: none; }
    .notice .tip-more { padding: 0 6px; }
    .safety .track { animation-duration: 34s; }
    .split { grid-template-columns: 1fr; }
    .grid3, .grid2 { grid-template-columns: 1fr; }
    .methods { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .method { grid-template-columns: 40px minmax(0, 1fr); column-gap: 10px; padding: 10px 12px; min-height: 64px; }
    .method .pay-logo { width: 40px; height: 40px; border-radius: 11px; }
    .method .pay-logo img { width: 24px; height: 24px; }
    .method b { font-size: 13.5px; }
    /* Нижний край страницы не уходит под плавающую кнопку поддержки */
    footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    footer .cols { grid-template-columns: repeat(2, 1fr); }
    .section h2 { font-size: 20px; }
    .bar { gap: 10px; }
    .coins { grid-template-columns: repeat(2, minmax(0, 1fr)); flex-basis: 100%; }
    .coin .coin-top small { display: none; }
    .ad { grid-template-areas: "adv price" "lim lim" "pays pays" "act act"; }
    .ad .trade { width: 100%; }
    .dialog { grid-template-columns: 1fr; max-height: 90vh; overflow: auto; }
    .dialog .info { border-right: 0; border-bottom: 1px solid var(--line); }

    /* Поля 16 px: iPhone не приближает страницу при вводе */
    input, select, textarea { font-size: 16px !important; }
    .field { height: 44px; }
    .theme, .icon-btn { width: 40px; height: 40px; }
    .notice .x { min-width: 40px; min-height: 40px; margin: -8px -10px -8px 0; font-size: 20px; }
    /* Места для нажатия не меньше ~40 px */
    .sub .wrap { height: 48px; gap: 4px; }
    .sub a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 8px; }
    .sub a.on { background: var(--panel-2); }
    .btn, .tabs button, .chip, .pager button { min-height: 40px; }
    .pager button { min-width: 40px; }
    .faq summary { min-height: 52px; align-items: center; }
    footer .cols a { padding: 6px 0; margin: 2px 0; }
    /* Мелкий текст меток — не меньше 12 px */
    .badge, .tag, .cnt, .pill, .chip { font-size: 12px; }
    /* Переключатель Buy / Sell: на телефоне видна одна колонка */
    .side-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 12px; background: var(--panel-2);
      border-radius: 12px; position: sticky; top: 8px; z-index: 4; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
    .side-switch button { min-height: 44px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-weight: 700; cursor: pointer; }
    .side-switch button.on.buy { background: var(--buy-bg); color: #fff; }
    .side-switch button.on.sell { background: var(--sell-bg); color: #fff; }
    /* Переключатель внутри блока объявлений: липнет только пока на экране объявления */
    .split > .side-switch { grid-column: 1 / -1; margin-bottom: 0; }
    .split[data-show="buy"] > section.col:nth-of-type(2), .split[data-show="sell"] > section.col:nth-of-type(1) { display: none; }
    .col-head .hint { display: none; }
    /* Окно сделки — шторка снизу */
    .modal { align-items: flex-end; padding: 0; }
    .dialog { border-radius: 16px 16px 0 0; max-height: 92vh; padding-bottom: env(safe-area-inset-bottom); }
    .dialog .form { padding: 18px; }
    .dialog .info { padding: 18px; }
    .row-btns { position: sticky; bottom: 0; background: var(--panel); padding-top: 8px; }
    /* Уведомление над кнопкой поддержки */
    .toast { bottom: 76px; max-width: calc(100% - 32px); text-align: center; }
    .support { bottom: calc(14px + env(safe-area-inset-bottom)); }
    /* Переключатель Buy / Sell липнет вплотную к шапке: её высоту пишет скрипт в --hdr-h (шапка не липкая — 8 px от края) */
    #split > #sideSwitch { top: max(var(--hdr-h, 0px), 8px) !important; }
  }
  @media (max-width: 520px) { .safety .tip-more { display: none; } }
  /* Прокрутка к объявлениям («Show offers») не уводит начало списка под липкую шапку */
  #split, #split > .col { scroll-margin-top: calc(var(--hdr-h, 0px) + 8px); }
  /* Имя продавца обрезается многоточием, отметка Verified всегда видна */
  .ad .name .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ad .name .badge { flex: none; }
  /* Разделитель перед временем отпускания — внутри .rel и скрывается вместе с ним */
  .meta .rel { margin-left: .3em; }
  /* Пейджер в одну строку; «Page 2 of 9» — когда номера не помещаются */
  .pager { flex-wrap: nowrap; }
  .pager .page-of { align-self: center; padding: 0 8px; color: var(--muted); font-size: 13px; white-space: nowrap; }
  /* Шторка сделки получает фокус сама: без рамки фокуса вокруг всего окна */
  .dialog:focus { outline: none; }


/* Home and marketplace entry points */
.home-p2p-link { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 16px; font-weight: 700; color: var(--text); }
.home-p2p-link span { color: var(--accent); }
.home-p2p-link:hover { text-decoration: underline; }
.p2p-intro { padding-block: clamp(18px, 3vw, 32px) 12px; }
.p2p-intro h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 46px); line-height: 1.1; }
.p2p-intro .page-lead { margin: 0; }
#quickForm, #split { scroll-margin-top: calc(var(--hdr-h, 64px) + 12px); }
