/* XVPN site — Akenai-style base (design tokens) */

:root {
  --site-font-sans: Manrope, system-ui, -apple-system, sans-serif;
  --site-font-headings: "Space Grotesk", system-ui, sans-serif;
  --site-container-max: 64rem;
  --site-radius: 0.5rem;
  --site-radius-lg: 1rem;
  --site-space: 1rem;
  --site-space-lg: 1.5rem;
  --site-space-xl: 2rem;
  /* Dark (Akenai) */
  --site-bg-dark: #15161a;
  --site-text-dark: #f0f0f2;
  --site-dimmed-dark: #8a8a94;
  --site-border-dark: rgba(255, 255, 255, 0.08);
  --site-accent: #228be6;
  --site-accent-hover: #1c7ed6;
  --site-accent-light: rgba(34, 139, 230, 0.15);
  /* Light */
  --site-bg-light: #f6f7f9;
  --site-text-light: #1a1a1a;
  --site-dimmed-light: #45454d;
  --site-border-light: rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--site-font-sans);
  overflow-x: hidden;
  scroll-behavior: smooth;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#site-app {
  overflow-x: hidden;
  max-width: 100vw;
}

.ui-title,
.page-title,
.card-title,
h1, h2, h3 {
  font-family: var(--site-font-headings);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.dark .ui-title,
.luxury-dark .ui-title {
  color: #f0f0f2;
}

.luxury-light .ui-title {
  color: #0f0f12;
}

.ui-subtitle {
  color: #6b6b76;
  letter-spacing: 0.01em;
}

.dark .ui-subtitle,
.luxury-dark .ui-subtitle {
  color: #8a8a94;
}

.luxury-light .ui-subtitle {
  color: #45454d;
}

.ui-card {
  border-radius: var(--site-radius-lg);
  border: 1px solid var(--site-border-dark);
  margin-bottom: var(--site-space);
  background: rgba(21, 22, 26, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.2s ease;
}

.ui-card:hover {
  border-color: rgba(34, 139, 230, 0.28);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(34, 139, 230, 0.08), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  transform: translateY(-2px);
}

.luxury-light .ui-card {
  border-color: var(--site-border-light);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.luxury-light .ui-card:hover {
  border-color: rgba(34, 139, 230, 0.35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(34, 139, 230, 0.1), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transform: translateY(-2px);
}

.ui-btn {
  border-radius: 0.875rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ui-btn-primary {
  background: var(--site-accent);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(34, 139, 230, 0.3);
}

.ui-btn-primary:hover {
  transform: translateY(-2px);
  background: var(--site-accent-hover);
  box-shadow: 0 6px 16px rgba(34, 139, 230, 0.4);
}

.ui-btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--site-accent-light), 0 2px 8px rgba(34, 139, 230, 0.3);
}

.ui-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8e8ec;
  background: rgba(255, 255, 255, 0.04);
}

.ui-btn-secondary:hover {
  border-color: var(--site-accent);
  background: var(--site-accent-light);
  color: var(--site-accent);
}

.ui-btn-secondary:focus-visible {
  outline: none;
  border-color: var(--site-accent);
  box-shadow: 0 0 0 3px var(--site-accent-light);
}

.luxury-light .ui-btn-secondary {
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--site-text-light);
  background: rgba(0, 0, 0, 0.03);
}

.luxury-light .ui-btn-secondary:hover {
  border-color: var(--site-accent);
  background: var(--site-accent-light);
  color: var(--site-accent-hover);
}

.ui-input {
  border-radius: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #f0f0f2;
  padding: 0.75rem 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ui-input:focus,
.ui-input:focus-visible {
  outline: none;
  border-color: var(--site-accent);
  box-shadow: 0 0 0 3px var(--site-accent-light);
}

.luxury-light .ui-input {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: #0a0a0b;
}

.luxury-light .ui-input:focus {
  border-color: var(--site-accent);
  box-shadow: 0 0 0 3px var(--site-accent-light);
}

.method-dropdown {
  position: relative;
  width: 100%;
  z-index: 5;
}

.method-dropdown.is-open {
  z-index: 30;
}

.method-dropdown__trigger {
  width: 100%;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #f0f0f2;
  padding: 0.625rem 2.25rem 0.625rem 0.875rem;
  text-align: left;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.method-dropdown__trigger:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.method-dropdown.is-open .method-dropdown__trigger,
.method-dropdown__trigger:focus-visible {
  outline: none;
  border-color: var(--site-accent);
  box-shadow: 0 0 0 3px var(--site-accent-light);
}

.method-dropdown__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.method-dropdown__chevron {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  width: 0.9rem;
  height: 0.9rem;
  margin-top: -0.45rem;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.method-dropdown__chevron::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  clip-path: polygon(50% 70%, 10% 30%, 20% 20%, 50% 50%, 80% 20%, 90% 30%);
  opacity: 0.75;
}

.method-dropdown.is-open .method-dropdown__chevron {
  transform: rotate(180deg);
}

.method-dropdown__menu {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 0.4rem);
  border-radius: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #171920;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  padding: 0.35rem;
  display: none;
  max-height: min(18rem, calc(100vh - 2rem));
  overflow-y: auto;
}

.method-dropdown.is-open .method-dropdown__menu {
  display: block;
}

.method-dropdown.method-dropdown--up .method-dropdown__menu {
  top: auto;
  bottom: calc(100% + 0.4rem);
}

.method-dropdown__option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: inherit;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
}

.method-dropdown__option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.method-dropdown__option.is-selected {
  background: rgba(34, 139, 230, 0.2);
  color: #d9ecff;
}

.luxury-light .method-dropdown__trigger {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: #0a0a0b;
}

.luxury-light .method-dropdown__trigger:hover {
  border-color: rgba(0, 0, 0, 0.22);
}

.luxury-light .method-dropdown__menu {
  border-color: rgba(0, 0, 0, 0.12);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.15);
}

.luxury-light .method-dropdown__option:hover {
  background: rgba(0, 0, 0, 0.05);
}

.luxury-light .method-dropdown__option.is-selected {
  background: rgba(34, 139, 230, 0.14);
  color: #0a3b66;
}

.seg-btn {
  border-radius: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #e8e8ec;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.seg-btn--plan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.plan-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}

.seg-btn:hover {
  border-color: var(--site-accent);
  background: var(--site-accent-light);
  color: var(--site-accent);
}

.seg-btn-active {
  border-color: var(--site-accent) !important;
  background: var(--site-accent-light) !important;
  color: var(--site-accent) !important;
}

.luxury-light .seg-btn {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.03);
  color: var(--site-text-light);
}

.luxury-light .seg-btn:hover {
  border-color: var(--site-accent);
  background: var(--site-accent-light);
}

.luxury-light .seg-btn-active {
  border-color: var(--site-accent) !important;
  background: var(--site-accent-light) !important;
  color: var(--site-accent-hover) !important;
}

.hero-glow {
  background: radial-gradient(ellipse 90% 60% at 50% -15%, rgba(34, 139, 230, 0.12), transparent 55%),
              radial-gradient(ellipse 70% 50% at 85% 15%, rgba(34, 139, 230, 0.06), transparent 50%),
              radial-gradient(ellipse 50% 40% at 15% 30%, rgba(34, 139, 230, 0.04), transparent 45%);
  animation: heroGlow 12s ease-in-out infinite;
}

.luxury-light .hero-glow {
  background: radial-gradient(ellipse 90% 60% at 50% -15%, rgba(34, 139, 230, 0.08), transparent 55%),
              radial-gradient(ellipse 70% 50% at 85% 15%, rgba(34, 139, 230, 0.05), transparent 50%);
  animation: heroGlow 14s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.88;
  }
}

.header-glass {
  background: rgba(21, 22, 26, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--site-border-dark);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.luxury-light .header-glass {
  background: rgba(246, 247, 249, 0.9);
  border-bottom-color: var(--site-border-light);
}

.link-luxury:hover {
  color: var(--site-accent);
}

.link-luxury:focus-visible {
  outline: none;
  color: var(--site-accent);
  border-radius: 4px;
  box-shadow: 0 0 0 2px var(--site-accent-light);
}

.luxury-light .link-luxury:hover {
  color: var(--site-accent-hover);
}

.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}

.luxury-dark {
  background-color: var(--site-bg-dark);
  color: var(--site-text-dark);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(34, 139, 230, 0.03) 0%, transparent 50%);
}

.luxury-light {
  background-color: var(--site-bg-light);
  color: var(--site-text-light);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(34, 139, 230, 0.04) 0%, transparent 45%);
}

/* Светлая тема: переопределяем утилиты Tailwind и общий текст для читаемости */
.luxury-light .text-luxury-platinum,
.luxury-light [class*="text-luxury-platinum"] {
  color: #1a1a20 !important;
}

.luxury-light .text-luxury-muted,
.luxury-light [class*="text-luxury-muted"] {
  color: #505059 !important;
}

.luxury-light main,
.luxury-light main * {
  color: inherit;
}

.luxury-light header a,
.luxury-light header button {
  color: #1a1a20;
}

.luxury-light header a:hover,
.luxury-light header button:hover {
  color: var(--site-accent-hover);
}

.luxury-light footer a {
  color: #505059;
}

.luxury-light footer a:hover {
  color: var(--site-accent-hover);
}

/* ========== Layout (вместо Tailwind) ========== */

.site-container {
  max-width: var(--site-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 767px) {
  .site-container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

/* --- Nav (Akenai-style) --- */
.nav-shell {
  border-bottom: 1px solid var(--site-border-dark);
}

.luxury-light .nav-shell {
  border-bottom-color: var(--site-border-light);
}

.site-header-inner.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--site-space);
  padding-top: 1rem;
  padding-bottom: 1rem;
  flex-wrap: wrap;
}

.nav-brand {
  font-family: var(--site-font-headings);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
  color: inherit;
}

.nav-links {
  gap: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-close {
  display: none;
}

@media (min-width: 768px) {
  .site-nav.nav-links {
    display: flex;
  }

  .nav-close {
    display: none !important;
  }

  .nav-actions-mobile {
    display: none !important;
  }
}

.nav-link {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  opacity: 1;
  color: var(--site-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-nav {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 2.75rem;
  border-radius: 0.5rem;
  border-color: rgba(255, 255, 255, 0.15);
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-nav:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}

.luxury-light .btn-nav {
  border-color: rgba(0, 0, 0, 0.15);
  background: transparent;
}

.luxury-light .btn-nav:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.25);
}

.nav-settings-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  min-height: 2.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.nav-settings-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  color: inherit;
}

.luxury-light .nav-settings-link {
  border-color: rgba(0, 0, 0, 0.15);
}

.luxury-light .nav-settings-link:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.25);
}

.nav-icon {
  display: block;
  flex-shrink: 0;
}

/* Theme toggle: one button, sun/moon icon by current theme */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
}
.theme-toggle-btn .theme-icon {
  display: none;
  align-items: center;
  justify-content: center;
}
.luxury-light .theme-icon-sun,
.luxury-dark .theme-icon-moon {
  display: inline-flex !important;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.header-glass.nav-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  width: 100%;
}

/* Выравниваем ширину хедера с основным контентом ниже (.site-main = 72rem) */
.header-glass .site-container {
  max-width: 72rem;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #e8e8ec;
  transition: color 0.3s ease;
}

.luxury-light .site-logo {
  color: #1a1a20;
}

.site-nav {
  display: none;
  color: var(--site-dimmed-dark);
}

.luxury-light .site-nav {
  color: var(--site-dimmed-light);
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-main {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 1.5rem;
  padding-top: 5.5rem; /* место под фиксированный header-glass */
}

@media (min-width: 768px) {
  .site-main {
    padding-top: 5.5rem;
    padding-bottom: 4rem;
  }
}

/* Hero (Akenai-style) */
.hero-section.hero {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  min-height: auto;
}

.hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--site-space);
}

.hero-brand-block {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-self: flex-start;
}

.brand-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--site-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.brand-avatar:has(img) .brand-avatar-initial {
  display: none;
}

.brand-avatar-initial {
  font-family: var(--site-font-headings);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
}

.brand-text {
  min-width: 0;
}

.brand-name {
  font-family: var(--site-font-headings);
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.luxury-dark .brand-name {
  color: var(--site-text-dark);
}

.luxury-light .brand-name {
  color: var(--site-text-light);
}

.brand-subtitle {
  font-size: 0.8125rem;
  margin: 0.25rem 0 0 0;
  color: var(--site-dimmed-dark);
}

.luxury-light .brand-subtitle {
  color: var(--site-dimmed-light);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 9999px;
  background: var(--site-accent-light);
  color: var(--site-accent);
  border: 1px solid transparent;
}

.luxury-light .hero-badge {
  background: var(--site-accent-light);
  color: var(--site-accent-hover);
}

.hero-title {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 0;
}

.hero-title span {
  color: var(--site-accent);
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 4rem;
  }
}

.hero-subtitle {
  font-size: 1.0625rem;
  max-width: 32rem;
  margin-bottom: 0;
  line-height: 1.6;
  color: var(--site-dimmed-dark);
}

.luxury-light .hero-subtitle {
  color: var(--site-dimmed-light);
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.125rem;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.hero-card {
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: block;
  text-align: left;
}

.hero-card--link:hover {
  border-color: rgba(34, 139, 230, 0.35);
}

@media (min-width: 768px) {
  .hero-card {
    padding: 2rem;
  }
}

.hero-card .hero-brand-block {
  margin-bottom: 1rem;
}

.hero-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}
.hero-card-subtitle {
  margin-top: 0.5rem;
  margin-bottom: 0;
}
.hero-card-list {
  margin-bottom: 1rem;
}

.hero-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.hero-chip {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--site-radius);
  background: var(--site-border-dark);
  color: var(--site-dimmed-dark);
}

.luxury-light .hero-chip {
  background: rgba(0, 0, 0, 0.06);
  color: var(--site-dimmed-light);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  color: #e8e8ec;
}

.luxury-light .card-title {
  color: #1a1a20;
}

.list-spaced {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1rem;
}

.list-item-with-dot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.list-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background-color: var(--site-accent);
  flex-shrink: 0;
}

/* Sections */
.section-plans {
  margin-top: 5rem;
}

@media (min-width: 768px) {
  .section-plans {
    margin-top: 7rem;
  }
}

.section-title {
  font-size: 1.875rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.page-title {
  font-size: 2.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .page-title {
    font-size: 3rem;
  }
}

.pricing-card {
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .pricing-card {
    padding: 2rem;
  }
}

.pricing-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: #e8e8ec;
}

.luxury-light .pricing-card__title {
  color: #1a1a20;
}

.pricing-card__price {
  font-size: 2.25rem;
  font-weight: 700;
  margin-top: 0.25rem;
  color: var(--site-accent);
}

.pricing-card__meta {
  font-size: 0.875rem;
  margin-top: 0.25rem;
  color: #8a8a94;
}

.luxury-light .pricing-card__meta {
  color: #505059;
}

.pricing-card__list {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: #8a8a94;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.luxury-light .pricing-card__list {
  color: #505059;
}

.pricing-card__cta {
  margin-top: 1.5rem;
  display: inline-block;
}

.pricing-error {
  font-size: 0.875rem;
  color: #ef4444;
}

.pricing-grid,
.grid-4 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .pricing-grid,
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.grid-2 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.section-space-lg {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.why-choose-section {
  padding-top: 2rem;
}

.why-choose-title {
  margin-bottom: 0.5rem;
}

.why-choose-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 992px) {
  .why-choose-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.why-choose-card {
  padding: 1.25rem;
}

.why-choose-card__title {
  font-family: var(--site-font-headings);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.luxury-dark .why-choose-card__title {
  color: var(--site-text-dark);
}

.luxury-light .why-choose-card__title {
  color: var(--site-text-light);
}

.why-choose-card__desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.page-intro {
  font-size: 1.125rem;
  max-width: 42rem;
}

.download-card {
  display: block;
  padding: 2rem;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: #e8e8ec;
  text-decoration: none;
}

.luxury-light .download-card {
  color: #1a1a20;
}

/* Download page — как в миниаппе: переключатель платформ, иконки приложений, модалка по центру */
.download-page .download-steps {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
}

.download-step__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e8e8ec;
  margin: 0 0 0.5rem 0;
}

.luxury-light .download-step__title {
  color: #1a1a20;
}

.download-step__note {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  opacity: 0.9;
}

/* Переключатель платформ в стиле сайта */
.download-platform-toggle {
  position: relative;
  width: 100%;
  height: 50px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--site-border-dark);
  border-radius: var(--site-radius-lg);
  padding: 6px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.luxury-light .download-platform-toggle {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--site-border-light);
}

.download-platform-toggle .toggle-switch-amount__bg {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: calc(var(--site-radius-lg) - 2px);
}

.download-platform-toggle .toggle-switch-amount__indicator {
  position: absolute;
  height: calc(100% - 12px);
  top: 6px;
  background: var(--site-accent);
  border-radius: var(--site-radius);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  box-shadow: 0 2px 8px rgba(34, 139, 230, 0.25);
}

.luxury-light .download-platform-toggle .toggle-switch-amount__indicator {
  box-shadow: 0 2px 8px rgba(34, 139, 230, 0.2);
}

.download-platform-toggle .toggle-switch-amount__btn {
  flex: 1;
  position: relative;
  z-index: 2;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--site-dimmed-dark);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--site-radius);
  transition: color 0.2s, background 0.2s;
  padding: 0;
  min-width: 0;
  white-space: nowrap;
}

.luxury-light .download-platform-toggle .toggle-switch-amount__btn {
  color: var(--site-dimmed-light);
}

.download-platform-toggle .toggle-switch-amount__btn:hover:not(.toggle-switch-amount__btn--active) {
  color: var(--site-text-dark);
}

.luxury-light .download-platform-toggle .toggle-switch-amount__btn:hover:not(.toggle-switch-amount__btn--active) {
  color: var(--site-text-light);
}

.download-platform-toggle .toggle-switch-amount__btn--active {
  color: #fff;
  pointer-events: none;
}

.luxury-light .download-platform-toggle .toggle-switch-amount__btn--active {
  color: #fff;
}

@media (max-width: 480px) {
  .download-platform-toggle { height: 44px; padding: 5px; }
  .download-platform-toggle .toggle-switch-amount__indicator { top: 5px; height: calc(100% - 10px); }
  .download-platform-toggle .toggle-switch-amount__btn { font-size: 11px; }
}

/* Сетка иконок приложений (как в миниаппе) */
.download-platform-icons {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 8px 0;
}

.download-platform-icons.vpn_app_icons--active {
  display: grid;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.download-page .vpn-app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 24px;
  position: relative;
  min-height: 90px;
  justify-content: flex-start;
  border: none;
  background: transparent;
  color: #e8e8ec;
}

.luxury-light .download-page .vpn-app-icon {
  color: #1a1a20;
}

.download-page .vpn-app-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.luxury-light .download-page .vpn-app-icon:hover {
  background: rgba(0, 0, 0, 0.06);
}

.download-page .vpn-app-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  z-index: 2;
  white-space: nowrap;
}

.download-page .vpn-app-badge--recommended {
  background: linear-gradient(135deg, #4CAF50, #66BB6A);
  color: #fff;
}

.download-page .vpn-app-badge--alternative {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
}

.luxury-light .download-page .vpn-app-badge--alternative {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.7);
}

.download-page .vpn-app-badge--pro {
  background: linear-gradient(135deg, #9C27B0, #BA68C8);
  color: #fff;
}

.download-page .vpn-app-icon__image {
  width: 65px;
  height: 65px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.luxury-light .download-page .vpn-app-icon__image {
  border-color: rgba(0, 0, 0, 0.1);
}

.download-page .vpn-app-icon__name {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 480px) {
  .download-platform-icons { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .download-page .vpn-app-icon__image { width: 50px; height: 50px; }
  .download-page .vpn-app-icon__name { font-size: 11px; }
}

/* Модальное окно по центру (вместо bottom sheet) */
.download-modal {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  min-width: 100vw;
  min-height: 100vh;
  z-index: 10050;
  display: none;
  pointer-events: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.download-modal.is-open {
  display: flex;
  pointer-events: auto;
}

.download-modal__backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  min-width: 100vw;
  min-height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
}

.download-modal.is-open .download-modal__backdrop {
  animation: downloadModalBackdropIn 0.18s ease-out forwards;
}

@keyframes downloadModalBackdropIn {
  to { opacity: 1; }
}

.download-modal__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: #1c1e24;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: scale(0.95);
  opacity: 0;
}

.luxury-light .download-modal__box {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

.download-modal.is-open .download-modal__box {
  animation: downloadModalBoxIn 0.22s ease-out forwards;
}

@keyframes downloadModalBoxIn {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.download-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #e8e8ec;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.luxury-light .download-modal__close {
  background: rgba(0, 0, 0, 0.06);
  color: #1a1a20;
}

.download-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.luxury-light .download-modal__close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.download-modal__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-right: 40px;
}

.download-modal__img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.luxury-light .download-modal__img {
  border-color: rgba(0, 0, 0, 0.1);
}

.download-modal__header-text {
  flex: 1;
  min-width: 0;
}

.download-modal__name {
  margin: 0 0 4px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #e8e8ec;
}

.luxury-light .download-modal__name {
  color: #1a1a20;
}

.download-modal__badge {
  display: inline-block;
  margin-bottom: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.download-modal__badge.badge--recommended {
  background: linear-gradient(135deg, #4CAF50, #66BB6A);
  color: #fff;
}

.download-modal__badge.badge--alternative {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.luxury-light .download-modal__badge.badge--alternative {
  background: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.7);
}

.download-modal__badge.badge--pro {
  background: linear-gradient(135deg, #9C27B0, #BA68C8);
  color: #fff;
}

.download-modal__platform {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.luxury-light .download-modal__platform {
  color: rgba(0, 0, 0, 0.5);
}

.download-modal__desc {
  margin: 0 0 20px 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}

.luxury-light .download-modal__desc {
  color: rgba(0, 0, 0, 0.75);
}

.download-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-modal__actions .ui-btn {
  width: 100%;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.download-step__list {
  margin: 0;
  padding-left: 1.25rem;
}

.download-step__list li {
  margin-bottom: 0.25rem;
}

.download-step3-platforms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .download-step3-platforms {
    grid-template-columns: repeat(3, 1fr);
  }
}

.download-step3-block__title {
  font-size: 1rem;
  font-weight: 600;
  color: #e8e8ec;
  margin: 0 0 0.5rem 0;
}

.luxury-light .download-step3-block__title {
  color: #1a1a20;
}

.download-step3-block__list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
}

.download-step3-block__list li {
  margin-bottom: 0.35rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: #e8e8ec;
}

.luxury-light .faq-item summary {
  color: #1a1a20;
}

.faq-item {
  padding: 1.5rem;
}

.faq-item p {
  margin-top: 1rem;
  font-size: 1rem;
}

.form-section-card {
  padding: 2rem;
}

.faq-item a {
  color: var(--site-accent);
}

.form-section {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.form-section .ui-title {
  margin-bottom: 1rem;
}

.form-section .ui-subtitle {
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.login-divider {
  margin: 1.25rem 0 0.75rem;
  text-align: center;
  opacity: 0.85;
}

.login-google-wrap {
  margin-top: 0.5rem;
}

.login-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  box-sizing: border-box;
}

.google-linked-email {
  font-size: 0.9375rem;
  opacity: 0.9;
}

.settings-tg-link-wrap {
  margin-top: 0.5rem;
}

.login-status {
  margin-top: 1.5rem;
  font-size: 1rem;
}

.login-status--error {
  color: var(--site-accent);
  font-weight: 500;
}

.legal-section {
  max-width: 48rem;
}

.legal-section .ui-title {
  margin-bottom: 1.5rem;
}

.legal-section .ui-subtitle {
  font-size: 1.125rem;
  line-height: 1.625;
}

.pricing-page .page-title {
  margin-bottom: 1rem;
}

.pricing-page-intro {
  margin-bottom: 1.5rem;
  max-width: 42rem;
}

.pricing-page-cta {
  display: inline-block;
}

.pricing-cards-subtitle {
  margin-bottom: 1.5rem;
}

.pricing-trial-banner {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .pricing-trial-banner {
    padding: 2rem;
  }
}

.pricing-cards-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .pricing-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 992px) {
  .pricing-cards-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.pricing-card__desc {
  margin: 0.5rem 0 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.pricing-card__plan {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem 0;
  color: var(--site-dimmed-dark);
}

.luxury-light .pricing-card__plan {
  color: var(--site-dimmed-light);
}

.pricing-card__period {
  font-family: var(--site-font-headings);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.luxury-dark .pricing-card__period {
  color: var(--site-text-dark);
}

.luxury-light .pricing-card__period {
  color: var(--site-text-light);
}

.pricing-card__price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.pricing-card__price-row .pricing-card__price {
  margin-top: 0;
}

.pricing-card__price-row .pricing-card__discount {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--site-accent);
  margin: 0;
  line-height: 1;
}

.pricing-card__feature {
  margin: 0.5rem 0 0 0;
  font-size: 0.875rem;
}

.pricing-card__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--site-accent);
  margin-bottom: 0.5rem;
}

.pricing-card--popular {
  border-color: rgba(34, 139, 230, 0.35);
  box-shadow: 0 0 0 1px rgba(34, 139, 230, 0.2);
}

.pricing-cards-cta {
  margin-top: 0.5rem;
}

.pricing-login-label {
  margin-bottom: 0.75rem;
}

.pricing-login-widget {
  display: flex;
  justify-content: flex-start;
  min-height: 48px;
}

/* Dashboard */
.app-card {
  padding: 1.5rem;
}

/* Секции страницы подписки */
.sub-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary, #1a1a1a);
  margin: 1.75rem 0 0.5rem;
}

.luxury-dark .sub-section-title {
  color: var(--site-text-dark);
}

.luxury-light .sub-section-title {
  color: #1a1a1a;
}

.sub-section-title:first-of-type {
  margin-top: 1rem;
}

.sub-section-title--secondary {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary, #555);
  margin-top: 2rem;
}

.luxury-dark .sub-section-title--secondary {
  color: var(--site-dimmed-dark);
}

.luxury-light .sub-section-title--secondary {
  color: #555;
}

.subscription-form-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sub-form-block {
  margin-top: 0;
}
.sub-form-block + .sub-form-block {
  margin-top: 0;
}

@media (min-width: 768px) {
  .subscription-form-card {
    padding: 2rem;
    gap: 1.5rem;
  }
}

.whitelist-card {
  padding: 0;
}

.balance-block {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.balance-block.balance-block--dropdown-open {
  z-index: 60;
}

.payment-history-card {
  position: relative;
  z-index: 1;
}

.dash-extra-block {
  margin-top: 1rem;
}

.dash-trial-text {
  margin-top: 0.25rem;
}

.sub-promo-block {
  margin-top: 0.5rem;
}

.sub-price-detail .sub-price-rows,
.sub-summary-card .sub-price-rows {
  margin-top: 0.5rem;
}

.sub-summary-card {
  padding: 1.5rem;
}
.sub-payment-block {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color, #e5e5e5);
}
.subscription-page .ui-card.app-card {
  margin-top: 0.5rem;
}
.subscription-page .sub-current-tariff {
  margin-top: 0.5rem;
}
.dash-whitelist-only-card {
  margin-top: 1rem;
}
.subscription-page .btn-buy {
  margin-top: 0.25rem;
}

.tariff-row--total .tariff-value {
  font-size: 1.25rem;
}

.dashboard-cards {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-page .dashboard-cards {
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.dashboard-page .ui-card.app-card,
.dashboard-page .ui-card.dash-extra-block,
.dashboard-page .ui-card.dash-whitelist-only-card {
  margin-bottom: 0.5rem;
}

.dashboard-page .ui-card.app-card {
  margin-top: 0.25rem;
}

.dashboard-page .dash-whitelist-only-card {
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .dashboard-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tariff-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tariff-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.tariff-label {
  font-size: 0.875rem;
  opacity: 0.85;
}

.tariff-value {
  font-weight: 600;
  color: #e8e8ec;
}

.luxury-light .tariff-value {
  color: #1a1a20;
}

.card-label {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.card-value {
  font-size: 1.875rem;
  font-weight: 600;
  color: #e8e8ec;
}

.luxury-light .card-value {
  color: #1a1a20;
}

.card-value--lg {
  font-size: 2rem;
}

.card-action {
  margin-top: 1rem;
}

.field-label {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.input-group {
  display: flex;
  gap: 0.75rem;
}

.input-group .ui-input {
  flex: 1;
  font-size: 0.875rem;
}

.ui-input--topup {
  width: 100%;
}

@media (min-width: 768px) {
  .ui-input--topup {
    width: 14rem;
  }
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .form-row {
    flex-direction: row;
  }
}

.form-hint {
  margin-top: 1rem;
  font-size: 0.875rem;
}

/* История платежей — аккордеон */
.payment-history-accordion {
  display: block;
}

.payment-history-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  margin: 0 0 0.75rem 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  color: #e8e8ec;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.luxury-light .payment-history-accordion__trigger {
  color: #1a1a20;
}

.payment-history-accordion__trigger:hover {
  color: var(--site-accent);
}

.payment-history-accordion__trigger:focus-visible {
  outline: 2px solid var(--site-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.payment-history-accordion__icon {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-left: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.payment-history-accordion__trigger[aria-expanded="false"] .payment-history-accordion__icon {
  transform: rotate(-135deg);
}

.payment-history-accordion__panel {
  max-height: 80vh;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.payment-history-accordion__panel--collapsed {
  max-height: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
}

.payment-history-list {
  margin-top: 0.25rem;
}

.payment-history-list--empty {
  color: var(--site-muted, #888);
  font-size: 0.9375rem;
  padding: 1.25rem 0;
  text-align: center;
}

.payment-history__head,
.payment-history__row {
  display: grid;
  grid-template-columns: 1fr minmax(6rem, auto) minmax(4.5rem, auto);
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.5rem 0;
}

.payment-history__head {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(232, 232, 236, 0.7);
}

.luxury-light .payment-history__head {
  border-bottom-color: rgba(0, 0, 0, 0.1);
  color: rgba(26, 26, 32, 0.65);
}

.payment-history__row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #e8e8ec;
  font-size: 0.9375rem;
}

.payment-history__row:last-child {
  border-bottom: none;
}

.luxury-light .payment-history__row {
  border-bottom-color: rgba(0, 0, 0, 0.06);
  color: #1a1a20;
}

.payment-history__cell--date {
  color: inherit;
  opacity: 0.9;
}

.payment-history__cell--price {
  font-weight: 600;
  color: var(--site-accent);
  text-align: right;
  white-space: nowrap;
}

.luxury-light .payment-history__cell--price {
  color: var(--site-accent);
}

.payment-history__badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  color: #e8e8ec;
}

.luxury-light .payment-history__badge {
  background: rgba(0, 0, 0, 0.06);
  color: #1a1a20;
}

.payment-history__badge--yookassa,
.payment-history__badge--yookassa_subscription {
  background: rgba(34, 139, 230, 0.15);
  color: #6eb8ff;
}

.luxury-light .payment-history__badge--yookassa,
.luxury-light .payment-history__badge--yookassa_subscription {
  background: rgba(34, 139, 230, 0.12);
  color: #1a6bb8;
}

.payment-history__badge--yookassa_topup {
  background: rgba(76, 175, 80, 0.15);
  color: #81c784;
}

.luxury-light .payment-history__badge--yookassa_topup {
  background: rgba(76, 175, 80, 0.12);
  color: #2e7d32;
}

.payment-history__badge--balance {
  background: rgba(156, 39, 176, 0.15);
  color: #ce93d8;
}

.luxury-light .payment-history__badge--balance {
  background: rgba(156, 39, 176, 0.12);
  color: #7b1fa2;
}

/* Subscription form */
.seg-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .seg-group {
    grid-template-columns: repeat(4, 1fr);
  }
}

.seg-group--methods {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .seg-group--methods {
    grid-template-columns: repeat(2, 1fr);
  }
}

.seg-btn--method {
  padding: 0.75rem 1rem;
  text-align: left;
}

.method-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  margin-bottom: 0.25rem;
}

.method-dropdown .method-icon {
  margin-bottom: 0;
  flex: 0 0 1rem;
}

.method-icon svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.method-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
}

.method-desc {
  display: block;
  font-size: 0.75rem;
}

.form-blocks {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-section-gap {
  margin-top: 1.5rem;
}

.action-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.whitelist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.whitelist-title {
  font-weight: 600;
  color: #e8e8ec;
}

.luxury-light .whitelist-title {
  color: #1a1a20;
}

.whitelist-desc {
  font-size: 0.875rem;
  margin-top: 0.125rem;
}

.toggle-track {
  position: relative;
  width: 3.5rem;
  height: 2rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.toggle-thumb {
  position: absolute;
  left: 0.25rem;
  top: 0.25rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: #e8e8ec;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.toggle-thumb--on {
  transform: translateX(1.5rem);
}

.toggle-track--on {
  background: var(--site-accent) !important;
}

.toggle-track--disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.price-display {
  font-size: 2.25rem;
  font-weight: 700;
  margin-top: 0.5rem;
  color: var(--site-accent);
}

.sub-status {
  margin-top: 1rem;
  font-size: 0.875rem;
}

/* Settings */
.settings-section {
  max-width: 42rem;
}

.devices-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.device-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.875rem;
  padding: 0.75rem;
}

.luxury-light .device-item {
  border-color: rgba(0, 0, 0, 0.12);
}

.device-item__main {
  min-width: 0;
}

.device-item__title {
  font-weight: 600;
}

.device-item__meta,
.device-item__hwid {
  font-size: 0.8rem;
  opacity: 0.8;
  word-break: break-word;
}

.settings-subscriptions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.settings-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  border: 1px solid var(--site-border-dark);
  border-radius: 0.875rem;
  padding: 0.75rem 1rem;
}

.luxury-light .settings-sub-row {
  border-color: var(--site-border-light);
}

.settings-sub-row--expired {
  opacity: 0.75;
}

.settings-sub-row__info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}

.settings-sub-row__plan {
  font-weight: 600;
}

.settings-sub-primary-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  background: var(--site-accent-light);
  color: var(--site-accent);
}

.settings-sub-row__until {
  font-size: 0.875rem;
  opacity: 0.85;
}

.settings-sub-row__link {
  display: block;
  width: 100%;
  font-size: 0.8rem;
  line-height: 1.35;
  word-break: break-all;
  opacity: 0.92;
}

.settings-sub-row__action {
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  margin-top: 5rem;
}

.site-footer-inner {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  font-size: 0.875rem;
  color: #6b6b76;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.luxury-light .site-footer-inner {
  color: #505059;
}

.site-footer-inner a {
  color: inherit;
  transition: color 0.3s ease;
}

/* Toast */
.toast {
    display: block;
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 50;
  background: rgba(26, 26, 32, 0.9);
  color: #e8e8ec;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.toast--success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(13, 33, 20, 0.9);
}

.toast.toast--error {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(46, 19, 22, 0.92);
}

.toast.toast--info {
  border-color: rgba(59, 130, 246, 0.35);
}

.toast.hidden {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.luxury-light .toast {
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a20;
  border-color: rgba(0, 0, 0, 0.08);
}

.luxury-light .toast.toast--success {
  background: rgba(240, 253, 244, 0.98);
  border-color: rgba(34, 197, 94, 0.35);
}

.luxury-light .toast.toast--error {
  background: rgba(254, 242, 242, 0.98);
  border-color: rgba(239, 68, 68, 0.35);
}

.luxury-light .toast.toast--info {
  background: rgba(239, 246, 255, 0.98);
  border-color: rgba(59, 130, 246, 0.35);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.6s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-up,
  .hero-glow,
  .luxury-light .hero-glow {
    animation: none;
  }
  .animate-fade-up {
    opacity: 1;
    transform: none;
  }
  .ui-card:hover,
  .luxury-light .ui-card:hover {
    transform: none;
  }
  .ui-btn-primary:hover {
    transform: none;
  }
}

.ref-label {
  color: inherit;
}

.ref-value {
  font-weight: 600;
}

.ref-row {
  margin-bottom: 0.5rem;
}

.ref-row--last {
  margin-bottom: 1rem;
}

/* ========== Адаптивность (мобильные устройства) ========== */

/* Контейнер: меньше отступы на узких экранах */
@media (max-width: 479px) {
  .site-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Кнопки и инпуты: удобная зона нажатия (минимум ~44px) */
.ui-btn,
.seg-btn {
  min-height: 2.75rem;
}

@media (max-width: 767px) {
  .ui-btn {
    min-height: 2.875rem;
    padding: 0.625rem 1rem;
  }

  .site-main {
    padding-top: 5rem;
    padding-bottom: 2rem;
  }

  .hero-section.hero {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }

  .hero-inner {
    gap: 1.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-card {
    padding: 1.25rem;
  }

  .section-plans {
    margin-top: 3rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }

  .page-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .pricing-card {
    padding: 1.25rem;
  }

  .pricing-card__price {
    font-size: 1.875rem;
  }

  .pricing-card__cta {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .download-card {
    padding: 1.5rem;
    font-size: 1rem;
  }

  .dashboard-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .app-card {
    padding: 1.25rem;
  }

  .input-group {
    flex-direction: column;
  }

  .input-group .ui-input {
    min-height: 2.75rem;
    width: 100%;
  }

  .action-row {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .action-row .ui-btn {
    width: 100%;
    justify-content: center;
  }

  .seg-group {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .seg-btn {
    min-height: 2.75rem;
    padding: 0.625rem 0.75rem;
  }

  .subscription-form-card {
    padding: 1.25rem;
  }

  .whitelist-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .site-footer-inner {
    flex-direction: column;
    gap: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .toast {
    left: max(1rem, env(safe-area-inset-left));
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    text-align: center;
  }

  .card-value {
    font-size: 1.5rem;
  }

  .card-value--lg {
    font-size: 1.625rem;
  }

  .price-display {
    font-size: 1.75rem;
  }
}

/* Планшеты: 2 колонки для тарифов */
@media (min-width: 480px) and (max-width: 767px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Кнопка гамбургера: показывать только на мобильных */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}

.luxury-light .nav-toggle {
  border-color: rgba(0, 0, 0, 0.15);
}

.luxury-light .nav-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-toggle__line {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 767px) {
  .site-header-actions.nav-actions {
    order: 1;
    margin-left: auto;
  }

  .nav-toggle {
    display: flex;
    color: #e8e8ec;
    order: 2;
  }

  .luxury-light .nav-toggle {
    color: #1a1a20;
  }

  .site-header-actions .ui-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  .nav-action-desktop {
    display: none !important;
  }

  /* Выдвижная панель навигации */
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10001;
    width: min(85vw, 280px);
    height: 100vh;
    padding: 4.5rem 1.5rem 1.5rem;
    background: rgba(20, 20, 25, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transform: translateX(100%);
    transition: transform 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
  }

  .luxury-light .site-nav {
    background: rgba(255, 255, 255, 0.98);
    border-left-color: rgba(0, 0, 0, 0.08);
  }

  body.nav-open .site-nav {
    transform: translateX(0);
    visibility: visible;
  }

  .site-nav__link {
    display: block;
    padding: 0.875rem 1rem;
    font-size: 1.0625rem;
    border-radius: 0.75rem;
    color: #e8e8ec;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .site-nav__link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--site-accent);
  }

  .luxury-light .site-nav__link {
    color: #1a1a20;
  }

  .luxury-light .site-nav__link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--site-accent-hover);
  }

  .nav-actions-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--site-border-dark);
  }

  .luxury-light .nav-actions-mobile {
    border-top-color: var(--site-border-light);
  }

  .nav-action-mobile-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
  }

  body.nav-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  body.nav-open .header-glass.nav-shell {
    z-index: 10002;
  }

  .nav-close {
    display: flex;
    position: absolute;
    top: 1rem;
    right: 1rem;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    border-radius: var(--site-radius);
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .nav-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--site-accent);
  }

  .luxury-light .nav-close {
    background: rgba(0, 0, 0, 0.06);
  }

  .luxury-light .nav-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--site-accent);
  }
}

@media (min-width: 768px) {
  .nav-overlay {
    display: none !important;
  }
}
