/* site_web — визуальный язык в духе lk.kosmosvpn.ru (Inter, космос, лавандовый акцент) */

:root {
  --site-font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --site-font-headings: "Inter", system-ui, -apple-system, sans-serif;
  --site-container-max: 64rem;
  --site-radius: 0.625rem;
  --site-radius-lg: 1.125rem;
  --site-space: 1rem;
  --site-space-lg: 1.5rem;
  --site-space-xl: 2rem;
  --site-bg-dark: #f5f8ff;
  --site-text-dark: #0c2550;
  --site-dimmed-dark: #4d648b;
  --site-border-dark: rgba(6, 60, 133, 0.2);
  --site-accent: #063c85;
  --site-accent-hover: #0a4ea8;
  --site-accent-light: rgba(6, 60, 133, 0.14);
  --site-cosmos-blue: #063c85;
  --site-cosmos-cyan: #2f76d2;
  --site-cosmos-lilac: #4b87d8;
  --site-bg-light: #f5f8ff;
  --site-text-light: #0c2550;
  --site-dimmed-light: #4d648b;
  --site-border-light: rgba(6, 60, 133, 0.2);
}

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;
}

.u-hidden {
  display: none !important;
}

#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(202, 189, 255, 0.35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 2px 12px rgba(124, 108, 240, 0.12), 0 1px 0 rgba(255, 255, 255, 0.05) 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(124, 108, 240, 0.4);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1), 0 2px 12px rgba(124, 108, 240, 0.12), 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: linear-gradient(120deg, var(--site-cosmos-blue) 0%, var(--site-accent) 45%, #a78bfa 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(54, 153, 255, 0.25), 0 2px 8px rgba(124, 108, 240, 0.2);
}

.ui-btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 8px 28px rgba(54, 153, 255, 0.35), 0 4px 12px rgba(167, 139, 250, 0.25);
}

.ui-btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--site-accent-light), 0 4px 20px rgba(54, 153, 255, 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(124, 108, 240, 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(124, 108, 240, 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 100% 80% at 50% -20%, rgba(0, 69, 255, 0.16), transparent 55%),
              radial-gradient(ellipse 70% 55% at 90% 10%, rgba(47, 227, 203, 0.1), transparent 50%),
              radial-gradient(ellipse 55% 45% at 10% 25%, rgba(235, 57, 243, 0.08), transparent 48%),
              radial-gradient(ellipse 50% 40% at 70% 60%, rgba(202, 189, 255, 0.06), transparent 45%);
  animation: heroGlow 14s ease-in-out infinite;
}

.luxury-light .hero-glow {
  background: radial-gradient(ellipse 100% 80% at 50% -15%, rgba(124, 108, 240, 0.12), transparent 55%),
              radial-gradient(ellipse 70% 50% at 85% 12%, rgba(54, 153, 255, 0.08), transparent 50%),
              radial-gradient(ellipse 50% 40% at 15% 30%, rgba(47, 227, 203, 0.06), transparent 45%);
  animation: heroGlow 16s ease-in-out infinite;
}

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

.header-glass {
  background: rgba(8, 8, 12, 0.78);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--site-border-dark);
  box-shadow: 0 1px 0 rgba(202, 189, 255, 0.06) inset;
}

.luxury-light .header-glass {
  background: rgba(238, 240, 248, 0.88);
  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 120% 70% at 50% -10%, rgba(0, 69, 255, 0.07) 0%, transparent 45%),
    radial-gradient(ellipse 80% 50% at 100% 40%, rgba(202, 189, 255, 0.04) 0%, transparent 42%);
}

.luxury-light {
  background-color: var(--site-bg-light);
  color: var(--site-text-light);
  background-image: radial-gradient(ellipse 100% 60% at 50% 0%, rgba(124, 108, 240, 0.08) 0%, transparent 48%);
}

/* Светлая тема: переопределяем утилиты 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: linear-gradient(135deg, var(--site-cosmos-blue), var(--site-cosmos-cyan));
  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(124, 108, 240, 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-top: 1.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;
  margin-bottom: 1rem;
}

.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;
}

.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(124, 108, 240, 0.25);
}

.luxury-light .download-platform-toggle .toggle-switch-amount__indicator {
  box-shadow: 0 2px 8px rgba(124, 108, 240, 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: stretch;
  justify-content: space-between;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
  border-radius: 14px;
  position: relative;
  min-height: 128px;
}

/* Светлая тема */
.luxury-light .download-page .vpn-app-icon {
  color: #1a1a20;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 2px 12px rgba(0, 0, 0, 0.05);
}

.luxury-light .download-page .vpn-app-icon:hover {
  background: #fff;
  transform: translateY(-1px);
  border-color: rgba(54, 153, 255, 0.35);
  box-shadow: 0 10px 28px rgba(54, 153, 255, 0.12), 0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

/* Тёмная тема (как .ui-card) */
.luxury-dark .download-page .vpn-app-icon {
  color: var(--site-text-dark);
  background: rgba(21, 22, 26, 0.85);
  border: 1px solid var(--site-border-dark);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.luxury-dark .download-page .vpn-app-icon:hover {
  background: rgba(26, 29, 38, 0.92);
  transform: translateY(-1px);
  border-color: rgba(202, 189, 255, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 2px 12px rgba(124, 108, 240, 0.12);
}

.download-page .vpn-app-badge {
  display: none;
}

.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: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  margin: 0;
}

.download-page .vpn-app-icon__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.download-page .vpn-app-icon__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.download-page .vpn-app-icon__name {
  font-size: 1.03rem;
  font-weight: 700;
  text-align: left;
  line-height: 1.2;
  color: #1f2128;
}

.luxury-dark .download-page .vpn-app-icon__name {
  color: #ececf1;
}

.download-page .vpn-app-icon__desc {
  font-size: 0.8rem;
  text-align: left;
  color: #6e7280;
  line-height: 1.2;
}

.luxury-dark .download-page .vpn-app-icon__desc {
  color: #9ca3af;
}

.download-page .vpn-app-icon__cta.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  min-width: 140px;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .download-platform-icons { grid-template-columns: 1fr; gap: 10px; }
  .download-page .vpn-app-icon { min-height: 110px; padding: 12px; }
  .download-page .vpn-app-icon__image { width: 38px; height: 38px; }
  .download-page .vpn-app-icon__name { font-size: 0.98rem; }
  .download-page .vpn-app-icon__cta.ui-btn { width: 100%; min-width: 0; }
}

/* download-platform-all: карточки (как balance card) */
.download-platform-icons--flat {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  gap: 20px;
}

.download-page .vpn-app-icon--card {
  align-items: stretch;
  text-align: left;
  min-height: 0;
  padding: 18px 18px 16px;
}

.download-page .vpn-app-icon--card .card__head {
  display: flex;
  align-items: center;
  margin-bottom: 17px;
  gap: 0;
}

.download-page .vpn-app-icon--card .card__preview {
  width: 54px;
  height: 54px;
  min-width: 54px;
  margin-right: 15px;
  border-radius: 12px;
  object-fit: cover;
}

.luxury-dark .download-page .vpn-app-icon--card .card__preview,
body.dark .download-page .vpn-app-icon--card .card__preview {
  /* SVG с чёрной заливкой (#000) — на тёмном фоне не видны */
  filter: invert(1) brightness(1.08);
}

.luxury-dark .download-modal__img,
body.dark .download-modal__img {
  filter: invert(1) brightness(1.08);
}

.download-page .vpn-app-icon--card .card__head-text {
  min-width: 0;
  flex: 1;
}

.download-page .vpn-app-icon--card .card__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
}

.luxury-light .download-page .vpn-app-icon--card .card__title {
  color: #12131a;
}

.luxury-dark .download-page .vpn-app-icon--card .card__title {
  color: #f0f0f2;
}

.download-page .vpn-app-icon--card .card-device-hint {
  margin-top: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
}

.luxury-light .download-page .vpn-app-icon--card .card-device-hint {
  color: #5c5d6b;
}

.luxury-dark .download-page .vpn-app-icon--card .card-device-hint {
  color: #9ca3af;
}

.download-page .vpn-app-icon--card .card__cta.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  box-sizing: border-box;
}

.download-page .vpn-app-icon--card .card__cta .icon-arrow-right {
  flex-shrink: 0;
  opacity: 0.95;
}

@media (max-width: 480px) {
  .download-platform-icons--flat {
    grid-template-columns: 1fr;
  }

  .download-page .vpn-app-icon--card .card__title {
    font-size: 18px;
  }

  .download-page .vpn-app-icon--card .card__preview {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }
}

/* Модальное окно по центру (вместо bottom sheet) */
.download-modal {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  min-width: 320px;
  z-index: 999;
  display: none;
  pointer-events: none;
  align-items: center;
  justify-content: stretch;
  padding: 20px 10px;
  overflow: auto;
  box-sizing: border-box;
}

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

.download-modal__backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 80%);
  opacity: 0;
}

.luxury-dark .download-modal__backdrop,
body.dark .download-modal__backdrop {
  background: rgba(39, 43, 48, 0.9);
}

.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: 480px;
  max-height: min(92vh, 860px);
  overflow-y: auto;
  overflow-x: hidden;
  background: #fcfcfc;
  border-radius: 20px;
  padding: 26px 24px 24px;
  margin: auto;
  box-shadow: 0 0 14px -4px rgba(0, 0, 0, 0.05), 0 32px 48px -8px rgba(0, 0, 0, 0.1);
  border: none;
  transform: scale(0.95);
  opacity: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.28) transparent;
}

.download-modal__box::-webkit-scrollbar {
  width: 8px;
}

.download-modal__box::-webkit-scrollbar-track {
  background: transparent;
}

.download-modal__box::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.18);
  border-radius: 100px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.download-modal__box::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.32);
}

.luxury-light .download-modal__box {
  background: #fff;
  scrollbar-color: rgba(0, 0, 0, 0.28) transparent;
}

.luxury-dark .download-modal__box,
body.dark .download-modal__box {
  background: #1a1d1f;
  scrollbar-color: rgba(255, 255, 255, 0.32) transparent;
}

.luxury-dark .download-modal__box::-webkit-scrollbar-thumb,
body.dark .download-modal__box::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.22);
}

.luxury-dark .download-modal__box::-webkit-scrollbar-thumb:hover,
body.dark .download-modal__box::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.38);
}

.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: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border: none;
  background: #efefef;
  color: #33383f;
  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: #efefef;
  color: #33383f;
}

.luxury-dark .download-modal__close,
body.dark .download-modal__close {
  background: #272b30;
  color: #fcfcfc;
}

.download-modal__close:hover {
  transform: rotate(90deg);
}

.luxury-light .download-modal__close:hover {
  transform: rotate(90deg);
}

.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;
}

.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-modal-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
}

.download-modal-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.luxury-light .download-modal-step {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.download-modal-step__num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, #5b7cff, #66bb6a);
  color: #fff;
}

.download-modal-step__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.download-modal-step__title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f0f0f4;
}

.luxury-light .download-modal-step__title {
  color: #171821;
}

.download-modal-step__text {
  margin: 0 0 10px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.luxury-light .download-modal-step__text {
  color: rgba(0, 0, 0, 0.72);
}

.download-modal-step__hint {
  margin: 6px 2px 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.luxury-light .download-modal-step__hint {
  color: rgba(0, 0, 0, 0.55);
}

.download-modal-step__code {
  display: block;
  width: 100%;
  overflow-x: auto;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8e8ee;
  font-size: 0.78rem;
  white-space: nowrap;
}

/* Выходит из колонки «текст», чтобы QR был по центру всей карточки шага (не только правой колонки). */
.download-modal-step__qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: calc(100% + 28px + 12px);
  margin-left: calc(-28px - 12px);
  box-sizing: border-box;
}

.download-modal-step__qr {
  display: block;
  width: 160px;
  height: 160px;
  max-width: min(160px, 100%);
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 6px;
  object-fit: contain;
}

.download-modal-step__qr-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  width: 100%;
}

.luxury-light .download-modal-step__qr-label {
  color: rgba(0, 0, 0, 0.62);
}

.download-modal-step .ui-btn {
  width: 100%;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .download-modal {
    padding-top: max(16px, env(safe-area-inset-top, 0px));
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
    padding-left: max(10px, env(safe-area-inset-left, 0px));
    padding-right: max(10px, env(safe-area-inset-right, 0px));
  }

  .download-modal__box {
    max-width: 480px;
    max-height: 94vh;
    padding: 26px 18px 18px;
    border-radius: 16px;
  }

  .download-modal__header {
    gap: 12px;
    margin-bottom: 14px;
    padding-right: 34px;
  }

  .download-modal__img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }

  .download-modal__name {
    font-size: 1.05rem;
  }

  .download-modal-step {
    grid-template-columns: 24px 1fr;
    gap: 10px;
    padding: 14px;
  }

  .download-modal-step__qr-wrap {
    width: calc(100% + 24px + 10px);
    margin-left: calc(-24px - 10px);
  }

  .download-modal-step .ui-btn {
    width: 100%;
    min-width: 0;
  }

  .download-modal-step__num {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
}

.luxury-light .download-modal-step__code {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1c1d25;
}

.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__question {
  font-size: 1.125rem;
  margin: 0;
}

.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-providers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.5rem;
}

.login-google-wrap {
  display: block;
  margin-top: 0;
  width: 100%;
  min-height: 3rem;
  flex-shrink: 0;
}

.login-google-wrap > a,
.login-google-wrap > .ui-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  box-sizing: border-box;
}

.login-google-btn,
.login-yandex-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3rem;
  text-decoration: none;
  box-sizing: border-box;
}

.login-provider-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.login-provider-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.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.page-title {
  margin-top: 1.25rem;
  margin-bottom: 2.5rem;
}

.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-title-compact {
  font-size: 2rem;
}

@media (max-width: 1023px) {
  .ui-title.page-title {
    margin-top: 3.25rem;
  }

  .ui-title.page-title.pricing-title-compact {
    margin-top: 3.25rem;
  }
}

.pricing-page-note {
  margin-bottom: 1.25rem;
  max-width: 42rem;
  line-height: 1.55;
}

.pricing-page-devices {
  margin: -0.25rem 0 1.15rem;
  max-width: 42rem;
  line-height: 1.55;
}

.pricing-page-services {
  margin: -0.45rem 0 1.15rem;
  max-width: 50rem;
  line-height: 1.55;
}

.subscription-page > .pricing-page-devices {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.pricing-plan-block {
  margin-top: 2rem;
}

.pricing-plan-block:first-of-type {
  margin-top: 0.75rem;
}

.pricing-plan-block__title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem 0;
}

.pricing-plan-block__intro {
  margin: 0 0 1rem 0;
  max-width: 42rem;
  line-height: 1.5;
}

.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-cards-grid .pricing-card__list--compact {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.45;
}

.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(124, 108, 240, 0.35);
  box-shadow: 0 0 0 1px rgba(124, 108, 240, 0.2);
}

.pricing-cards-cta {
  margin-top: 0.5rem;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.pricing-cards-cta .login-divider {
  margin-top: 1rem;
  margin-bottom: 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-promo-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.sub-promo-input-row .ui-input {
  flex: 1 1 160px;
  min-width: 0;
}

.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;
}

.dash-active-until {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.98rem;
}

.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(124, 108, 240, 0.15);
  color: #6eb8ff;
}

.luxury-light .payment-history__badge--yookassa,
.luxury-light .payment-history__badge--yookassa_subscription {
  background: rgba(124, 108, 240, 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);
  }
}

#sub-days-group .sub-days-btn--wide {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.35;
  padding: 0.65rem 0.5rem;
}

#sub-days-group .sub-days-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-align: center;
  line-height: 1.2;
}

#sub-days-group .sub-days-btn__period {
  display: block;
  font-size: 0.875rem;
}

#sub-days-group .sub-days-btn__amount {
  display: block;
  font-size: 0.8125rem;
  font-weight: 800;
  font-variation-settings: "wght" 800;
  letter-spacing: 0.02em;
  opacity: 1;
  color: #ffffff;
}

/* Светлая тема: кнопка светлая — лёгкая тень, чтобы белые цифры читались */
.luxury-light #sub-days-group .sub-days-btn__amount {
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.35);
}

.luxury-light #sub-days-group .seg-btn-active .sub-days-btn__amount {
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.25);
}

.sub-period-hint {
  margin: 0.75rem 0 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  max-width: 42rem;
}

.sub-plan-hint {
  margin: 0.75rem 0 0;
  line-height: 1.5;
}

.luxury-dark .sub-period-hint {
  color: var(--site-dimmed-dark);
}

.luxury-light .sub-period-hint {
  color: var(--site-dimmed-light);
}

.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;
}

/* Login block inside app layout (guest opening cabinet) */
#site-app[data-page-key="app_login"] .form-section {
  max-width: 34rem;
}

#site-app[data-page-key="app_login"] .guest-login-hero {
  text-align: center;
  margin: 0 auto 0.75rem;
  max-width: 30rem;
}

#site-app[data-page-key="app_login"] .page-title {
  text-align: center;
  margin-top: 0;
  margin-bottom: 0.85rem;
}

#site-app[data-page-key="app_login"] .guest-login-hero__lead {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  line-height: 1.45;
}

#site-app[data-page-key="app_login"] .guest-login-hero__devices {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

#site-app[data-page-key="app_login"] .form-section-card.guest-email-step {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
}

#site-app[data-page-key="app_login"] .guest-entry__email-hint {
  margin: 0;
}

#site-app[data-page-key="app_login"] .form-section-card.guest-email-step .field {
  margin: 0;
}

#site-app[data-page-key="app_login"] .form-section-card.guest-email-step .field__wrap {
  width: 100%;
}

#site-app[data-page-key="app_login"] .form-section-card.guest-email-step .field__input {
  width: 100%;
  min-height: 2.85rem;
}

#site-app[data-page-key="app_login"] .form-section-card.guest-email-step .ui-btn {
  width: 100%;
  justify-content: center;
}

#site-app[data-page-key="app_login"] .login-divider {
  margin: 1rem 0 0.85rem;
}

/* Login container tweaks */
#tg-login-container.ui-card.form-section-card {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#tg-login-container.form-section-card > * {
  margin-left: auto;
  margin-right: auto;
}

#tg-login-container iframe,
#tg-login-container .tgme_widget_login_button,
#tg-login-container [id^="telegram-login-"] {
  margin-left: auto !important;
  margin-right: auto !important;
}

#email-request-code-btn,
#email-verify-btn,
#telegram-id-submit {
  width: auto !important;
  min-width: 12rem;
  margin-left: auto;
  margin-right: auto;
  display: inline-flex;
  justify-content: center;
}

/* Auth inputs visibility fix */
#login-email-input.field__input,
#login-email-code-input.field__input,
#telegram-id-input.ui-input {
  color: #eef7ff !important;
  -webkit-text-fill-color: #eef7ff !important;
  caret-color: #eef7ff !important;
  background: rgba(7, 58, 130, 0.42) !important;
  border: 1px solid rgba(181, 223, 255, 0.42) !important;
}

#login-email-input.field__input::placeholder,
#login-email-code-input.field__input::placeholder,
#telegram-id-input.ui-input::placeholder {
  color: rgba(232, 244, 255, 0.7) !important;
}

/* 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: none !important;
  opacity: 1 !important;
  transform: none !important;
}

@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;
  }
}

/* Верхняя полоса загрузки (как на lk.kosmosvpn.ru) */
.site-line-ld {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  z-index: 100001;
  pointer-events: none;
  overflow: hidden;
}

.site-loader-line {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  opacity: 0;
  background: var(--site-cosmos-lilac);
  box-shadow: 0 0 16px rgba(202, 189, 255, 0.65);
  transition: width 0.35s ease, opacity 0.22s ease;
}

.site-loader-line--50 {
  width: 38%;
  opacity: 1;
}

.site-loader-line--flash {
  width: 68%;
  transition-duration: 2.2s;
  transition-timing-function: cubic-bezier(0.18, 0.82, 0.22, 1);
}

.site-loader-line--100 {
  width: 100% !important;
  opacity: 1;
  transition: width 0.4s ease, opacity 0.2s ease;
}

/* Вход по Telegram ID */
.login-by-id-card {
  margin-bottom: var(--site-space-lg);
}

.login-by-id-hint {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.login-by-id-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

.login-by-id-input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.75rem 1rem;
  border-radius: var(--site-radius);
  border: 1px solid var(--site-border-dark);
  background: rgba(255, 255, 255, 0.04);
  color: var(--site-text-dark);
  font-size: 1rem;
  font-family: inherit;
}

.luxury-light .login-by-id-input {
  border-color: var(--site-border-light);
  background: #fff;
  color: var(--site-text-light);
}

.login-by-id-input::placeholder {
  color: var(--site-dimmed-dark);
  opacity: 0.85;
}

.luxury-light .login-by-id-input::placeholder {
  color: var(--site-dimmed-light);
}

.login-by-id-input:focus {
  outline: none;
  border-color: var(--site-accent);
  box-shadow: 0 0 0 3px var(--site-accent-light);
}

.login-by-id-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

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

/* Единая тема сайта: фиксированный сине-белый стиль */
body#site-body {
  background-color: #f5f8ff;
  color: #0c2550;
}

#site-body .ui-card {
  border-color: rgba(6, 60, 133, 0.2);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 12px rgba(6, 60, 133, 0.08), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

#site-body .ui-btn-primary {
  background: linear-gradient(120deg, #063c85 0%, #0a4ea8 100%);
  box-shadow: 0 4px 20px rgba(6, 60, 133, 0.2);
}

#site-body .ui-btn-secondary {
  border-color: rgba(6, 60, 133, 0.2);
  color: #0c2550;
  background: rgba(6, 60, 133, 0.05);
}

#site-body .ui-input,
#site-body .method-dropdown__trigger {
  border-color: rgba(6, 60, 133, 0.2);
  background: #ffffff;
  color: #0c2550;
}

/* ===== CaratVPN poster style (single theme) ===== */
#site-body {
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(62, 142, 255, 0.22), transparent 60%),
    radial-gradient(800px 500px at 90% 10%, rgba(22, 116, 255, 0.18), transparent 62%),
    linear-gradient(180deg, #063c85 0%, #052f6c 55%, #04295f 100%) !important;
  color: #eef6ff !important;
}

#site-body .ui-title,
#site-body .page-title,
#site-body .card-title,
#site-body .whitelist-title,
#site-body .pricing-card__title,
#site-body .pricing-card__period,
#site-body .tariff-value,
#site-body .card-value {
  color: #f3f9ff !important;
}

#site-body .ui-subtitle,
#site-body .whitelist-desc,
#site-body .field-label,
#site-body .pricing-page-note,
#site-body .pricing-page-devices,
#site-body .pricing-page-services {
  color: rgba(230, 242, 255, 0.82) !important;
}

#site-body .ui-card {
  background: linear-gradient(180deg, rgba(9, 66, 143, 0.56), rgba(5, 49, 109, 0.62)) !important;
  border: 1px solid rgba(176, 219, 255, 0.34) !important;
  box-shadow:
    0 10px 30px rgba(0, 20, 55, 0.42),
    0 0 0 1px rgba(205, 234, 255, 0.08) inset,
    0 0 28px rgba(110, 188, 255, 0.12) !important;
  backdrop-filter: blur(10px);
}

#site-body .ui-card:hover {
  border-color: rgba(213, 238, 255, 0.56) !important;
  box-shadow:
    0 14px 34px rgba(0, 20, 55, 0.48),
    0 0 0 1px rgba(220, 240, 255, 0.12) inset,
    0 0 34px rgba(130, 206, 255, 0.2) !important;
}

#site-body .ui-btn-primary {
  background: linear-gradient(135deg, #8fd3ff 0%, #d8f1ff 100%) !important;
  color: #063c85 !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 0 22px rgba(169, 227, 255, 0.42), 0 8px 22px rgba(0, 20, 55, 0.28) !important;
}

#site-body .ui-btn-primary:hover {
  filter: brightness(1.03) !important;
}

#site-body .ui-btn-secondary,
#site-body .seg-btn,
#site-body .method-dropdown__trigger,
#site-body .ui-input {
  background: rgba(7, 60, 133, 0.35) !important;
  border: 1px solid rgba(173, 218, 255, 0.35) !important;
  color: #eef6ff !important;
}

#site-body .seg-btn-active {
  background: rgba(143, 211, 255, 0.2) !important;
  border-color: rgba(210, 239, 255, 0.72) !important;
  color: #ffffff !important;
}

#site-body a.link-luxury,
#site-body .pricing-card__discount,
#site-body .pricing-card__price,
#site-body .price-display {
  color: #bfe7ff !important;
}

/* Modal windows in same neon-blue style */
#site-body .download-modal__backdrop {
  background: rgba(2, 18, 48, 0.78) !important;
  backdrop-filter: blur(6px);
}

#site-body .download-modal__box {
  background: linear-gradient(180deg, rgba(8, 62, 136, 0.96), rgba(5, 46, 104, 0.97)) !important;
  border: 1px solid rgba(185, 225, 255, 0.44) !important;
  box-shadow:
    0 22px 46px rgba(0, 16, 48, 0.5),
    0 0 34px rgba(122, 202, 255, 0.22),
    inset 0 1px 0 rgba(230, 244, 255, 0.14) !important;
  color: #eef7ff !important;
}

#site-body .download-modal__name,
#site-body .download-modal-step__title,
#site-body .link-telegram-modal__note-title {
  color: #f4faff !important;
}

#site-body .download-modal__platform,
#site-body .download-modal__desc,
#site-body .download-modal-step__text,
#site-body .download-modal-step__hint,
#site-body .download-modal-step__qr-label,
#site-body .link-telegram-modal__subtitle,
#site-body .link-telegram-modal__note-text {
  color: rgba(232, 244, 255, 0.84) !important;
}

#site-body .download-modal__close {
  background: rgba(9, 66, 143, 0.44) !important;
  border: 1px solid rgba(185, 225, 255, 0.44) !important;
  color: #eef7ff !important;
}

#site-body .download-modal-step,
#site-body .link-telegram-modal__note {
  background: rgba(9, 66, 143, 0.34) !important;
  border: 1px solid rgba(185, 225, 255, 0.32) !important;
}

#site-body .download-modal-step__num {
  background: linear-gradient(135deg, #8fd3ff, #d8f1ff) !important;
  color: #063c85 !important;
}

#site-body .download-modal-step__code {
  background: rgba(4, 40, 92, 0.68) !important;
  border-color: rgba(180, 223, 255, 0.36) !important;
  color: #edf7ff !important;
}

#site-body .download-modal-step .ui-btn,
#site-body .download-modal__actions .ui-btn {
  background: linear-gradient(135deg, #8fd3ff 0%, #d8f1ff 100%) !important;
  color: #063c85 !important;
  border: 1px solid rgba(255, 255, 255, 0.84) !important;
  box-shadow: 0 0 20px rgba(169, 227, 255, 0.32) !important;
}

.login-widget-unavailable {
  margin: 0;
  text-align: center;
}

/* ========== Kosmos / мобильные: переполнение, сетки, формы ========== */
@media (max-width: 1023px) {
  #site-app.kosmos-page.page {
    overflow-x: hidden;
    max-width: 100%;
  }

  .kosmos-body .page__container {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }
}

@media (max-width: 640px) {
  .download-platform-icons:not(.download-platform-icons--flat) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .section-space-lg {
    gap: 1.5rem;
  }

  .download-page .download-steps {
    gap: 1.5rem;
  }

  .pricing-cards-cta .pricing-login-widget,
  .pricing-cards-cta .login-providers {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .login-by-id-row {
    flex-direction: column;
    align-items: stretch;
  }

  .login-by-id-input {
    flex: 1 1 auto;
    width: 100%;
  }

  .login-by-id-btn {
    width: 100%;
  }

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

  .device-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .device-item .ui-btn {
    width: 100%;
    justify-content: center;
  }

  .settings-sub-row {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-sub-row__action {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .settings-sub-row__action .ui-btn {
    width: 100%;
    justify-content: center;
  }

  .settings-section {
    max-width: none;
  }

  .faq-item {
    padding: 1rem 1.1rem;
  }

  .form-section {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

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

  .tariff-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .method-dropdown__menu {
    max-height: min(14rem, 45vh);
  }
}

/* ——— YooKassa Checkout Widget: оверлей и рамка в стиле кабинета ——— */
body .checkout-modal__overlay {
  background: rgba(6, 6, 8, 0.78) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
  box-sizing: border-box !important;
}

body.luxury-light .checkout-modal__overlay {
  background: rgba(18, 22, 32, 0.42) !important;
}

/* Не режем overflow — у виджета крестик с position right:-36px (снаружи блока) */
body .checkout-modal__container {
  position: relative !important;
  /* Иначе с flex + align-items:center получается «съезд» вниз из-за margin-top из виджета */
  margin-top: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border-radius: var(--site-radius-lg, 1.125rem) !important;
  overflow: visible !important;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(202, 189, 255, 0.14) !important;
}

/* Тёмная тема сайта: светлый блок виджета должен отчётливо отделяться от оверлея */
body:not(.luxury-light) .checkout-modal__container {
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 40px rgba(255, 255, 255, 0.06) !important;
}

body.luxury-light .checkout-modal__container {
  box-shadow:
    0 16px 40px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(15, 23, 42, 0.08) !important;
}

/* Блок способов оплаты в iframe — сдвиг вниз через отступ у обёртки (класс внутри iframe недоступен) */
body .checkout-modal__content {
  padding-top: 2rem !important;
  box-sizing: border-box !important;
}

/* Крестик внутри карточки (стандартный виджет выносит его за край и он пропадал) */
body .checkout-modal__close {
  top: 0.75rem !important;
  right: 0.75rem !important;
  left: auto !important;
  z-index: 20;
  width: 2.25rem !important;
  height: 2.25rem !important;
  min-width: 2.25rem !important;
  min-height: 2.25rem !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 0.625rem !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
}

body .checkout-modal__close:before {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #f0f0f4 !important;
  font-size: 1.35rem !important;
  font-weight: 500 !important;
  line-height: 0 !important;
  /* небольшой сдвиг для оптического центра символа × */
  transform: translateY(-0.04em);
}

body.luxury-light .checkout-modal__close {
  background: rgba(0, 0, 0, 0.06) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}

body.luxury-light .checkout-modal__close:before {
  color: #1a1a22 !important;
}

@media (max-width: 600px) {
  body .checkout-modal__overlay {
    padding: 0.75rem !important;
    align-items: flex-start !important;
    padding-top: max(0.75rem, env(safe-area-inset-top, 0px)) !important;
  }

  body .checkout-modal__container {
    width: 100% !important;
    max-width: none !important;
    margin-top: 0 !important;
  }

  body .checkout-modal__close {
    top: 0.6rem !important;
    right: 0.6rem !important;
  }
}
