@font-face { font-family: Golos; font-weight: 400; font-display: swap; src: url(/fonts/golos-cyrillic-400.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Golos; font-weight: 400; font-display: swap; src: url(/fonts/golos-latin-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Golos; font-weight: 600; font-display: swap; src: url(/fonts/golos-cyrillic-600.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Golos; font-weight: 600; font-display: swap; src: url(/fonts/golos-latin-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0a0a0b;
  --card: #141416;
  --card-2: #1b1b1f;
  --line: #2a2a30;
  --text: #f5f5f6;
  --muted: #9d9da6;
  --red: #e3262b;
  --red-hi: #ff3d42;
  --red-lo: #9f1418;
  --green: #31d36f;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(120% 60% at 100% -10%, rgba(227, 38, 43, .28), transparent 60%),
    radial-gradient(80% 40% at -20% 10%, rgba(227, 38, 43, .12), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 400 15px/1.5 Golos, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Шапка ---------- */

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 520px; margin: 0 auto; padding: 12px 16px;
  background: rgba(10, 10, 11, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(227, 38, 43, .35), 0 6px 18px -6px rgba(227, 38, 43, .7); }
.wordmark { font-weight: 600; font-size: 17px; letter-spacing: .02em; white-space: nowrap; }
.wordmark b { font-weight: 600; }
.wordmark em { font-style: normal; color: var(--red-hi); }
.top-right { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--card-2); border: 1px solid var(--line);
}
.icon-btn svg { width: 20px; height: 20px; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); }
.lang button { border: 0; background: none; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lang button[aria-pressed='true'] { background: var(--red); color: #fff; }

/* ---------- Страница ---------- */

.page { max-width: 520px; margin: 0 auto; padding: 8px 16px 40px; }

.hero { padding: 22px 2px 20px; }
.kicker { margin: 0 0 10px; font-size: 12.5px; font-weight: 600; color: var(--red-hi); }
.hero h1 { margin: 0 0 10px; font-size: 32px; line-height: 1.08; font-weight: 700; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--red-hi); }
.hero p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Калькулятор ---------- */

.calc { padding: 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }

.pair { border-radius: 16px; background: #0f0f11; border: 1px solid var(--line); overflow: hidden; }
.field { padding: 12px 14px 10px; transition: background .15s; }
.field:focus-within { background: #151518; }
.field-label { display: block; margin-bottom: 2px; font-size: 13px; color: var(--muted); }
.box-row { display: flex; align-items: center; gap: 10px; }
.amount {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 0;
  font-size: 28px; font-weight: 700; letter-spacing: -.02em;
}
.amount::placeholder { color: #55555c; }
.cur-switch { display: flex; gap: 2px; flex: none; }
.cur-switch button { border: 1px solid transparent; background: none; padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.cur-switch button[aria-pressed='true'] { color: #fff; border-color: var(--red); background: rgba(227, 38, 43, .14); }
.cur-fixed { flex: none; padding: 6px 10px; font-size: 13px; font-weight: 700; color: #fff; }

/* Разделитель полей с кнопкой смены направления справа */
.pair-line { position: relative; height: 1px; margin: 0 14px; background: var(--line); }
.pair-line button {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border-radius: 50%;
  background: var(--red); border: 3px solid #0f0f11; color: #fff;
}
.pair-line svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.pair-line button.flipped svg { transform: rotate(180deg); }

.calc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 2px 0; font-size: 12.5px; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.live.off i { background: var(--muted); }
.calc-rate { font-weight: 700; text-align: right; }
#payout-note { margin-top: 10px; }

.chips { display: flex; gap: 6px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: #0f0f11; border: 1px solid var(--line); color: #d6d6da;
}
.chip:active { border-color: var(--red); }

.upgrade {
  display: block; width: 100%; margin-top: 10px; padding: 10px 12px; border-radius: 12px; text-align: left;
  background: rgba(227, 38, 43, .1); border: 1px dashed rgba(227, 38, 43, .55); color: #ffc9ca; font-size: 13px;
}
.calc-note { margin: 10px 2px 0; font-size: 12.5px; color: var(--muted); min-height: 1em; }
.calc-note.warn { color: #ffb4b6; }

/* ---------- Блоки ---------- */

.block { margin-top: 26px; }
.block h2, .h2, .safe h2 { display: block; margin: 0 0 12px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }

.methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.method {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px;
  border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; line-height: 1.25; text-align: center;
}
.method svg { width: 28px; height: 28px; color: var(--muted); }
.method[aria-pressed='true'] { border-color: var(--red); background: linear-gradient(180deg, rgba(227, 38, 43, .16), rgba(227, 38, 43, .04)); }
.method[aria-pressed='true'] svg { color: var(--red-hi); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 9px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: #d6d6da; }
.pill[aria-pressed='true'] { border-color: var(--red); color: #fff; background: rgba(227, 38, 43, .14); }

textarea {
  width: 100%; resize: vertical; min-height: 64px; padding: 12px 14px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); outline: 0; font-size: 15px;
}
textarea:focus { border-color: var(--red); }

.submit { margin-top: 22px; }
.cta {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px; border: 0; border-radius: 16px; font-size: 17px; font-weight: 600; color: #fff;
  background: linear-gradient(180deg, var(--red-hi), var(--red) 55%, #c71d22);
  box-shadow: 0 16px 34px -14px rgba(227, 38, 43, .9), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.cta svg { width: 20px; height: 20px; }
.cta:disabled { opacity: .45; box-shadow: none; }
.cta:not(:disabled):active { transform: translateY(1px); }
.hint { margin: 10px 4px 0; text-align: center; font-size: 13px; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.steps li::before {
  content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); font-weight: 600; box-shadow: 0 6px 16px -6px rgba(227, 38, 43, .9);
}
.steps b { display: block; font-weight: 600; }
.steps span { color: var(--muted); font-size: 13.5px; }

.rates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rate-card { padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.rate-card h3 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.rate-row { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: 13.5px; border-top: 1px solid rgba(255, 255, 255, .05); }
.rate-row:first-of-type { border-top: 0; }
.rate-row b { font-weight: 600; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 14px 2px; font-weight: 600; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--red-hi); font-size: 20px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 2px 14px; color: #c4c4ca; font-size: 14px; }

.safe {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; margin-top: 26px; padding: 16px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(227, 38, 43, .14), rgba(227, 38, 43, .03)); border: 1px solid rgba(227, 38, 43, .3);
}
.safe svg { width: 40px; height: 40px; color: var(--red-hi); }
.safe h2 { margin-bottom: 4px; font-size: 16px; }
.safe p { margin: 0; color: #c4c4ca; font-size: 13.5px; }
.safe a { color: #fff; font-weight: 600; }

.foot { margin-top: 26px; text-align: center; color: #6c6c74; font-size: 12.5px; }
.ghost { width: 100%; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 600; margin-bottom: 16px; }

/* ---------- Окно ---------- */

.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
.sheet-card {
  position: relative; width: 100%; max-width: 520px; max-height: 88vh; overflow: auto;
  padding: 24px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0;
  background: #121214; border: 1px solid var(--line); border-bottom: 0; animation: up .25s ease-out;
}
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.sheet-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--card-2); font-size: 22px; line-height: 1; }
.done-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin: 4px auto 14px; background: rgba(49, 211, 111, .12); color: var(--green); }
.done-icon svg { width: 30px; height: 30px; stroke-width: 2.4; }
.sheet h3 { margin: 0 0 6px; text-align: center; font-size: 21px; font-weight: 600; }
.sheet .lead { margin: 0 0 16px; text-align: center; color: var(--muted); font-size: 14px; }
.summary { padding: 4px 14px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); margin-bottom: 14px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 14px; }
.summary div:first-child { border-top: 0; }
.summary span { color: var(--muted); }
.summary b { font-weight: 600; text-align: right; }
.sheet .cta { margin-top: 4px; }
.order { padding: 12px 14px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); margin-bottom: 8px; }
.order-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; }
.order-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.badge { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #26262b; color: #d6d6da; }
.badge.new { background: rgba(227, 38, 43, .16); color: #ffb4b6; }
.badge.work { background: rgba(245, 180, 40, .14); color: #ffd27a; }
.badge.done { background: rgba(49, 211, 111, .12); color: var(--green); }
.empty { text-align: center; color: var(--muted); padding: 20px 0; }

@media (max-width: 370px) {
  .wordmark { font-size: 15px; }
  .hero h1 { font-size: 26px; }
  .amount { font-size: 26px; }
  .method { font-size: 11.5px; }
}
@media (min-width: 700px) {
  .page { padding-top: 20px; }
  .hero h1 { font-size: 36px; }
}
.amount[readonly] { cursor: default; }
.amount.loading { opacity: .4; transition: opacity .15s; }
.rate-row span, .rate-row b { white-space: nowrap; }
.rate-card { min-width: 0; }
@media (max-width: 400px) { .rate-row { font-size: 12.5px; } .rate-card { padding: 12px 10px; } }
.rates-note { margin: 10px 2px 0; font-size: 12.5px; color: var(--muted); }
.links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: -6px 0 16px; }
.links .ghost { margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.links svg { width: 18px; height: 18px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linejoin: round; }
.dir-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: -2px 0 12px; border-bottom: 1px solid var(--line); }
.dir-tabs button { border: 0; background: none; padding: 8px 6px 11px; font-size: 15px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.dir-tabs button[aria-pressed='true'] { color: #fff; border-bottom-color: var(--red); }

/* ---------- Золотые акценты (по пожеланию клиента 14.11.2026) ---------- */

:root {
  --gold: #d9b46c;
  --gold-hi: #f1d494;
  --gold-lo: rgba(217, 180, 108, .35);
}
body {
  background:
    radial-gradient(120% 60% at 100% -10%, rgba(227, 38, 43, .28), transparent 60%),
    radial-gradient(70% 35% at -10% 35%, rgba(217, 180, 108, .10), transparent 70%),
    radial-gradient(80% 40% at -20% 10%, rgba(227, 38, 43, .12), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
.brand img { box-shadow: 0 0 0 2px var(--gold-lo), 0 6px 18px -6px rgba(227, 38, 43, .7); }

.hero .kicker { display: flex; align-items: center; gap: 10px; color: var(--gold); font-size: 12px; white-space: nowrap; }
.kicker::before { content: ''; height: 1px; width: 14px; flex: none; background: linear-gradient(90deg, transparent, var(--gold)); }

/* Калькулятор: тонкая золотая рамка и мягкое свечение */
.calc {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(150deg, var(--gold), rgba(217, 180, 108, .15) 35%, rgba(217, 180, 108, .05) 65%, var(--gold-lo)) border-box;
  box-shadow: 0 24px 60px -30px rgba(217, 180, 108, .45);
}
.chip { border-color: var(--gold-lo); color: #eadcbf; }
.chip:active { border-color: var(--gold); }

.upgrade {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(90deg, rgba(217, 180, 108, .16), rgba(217, 180, 108, .05));
  border: 1px solid var(--gold-lo); color: var(--gold-hi);
}
.upgrade::before { content: '♛'; flex: none; font-size: 18px; line-height: 1; color: var(--gold); }

.rate-card h3 { color: var(--gold); }
.block h2::after, .h2::after {
  content: ''; display: block; width: 36px; height: 2px; margin-top: 8px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* Экран «Заявка принята» */
.done-kicker { margin: 0 0 2px; text-align: center; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.sheet h3.done-no { margin: 0 0 14px; font-size: 30px; font-weight: 700; letter-spacing: .02em; }
.done-amounts {
  display: grid; gap: 2px; padding: 14px 16px; margin-bottom: 10px; border-radius: 14px;
  background: var(--card-2); border: 1px solid var(--gold-lo);
}
.done-amounts span { font-size: 13px; color: var(--muted); }
.done-amounts b { font-size: 22px; font-weight: 700; }
.done-amounts b:first-of-type { margin-bottom: 8px; }

/* Заголовок золотом и плашка «Международные переводы» (макет клиента) */
.hero h1 em {
  background: linear-gradient(95deg, #ffd37a, #f0a63a 55%, #e8892a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px !important; padding: 6px 14px 6px 10px; border-radius: 999px;
  border: 1px solid rgba(240, 166, 58, .6); background: rgba(240, 166, 58, .08);
  color: #f6c46a !important; font-size: 13.5px !important; font-weight: 600;
  box-shadow: 0 0 18px -6px rgba(240, 166, 58, .6);
}
.hero-badge svg { width: 18px; height: 18px; stroke: #f6c46a; }

/* Отзывы: карточки листаются вбок */
.block-sub { margin: -4px 0 12px; color: var(--muted); font-size: 13.5px; }
.reviews { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.reviews::-webkit-scrollbar { display: none; }
.review {
  flex: none; width: 78%; max-width: 320px; scroll-snap-align: start; text-align: left;
  padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line);
}
.review:active { border-color: var(--gold-lo); }
.review-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.review-avatar {
  width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), #a7782f); color: #1a1408; font-weight: 700; font-size: 14px;
}
.review-head b { font-weight: 600; font-size: 14px; }
.review-date { margin-left: auto; font-size: 12px; color: var(--muted); }
.review p { margin: 0; font-size: 14px; color: #dcdce0; }

/* Цифры внизу */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.stat { padding: 12px 6px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.stat b { display: block; font-size: 18px; font-weight: 700; color: var(--gold-hi); }
.stat span { font-size: 12px; color: var(--muted); }
.review { display: flex; flex-direction: column; }
.review p { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review-open { margin-top: auto; padding-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--gold); }

/* ---------- Кнопка темы ---------- */
.top-right { gap: 6px; }
.icon-btn { width: 36px; height: 36px; }
#theme-toggle .i-sun { display: none; }
html[data-theme='light'] #theme-toggle .i-sun { display: block; }
html[data-theme='light'] #theme-toggle .i-moon { display: none; }
@media (max-width: 400px) {
  .brand { gap: 8px; }
  .brand img { width: 36px; height: 36px; }
  .wordmark { font-size: 15.5px; }
  .lang button { padding: 5px 9px; }
}

/* ---------- Светлая тема ---------- */
html[data-theme='light'] {
  --bg: #f6f4f0;
  --card: #ffffff;
  --card-2: #f1efea;
  --line: #e3dfd6;
  --text: #17171a;
  --muted: #6c6c75;
  --red-hi: #d81f25;
  --green: #1c9e52;
  --gold: #b07f2e;
  --gold-hi: #94661a;
  --gold-lo: rgba(176, 127, 46, .38);
  color-scheme: light;
}
html[data-theme='light'] body {
  background:
    radial-gradient(120% 60% at 100% -10%, rgba(227, 38, 43, .10), transparent 60%),
    radial-gradient(70% 35% at -10% 35%, rgba(217, 180, 108, .14), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
html[data-theme='light'] .top { background: rgba(246, 244, 240, .86); border-bottom-color: rgba(0, 0, 0, .06); }
html[data-theme='light'] .calc,
html[data-theme='light'] .method,
html[data-theme='light'] .steps li,
html[data-theme='light'] .rate-card,
html[data-theme='light'] .review,
html[data-theme='light'] .stat { box-shadow: 0 6px 20px -14px rgba(60, 40, 10, .35); }
html[data-theme='light'] .calc { box-shadow: 0 20px 50px -30px rgba(176, 127, 46, .55); }
html[data-theme='light'] .pair { background: #faf9f6; }
html[data-theme='light'] .field:focus-within { background: #f3f1ec; }
html[data-theme='light'] .amount::placeholder { color: #b4b4bb; }
html[data-theme='light'] .pair-line button { border-color: #faf9f6; }
html[data-theme='light'] .cur-switch button[aria-pressed='true'],
html[data-theme='light'] .cur-fixed,
html[data-theme='light'] .dir-tabs button[aria-pressed='true'],
html[data-theme='light'] .pill[aria-pressed='true'],
html[data-theme='light'] .safe a { color: var(--text); }
html[data-theme='light'] .chip { background: #fff; color: #5a4318; }
html[data-theme='light'] .pill { color: #3a3a40; }
html[data-theme='light'] .upgrade { color: #7a5312; }
html[data-theme='light'] .calc-note.warn { color: #c0262c; }
html[data-theme='light'] .faq p,
html[data-theme='light'] .safe p,
html[data-theme='light'] .review p { color: #45454d; }
html[data-theme='light'] .foot { color: #8a8a92; }
html[data-theme='light'] .rate-row,
html[data-theme='light'] .summary div { border-top-color: rgba(0, 0, 0, .06); }
html[data-theme='light'] .sheet { background: rgba(20, 16, 10, .35); }
html[data-theme='light'] .sheet-card { background: #fff; }
html[data-theme='light'] .badge { background: #ecebe7; color: #4a4a52; }
html[data-theme='light'] .badge.new { color: #c0262c; }
html[data-theme='light'] .badge.work { color: #8a5f00; }
html[data-theme='light'] .hero h1 em { background-image: linear-gradient(95deg, #e2a12e, #d4781c 60%, #c4621a); }
html[data-theme='light'] .hero-badge { color: #a8640c !important; background: rgba(240, 166, 58, .12); }
html[data-theme='light'] .hero-badge svg { stroke: #a8640c; }
html[data-theme='light'] .brand img { box-shadow: 0 0 0 2px var(--gold-lo), 0 6px 16px -8px rgba(227, 38, 43, .5); }

/* Бонус партнёра в заявке */
.bonus {
  display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; cursor: pointer;
  background: linear-gradient(90deg, rgba(217, 180, 108, .16), rgba(217, 180, 108, .05)); border: 1px solid var(--gold-lo);
  color: var(--gold-hi); font-size: 14px; font-weight: 600;
}
.bonus input { width: 18px; height: 18px; accent-color: var(--gold); flex: none; }

/* Блок «Приглашайте друзей» */
.ref-promo {
  display: grid; gap: 12px; padding: 16px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(217, 180, 108, .14), rgba(217, 180, 108, .03)); border: 1px solid var(--gold-lo);
}
.ref-promo-text b { display: block; font-size: 16px; margin-bottom: 4px; }
.ref-promo-text p { margin: 0; color: var(--muted); font-size: 13.5px; }
.ref-promo .ghost { margin: 0; }
html[data-theme='light'] .bonus { color: #7a5312; }

/* ---------- Кабинет партнёра ---------- */
.ref-promo .cta { padding: 13px; font-size: 15px; }
.cab-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--gold-hi); border: 1px solid var(--gold-lo); background: rgba(217, 180, 108, .08); }
.sheet h3.cab-title { text-align: left; margin: 10px 0 4px; font-size: 24px; font-weight: 700; }
.sheet .lead.cab-lead { text-align: left; }
.cab-card { padding: 6px 14px; margin-bottom: 12px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line); }
.cab-card h4 { margin: 10px 0 6px; font-size: 15px; font-weight: 600; }
.cab-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 14px; }
.cab-card > .cab-row:first-child, .cab-card h4 + .cab-row { border-top: 0; }
.cab-row span { color: var(--muted); }
.cab-row small { display: block; font-size: 12px; opacity: .8; }
.cab-row b { font-weight: 600; text-align: right; white-space: nowrap; }
.cab-row b.plus { color: var(--green); }
.cab-row.big b { font-size: 24px; color: var(--green); }
.cab-note { margin: 6px 0 10px; font-size: 13px; color: var(--muted); }
.cab-note.center { text-align: center; margin: 8px 6px 14px; }
.cab-link { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cab-link span { flex: 1; min-width: 0; padding: 11px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cab-link .icon-btn { flex: none; width: 42px; height: 42px; }
.cab-level { font-size: 20px; font-weight: 700; color: var(--gold-hi); margin-bottom: 8px; }
.cab-bar { height: 8px; border-radius: 99px; background: var(--card); overflow: hidden; }
.cab-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--red)); }
.cab-lv { padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.cab-lv:first-of-type { margin-top: 2px; }
.cab-lv-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 2px; color: var(--text); font-size: 14px; }
.cab-tag { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--gold-hi); border: 1px solid var(--gold-lo); }
.cab-tag.next { color: var(--green); border-color: rgba(49, 211, 111, .4); }
.cab-fold summary { padding: 12px 0; font-weight: 600; cursor: pointer; }
.cab-fold + .cab-fold { border-top: 1px solid var(--line); }
.cab-list { margin: 0 0 12px; padding-left: 20px; color: var(--muted); font-size: 13.5px; }
.cab-list li { margin-bottom: 6px; }
html[data-theme='light'] .cab-row { border-top-color: rgba(0, 0, 0, .06); }

/* Язык одной кнопкой, значок кабинета */
.lang-btn { font-size: 13px; font-weight: 700; color: var(--text); }
#open-cabinet svg { color: var(--gold); }
.cab-id { margin: -8px 0 14px; font-size: 13px; font-weight: 600; color: var(--gold-hi); }
