/* Отдельные страницы сайта: /releases/, /plus/buy/, /account/, /privacy/, /terms/.
   Построено строго на компонентах и слоях основного лендинга (styles.css):
   без обводок (no strokes), без неонового свечения (no drop-shadow glow),
   контраст за счёт тональных поверхностей (--stage -> --card -> --surface -> --inverse)
   и пилюль-кнопок (.button, .button-dark, .button-outline, .button-small, .button-version). */

.site-header .desktop-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--fill-2);
}

.page {
  width: min(1160px, calc(100% - 80px));
  margin-inline: auto;
  padding: 40px 0 32px;
}

.page h1 {
  font-size: clamp(2.15rem, 4.4vw, 3.45rem);
  line-height: 1.03;
  letter-spacing: -.035em;
  text-transform: uppercase;
  margin: 14px 0 16px;
}

.page h1 span { color: var(--text); }
.page h1 span:last-child:not(:first-child) {
  display: block;
  width: fit-content;
  background: var(--accent-gradient);
  background-size: 200% 200%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: accent-flow 12s ease-in-out infinite alternate;
}

.page-intro {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.62;
  max-width: 58ch;
  margin: 0;
}

.page-back { margin-top: 44px; }
.page-back .text-link {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  font-weight: 600;
  gap: 10px;
  padding: 6px 0;
  letter-spacing: -.02em;
}
.page-back .text-link svg { transform: rotate(180deg); width: 20px; height: 20px; }
.page-back .text-link:hover svg { transform: rotate(180deg) translateX(3px); }

/* На карточках (--card) нейтральная кнопка .button-outline должна чётко читаться в обеих темах */
.card .button-outline,
.acc-plat .button-outline,
.acc-plat-card .button-outline,
.acc-entity-card .button-outline,
.acc-section-card .button-outline,
.acc-mini-card .button-outline,
.acc-help .button-outline,
.release-row .button-outline {
  background: var(--surface);
  color: var(--text);
}
.card .button-outline:hover,
.acc-plat .button-outline:hover,
.acc-plat-card .button-outline:hover,
.acc-entity-card .button-outline:hover,
.acc-section-card .button-outline:hover,
.acc-mini-card .button-outline:hover,
.acc-help .button-outline:hover,
.release-row .button-outline:hover {
  background: var(--surface-hover);
}
:root[data-theme="dark"] .card .button-outline:hover,
:root[data-theme="dark"] .acc-plat .button-outline:hover,
:root[data-theme="dark"] .acc-plat-card .button-outline:hover,
:root[data-theme="dark"] .acc-entity-card .button-outline:hover,
:root[data-theme="dark"] .acc-section-card .button-outline:hover,
:root[data-theme="dark"] .acc-mini-card .button-outline:hover,
:root[data-theme="dark"] .acc-help .button-outline:hover,
:root[data-theme="dark"] .release-row .button-outline:hover {
  background: #303034;
}

/* ---------- Список версий (/releases/) ---------- */
.release-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  margin: 30px 0 8px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--card);
}
.release-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: var(--r-pill);
  padding: 9px 18px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.release-tabs button:hover { color: var(--text); }
.release-tabs button svg { width: 17px; height: 17px; }
.release-tabs button[aria-selected="true"] {
  background: var(--surface);
  color: var(--text);
}
:root:not([data-theme="dark"]) .release-tabs button[aria-selected="true"] {
  background: var(--inverse);
  color: var(--on-inverse);
}

.release-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.release-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  align-items: center;
  padding: 24px 28px;
  border: 0;
  border-radius: var(--r-card);
  background: var(--card);
  transition: background-color .22s ease;
}
.release-row:hover { background: var(--surface-sunken); }
:root[data-theme="dark"] .release-row:hover { background: #1d1d1f; }
.release-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.015em;
}
.release-badge {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--accent-red-soft);
  color: var(--accent-red);
}
.release-meta { color: var(--muted); font-size: .9375rem; margin-top: 4px; }
.release-notes { grid-column: 1 / -1; margin: 6px 0 0; color: var(--text-2); font-size: .95rem; line-height: 1.6; white-space: pre-line; }
.release-row .button { white-space: nowrap; }
.release-row .button svg { width: 18px; height: 18px; }
.page-state { padding: 28px 0; color: var(--muted); }

/* ---------- Карточки и формы ---------- */
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 52px;
  align-items: start;
  margin-top: 4px;
}

.card {
  padding: 28px;
  border: 0;
  border-radius: var(--r-card);
  background: var(--card);
}
.card h2 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 8px;
  text-transform: none;
  color: var(--text);
}
.card > p { color: var(--muted); font-size: .95rem; line-height: 1.6; margin: 0; }
.card.warm { background: var(--card); }

/* Инверсная фокусная карточка (как .plus-cta на главной: #ffffff в тёмной теме, #111113 в светлой, без обводок и свечения) */
.card-inverse {
  --inv-bg: var(--inverse);
  --inv-ink: var(--on-inverse);
  --inv-muted: rgba(17, 17, 19, .62);
  --inv-line: rgba(17, 17, 19, .10);
  --inv-chip: rgba(17, 17, 19, .055);
  --inv-offer: #f2f2ef;
  --inv-field: #ebebea;
  --inv-field-focus: #e2e2df;
  padding: 26px 26px 24px;
  border: 0;
  border-radius: var(--r-card);
  background: var(--inv-bg);
  color: var(--inv-ink);
}
:root:not([data-theme="dark"]) .card-inverse {
  --inv-muted: rgba(255, 255, 255, .66);
  --inv-line: rgba(255, 255, 255, .12);
  --inv-chip: rgba(255, 255, 255, .09);
  --inv-offer: rgba(255, 255, 255, .055);
  --inv-field: rgba(255, 255, 255, .085);
  --inv-field-focus: rgba(255, 255, 255, .125);
}
.card-inverse h2 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.01em;
  text-transform: none;
  color: var(--inv-ink);
  margin: 0 0 10px;
}
.card-inverse > p { color: var(--inv-muted); font-size: .95rem; line-height: 1.55; margin: 0; }
.card-inverse .price-note { color: var(--inv-muted); margin-top: 4px; }
.card-inverse .price .price-usd { color: var(--inv-muted); }

.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin: 0; }
.price b { font-size: 3rem; font-weight: 800; letter-spacing: -.045em; line-height: 1; color: inherit; font-variant-numeric: tabular-nums; }
.price .price-usd {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--inv-chip);
  color: var(--inv-muted);
  font-size: .875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.price-note { color: var(--muted); font-size: .875rem; }

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  margin: 0;
  border-radius: var(--r-pill);
  background: var(--inv-chip, var(--fill-1));
  color: var(--inv-ink, var(--text));
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.card-badge svg { width: 15px; height: 15px; color: var(--accent-red); }

/* Внутренняя плашка оффера на /plus/buy/ */
.buy-offer {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 20px;
  background: var(--inv-offer);
}
.buy-offer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}
.card-inverse .buy-offer h2 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -.015em;
}
.buy-offer-perks {
  list-style: none;
  margin: 4px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--inv-line);
  display: grid;
  gap: 6px;
}
.buy-offer-perks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
  line-height: 1.4;
  color: var(--inv-muted);
}
.buy-offer-perks li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-red);
  flex: 0 0 auto;
}
.card-inverse .field-hint {
  color: var(--inv-muted);
  font-size: .8125rem;
  line-height: 1.4;
}
.buy-pay-meta {
  margin: 12px 0 0;
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--inv-muted);
}
.form-links.buy-card-foot {
  align-items: center;
  gap: 8px 14px;
}
.buy-have-q {
  color: var(--inv-muted);
  font-size: .875rem;
}
.card-inverse .buy-have-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}
.card-inverse .buy-have-link svg {
  width: 15px;
  height: 15px;
  transition: transform .18s ease;
}
.card-inverse .buy-have-link:hover svg { transform: translateX(3px); }

.field {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-2);
}
.card-inverse .field { color: var(--inv-ink); }

.field input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 1.03125rem;
  font-weight: 500;
  color: var(--text);
  padding: 15px 18px;
  border-radius: var(--r-panel);
  border: 0;
  background: var(--surface);
  caret-color: var(--accent);
  transition: background 150ms ease, outline-color 150ms ease;
}
.card-inverse .field input {
  color: var(--inv-ink);
  background: var(--inv-field);
}
.field input::placeholder { color: var(--muted-2); }
.card-inverse .field input::placeholder { color: var(--inv-muted); }
.field input:focus {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  background: var(--surface-hover);
}
:root[data-theme="dark"] .field input:focus { background: #2c2c30; }
.card-inverse .field input:focus {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  background: var(--inv-field-focus);
}
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 40px var(--surface) inset;
  transition: background-color 9999s;
}
.card-inverse .field input:-webkit-autofill,
.card-inverse .field input:-webkit-autofill:hover,
.card-inverse .field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--inv-ink);
  -webkit-box-shadow: 0 0 0 40px var(--inv-field) inset;
}

/* Внутри .card-inverse второстепенная кнопка остаётся контрастной пилюлей без свечения */
.card-inverse .button-outline {
  background: var(--inv-chip);
  color: var(--inv-ink);
}
.card-inverse .button-outline:hover { background: var(--inv-line); }

.field-hint { font-size: .8125rem; font-weight: 400; color: var(--muted); line-height: 1.5; }
.form-actions { display: grid; gap: 12px; margin-top: 22px; }
.form-actions .button { width: 100%; justify-content: center; min-height: 54px; }
.form-error { min-height: 1.2em; margin: 10px 0 0; color: var(--accent-red); font-size: .9375rem; font-weight: 500; }
.form-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--fill-2);
  font-size: .9375rem;
}
.card-inverse .form-links { border-top-color: var(--inv-line); }
.form-links a, .link-button {
  color: var(--accent-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-underline);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.card-inverse .form-links a { color: var(--inv-ink); text-decoration-color: var(--inv-line); }
.card-inverse .form-links a:hover { color: var(--accent-red); text-decoration-color: currentColor; }
.form-links a:hover, .link-button:hover { text-decoration-color: currentColor; }

.button[disabled] { opacity: .6; cursor: progress; }
#buy-submit[disabled] { opacity: .45; cursor: not-allowed; }
.buy-soon { margin: 10px 0 0; color: var(--muted); font-size: .9375rem; font-weight: 600; text-align: center; }
.buy-soon[hidden] { display: none; }
.fine { color: var(--muted); font-size: .875rem; line-height: 1.55; margin-top: 18px; }

.check-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; font-size: 1.03125rem; line-height: 1.52; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 20px; height: 20px; margin-top: 3px; color: var(--green-text); flex-shrink: 0; }
:root[data-theme="dark"] .check-list svg { color: var(--green); }
.check-list b { font-weight: 600; color: var(--text); }
.check-list span { color: var(--muted); }

/* Контакты под шагами */
.sub-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--fill-2);
}
.sub-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--fill-3);
  transition: color 150ms ease, text-decoration-color 150ms ease;
}
.sub-contacts a:hover { color: var(--accent-red); text-decoration-color: currentColor; }

/* Статус заказа (/plus/buy/) */
.status-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-panel); margin-bottom: 18px; background: var(--accent-red-soft); color: var(--accent-red); }
.status-icon svg { width: 26px; height: 26px; }
.status-icon.ok { background: var(--green-soft); color: var(--green-text); }
.spinner { width: 24px; height: 24px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: rg-spin .9s linear infinite; }
@keyframes rg-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.5s; } }

/* ---------- Личный кабинет (/account/) — Левый навбар (23%) + рабочая зона (62%) ---------- */
.acc-shell {
  display: grid;
  grid-template-columns: 23% minmax(0, 62%);
  gap: clamp(24px, 3.6vw, 48px);
  align-items: start;
}

/* Левая навигация по кабинету */
.acc-nav {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 0;
  border-radius: var(--r-card);
  background: var(--card);
}
.acc-nav-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--surface);
}
.acc-avatar {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fill-2);
  color: var(--text);
}
.acc-avatar-ico {
  width: 20px;
  height: 20px;
}
.acc-nav-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.acc-nav-user {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.acc-nav-user b {
  font-size: .925rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acc-nav-user span {
  font-size: .775rem;
  line-height: 1.2;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Булет тарифа без зелёного фона + галочка на кружке аватара справа снизу */
.acc-tier-bullet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: var(--text-2);
  font-size: .775rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.acc-tier-bullet::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
  flex: 0 0 auto;
}
.acc-tier-bullet.is-off { color: var(--muted); }
.acc-tier-bullet.is-off::before { background: var(--muted-2); }
.acc-nav-check {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--inverse);
  color: var(--on-inverse);
  box-shadow: 0 0 0 2px var(--surface);
}
.acc-nav-check[hidden] { display: none; }
.acc-nav-check svg { width: 10px; height: 10px; }
.acc-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--fill-2);
}
.acc-nav-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 13px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -.01em;
  text-align: left;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.acc-nav-btn svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: color .18s ease;
}
.acc-nav-btn:hover {
  background: var(--fill-1);
  color: var(--text);
}
.acc-nav-btn:hover svg { color: var(--text); }
.acc-nav-btn.is-active {
  background: var(--surface);
  color: var(--text);
}
:root:not([data-theme="dark"]) .acc-nav-btn.is-active {
  background: var(--inverse);
  color: var(--on-inverse);
}
.acc-nav-btn.is-active svg { color: var(--accent-red); }
:root:not([data-theme="dark"]) .acc-nav-btn.is-active svg { color: var(--on-inverse); }

.acc-nav-foot {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--fill-2);
}
.acc-logout {
  width: 100%;
  justify-content: center;
  background: var(--surface);
  color: var(--text);
  gap: 8px;
  min-height: 42px;
  font-size: .9rem;
}
.acc-logout:hover { background: var(--surface-hover); }
:root[data-theme="dark"] .acc-logout:hover { background: #303034; }
.acc-logout svg { width: 16px; height: 16px; }

.acc-nav-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 4px 2px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s ease;
}
.acc-nav-home:hover { color: var(--text); }
.acc-nav-home svg { width: 15px; height: 15px; transform: rotate(180deg); }

.acc-plan-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--fill-2);
  color: var(--text);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.acc-plan-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
}
.acc-plan-chip.is-off {
  background: var(--fill-2);
  color: var(--muted);
}
.acc-plan-chip.is-off::before { display: none; }

/* Правая функциональная область (62%) — фиксированная минимальная высота, чтобы при переключении разделов футер не прыгал */
.acc-main {
  min-width: 0;
  min-height: 660px;
}
.acc-panel {
  display: grid;
  gap: 20px;
  animation: acc-panel-in .26s cubic-bezier(.22, 1, .36, 1);
}
.acc-panel[hidden] { display: none; }
@keyframes acc-panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.acc-panel-head {
  display: grid;
  gap: 6px;
}
.acc-panel-head h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  line-height: 1.04;
}
.acc-panel-sub {
  margin: 0;
  color: var(--muted);
  font-size: .96875rem;
  line-height: 1.5;
}

/* Общие тональные карточки секций справа */
.acc-section-card {
  display: grid;
  gap: 16px;
  padding: 24px 26px;
  border: 0;
  border-radius: var(--r-card);
  background: var(--card);
}
.acc-section-head {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
}
.acc-section-head > div { min-width: 0; }
.acc-section-head .button { flex: 0 0 auto; white-space: nowrap; }
.acc-section-head h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.02em;
  text-transform: none;
  color: var(--text);
}
.acc-section-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .875rem;
}

/* Строка статуса подписки (Обзор и Подписка) */
.acc-status-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 22px 26px;
  border-radius: var(--r-card);
  background: var(--card);
}
.acc-status-banner-main {
  display: grid;
  gap: 6px;
}
.acc-status-banner-title {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}
.acc-status-banner-sub {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

/* Сущность-контейнер с тонкими разделителями между вложенными строками */
.acc-entity-card {
  border: 0;
  border-radius: var(--r-card);
  background: var(--card);
  overflow: hidden;
}
.acc-entity-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 18px 24px;
}
.acc-entity-item + .acc-entity-item {
  border-top: 1px solid var(--fill-2);
}

/* Одностолбцовый стек платформ: основная сборка + раскрывающийся список предыдущих */
.acc-plats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.acc-plat-card {
  border: 0;
  border-radius: var(--r-card);
  background: var(--card);
  overflow: hidden;
  transition: background-color .22s ease;
}
.acc-plat-card.wide { grid-column: 1 / -1; }
.acc-entity-card .acc-plat-wrap + .acc-plat-wrap {
  border-top: 1px solid var(--fill-2);
}

.acc-plat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 24px;
  align-items: center;
  padding: 20px 24px;
  transition: background-color .22s ease;
}
.acc-plat:hover { background: var(--surface-sunken); }
:root[data-theme="dark"] .acc-plat:hover { background: #1d1d1f; }
.acc-plat.is-soon:hover { background: transparent; }

.acc-plat-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.acc-plat-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.acc-plat-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--accent-red-soft);
  color: var(--accent-red);
}
.acc-plat-icon.is-neutral {
  background: var(--fill-2);
  color: var(--text);
}
.acc-plat-icon.is-muted {
  background: var(--fill-1);
  color: var(--muted);
}
.acc-plat-icon svg { width: 34px; height: 34px; }
.acc-plat-head > div { min-width: 0; }
.acc-plat-head h2 {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -.02em;
  text-transform: none;
  color: var(--text);
}
.acc-plat-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.4;
}

.acc-notes {
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
  white-space: pre-line;
  color: var(--text-2);
}
.acc-empty { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.acc-empty b { display: block; margin-bottom: 4px; color: var(--text); font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; }

.acc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-self: end;
}
.acc-actions .button {
  min-width: 170px;
  min-height: 46px;
}
.acc-soon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--fill-2);
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.acc-hint {
  margin: 0 2px;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.5;
}

/* Раскрывающийся список остальных версий прямо под основной внутри карточки платформы */
.acc-plat-more {
  border-top: 1px solid var(--fill-2);
}
.acc-plat-more[hidden] { display: none; }
.acc-plat-more > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: background-color .18s ease, color .18s ease;
}
.acc-plat-more > summary:hover {
  background: var(--surface-sunken);
  color: var(--text);
}
:root[data-theme="dark"] .acc-plat-more > summary:hover { background: #1d1d1f; }
.acc-plat-more > summary::-webkit-details-marker { display: none; }
.acc-plat-more > summary svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
.acc-plat-more.is-open > summary svg,
.acc-plat-more[open]:not(.is-closing) > summary svg { transform: rotate(180deg); }

.acc-more-body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .3s cubic-bezier(.22, 1, .36, 1), opacity .22s ease;
}
.acc-plat-more.is-open > .acc-more-body {
  grid-template-rows: 1fr;
  opacity: 1;
}
.acc-more-inner {
  overflow: hidden;
  min-height: 0;
}
@media (prefers-reduced-motion: reduce) {
  .acc-panel { animation: none; }
  .acc-more-body,
  .acc-plat-more > summary svg { transition: none; }
}

.acc-ver-list {
  list-style: none;
  margin: 0;
  padding: 0 24px 12px;
  display: grid;
}
.acc-ver-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--fill-2);
}
.acc-ver-row:first-child { border-top: 0; }
.acc-ver-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
}
.acc-ver-meta {
  font-size: .8125rem;
  color: var(--muted);
  margin-top: 2px;
}
.acc-ver-notes {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: .84rem;
  line-height: 1.45;
  color: var(--text-2);
}

/* Таблица ключ-значение для «Профиль / Обо мне» и «Подписка» */
.acc-kv {
  margin: 0;
  display: grid;
}
.acc-kv-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 13px 0;
  border-top: 1px solid var(--fill-2);
}
.acc-kv-row:first-child { border-top: 0; padding-top: 0; }
.acc-kv-row:last-child { padding-bottom: 0; }
.acc-kv-row dt {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
}
.acc-kv-row dd {
  margin: 0;
  color: var(--text);
  font-size: .95rem;
  font-weight: 600;
  text-align: right;
}

/* Одностолбцовая сводка (Аккаунт + Подписка и оплаты) */
.acc-summary-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.acc-mini-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 18px 24px;
  border-radius: var(--r-card);
  background: var(--card);
}
.acc-mini-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.acc-mini-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.acc-mini-val {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
.acc-mini-val b {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.acc-mini-meta {
  color: var(--muted);
  font-size: .875rem;
}
.acc-link-action {
  border: 0;
  padding: 0;
  background: none;
  color: var(--accent-red);
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
}
.acc-link-action:hover { text-decoration: underline; text-underline-offset: 3px; }

.acc-orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.acc-order {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--surface);
  border-top: 0;
}
.acc-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-red-soft);
  color: var(--accent-red);
}
.acc-mark svg { width: 19px; height: 19px; }
.acc-order.refunded .acc-mark { background: var(--fill-2); color: var(--muted); }
.acc-order b { display: block; font-size: 1rem; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.acc-order > div:nth-child(2) span { color: var(--muted); font-size: .84rem; }
.acc-order-r { display: flex; align-items: center; gap: 10px; }
.acc-sum { font-size: 1.25rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--text); }
.acc-status { padding: 4px 10px; border-radius: var(--r-pill); font-size: .75rem; font-weight: 700; }
.acc-status.paid { background: var(--green-soft); color: var(--green-text); }
:root[data-theme="dark"] .acc-status.paid { color: var(--green); }
.acc-status.refunded { background: var(--fill-2); color: var(--muted); }

.acc-help-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 18px;
}
.acc-help h2 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -.015em;
  text-transform: none;
  color: var(--text);
}
.acc-help p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}
.acc-help-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.acc-security-msg {
  margin: 0;
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.45;
}
.acc-security-msg.is-ok { color: var(--green-text); }
:root[data-theme="dark"] .acc-security-msg.is-ok { color: var(--green); }

/* Баннер при отсутствии Plus — в стиле .card-inverse / .plus-cta главной */
.acc-no-plus {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 28px 30px;
}
.acc-no-plus h2 { font-size: 1.45rem; margin-bottom: 6px; }
.acc-no-plus .button { flex-shrink: 0; }

/* ---------- Сравнение Plus на /plus/buy/ (идентично .plus-compare с главной) ---------- */
.plus-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 32px;
  padding: 34px;
  border: 0;
  border-radius: var(--r-card);
  background: var(--card);
  color: var(--text);
}
.page-grid + .plus-hero { margin: 56px 0 0; }
.plus-hero-head { max-width: 780px; margin-bottom: 12px; }
.plus-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--fill-1);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.plus-hero-title {
  margin: 0 0 10px;
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
}
.plus-hero-text { max-width: 640px; margin: 0; font-size: 1rem; line-height: 1.62; color: var(--muted); }

/* Шаги («Как это работает») — с пилюлями .step-number как на лендинге */
.buy-steps-title {
  margin: 28px 0 18px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.015em;
  text-transform: none;
  color: var(--text);
}
.buy-steps { list-style: none; counter-reset: step; display: grid; gap: 16px; margin: 0; padding: 0; }
.buy-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
}
.buy-steps li::before {
  content: "0" counter(step);
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: var(--fill-2);
  color: var(--text);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.buy-steps b { font-size: 1.0625rem; font-weight: 700; color: var(--text); }
.buy-steps span { color: var(--muted); font-size: .9375rem; line-height: 1.52; margin-top: 2px; }

/* Согласие под кнопкой оплаты */
.legal-note { margin: 14px 0 0; color: var(--muted); font-size: .8125rem; line-height: 1.55; text-align: center; }
.card-inverse .legal-note { color: var(--inv-muted); }
.legal-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: currentColor; }
.legal-note a:hover { color: var(--accent-red); }

/* Юридические документы (/privacy/, /terms/) */
.legal-doc { max-width: 74ch; }
.legal-doc h1 { font-size: clamp(1.85rem, 4.2vw, 3rem); overflow-wrap: break-word; }
.legal-edition { margin: 0; color: var(--muted); font-size: .9375rem; }
.legal-lang-note {
  margin: 22px 0 0;
  padding: 14px 18px;
  border: 0;
  border-radius: var(--r-panel);
  background: var(--accent-red-soft);
  color: var(--text);
  font-size: .9375rem;
  line-height: 1.55;
}
.legal-lang-note[hidden] { display: none; }
.legal-lead { margin: 26px 0 0; font-size: 1.0625rem; line-height: 1.7; color: var(--text-2); }
.legal-toc {
  margin: 30px 0 0;
  padding: 24px 28px;
  border: 0;
  border-radius: var(--r-card);
  background: var(--card);
}
.legal-toc-title { margin: 0 0 10px; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.legal-toc ol { margin: 0; padding-left: 1.4em; display: grid; gap: 6px; font-size: .9375rem; line-height: 1.5; }
.legal-toc li::marker { color: var(--muted); }
.legal-doc a:not(.text-link) { color: var(--accent-red); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-underline); }
.legal-doc a:not(.text-link):hover { text-decoration-color: currentColor; }
.legal-doc section { scroll-margin-top: 24px; }
.legal-doc h2 { margin: 44px 0 14px; font-size: 1.45rem; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; text-transform: none; color: var(--text); }
.legal-doc h3 { margin: 24px 0 8px; font-size: 1.125rem; font-weight: 600; line-height: 1.35; letter-spacing: -.005em; text-transform: none; color: var(--text); }
.legal-doc section p, .legal-doc section li { font-size: 1.03125rem; line-height: 1.72; color: var(--text-2); }
.legal-doc section p { margin: 0 0 12px; }
.legal-doc section ul { margin: 0 0 14px; padding-left: 1.3em; display: grid; gap: 6px; }
.legal-doc section li::marker { color: var(--accent); }
.legal-doc b { font-weight: 600; color: var(--text); }
.legal-fill { padding: 1px 6px; border-radius: 6px; background: var(--accent-tint-2); color: var(--accent-strong); font-weight: 500; white-space: nowrap; }
.legal-card { margin: 8px 0 14px; padding: 18px 22px; border: 0; border-radius: var(--r-panel); background: var(--card); }
.legal-card p { margin: 0 0 6px !important; }
.legal-card p:last-child { margin-bottom: 0 !important; }
.legal-see { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--fill-2); color: var(--muted); font-size: .9375rem; }

@media (max-width: 900px) {
  .page { width: calc(100% - 40px); padding-top: 28px; }
  .page-grid { grid-template-columns: 1fr; gap: 28px; }
  .acc-shell { grid-template-columns: 1fr; gap: 20px; }
  .acc-main { min-height: 0; }
  .acc-nav { position: static; padding: 14px; }
  .acc-nav-list { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .acc-nav-btn { width: auto; padding: 9px 14px; }
  .acc-plats,
  .acc-summary-pair { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .plus-hero { padding: 26px 20px; border-radius: var(--r-sheet); }
  .page-grid + .plus-hero { margin-top: 38px; }
  .plus-hero .cmp th:nth-child(2), .plus-hero .cmp td:nth-child(2),
  .plus-hero .cmp th:nth-child(3), .plus-hero .cmp td:nth-child(3) { width: auto; }
}
@media (max-width: 640px) {
  .acc-section-head { flex-wrap: wrap; }
  .acc-plat { grid-template-columns: 1fr; }
  .acc-actions { justify-self: stretch; }
}
@media (max-width: 560px) {
  .page { width: calc(100% - 32px); padding: 24px 0 24px; }
  .card, .card-inverse { padding: 22px; border-radius: var(--r-sheet); }
  .price b { font-size: 2.5rem; }
  .release-row { grid-template-columns: 1fr; padding: 20px; border-radius: var(--r-sheet); }
  .release-row .button { justify-self: start; }
  .acc-nav,
  .acc-plat-card,
  .acc-entity-card { border-radius: var(--r-sheet); }
  .acc-plat, .acc-entity-item, .acc-section-card, .acc-status-banner, .acc-mini-card { padding: 18px 20px; }
  .acc-plat-more > summary { padding: 12px 20px; }
  .acc-ver-list { padding: 0 20px 10px; }
  .acc-actions .button { width: 100%; min-width: 0; }
  .acc-sum { font-size: 1.25rem; }
  .acc-order { grid-template-columns: auto minmax(0, 1fr); }
  .acc-order-r { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
  .legal-toc { padding: 18px; border-radius: var(--r-panel); }
  .legal-doc h2 { margin-top: 36px; font-size: 1.3125rem; }
  .legal-doc section p, .legal-doc section li { font-size: 1rem; }
  .legal-fill { white-space: normal; }
}
