/* ==========================================================================
   AVVCHUB.COM — STYLESHEET
   Соответствие стандартам: WCAG 2.1 AA, ГОСТ Р 52872-2019, Закон РФ № 152-ФЗ
   ========================================================================== */

:root {
  --color-bg-primary: #080d1a;
  --color-bg-secondary: #0f172a;
  --color-surface: #0f172a;
  --color-surface-hover: #1e293b;
  --color-bg-card: rgba(17, 24, 39, 0.85);
  --color-bg-card-hover: rgba(30, 41, 59, 0.95);
  --color-border: #1e293b;
  --color-border-focus: #38bdf8;
  
  --color-text: #f8fafc;
  --color-text-primary: #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;

  --color-accent-blue: #0284c7;
  --color-accent-blue-hover: #0369a1;
  --color-accent-cyan: #06b6d4;
  --color-accent-glow: rgba(6, 182, 212, 0.25);
  
  --color-accent-tfc: #d97706; /* Теплый оттенок камня и меди TFC */
  --color-accent-gt: #2563eb;  /* Индустриальный синий GregTech */
  --color-accent-space: #8b5cf6; /* Космический фиолетовый Ad Astra */

  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px 0 rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 24px var(--color-accent-glow);

  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
}

/* Light Theme Variables */
[data-theme="light"] {
  --color-bg-primary: #f8fafc;
  --color-bg-secondary: #f1f5f9;
  --color-surface: #ffffff;
  --color-surface-hover: #f1f5f9;
  --color-bg-card: #ffffff;
  --color-bg-card-hover: #f8fafc;
  --color-border: #cbd5e1;
  --color-border-focus: #0284c7;

  --color-text: #0f172a;
  --color-text-primary: #0f172a;
  --color-text-secondary: #334155;
  --color-text-muted: #64748b;

  --color-accent-blue: #0284c7;
  --color-accent-blue-hover: #0369a1;
  --color-accent-cyan: #0891b2;
  --color-accent-glow: rgba(2, 132, 199, 0.15);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark light;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility: Skip Navigation Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-accent-blue);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* Keyboard Navigation Focus Indicator (Требование 18: Visible focus) */
:focus-visible {
  outline: 3px solid var(--color-border-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-primary);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--color-text-secondary);
}

a {
  color: var(--color-accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-blue-hover);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(8, 13, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

[data-theme="light"] .site-header {
  background-color: rgba(248, 250, 252, 0.88);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
  gap: 1.25rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text-primary);
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0, 163, 255, 0.3);
}

.brand-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  background-color: rgba(56, 189, 248, 0.15);
  color: var(--color-accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-full);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.nav-link {
  color: var(--color-text-secondary);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-text-primary);
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Theme Toggle Button */
.btn-icon {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  color: var(--color-text-primary);
  border-color: var(--color-text-muted);
}

/* Capsule Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  line-height: 1.4;
}

.btn-primary {
  background-color: var(--color-accent-blue);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  background-color: var(--color-accent-blue-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-text-primary);
}

.btn-tg {
  background: linear-gradient(135deg, #229ED9 0%, #1783B5 100%);
  color: #ffffff;
}

.btn-tg:hover {
  color: #ffffff;
  filter: brightness(1.1);
}

.brand-capsule-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: 9999px;
  transition: transform var(--transition-fast);
}

.brand-capsule-logo:hover {
  transform: scale(1.02);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  background-color: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-primary);
  transition: border-color var(--transition-fast);
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background: radial-gradient(circle at 50% 20%, rgba(2, 132, 199, 0.12) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  background-color: rgba(16, 185, 129, 0.12);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  background-color: rgba(56, 189, 248, 0.1);
  color: var(--color-accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.age-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  background-color: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.hero-lead {
  font-size: 1.2rem;
  margin-top: 1.25rem;
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* Honest Launch Status Card (Требование 4: Без ложных сбрасывающихся таймеров) */
.launch-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.launch-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.status-pill {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.milestones-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.milestone-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
}

.milestone-icon {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.milestone-done {
  color: var(--color-success);
}

.milestone-current {
  color: var(--color-warning);
}

.milestone-pending {
  color: var(--color-text-muted);
}

/* Lead Registration Form (Требования 10, 11: Минимизация данных и раздельные чекбоксы) */
.form-box {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.form-title {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.form-desc {
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-text-primary);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  background-color: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--color-border-focus);
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

.checkbox-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  user-select: none;
}

.checkbox-input {
  appearance: auto;
  -webkit-appearance: checkbox;
  margin-top: 0.2rem;
  cursor: pointer;
  accent-color: var(--color-accent-blue);
  width: 16px;
  height: 16px;
}

.form-error {
  color: var(--color-danger);
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: none;
}

.form-error.active {
  display: block;
}

.form-success {
  background-color: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--color-success);
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 1rem;
  display: none;
}

/* Modpack Progression Features Section */
.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-focus);
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #030712;
  position: relative;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
  cursor: pointer;
}

.card-img:hover {
  transform: scale(1.04);
}

.card-img-overlay {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag-tfc {
  background-color: rgba(217, 119, 6, 0.9);
  color: #ffffff;
}

.tag-gt {
  background-color: rgba(37, 99, 235, 0.9);
  color: #ffffff;
}

.tag-space {
  background-color: rgba(139, 92, 246, 0.9);
  color: #ffffff;
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h3 {
  margin-bottom: 0.65rem;
}

.feature-list {
  list-style: none;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--color-text-secondary);
}

.feature-list li::before {
  content: "•";
  position: absolute;
  left: 0.25rem;
  color: var(--color-accent-cyan);
  font-weight: bold;
}

/* Modpack Specs Table (Доказуемые характеристики, Требование 3) */
.specs-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-top: 2rem;
  background-color: var(--color-bg-card);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.specs-table th, .specs-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.specs-table th {
  background-color: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  color: var(--color-text-primary);
}

.specs-table tr:last-child td {
  border-bottom: none;
}

/* Pricing / Support Transparency Section (Требование 2: Отсутствие скрытых комиссий) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.pricing-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--color-accent-cyan);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 1.5rem;
  background: var(--color-accent-cyan);
  color: #080d1a;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.price-val {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin: 1rem 0 0.5rem;
}

.price-sub {
  font-size: 0.85rem;
  color: var(--color-success);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Compliance Showcase Banner */
.compliance-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(8, 13, 26, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

[data-theme="light"] .compliance-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .compliance-banner h2 {
  color: var(--color-text-primary);
}

[data-theme="light"] .compliance-banner p {
  color: var(--color-text-secondary);
}

[data-theme="light"] .comp-item {
  color: var(--color-text-primary);
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.comp-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.comp-check {
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Honest Community Feedback (Требование 1: Честный фидбек вместо фейковых отзывов) */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.review-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-quote {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--color-border);
  padding-top: 0.85rem;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-accent-cyan);
  border: 1px solid var(--color-border);
}

.review-meta {
  font-size: 0.85rem;
}

.review-meta strong {
  display: block;
  color: var(--color-text-primary);
}

.review-source {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* User Rights & Data Privacy Box (Требования 13, 15: Удаление данных и отписка) */
.rights-box {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 3rem;
}

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

/* Footer & Legal Information (Требования 19, 20) */
.site-footer {
  background-color: #040812;
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
  margin-top: auto;
  font-size: 0.9rem;
}

[data-theme="light"] .site-footer {
  background-color: #e2e8f0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  max-width: 340px;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-text-primary);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-legal-notice {
  line-height: 1.6;
}

.footer-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Cookie Banner (Требование 9: Честный баннер согласия) */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 760px;
  margin: 0 auto;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-focus);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cookie-banner.active {
  display: block;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-text {
  font-size: 0.875rem;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cookie-settings-panel {
  display: none;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.cookie-settings-panel.active {
  display: block;
}

.cookie-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.85rem;
}

/* Accessible Modal Windows (Политики, Соглашения, Удаление) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background-color: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  border-radius: var(--radius-sm);
}

.modal-close-btn:hover {
  color: var(--color-text-primary);
}

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

.modal-body h4 {
  color: var(--color-text-primary);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.modal-body p {
  margin-bottom: 0.75rem;
}

.modal-body ul, .modal-body ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Lightbox Image Preview Modal */
.lightbox-modal .modal-box {
  max-width: 1000px;
  background-color: transparent;
  border: none;
  box-shadow: none;
}

.lightbox-img {
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
  text-align: center;
  margin-top: 0.75rem;
  color: #f1f5f9;
  font-size: 0.9rem;
}

/* Responsive Media Queries */
@media (max-width: 1080px) {
  .nav-menu {
    gap: 0.75rem;
  }
  .nav-link {
    font-size: 0.85rem;
    padding: 0.35rem 0.5rem;
  }
}

@media (max-width: 960px) {
  .nav-menu {
    display: none; /* Accessible in footer */
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .rights-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 1.25rem;
  }
}

/* Accessibility: Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================================
   ЛИЧНЫЙ КАБИНЕТ, АВТОРИЗАЦИЯ И ТРАНЗАКЦИИ
   ======================================================== */
.account-container {
  max-width: 960px;
  margin: 0 auto;
}

.auth-box {
  max-width: 440px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.auth-tabs {
  display: flex;
  background: var(--color-bg);
  border-radius: var(--radius-full);
  padding: 0.35rem;
  margin-bottom: 1.75rem;
  border: 1px solid var(--color-border);
}

.auth-tab-btn {
  flex: 1;
  padding: 0.55rem 1rem;
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-tab-btn.active {
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

.auth-form .form-group {
  margin-bottom: 1.25rem;
}

.profile-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.profile-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
}

.profile-user-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-accent-blue), #6366f1);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-badges {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.profile-balance-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.5rem;
  text-align: center;
}

.profile-balance-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-success);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.profile-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.profile-card-full {
  grid-column: 1 / -1;
}

.profile-card-danger {
  grid-column: 1 / -1;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.03);
}

.tx-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

.tx-table th, .tx-table td {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
}

.tx-status-succeeded {
  color: var(--color-success);
  font-weight: 600;
}

.tx-status-pending {
  color: #f59e0b;
  font-weight: 600;
}

@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========================================================
   ОТДЕЛЬНАЯ СТРАНИЦА: ЛИЧНЫЙ КАБИНЕТ И РЕГИСТРАЦИЯ
   ======================================================== */
.auth-page-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-main-wrapper {
  flex: 1;
  padding: 3.5rem 0 5rem;
  display: flex;
  align-items: center;
}

.auth-card-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.auth-card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-card-header h2 {
  font-size: 1.6rem;
  margin: 0.65rem 0 0.4rem;
}

.auth-card-header p {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Слайдер-переключатель Вход / Регистрация */
.auth-switch-container {
  position: relative;
  display: flex;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 2rem;
  user-select: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .auth-switch-container {
  background: #e2e8f0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.auth-switch-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--color-accent-blue);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

[data-theme="light"] .auth-switch-slider {
  background: var(--color-accent-blue);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.auth-switch-container.register-active .auth-switch-slider {
  transform: translateX(100%);
}

.auth-switch-btn {
  flex: 1;
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: color 0.25s ease;
  text-align: center;
}

.auth-switch-btn.active {
  color: #ffffff !important;
  font-weight: 700;
}

.auth-form-panel .form-group {
  margin-bottom: 1.25rem;
}

.btn-block-submit {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.auth-security-note {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.76rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
}

/* Стили тизера на главной странице */
.account-portal-card {
  background: linear-gradient(145deg, var(--color-surface), rgba(15, 23, 42, 0.95));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.account-portal-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.portal-feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.account-portal-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-portal-cta {
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  text-align: center;
}

.btn-portal-sub {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  text-align: center;
}

/* Профиль внутри account.html */
.profile-card-wrapper {
  max-width: 1020px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.profile-top-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
}

.profile-user-summary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.profile-avatar-circle {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-accent-blue), #6366f1);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.profile-meta-pills {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.profile-top-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.profile-balance-badge {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.balance-title {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.balance-number {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-success);
}

.btn-logout-pill {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
}

.profile-sections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.cabinet-section-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.full-span-card {
  grid-column: 1 / -1;
}

.danger-card {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.03);
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.tx-table-container {
  overflow-x: auto;
  margin-top: 1rem;
}

@media (max-width: 800px) {
  .account-portal-grid,
  .profile-sections-grid {
    grid-template-columns: 1fr;
  }
  .form-row-grid {
    grid-template-columns: 1fr;
  }
  .profile-top-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
