/*
 * ClusterDelta UI — общая дизайн-система для my.clusterdelta.com (кабинет), страниц /demo/ и писем.
 * Источник: шаблон clusterdelta.com templates/cd_2021/css/style.css — те же цвета, шрифт, радиусы и кнопки.
 *
 * Раскладка: тёмно-синий блок .top (шапка сайта + полоса кабинета с заголовком, статусом и вкладками,
 * фон-график как на главной) → белая рабочая область с серыми панелями (сетка 8/4, как внутренние
 * страницы clusterdelta.com) → тёмно-синий футер.
 *
 * Тема одна (светлая), как у основного сайта: цвета заданы явно, тёмной темы нет намеренно.
 */

:root {
  /* цвета clusterdelta.com */
  --navy: #021329;          /* текст и шапка (body color основного сайта) */
  --navy-top: #021429;      /* фон .top-screen */
  --navy-deep: #02142a;     /* футер */
  --blue: #235490;          /* вторая кнопка, «шапки» карточек тарифов */
  --blue-hover: #2c62a4;
  --red: #940000;           /* главное действие: Log in, Manage subscription */
  --red-hover: #ae0101;
  --link: #c84344;
  --link-hover: #ab2525;
  --panel: #edf0f6;         /* серые панели (.right .moduletable) */
  --panel-active: #d6d9e0;  /* активный пункт бокового меню */
  --line: #d8d9da;
  --paper: #ffffff;
  --ink: #021329;
  --muted: #586174;         /* серый с синим оттенком */
  --field-line: #c3cad6;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, .72);
  --on-dark-line: rgba(255, 255, 255, .22);

  /* смысловые цвета статусов — отдельно от фирменных */
  --ok: #157a46;      --ok-bg: #e2f3e9;
  --warn: #8a5300;    --warn-bg: #fff0d1;
  --bad: #b3261e;     --bad-bg: #fdeceb;
  --info: #1d4f8c;    --info-bg: #e5edf8;

  --font: 'Montserrat', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius: 5px;
  --radius-lg: 8px;
  --wrap: 1400px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --shadow: 0 6px 18px rgba(2, 19, 41, .10);
  --shadow-pop: 0 10px 28px rgba(0, 0, 0, .35);
  color-scheme: light;
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.55 var(--font);
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; text-wrap: balance; color: inherit; }
h1 { font-size: 36px; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 24px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
.num, table, .price, .stat-value { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.icon-lg { width: 24px; height: 24px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* ---------- верх: шапка сайта + полоса кабинета ---------- */
.top {
  background: var(--navy-top) url(img/cd_bg.png) center top / cover no-repeat;
  color: var(--on-dark);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}
.logo { display: block; flex: 0 0 auto; }
.logo img { width: 125px; display: block; }

.site-nav { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
/* Пункты не уходят вторым рядом: если места мало (PL, экраны 992–1280), длинный пункт (.long, > 16 символов) встаёт
   в две строки внутри той же полосы — как на clusterdelta.com (sites/clusterdelta.com/patches/pl-topmenu.css). */
.site-nav > ul { display: flex; flex-wrap: nowrap; justify-content: center; gap: 4px 26px; margin: 0; padding: 0; list-style: none; }
.site-nav li { position: relative; }
.site-nav > ul > li > a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--on-dark); font-size: 15px; font-weight: 500; min-height: 74px; line-height: 1.15; text-align: center; white-space: nowrap;
}
.site-nav > ul > li.long > a { white-space: normal; text-wrap: balance; }
@media (max-width: 1050px) { .site-nav > ul > li > a { white-space: normal; text-wrap: balance; } }  /* иначе длинный пункт PL — в три строки */
.site-nav > ul > li > a:hover { color: var(--on-dark-muted); }
.caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); display: inline-block; }
.site-nav .sub {
  position: absolute; left: -16px; top: 100%; z-index: 50; min-width: 250px;
  margin: 0; padding: 8px 0; list-style: none;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-pop);
  visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.site-nav li:hover > .sub, .site-nav li:focus-within > .sub { visibility: visible; opacity: 1; transform: none; }
.site-nav .sub a { display: block; padding: 8px 18px; color: var(--ink); font-size: 14px; }
.site-nav .sub a:hover { background: var(--panel); color: var(--ink); }

.header-side { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

/* выпадающие списки на <details>: язык и аккаунт (тот же приём, что cd-lang на основном сайте) */
.drop { position: relative; }
.drop > summary { list-style: none; cursor: pointer; user-select: none; }
.drop > summary::-webkit-details-marker { display: none; }
.drop > summary::marker { content: ""; }
.drop-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 200px;
  margin: 0; padding: 6px 0; list-style: none; text-align: left;
  background: var(--navy-top); border: 1px solid var(--on-dark-line); border-radius: var(--radius); box-shadow: var(--shadow-pop);
}
.drop-list a, .drop-list .drop-head {
  display: flex; align-items: center; gap: 10px; padding: 9px 16px;
  color: var(--on-dark); font-size: 14px; line-height: 18px; white-space: nowrap;
}
.drop-list a:hover, .drop-list a:focus-visible { background: rgba(255, 255, 255, .1); color: var(--on-dark); }
.drop-list .is-current a { font-weight: 700; }
.drop-list hr { border: 0; border-top: 1px solid var(--on-dark-line); margin: 6px 0; }
.drop-head { flex-direction: column; align-items: flex-start !important; gap: 2px !important; padding-bottom: 10px !important; }
.drop-head small { color: var(--on-dark-muted); font-size: 12px; }

.lang > summary {
  display: flex; align-items: center; gap: 6px; padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--radius);
  color: var(--on-dark); font-size: 13px; font-weight: 600; line-height: 14px;
}
.lang > summary:hover { border-color: rgba(255, 255, 255, .7); }
.lang img { width: 18px; height: 12px; display: block; }
.lang .drop-list { min-width: 170px; }
.tri { border: 4px solid transparent; border-top-color: currentColor; margin-top: 4px; }
.drop[open] > summary .tri { border-top-color: transparent; border-bottom-color: currentColor; margin-top: -4px; }

.account > summary {
  display: flex; align-items: center; gap: 10px; padding: 5px 10px 5px 5px;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 30px; color: var(--on-dark);
}
.account > summary:hover { border-color: rgba(255, 255, 255, .7); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
  background: var(--red); color: var(--on-dark); font-size: 13px; font-weight: 700; text-transform: uppercase;
}
.account-name { display: flex; flex-direction: column; line-height: 1.15; }
.account-name b { font-size: 14px; font-weight: 600; }
.account-name small { font-size: 11px; color: var(--on-dark-muted); }
.chip-warn { color: #ffcf66; font-weight: 600; }   /* доступ кончается или кончился — видно в шапке обоих сайтов */
.account .drop-list { min-width: 230px; }

.burger { display: none; }

/* полоса кабинета */
.band { padding: 30px 0 0; }
.band-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 8px; }
.band h1 { font-size: 36px; }
.band .lead { color: var(--on-dark-muted); margin-top: 8px; max-width: 60ch; }
.band-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.tabs { margin-top: 26px; border-top: 1px solid var(--on-dark-line); }
.tabs ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.tabs ul::-webkit-scrollbar { display: none; }
.tabs a {
  display: flex; align-items: center; gap: 8px; padding: 16px 16px 14px; white-space: nowrap;
  color: var(--on-dark-muted); font-size: 14px; font-weight: 600; border-bottom: 3px solid transparent;
}
.tabs a:hover { color: var(--on-dark); }
.tabs a[aria-current="page"] { color: var(--on-dark); border-bottom-color: var(--red); }

/* ---------- рабочая область ---------- */
.page { padding-block: 40px 70px; }
.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.stack { display: grid; gap: 30px; min-width: 0; }
.stack-sm { display: grid; gap: 14px; min-width: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { font-size: 22px; }

/* серая панель — как модули справа на clusterdelta.com */
.panel { background: var(--panel); border-radius: var(--radius); padding: 30px; min-width: 0; }
.panel > h3 { font-size: 20px; margin-bottom: 18px; }
.panel-sm { padding: 22px 24px; }

/* белая карточка с рамкой — отдельный объект внутри белой страницы */
.card { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.card .seg + .form { margin-top: 22px; }

/* ---------- кнопки (как .button.red / .button.blue основного сайта) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 24px; border: 0; border-radius: var(--radius); cursor: pointer;
  font: 700 14px/16px var(--font); text-transform: uppercase; letter-spacing: .02em; text-align: center;
  transition: background-color .3s, color .3s, border-color .3s; text-decoration: none; white-space: nowrap;
}
.btn-red { background: var(--red); color: var(--on-dark); }
.btn-red:hover { background: var(--red-hover); color: var(--on-dark); }
.btn-blue { background: var(--blue); color: var(--on-dark); }
.btn-blue:hover { background: var(--blue-hover); color: var(--on-dark); }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--on-dark); }
.btn-light { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.btn-light:hover { background: rgba(255, 255, 255, .1); color: var(--on-dark); }
.btn-lg { padding: 20px 30px; }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.is-disabled { background: #b8c0cc; color: var(--paper); cursor: not-allowed; box-shadow: none; }
.btn-text { background: none; border: 0; padding: 0; color: var(--link); font: 600 14px var(--font); cursor: pointer; }
.btn-text:hover { color: var(--link-hover); }

/* ---------- статусы ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.pill-info { background: var(--info-bg); color: var(--info); }
.pill-plain { background: var(--panel); color: var(--muted); }
.pill-plain::before { display: none; }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); font-size: 14px; }
.notice .icon { margin-top: 2px; }
.notice-info { background: var(--info-bg); color: var(--info); }
.notice-warn { background: var(--warn-bg); color: var(--warn); }
.notice-ok { background: var(--ok-bg); color: var(--ok); }
.notice-bad { background: var(--bad-bg); color: var(--bad); }
.notice b { font-weight: 700; }

/* ---------- статус подписки (карточка на синей полосе) ---------- */
.status-card {
  background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); overflow: hidden;
}
.status-card > div { padding: 22px 26px; min-width: 0; }
.status-card > div + div { border-left: 1px solid var(--line); }
.stat-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stat-value { font-size: 28px; font-weight: 800; line-height: 1.15; margin-top: 6px; }
.stat-value small { font-size: 15px; font-weight: 600; color: var(--muted); }
.stat-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.stat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.meter { height: 8px; border-radius: 8px; background: var(--panel); overflow: hidden; margin-top: 12px; }
.meter > span { display: block; height: 100%; border-radius: 8px; background: var(--blue); }
.meter.is-low > span { background: var(--red); }

/* ---------- тарифы (как .tarif / .podpiska-price на главной) ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.plan {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line);
  transition: box-shadow .2s, border-color .2s;
}
.plan:hover { box-shadow: var(--shadow); }
.plan-cap {
  background: var(--blue); color: var(--on-dark); border-radius: var(--radius) var(--radius) 0 0;
  padding: 20px 16px 18px; text-align: center; margin: -1px -1px 0;
  min-height: 156px; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.plan-name { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.plan-price { font-size: 30px; font-weight: 800; margin-top: 6px; line-height: 1.1; }
.plan-price small { font-size: 15px; font-weight: 600; }
.plan-per { font-size: 13px; color: var(--on-dark-muted); margin-top: 4px; }
.plan-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; flex: 1 1 auto; }
.plan-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.plan-body li { display: flex; gap: 8px; align-items: flex-start; }
.plan-body li .icon { color: var(--ok); margin-top: 1px; }
.plan-until { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; }
.plan-until b { color: var(--ink); }
.plan .btn { width: 100%; }
.plan-flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%); z-index: 1;
  background: var(--red); color: var(--on-dark); font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 20px; white-space: nowrap;
}
.plan.is-featured { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.plan.is-featured .plan-cap { background: var(--navy); }
.save { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--on-dark); background: rgba(255, 255, 255, .16); border-radius: 20px; padding: 2px 9px; }

/* ---------- формы ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, .select {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--field-line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); font: 500 15px var(--font);
}
.input:focus, .select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(35, 84, 144, .18); }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: var(--radius) 0 0 var(--radius); }
.input-group .addon {
  display: grid; place-items: center; padding: 0 14px; border: 1px solid var(--field-line); border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0; background: var(--panel); font-weight: 700; color: var(--muted);
}
.hint { font-size: 13px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red); flex: 0 0 auto; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* быстрый выбор суммы */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 11px 16px; border: 1px solid var(--field-line); border-radius: var(--radius); background: var(--paper);
  font: 700 15px var(--font); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums;
}
.chip:hover { border-color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--on-dark); }
.chip small { display: block; font-size: 11px; font-weight: 600; opacity: .8; text-transform: uppercase; letter-spacing: .03em; }

/* выбор способа оплаты */
.methods { display: grid; gap: 10px; }
.method {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 16px 18px; border: 1px solid var(--field-line); border-radius: var(--radius); background: var(--paper); cursor: pointer;
}
.method:hover { border-color: var(--blue); }
.method input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.method:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); background: #f7f9fd; }
.method-title { font-weight: 700; }
.method-sub { font-size: 13px; color: var(--muted); }
.method-logos { display: flex; gap: 6px; align-items: center; }
.method-logos img { height: 22px; width: auto; filter: brightness(0); opacity: .65; }  /* логотипы сайта белые — на светлой карточке делаем тёмными */
.method-logos .tag { font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 3px 6px; }

/* переключатель */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 26px; background: #b8c0cc; position: relative; cursor: pointer; transition: background .2s; flex: 0 0 auto; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); transition: transform .2s; }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { transform: translateX(18px); }

/* ---------- списки и таблицы ---------- */
.kv { display: grid; gap: 0; margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.kv .total dt, .kv .total dd { font-size: 16px; font-weight: 800; color: var(--ink); }

.menu-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.menu-list a { display: flex; align-items: center; gap: 10px; padding: 11px 15px; color: var(--ink); border-bottom: 1px solid var(--line); transition: background .3s; }
.menu-list a:hover, .menu-list .is-current a { background: var(--panel-active); color: var(--ink); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 2px solid var(--navy); white-space: nowrap; }
.table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: #f6f8fb; }
.table .amount { text-align: right; font-weight: 700; white-space: nowrap; }
.table th.amount { text-align: right; }
.plus { color: var(--ok); }
.minus { color: var(--ink); }
.void { color: var(--muted); text-decoration: line-through; }
.op { display: flex; flex-direction: column; }
.op small { color: var(--muted); font-size: 12px; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 16px; }
.steps > li { position: relative; padding-left: 46px; min-height: 32px; }
.steps > li::before {
  counter-increment: s; content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: var(--on-dark); font-weight: 700; font-size: 14px; display: grid; place-items: center;
}
.steps > li > b { display: block; }
.steps .hint { margin-top: 2px; }

/* платформы и файлы */
.platforms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.platform {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--paper);
  border: 1px solid var(--line); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.platform:hover { border-color: var(--blue); box-shadow: var(--shadow); color: var(--ink); }
.platform img, .platform .mono { width: 42px; height: 42px; object-fit: contain; flex: 0 0 auto; }
.platform b { display: block; font-size: 15px; }
.platform small { color: var(--muted); font-size: 12px; }
.mono { border-radius: 50%; background: var(--navy); color: var(--on-dark); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
@media (min-width: 1200px) { .platforms .platform { flex-direction: column; align-items: flex-start; gap: 12px; } }  /* 4 в ряд: значок над названием */

.files { display: grid; gap: 0; border-top: 1px solid var(--line); }
.file {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center;
  padding: 16px 4px; border-bottom: 1px solid var(--line);
}
.file b { display: block; }
.file .meta { font-size: 13px; color: var(--muted); }

.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--panel); border-radius: var(--radius); }
.seg button {
  border: 0; background: transparent; padding: 9px 14px; border-radius: 4px; cursor: pointer;
  font: 600 14px var(--font); color: var(--muted);
}
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(2, 19, 41, .15); }

/* промо-полоса (у каждой акции есть срок окончания — показываем обратный отсчёт) */
.promo {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between;
  background: var(--navy); color: var(--on-dark); border-radius: var(--radius); padding: 18px 22px;
}
.promo-text { display: flex; gap: 14px; align-items: center; min-width: 0; flex: 1 1 320px; }
.promo-text .icon { color: #ffd166; width: 26px; height: 26px; }
.promo-text b { display: block; font-size: 16px; }
.promo-text span { color: var(--on-dark-muted); font-size: 14px; }
.countdown { display: flex; gap: 6px; }
.countdown span { background: rgba(255, 255, 255, .1); border-radius: 4px; padding: 6px 8px; text-align: center; min-width: 46px; font-weight: 800; font-size: 18px; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown small { display: block; font-size: 10px; font-weight: 600; color: var(--on-dark-muted); text-transform: uppercase; margin-top: 4px; letter-spacing: .04em; }

/* ---------- футер (как .footer основного сайта, короче) ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-dark); padding-block: 56px 40px; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.site-footer h3 { font-size: 18px; margin-bottom: 18px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--on-dark-muted); }
.site-footer .footer-two { display: block; columns: 2; column-gap: 30px; }
.footer-two li { break-inside: avoid; margin-bottom: 9px; }
.pay-logos { display: flex; gap: 14px; align-items: center; margin-top: 4px; }
.pay-logos img { height: 30px; width: auto; filter: brightness(0) invert(1); }
.legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--on-dark-line); font-size: 12px; color: var(--on-dark-muted); display: grid; gap: 8px; }
.legal b { color: var(--on-dark); }

/* ---------- вход / регистрация ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.auth .card { padding: 32px; }
.auth h2 { margin-bottom: 6px; }
.auth .form { margin-top: 22px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.benefits { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.benefits li { display: flex; gap: 12px; align-items: flex-start; color: var(--on-dark); }
.benefits .icon { color: #7fb0ea; margin-top: 2px; }
.benefits span { color: var(--on-dark-muted); display: block; font-size: 14px; }
.benefits-light li { color: var(--ink); }
.benefits-light span { color: var(--muted); }
.benefits-light .icon { color: var(--ok); }

/* ---------- адаптив (точки как у основного сайта) ---------- */
@media (max-width: 1199px) {
  .site-nav > ul { gap: 4px 18px; }
  .site-nav > ul > li > a { font-size: 14px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
  .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-name { display: none; }
  .account > summary { padding: 4px; }
}
@media (max-width: 991px) {
  .site-nav { display: none; }
  .site-header .wrap { justify-content: space-between; }
  .burger { display: block; }
  .burger > summary { display: grid; place-items: center; width: 42px; height: 42px; color: var(--on-dark); }
  .burger .drop-list { min-width: 260px; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .status-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .status-card > div:first-child { grid-column: 1 / -1; }
  .status-card > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .status-card > div:nth-child(3) { border-left: 1px solid var(--line); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > :first-child { grid-column: 1 / -1; }
  .auth { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  h1, .band h1 { font-size: 28px; }
  .band { padding-top: 18px; }
  .band-actions { width: 100%; }
  .band-actions .btn { flex: 1 1 auto; }
  .page { padding-block: 28px 50px; }
  .panel { padding: 22px 18px; }
  .card, .auth .card { padding: 20px 18px; }
  .lang .code { display: none; }
  .tabs ul { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .file { grid-template-columns: minmax(0, 1fr) auto; }
  .file .meta-side { display: none; }
  /* таблица → карточки */
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .table td { border: 0; padding: 0; }
  .table tr:hover td { background: none; }
  .table td:only-child { grid-column: 1 / -1; }
  .table td[data-cell="date"] { grid-column: 1 / -1; grid-row: 1; font-size: 12px; color: var(--muted); }
  .table td[data-cell="op"] { grid-column: 1; grid-row: 2; }
  .table td[data-cell="amount"] { grid-column: 2; grid-row: 2; }
  .table td[data-cell="status"] { grid-column: 1 / -1; grid-row: 3; }
}
@media (max-width: 599px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .platforms { grid-template-columns: minmax(0, 1fr); }
  .status-card { grid-template-columns: minmax(0, 1fr); }
  .status-card > div:nth-child(3) { border-left: 0; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .site-footer .footer-two { columns: 1; }
  .countdown span { min-width: 40px; font-size: 16px; }
  .promo .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- компоненты кабинета (этап 1; раньше — во встроенных стилях прототипа) ---------- */
.seg a { display: inline-block; padding: 9px 14px; border-radius: 4px; font: 600 14px var(--font); color: var(--muted); }
.seg a:hover { color: var(--ink); }
.seg a[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(2, 19, 41, .15); }
.copy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy-row code { font: 700 18px/1.2 var(--font); background: var(--panel); border-radius: 4px; padding: 6px 10px; overflow-wrap: anywhere; }
.empty { text-align: center; padding: 40px 20px; display: grid; gap: 12px; justify-items: center; }
.empty .icon { width: 40px; height: 40px; color: var(--muted); stroke-width: 1.5; }
.auth-band { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-bottom: 50px; }
.auth-band h1 { margin-bottom: 26px; }
.auth-band .card { box-shadow: var(--shadow-pop); border: 0; padding: 32px; }
.file .meta a { color: var(--link); }
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 100;
  max-width: min(520px, calc(100% - 32px)); background: var(--navy); color: var(--on-dark); padding: 12px 18px;
  border-radius: var(--radius); box-shadow: var(--shadow-pop); font-size: 14px;
}
@media (max-width: 991px) { .auth-band { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (max-width: 767px) { .auth-band .card { padding: 22px 18px; } }

/* ---------- подписка и пополнение (этап 2) ---------- */
.status-mini { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; color: var(--on-dark-muted); font-size: 14px; }
.status-mini b { color: var(--on-dark); }
.confirm-box { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #f7f9fd; }
.confirm-box legend { padding: 0 4px; font-size: 14px; }
.confirm-box p { font-size: 14px; }
.confirm-box code { font-size: 12px; overflow-wrap: anywhere; }
.plan .confirm-box .btn { width: 100%; }
.plan .hint { text-align: center; }
.tag { font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 3px 6px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin-top: 8px; color: var(--muted); font-size: 14px; }

/* ---------- итог оплаты (возврат с платёжной системы) ---------- */
.pay-wrap { max-width: 820px; margin: 0 auto; }
.pay-card { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 32px 28px; }
.pay-card .kv { width: 100%; max-width: 460px; text-align: left; }
.pay-card .band-actions { justify-content: center; }
.pay-card .notice { text-align: left; width: 100%; }
.big-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; }
.big-icon .icon { width: 34px; height: 34px; stroke-width: 2.5; }
.big-icon.ok { background: var(--ok); color: var(--on-dark); }
.big-icon.bad { background: var(--red); color: var(--on-dark); }
.big-icon.wait { background: var(--info-bg); color: var(--info); }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.option { display: flex; flex-direction: column; gap: 10px; }
.option .icon-lg { color: var(--blue); }
.option .btn { margin-top: auto; padding-inline: 14px; white-space: normal; }  /* «Оплатить криптовалютой» не обрезается */
@media (max-width: 767px) { .pay-card { padding: 24px 18px; } }

/* ---------- партнёрская страница ---------- */
.pt-band { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 40px; }
.pt-band .lead { max-width: 640px; }
.pt-logo { flex: 0 0 auto; background: var(--paper); border-radius: var(--radius); padding: 14px 18px; }
.pt-logo img { display: block; max-height: 72px; max-width: 220px; width: auto; height: auto; }
.steps > li.is-done::before { content: "\2713"; background: var(--ok); }
.steps-lg { gap: 28px; }
.steps-lg > li { padding-left: 50px; }
.steps-lg b { font-size: 17px; }
.pt-login { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); max-width: 420px; }
.pt-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 10px; }
.pt-links a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 14px; font-weight: 600; color: var(--ink); }
.pt-links a:hover { border-color: var(--blue); color: var(--blue); }
.pt-step-actions { margin-top: 12px; }
@media (max-width: 767px) { .pt-band { flex-direction: column-reverse; align-items: flex-start; } }
