:root {
  --bg: #070305;
  --bg-soft: #0f0609;
  --panel: rgba(25, 12, 17, 0.74);
  --panel-strong: rgba(34, 11, 17, 0.9);
  --line: rgba(255, 53, 78, 0.26);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #fbf6f7;
  --muted: #aa9ca1;
  --muted-2: #77686e;
  --red: #ff243d;
  --red-2: #b8001a;
  --red-3: #ff6878;
  --green: #38e47c;
  --yellow: #ffd166;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.52);
  --glow: 0 0 24px rgba(255, 36, 61, 0.76), 0 0 72px rgba(255, 36, 61, 0.28);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 52% 2%, rgba(255, 26, 48, 0.23), transparent 25rem),
    radial-gradient(circle at 88% 18%, rgba(255, 0, 38, 0.17), transparent 22rem),
    linear-gradient(135deg, #050204 0%, #130609 48%, #050204 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -4;
}

body::before {
  background:
    linear-gradient(115deg, transparent 0 12%, rgba(255, 20, 42, .16) 12.4%, transparent 12.9% 42%, rgba(255, 20, 42, .08) 42.3%, transparent 43%),
    repeating-linear-gradient(92deg, rgba(255,255,255,.022) 0 1px, transparent 1px 112px),
    repeating-linear-gradient(2deg, rgba(255,255,255,.014) 0 1px, transparent 1px 88px);
  mask-image: radial-gradient(circle at 50% 35%, black, transparent 78%);
}
.projects {
  margin-top: 24px;
}
html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
  width: 100%;
}

body > .footer {
  flex-shrink: 0;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.project-card {
  min-height: 92px;
  padding: 22px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: 0.2s ease;
}

.project-card strong {
  font-size: 18px;
  line-height: 1.15;
}

.project-card span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 47, 82, 0.45);
  background: rgba(255, 47, 82, 0.06);
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
body::after {
  background:
    radial-gradient(circle at 18% 84%, rgba(255, 0, 30, .12), transparent 20rem),
    radial-gradient(circle at 95% 78%, rgba(255, 0, 30, .1), transparent 24rem);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
code { color: #ffd1d7; }

.noise {
  position: fixed;
  inset: 0;
  opacity: .12;
  pointer-events: none;
  z-index: -2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.33'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.ambient {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  background: rgba(255, 24, 48, .18);
  filter: blur(82px);
  pointer-events: none;
  z-index: -3;
  animation: float 11s ease-in-out infinite alternate;
}
.ambient-one { top: -16rem; left: -9rem; }
.ambient-two { right: -12rem; bottom: -17rem; animation-delay: -3s; }
@keyframes float { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(20px, -18px, 0) scale(1.08); } }

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  width: min(var(--max), calc(100% - 28px));
  margin: 14px auto 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  background: rgba(10, 4, 7, .76);
  box-shadow: 0 16px 50px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(18px);
  border-radius: 24px;
}
.brand img { display: block; height: 38px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-auth-link { display: none; }
.main-nav a {
  padding: 10px 13px;
  border-radius: 14px;
  color: var(--muted);
  transition: .2s ease;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: rgba(255, 37, 61, .11);
  box-shadow: inset 0 0 0 1px rgba(255, 37, 61, .18);
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px auto; border-radius: 10px; }

.section-shell { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.page-hero,
.hero { padding: 82px 0 46px; }
.hero {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}
.page-hero { text-align: center; max-width: 870px; }

/* Логин: компактнее шапка секции, блок «Выберите способ входа» ближе к верху */
body[data-page="login"] .page-hero {
  padding: 40px 0 14px;
}
body[data-page="login"] main > .section-block {
  padding-top: 0;
  padding-bottom: 28px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ffc8cf;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 12px;
}
.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(56, 228, 124, .8);
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 3vw, 78px);
  line-height: .92;
  letter-spacing: -.065em;
}
h2 {
  margin: 12px 0 12px;
  font-size: clamp(30px, 4.3vw, 54px);
  line-height: 1;
  letter-spacing: -.04em;
}
h3 { font-size: 22px; margin-bottom: 10px; }
p { color: var(--muted); line-height: 1.7; }
.hero-text { font-size: 14px; max-width: 660px; }
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badges span,
.badge {
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
  color: #eadfe2;
  padding: 10px 13px;
  border-radius: 999px;
}
.badge.red { border-color: rgba(255,36,61,.3); background: rgba(255,36,61,.13); color: #ffd8dd; }
.badge.green { border-color: rgba(56,228,124,.26); background: rgba(56,228,124,.11); color: #cbffdf; }

.primary-btn,
.secondary-btn,
.ghost-btn,
.login-btn,
.icon-btn,
.select-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid transparent;
  padding: 0 18px;
  font-weight: 900;
  transition: .2s ease;
  user-select: none;
}
.primary-btn {
  color: #fff;
  background: linear-gradient(130deg, #ff3349, #9f0018);
  box-shadow: var(--glow), inset 0 1px 0 rgba(255,255,255,.22);
}
.primary-btn:hover { filter: brightness(1.08); }
.primary-btn.small { min-height: 42px; padding: 0 15px; border-radius: 14px; }
.primary-btn.full, .secondary-btn.full, .ghost-btn.full { width: 100%; }
.secondary-btn {
  color: #fff;
  background: rgba(255, 255, 255, .045);
  border-color: rgba(255,255,255,.12);
}
.secondary-btn:hover, .ghost-btn:hover { border-color: rgba(255, 53, 78, .36); background: rgba(255, 36, 61, .1); color: #fff; }
.ghost-btn {
  color: var(--muted);
  background: transparent;
  border-color: rgba(255,255,255,.08);
}

.app-frame {
  min-height: auto;
  width: fit-content;
  border: 1px solid rgba(255, 45, 70, .24);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 48% 44%, rgba(255, 36, 61, .18), transparent 19rem),
    linear-gradient(135deg, rgba(30, 10, 16, .82), rgba(8, 4, 7, .92));
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.04);
  overflow: hidden;
  position: relative;
}
.app-frame::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    linear-gradient(115deg, transparent 20%, rgba(255, 36, 61, .14) 20.2%, transparent 20.7% 62%, rgba(255, 36, 61, .1) 62.3%, transparent 62.8%),
    radial-gradient(circle at 60% 50%, rgba(255,0,35,.2), transparent 26rem);
  pointer-events: none;
}
.mock-sidebar {
  padding: 22px 16px;
  border-right: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
  position: relative;
  z-index: 1;
}
.mock-sidebar img { width: 132px; margin-bottom: 28px; }
.mock-sidebar button {
  width: 100%;
  text-align: left;
  margin-bottom: 10px;
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
}
.mock-sidebar .active { color: #fff; background: rgba(255,36,61,.18); border-color: rgba(255,36,61,.25); box-shadow: inset 0 0 18px rgba(255,36,61,.2); }
.mock-main {
  position: relative;
  z-index: 1;
  padding: 24px;
  display: grid;
  width: fit-content;
}
.mock-topbar { display: flex; justify-content: flex-end; gap: 10px; color: var(--muted); }
.status { color: #e8e2e4; }
.status i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(56,228,124,.85); margin-right: 5px; }
.connect-orb {
  align-self: center;
  justify-self: center;
  width: min(320px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 42px;
  border: 2px solid rgba(255,36,61,.65);
  background: radial-gradient(circle at 50% 34%, rgba(255,36,61,.18), rgba(0,0,0,.24) 58%, rgba(255,36,61,.12));
  box-shadow: var(--glow), inset 0 0 44px rgba(255,36,61,.14);
}
.connect-orb strong { font-size: 32px; line-height: 1.05; }
.connect-orb p { font-size: 13px; line-height: 1.5; margin: 8px 0 14px; }
.connect-orb button,
.connect-orb [data-start-connect] { border: 0; border-radius: 15px; padding: 12px 24px; color: #fff; background: linear-gradient(180deg, #ff3048, #9a0015); font-weight: 900; }
.shield { color: var(--red); font-size: 28px; }
.mock-cards { position: absolute; right: 22px; top: 96px; width: 210px; display: grid; gap: 12px; }
.mock-cards article,
.glass-card,
.pricing-card,
.use-card,
.feature-card,
.dashboard-card,
.account-card,
.auth-card,
.location-card,
.notice-card,
.faq-item {
  border: 1px solid var(--line-soft);
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 16px 50px rgba(0,0,0,.23);
  backdrop-filter: blur(16px);
}
.mock-cards article { padding: 16px; }
.mock-cards span { color: var(--muted); font-size: 13px; }
.mock-cards b { display: block; margin: 7px 0 8px; }
.bar { height: 7px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), #ff7b89); box-shadow: 0 0 18px rgba(255,36,61,.8); }

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 8px 0 42px;
}
.strip div { padding: 20px; border: 1px solid var(--line-soft); border-radius: 22px; background: rgba(255,255,255,.035); }
.strip strong { display: block; font-size: 24px; }
.strip span { color: var(--muted); }

.section-block { padding: 20px 0; }
.section-heading { max-width: 740px; margin-bottom: 26px; }
.section-heading.center { text-align: center; margin-left: auto; margin-right: auto; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.pricing-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checkout-toolbar {
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
}

.checkout-extra-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 750;
  font-size: 14px;
}

.checkout-extra-select {
  max-width: 340px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
}

.checkout-toolbar-hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

/* Пошаговая оплата (тариф → локации → срок) */
.checkout-wizard-wrap {
  width: 100%;
}
.checkout-wizard {
  padding: 8px 0 8px;
  max-width: 900px;
  margin: 0 auto;
}
.wizard-step-head {
  margin-bottom: 20px;
}
.wizard-step-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.wizard-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.wizard-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 950;
}
.wizard-sub {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}
.wizard-back-btn {
  flex-shrink: 0;
}
.wizard-choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.wizard-choice-row--narrow {
  max-width: 720px;
  margin: 0 auto;
}
.wizard-major-card {
  text-align: left;
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.14s ease;
  font-family: inherit;
}
.wizard-major-card:hover {
  border-color: rgba(255, 36, 61, 0.42);
  transform: translateY(-2px);
}
.wizard-major-card.recommended {
  border-color: rgba(255, 36, 61, 0.46);
  box-shadow: 0 10px 40px rgba(255, 36, 61, 0.08);
}
.wizard-major-card strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}
.wizard-major-card p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}
.wizard-price-hint {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.wizard-loc-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}
.wizard-loc-chip {
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
  font-family: inherit;
}
.wizard-loc-chip:hover {
  border-color: rgba(255, 255, 255, 0.25);
}
.wizard-loc-chip.selected {
  border-color: rgba(255, 36, 61, 0.62);
  background: rgba(255, 36, 61, 0.16);
}
.wizard-footer-actions {
  margin-top: 10px;
}

.pricing-tier-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.tier-column-card .plan-features {
  margin-bottom: 16px;
}

.tier-period-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.tier-period-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding: 14px 16px;
}

.tier-period-line {
  font-weight: 850;
  font-size: 16px;
}

.tier-period-price {
  font-size: 22px;
  font-weight: 950;
}

.tier-period-tag {
  opacity: 0.85;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.tier-guest-hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.4;
}

.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pricing-card { padding: 28px; position: relative; overflow: hidden; }
.pricing-card.recommended { border-color: rgba(255,36,61,.44); background: linear-gradient(180deg, rgba(70, 14, 22, .82), rgba(22, 8, 12, .88)); box-shadow: var(--shadow), 0 0 56px rgba(255,36,61,.18); }
.pricing-card.recommended::after { content: ""; position: absolute; inset: auto -20% -38% 20%; height: 220px; background: rgba(255,36,61,.23); filter: blur(68px); }

.pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.plan-features {
  margin-bottom: 28px;
}

.pricing-card .primary-btn.full {
  margin-top: auto;
}

.plan-top { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.plan-title { font-size: 28px; font-weight: 950; }
.plan-price { margin: 16px 0; font-size: 34px; font-weight: 950; }
.plan-features { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.plan-features li { display: flex; gap: 10px; color: #eadfe2; }
.plan-features li::before { content: "✦"; color: var(--red-3); }
.popular-line { color: #ffdbe0; font-weight: 900; margin-top: -5px; }

.use-card, .feature-card, .location-card, .notice-card, .faq-item, .auth-card, .dashboard-card, .account-card { padding: 22px; }
.use-card span { font-size: 34px; }
.feature-card i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255,36,61,.13); margin-bottom: 16px; font-style: normal; }
.feature-card strong { display: block; font-size: 19px; margin-bottom: 8px; }
.location-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.location-card .flag { font-size: 28px; }
.location-card b { display: block; }
.location-card small { color: var(--muted); }

.cta-panel,
.final-cta {
  margin: 50px auto;
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid rgba(255,36,61,.25);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 80% 0%, rgba(255,36,61,.22), transparent 20rem),
    linear-gradient(135deg, rgba(40, 10, 17, .86), rgba(8, 3, 6, .9));
  box-shadow: var(--shadow);
}
.final-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.auth-layout { display: flex; align-items: start; justify-content: center}
.auth-card-title {
  text-align: center;
  margin: 0;
  font-weight: 950;
}
.auth-card-providers {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.auth-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.login-btn {
  justify-content: start;
  gap: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .1);
  border-radius: 30px;
}
.login-btn:hover { background: rgba(255,36,61,.13); border-color: rgba(255,36,61,.32); }
.login-btn .auth-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.08); font-weight: 950; }
.telegram-widget-box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}
.telegram-widget-box iframe {
  align-self: center;
  max-width: 100%;
}

.form-row { display: grid; gap: 8px; margin-bottom: 14px; }
.form-row label { color: #e9dde1; font-weight: 800; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(0,0,0,.22);
  color: #fff;
  min-height: 48px;
  padding: 0 14px;
  outline: none;
}
input:focus, select:focus { border-color: rgba(255,36,61,.48); box-shadow: 0 0 0 4px rgba(255,36,61,.09); }

.cabinet-layout { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
.account-avatar { width: 72px; height: 72px; border-radius: 24px; display: grid; place-items: center; margin-bottom: 16px; font-size: 32px; font-weight: 950; background: linear-gradient(180deg, #ff3048, #800014); box-shadow: var(--glow); }
.account-meta { display: grid; gap: 8px; margin: 18px 0; }
.account-meta span { color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dashboard-card.wide { grid-column: 1 / -1; }
.dashboard-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-line { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.stat-line:last-child { border-bottom: 0; }
.stat-line span { color: var(--muted); }
.stat-line b { text-align: right; }
.stat-line--ids { align-items: flex-start; }
.stat-line-ids { text-align: right; font-weight: 650; line-height: 1.45; color: var(--text); }
.stat-line-ids b { font-weight: 750; }
.auth-telegram-app-host { display: grid; gap: 10px; margin-bottom: 0; width: 100%; }
.auth-telegram-app-host .auth-hint { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; text-align: center; }
.auth-stack--providers { flex-direction: column; align-items: stretch; width: 100%; max-width: 420px; margin: 0 auto; gap: 16px; }
.auth-tg-app-card { display: grid; gap: 10px; width: 100%; min-width: 0; }
.login-btn--telegram-app {
  background: linear-gradient(135deg, #2aabee 0%, #229ed9 55%, #1d8bc4 100%);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
  box-shadow: 0 8px 28px rgba(34, 158, 217, .22);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  justify-content: center;
  gap: 14px;
}
.login-btn--telegram-app:hover { filter: brightness(1.06); border-color: rgba(255, 255, 255, .35); }
.auth-tg-plane {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .2);
  flex-shrink: 0;
}
.auth-tg-app-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.auth-tg-app-text small { display: block; margin-top: 2px; font-weight: 650; opacity: .9; font-size: 12px; }
.login-btn--google {
  background: #fff;
  color: #1f1f1f;
  border-color: #747775;
  font-weight: 600;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.login-btn--google:hover { background: #f8f9fa; border-color: #5f6368; box-shadow: 0 2px 8px rgba(0, 0, 0, .16); }
.login-btn--google .gsi-logo { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.login-btn--google-full { width: 100%; justify-content: center; margin-top: 4px; }
.login-btn--google-text { font-weight: 600; }
.telegram-app-login { text-decoration: none; }
.config-row { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: center; }
.qr-box { aspect-ratio: 1; display: grid; place-items: center; border-radius: 22px; background: #fff; overflow: hidden; padding: 12px; }
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.code-line { display: block; width: 100%; max-width: 100%; padding: 14px; border-radius: 16px; background: rgba(0,0,0,.3); color: #ffd9de; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid rgba(255,255,255,.08); }
.server-select-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }

.table-like { display: grid; gap: 10px; }
.table-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; background: rgba(255,255,255,.03); }

.footer {
  padding: 40px 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}
.footer img { width: 132px; display: block; margin-bottom: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: #fff; }

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(440px, calc(100% - 36px));
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,36,61,.3);
  background: rgba(12,4,7,.92);
  color: #fff;
  box-shadow: var(--shadow);
  transform: translateY(25px);
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
  z-index: 99;
}
.toast.show { transform: translateY(0); opacity: 1; }

.reveal { opacity: 0; transform: translateY(18px); transition: .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

@media (max-width: 980px) {
  .nav-toggle { display: block; margin-left: auto; }
  .header-actions { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    left: auto;
    right: 12px;
    top: calc(100% + 10px);
    width: min(280px, calc(100vw - 40px));
    padding: 12px;
    border: 1px solid var(--line);
    background: rgba(9, 3, 6, .94);
    border-radius: 20px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; text-align: center; }
  .main-nav .nav-auth-link { display: flex; align-items: center; justify-content: center; margin-top: 4px; color: #fff; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.045); }
  .hero, .auth-layout, .cabinet-layout {flex-direction: column}
  .hero-badges{
    display: none;
  }
  .mock-cards { position: static; width: auto; margin-top: 18px; }
  .app-frame { min-height: auto; grid-template-columns: 1fr; }
  .mock-sidebar { display: none; }
  .connect-orb { margin: 42px auto 18px; }
  .strip, .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid, .grid-2 { grid-template-columns: 1fr; }
  .pricing-tier-two { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { top: 8px; width: min(100% - 16px, var(--max)); border-radius: 20px; }
  .brand img { height: 32px; }
  .hero, .page-hero { padding-top: 54px; }
  h1 { font-size: 25px; }
  .strip, .grid-4, .grid-3, .dashboard-grid { grid-template-columns: 1fr; }
  .final-cta { display: block; }
  .footer { display: block; }
  .config-row { grid-template-columns: 1fr; }
  .server-select-row { grid-template-columns: 1fr; }
  .table-row { grid-template-columns: 1fr; }
}

/* Cabinet cleanup: cards for subscription, server selection, config and app guide */
.cabinet-layout--simple {
  display: block;
}

.dashboard-grid--simple {
  grid-template-columns: 1fr;
  max-width: 860px;
  margin: 0 auto;
}

.dashboard-grid--simple .dashboard-card.wide {
  grid-column: auto;
}

.dashboard-card,
.dashboard-card.wide,
.config-row,
.config-row > *,
.code-line {
  min-width: 0;
}

.dashboard-card.wide {
  overflow: hidden;
}

.config-row {
  grid-template-columns: 180px minmax(0, 1fr);
  max-width: 100%;
}

.code-line {
  box-sizing: border-box;
}

.diagnostics-table .table-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

@media (max-width: 640px) {
  .dashboard-grid--simple {
    max-width: 100%;
  }

  .config-row {
    grid-template-columns: 1fr;
  }

  .qr-box {
    width: min(260px, 100%);
    margin: 0 auto;
  }

  .code-line {
    white-space: normal;
    overflow: auto;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.45;
    max-height: 170px;
  }

  .diagnostics-table .table-row {
    grid-template-columns: 1fr;
  }
}

/* Cabinet app guide */
.app-guide-grid{
  display: flex;
  gap: 20px;
  align-items: start;
  flex-wrap: wrap;
  flex-direction: column;
}

.app-guide-steps {
  display: grid;
  gap: 12px;
}

.guide-step {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.guide-step:last-child {
  border-bottom: 0;
}

.guide-step b {
  color: #fff;
}

.guide-step span {
  color: var(--muted);
  line-height: 1.55;
}

.app-download-box {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  padding: 14px;
  border: 1px solid rgba(255,36,61,.22);
  border-radius: 20px;
  background: rgba(255,255,255,.035);
}

.app-download-box p {
  margin: 10px 0 0;
}

.app-download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-download-link {
  min-height: 44px;
  border-radius: 14px;
}

@media (max-width: 760px) {
  .wizard-choice-row {
    grid-template-columns: 1fr;
  }

  .app-guide-grid,
  .guide-step {
    grid-template-columns: 1fr;
  }

  .app-download-box {
    width: 100%;
  }

  .app-download-links {
    flex-direction: column;
    width: 100%;
  }

  .app-download-link {
    width: 100%;
  }
}

/* Auth visibility: cabinet tab is shown only after a successful session load */
.main-nav [data-auth-only] {
  display: none;
}
body.is-authorized .main-nav [data-auth-only] {
  display: block;
}

.price-note {
  margin: -4px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.server-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mini-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #f4e9ec;
  font-size: 13px;
  font-weight: 800;
}

/* Guest CTA: кнопка «Начать» на главном экране скрывается после успешной загрузки сессии */
body.is-authorized [data-guest-connect] {
  display: none !important;
}

button:disabled,
.primary-btn:disabled {
  cursor: wait;
  opacity: .72;
  filter: grayscale(.12);
}

.server-readonly-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.server-readonly-list li {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.server-readonly-list .server-location-line {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.config-qr-note {
  font-size: 14px;
  color: var(--yellow);
  margin: 0 0 12px;
  line-height: 1.45;
}

.qr-placeholder {
  opacity: 0.45;
  font-size: 13px;
}

.diag-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.45;
}

.diagnostics-ping-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.45;
}

.diagnostics-table-head .table-row {
  opacity: 0.92;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
/* Pricing wizard: исправляет конфликт pricing-grid + pricing-stack */
.pricing-grid.pricing-stack {
  display: flex;
  grid-template-columns: none;
  flex-direction: column;
  gap: 20px;
}

/* Cabinet checkout block */
body[data-page="cabinet"] .cabinet-checkout-section {
  padding-top: 0;
}

body[data-page="cabinet"] .cabinet-checkout-card {
  max-width: 860px;
  padding: 24px;
}

body[data-page="cabinet"] .cabinet-checkout-head {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

body[data-page="cabinet"] .cabinet-checkout-head h2 {
  margin: 4px 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
}

body[data-page="cabinet"] .cabinet-checkout-head p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

body[data-page="cabinet"] .cabinet-pricing-grid {
  width: 100%;
}

body[data-page="cabinet"] .checkout-wizard {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

body[data-page="cabinet"] .checkout-toolbar {
  margin-bottom: 4px;
}

body[data-page="cabinet"] .wizard-step-head {
  margin-bottom: 18px;
}

body[data-page="cabinet"] .wizard-title {
  font-size: clamp(22px, 2.4vw, 28px);
}

body[data-page="cabinet"] .wizard-choice-row {
  gap: 14px;
  min-width: 100%;
}

body[data-page="cabinet"] .wizard-major-card {
  min-height: 132px;
}

body[data-page="cabinet"] .tier-guest-hint {
  margin: 0;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

@media (max-width: 760px) {
  body[data-page="cabinet"] .cabinet-checkout-card {
    padding: 20px;
  }

  body[data-page="cabinet"] .wizard-choice-row,
  body[data-page="cabinet"] .pricing-tier-two {
    grid-template-columns: 1fr;
  }
}

/* Спокойный вид кнопок выбора срока оплаты */
body[data-page="cabinet"] .tier-period-stack {
  gap: 12px;
}

body[data-page="cabinet"] .tier-period-btn {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "period price"
    "tag price";
  align-items: center;
  column-gap: 16px;
  row-gap: 4px;

  padding: 16px 18px;
  text-align: left;

  color: var(--text);
  background:
          linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;

  box-shadow: none;
  filter: none;
}

body[data-page="cabinet"] .tier-period-btn:hover {
  transform: translateY(-1px);
  background:
          linear-gradient(135deg, rgba(255, 36, 61, 0.13), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 36, 61, 0.42);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

body[data-page="cabinet"] .tier-period-btn:active {
  transform: translateY(0);
}

body[data-page="cabinet"] .tier-period-line {
  grid-area: period;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

body[data-page="cabinet"] .tier-period-price {
  grid-area: price;
  font-size: 20px;
  font-weight: 950;
  color: #fff;
  white-space: nowrap;
}

body[data-page="cabinet"] .tier-period-tag {
  grid-area: tag;
  width: fit-content;
  margin-top: 2px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 36, 61, 0.24);
  background: rgba(255, 36, 61, 0.08);
  color: rgba(255, 215, 220, 0.78);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 1;
}

@media (max-width: 560px) {
  body[data-page="cabinet"] .tier-period-btn {
    grid-template-columns: 1fr;
    grid-template-areas:
      "period"
      "price"
      "tag";
    text-align: left;
  }

  body[data-page="cabinet"] .tier-period-price {
    font-size: 18px;
  }
}

/* Cabinet loader */
.cabinet-loader-card {
  min-height: 320px;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
  background:
          radial-gradient(circle at 18% 20%, rgba(255, 36, 61, 0.18), transparent 28rem),
          linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.cabinet-loader-card h2 {
  margin: 6px 0 8px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}

.cabinet-loader-card p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.cabinet-loader-spinner {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 36, 61, 0.95);
  border-right-color: rgba(255, 36, 61, 0.42);
  box-shadow: 0 0 32px rgba(255, 36, 61, 0.26);
  animation: cabinet-loader-spin 0.85s linear infinite;
}

@keyframes cabinet-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .cabinet-loader-card {
    min-height: 260px;
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .cabinet-loader-spinner {
    width: 46px;
    height: 46px;
  }
}

/* Tariffs info block */
.tariffs-info-section {
  padding-top: 0;
}

.tariffs-info-card {
  padding: 24px;
}

.tariffs-info-head {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.tariffs-info-head h2 {
  margin: 4px 0 8px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
}

.tariffs-info-head p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.tariff-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tariff-summary-card {
  min-height: 100%;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 22px;
  background:
          linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022));
}

.tariff-summary-card--premium {
  border-color: rgba(255, 36, 61, 0.34);
  background:
          radial-gradient(circle at 90% 10%, rgba(255, 36, 61, 0.16), transparent 15rem),
          linear-gradient(135deg, rgba(255, 36, 61, 0.095), rgba(255, 255, 255, 0.025));
}

.tariff-summary-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 36, 61, 0.22);
  background: rgba(255, 36, 61, 0.08);
  color: rgba(255, 225, 230, 0.88);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tariff-summary-card h3 {
  margin: 0 0 8px;
  font-size: 23px;
  line-height: 1.15;
}

.tariff-summary-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.tariff-info-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tariff-info-list li {
  position: relative;
  padding-left: 22px;
  color: #eadfe2;
  line-height: 1.45;
}

.tariff-info-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red-3);
}

.tariff-conditions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.tariff-condition-item {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.tariff-condition-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
  color: #fff;
}

.tariff-condition-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.tariff-flow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 36, 61, 0.16);
  background:
          radial-gradient(circle at 12% 20%, rgba(255, 36, 61, 0.14), transparent 18rem),
          rgba(255, 255, 255, 0.025);
}

.tariff-flow-strip div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tariff-flow-strip b {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 36, 61, 0.16);
  color: #fff;
  box-shadow: 0 0 22px rgba(255, 36, 61, 0.14);
}

.tariff-flow-strip span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

@media (max-width: 860px) {
  .tariff-summary-grid,
  .tariff-conditions-grid,
  .tariff-flow-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .tariffs-info-card {
    padding: 20px;
  }

  .tariff-summary-grid,
  .tariff-conditions-grid,
  .tariff-flow-strip {
    grid-template-columns: 1fr;
  }
}

/* Tariffs price board */
.tariff-price-board {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 36, 61, 0.16);
  border-radius: 24px;
  background:
          radial-gradient(circle at 10% 10%, rgba(255, 36, 61, 0.14), transparent 18rem),
          linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.022));
}

.tariff-price-board-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.tariff-price-board-head h3 {
  margin: 4px 0 0;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.1;
}

.tariff-price-board-head p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.tariff-price-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.tariff-price-highlights div {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  background: rgba(255, 255, 255, 0.035);
}

.tariff-price-highlights span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.tariff-price-highlights strong {
  display: block;
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

.tariff-price-board-grid {
  display: grid;
  gap: 10px;
}

.tariff-price-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.15fr) repeat(3, minmax(95px, 0.85fr));
  gap: 10px;
  align-items: stretch;
}

.tariff-price-row--head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tariff-price-plan,
.tariff-price-cell {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  background: rgba(255, 255, 255, 0.032);
}

.tariff-price-plan strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 16px;
}

.tariff-price-plan span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.tariff-price-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-height: 72px;
}

.tariff-price-cell strong {
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.tariff-price-cell span {
  color: var(--muted);
  font-size: 12px;
}

.tariff-price-cell--premium {
  border-color: rgba(255, 36, 61, 0.28);
  background: rgba(255, 36, 61, 0.075);
}

.tariff-price-tag {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 36, 61, 0.24);
  background: rgba(255, 36, 61, 0.08);
  color: rgba(255, 225, 230, 0.82);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tariff-price-loading {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
}

@media (max-width: 760px) {
  .tariff-price-board-head {
    flex-direction: column;
  }

  .tariff-price-highlights {
    grid-template-columns: 1fr;
  }

  .tariff-price-row,
  .tariff-price-row--head {
    grid-template-columns: 1fr;
  }

  .tariff-price-row--head {
    display: none;
  }

  .tariff-price-plan {
    margin-top: 4px;
  }

  .tariff-price-cell {
    min-height: auto;
  }
}

/* Tariffs CTA */
.tariff-info-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 36, 61, 0.18);
  border-radius: 22px;
  background:
          radial-gradient(circle at 12% 20%, rgba(255, 36, 61, 0.14), transparent 18rem),
          rgba(255, 255, 255, 0.035);
}

.tariff-info-action strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 18px;
}

.tariff-info-action span {
  display: block;
  max-width: 560px;
  color: var(--muted);
  line-height: 1.45;
}

.tariff-info-cta {
  flex: 0 0 auto;
  min-width: 210px;
  text-align: center;
}

/* Hidden on desktop, useful on mobile */
.tariff-mobile-summary {
  display: none;
}

@media (max-width: 640px) {
  body[data-page="tariffs"] .page-hero {
    padding-top: 34px;
    padding-bottom: 20px;
    text-align: center;
  }

  body[data-page="tariffs"] .page-hero h1 {
    font-size: clamp(34px, 11vw, 52px);
    line-height: 0.98;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }

  body[data-page="tariffs"] .page-hero p {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
    line-height: 1.45;
  }

  body[data-page="tariffs"] .tariffs-info-card {
    padding: 18px;
    border-radius: 28px;
  }

  body[data-page="tariffs"] .tariffs-info-head {
    margin-bottom: 16px;
    padding-bottom: 14px;
    text-align: center;
  }

  body[data-page="tariffs"] .tariffs-info-head h2 {
    font-size: 28px;
  }

  body[data-page="tariffs"] .tariffs-info-head p {
    display: none;
  }

  body[data-page="tariffs"] .tariff-mobile-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
  }

  body[data-page="tariffs"] .tariff-mobile-summary span {
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 235, 239, 0.86);
    font-size: 12px;
    font-weight: 800;
  }

  body[data-page="tariffs"] .tariff-summary-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body[data-page="tariffs"] .tariff-summary-card {
    padding: 18px;
    border-radius: 24px;
  }

  body[data-page="tariffs"] .tariff-summary-card h3 {
    font-size: 22px;
  }

  body[data-page="tariffs"] .tariff-summary-card p {
    display: none;
  }

  body[data-page="tariffs"] .tariff-info-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  body[data-page="tariffs"] .tariff-info-list li {
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 36, 61, 0.17);
    background: rgba(255, 36, 61, 0.065);
    color: rgba(255, 235, 239, 0.86);
    font-size: 12px;
    line-height: 1.25;
  }

  body[data-page="tariffs"] .tariff-info-list li::before {
    display: none;
  }

  body[data-page="tariffs"] .tariff-info-list li:nth-child(n+4) {
    display: none;
  }

  body[data-page="tariffs"] .tariff-price-board {
    margin-top: 14px;
    padding: 16px;
    border-radius: 26px;
  }

  body[data-page="tariffs"] .tariff-price-board-head {
    display: block;
    text-align: center;
    margin-bottom: 14px;
    padding-bottom: 14px;
  }

  body[data-page="tariffs"] .tariff-price-board-head h3 {
    font-size: 26px;
  }

  body[data-page="tariffs"] .tariff-price-board-head p {
    display: none;
  }

  body[data-page="tariffs"] .tariff-price-highlights {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  body[data-page="tariffs"] .tariff-price-highlights div {
    text-align: center;
    padding: 14px 10px;
    border-radius: 20px;
  }

  body[data-page="tariffs"] .tariff-price-highlights span {
    font-size: 12px;
  }

  body[data-page="tariffs"] .tariff-price-highlights strong {
    font-size: 28px;
  }

  body[data-page="tariffs"] .tariff-price-row--head {
    display: none;
  }

  body[data-page="tariffs"] .tariff-price-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 24px;
    background:
            radial-gradient(circle at 85% 5%, rgba(255, 36, 61, 0.13), transparent 12rem),
            rgba(255, 255, 255, 0.025);
  }

  body[data-page="tariffs"] .tariff-price-plan {
    grid-column: 1 / -1;
    text-align: center;
    padding: 0 0 8px;
    border: 0;
    background: transparent;
  }

  body[data-page="tariffs"] .tariff-price-plan strong {
    font-size: 18px;
  }

  body[data-page="tariffs"] .tariff-price-plan span {
    font-size: 12px;
  }

  body[data-page="tariffs"] .tariff-price-cell {
    min-height: 82px;
    align-items: center;
    text-align: center;
    padding: 12px 8px;
    border-radius: 18px;
  }

  body[data-page="tariffs"] .tariff-price-cell strong {
    font-size: 22px;
  }

  body[data-page="tariffs"] .tariff-price-cell span {
    font-size: 11px;
  }

  body[data-page="tariffs"] .tariff-price-tag {
    margin-left: auto;
    margin-right: auto;
    font-size: 9px;
  }

  body[data-page="tariffs"] .tariff-conditions-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
  }

  body[data-page="tariffs"] .tariff-condition-item {
    padding: 13px 10px;
    text-align: center;
    border-radius: 18px;
  }

  body[data-page="tariffs"] .tariff-condition-item strong {
    font-size: 15px;
  }

  body[data-page="tariffs"] .tariff-condition-item span {
    font-size: 11px;
  }

  body[data-page="tariffs"] .tariff-flow-strip {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
    border-radius: 22px;
  }

  body[data-page="tariffs"] .tariff-flow-strip div {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 7px;
    padding: 10px 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
  }

  body[data-page="tariffs"] .tariff-flow-strip b {
    width: 30px;
    height: 30px;
    border-radius: 11px;
  }

  body[data-page="tariffs"] .tariff-flow-strip span {
    font-size: 11px;
  }

  body[data-page="tariffs"] .tariff-info-action {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    margin-top: 14px;
    padding: 16px;
    border-radius: 24px;
  }

  body[data-page="tariffs"] .tariff-info-action span {
    display: none;
  }

  body[data-page="tariffs"] .tariff-info-cta {
    width: 100%;
    min-width: 0;
  }

  body[data-page="tariffs"] .grid-3 .feature-card p {
    display: none;
  }
}

@media (max-width: 640px) {
  body[data-page="tariffs"] .tariff-price-tag {
    font-size: 0;
  }

  body[data-page="tariffs"] .tariff-price-tag::after {
    font-size: 8px;
    line-height: 1;
  }

  body[data-page="tariffs"] .tariff-price-cell:nth-child(3) .tariff-price-tag::after {
    content: "ТОП";
  }

  body[data-page="tariffs"] .tariff-price-cell:nth-child(4) .tariff-price-tag::after {
    content: "ВЫГОДНО";
  }
}

/* Mobile tariff buy buttons */
.tariff-mobile-buy {
  display: none;
}

@media (max-width: 640px) {
  body[data-page="tariffs"] .tariff-mobile-buy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-top: 16px;
    padding: 14px 16px;

    border-radius: 18px;
    border: 1px solid rgba(255, 36, 61, 0.36);
    background: linear-gradient(135deg, rgba(255, 36, 61, 0.95), rgba(165, 0, 28, 0.95));
    color: #fff;
    text-decoration: none;

    box-shadow:
            0 14px 36px rgba(255, 36, 61, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }

  body[data-page="tariffs"] .tariff-mobile-buy span {
    font-size: 14px;
    font-weight: 900;
    line-height: 1.15;
  }

  body[data-page="tariffs"] .tariff-mobile-buy strong {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
  }

  body[data-page="tariffs"] .tariff-mobile-buy:active {
    transform: translateY(1px);
  }

  body[data-page="tariffs"] .tariff-mobile-buy--premium {
    border-color: rgba(255, 255, 255, 0.18);
    background:
            radial-gradient(circle at 90% 0%, rgba(255, 255, 255, 0.16), transparent 8rem),
            linear-gradient(135deg, rgba(255, 36, 61, 1), rgba(115, 0, 22, 0.96));
  }
}