:root {
  --bg: #0b1426;
  --bg-2: #0f1a2e;
  --bg-3: #132140;
  --ink: #e8ecf4;
  --ink-dim: #8c9bb5;
  --ink-faint: #4a5875;
  --gold: #e8c87a;
  --gold-bright: #f3d688;
  --gold-deep: #b8965a;
  --line: rgba(232, 200, 122, 0.15);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(232, 200, 122, 0.08), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(19, 33, 64, 0.8), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.75;
}

/* ——— NAV ——— */
nav {
  padding: 28px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 20, 38, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.logo:hover { opacity: 1; }

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  color: var(--gold);
  font-size: 22px;
  font-weight: 700;
  border: 1px solid var(--line);
}

.nav-cta {
  font-size: 14px;
  color: var(--gold);
  text-decoration: none;
  padding: 10px 22px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  transition: all 0.25s ease;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--bg);
  opacity: 1;
}

/* ——— HERO ——— */
.hero {
  padding: 120px 0 140px;
  position: relative;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.1s forwards;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(56px, 9vw, 128px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.25s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.hero-lead {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink-dim);
  max-width: 640px;
  line-height: 1.5;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 1s ease 0.45s forwards;
}

/* ——— CTA BLOCK ——— */
.cta-block {
  opacity: 0;
  animation: fadeUp 1.1s ease 0.65s forwards;
  max-width: 560px;
}

.cta-block-center {
  margin: 0 auto;
  text-align: center;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  cursor: pointer;
  user-select: none;
  text-align: left;
}

.consent-checkbox {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--ink-faint);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  position: relative;
  margin-top: 2px;
  transition: all 0.2s;
}

.consent-checkbox:hover {
  border-color: var(--gold);
}

.consent-checkbox:checked {
  background: var(--gold);
  border-color: var(--gold);
}

.consent-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent-text {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.5;
}

.consent-text a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink-faint);
  text-underline-offset: 3px;
}

.consent-text a:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
  opacity: 1;
}

.cta-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.cta-legal {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.55;
  max-width: 520px;
  letter-spacing: 0.01em;
}

.cta-legal a {
  color: var(--ink-dim);
  text-decoration: underline;
  text-decoration-color: var(--ink-faint);
  text-underline-offset: 2px;
}

.cta-legal a:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
  opacity: 1;
}

.cta-block-center .cta-legal {
  margin-left: auto;
  margin-right: auto;
}

/* ——— BUTTONS ——— */
.btn-primary {
  background: var(--gold);
  color: var(--bg);
  padding: 18px 36px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -15px rgba(232, 200, 122, 0.5);
  opacity: 1;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary.disabled,
.btn-primary[data-consent-required="true"] {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

.btn-compact {
  padding: 12px 24px;
  font-size: 14px;
}

/* Ornament */
.hero-ornament {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 2s ease 0.8s forwards;
}

.hero-ornament svg {
  width: 100%;
  height: 100%;
}

/* ——— SECTIONS ——— */
section {
  padding: 120px 0;
  position: relative;
}

.section-eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
  max-width: 900px;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.section-lead {
  font-size: 19px;
  color: var(--ink-dim);
  max-width: 620px;
  line-height: 1.55;
  margin-bottom: 80px;
}

/* Проблема */
.problem {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(19, 33, 64, 0.3));
}

.problem-text {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 1000px;
  color: var(--ink);
}

.problem-text em {
  font-style: italic;
  color: var(--gold);
}

.problem-text .faded {
  color: var(--ink-faint);
}

/* Три слоя памяти */
.layers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.layer-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.layer-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 200, 122, 0.4);
}

.layer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}

.layer-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.layer-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.layer-desc {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.6;
}

/* День с Гермесом */
.day {
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 88px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), transparent);
  opacity: 0.4;
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 40px;
  padding: 28px 0;
  align-items: start;
  position: relative;
}

.timeline-time {
  font-family: var(--serif);
  font-size: 28px;
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
  padding-top: 4px;
  position: relative;
}

.timeline-time::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--bg), 0 0 20px var(--gold);
}

.timeline-quote {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 8px;
  font-style: italic;
}

.timeline-quote::before { content: '«'; color: var(--gold); }
.timeline-quote::after  { content: '»'; color: var(--gold); }

.timeline-note {
  color: var(--ink-dim);
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* Versus */
.versus {
  border-top: 1px solid var(--line);
}

.versus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.versus-col {
  padding: 48px 40px;
  border-radius: 20px;
  position: relative;
}

.versus-them {
  background: rgba(19, 33, 64, 0.4);
  border: 1px solid rgba(140, 155, 181, 0.15);
}

.versus-us {
  background: linear-gradient(180deg, rgba(232, 200, 122, 0.08), rgba(232, 200, 122, 0.02));
  border: 1px solid rgba(232, 200, 122, 0.3);
}

.versus-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--ink-faint);
}

.versus-us .versus-label {
  color: var(--gold);
}

.versus-name {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.versus-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.versus-list li {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-dim);
  padding-left: 28px;
  position: relative;
}

.versus-them .versus-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--ink-faint);
}

.versus-us .versus-list li {
  color: var(--ink);
}

.versus-us .versus-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 10px;
  top: 6px;
}

/* Безопасность */
.security {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.security-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--gold);
}

.security-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.security-desc {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.55;
}

/* FAQ */
.faq {
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
  border-top: 1px solid var(--line);
}

.faq-list {
  max-width: 820px;
  margin-top: 60px;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  padding: 28px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.25s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { color: var(--gold); }

.faq-item[open] summary { color: var(--gold); }

.faq-toggle {
  color: var(--gold);
  font-size: 24px;
  font-weight: 300;
  transition: transform 0.3s;
  width: 24px;
  flex-shrink: 0;
  text-align: center;
}

.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 28px;
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.65;
  max-width: 700px;
}

/* Final CTA */
.final-cta {
  padding: 160px 0;
  text-align: center;
  position: relative;
  border-top: 1px solid var(--line);
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(232, 200, 122, 0.12), transparent 60%);
  pointer-events: none;
}

.final-cta h2 {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta h2 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.final-cta p {
  color: var(--ink-dim);
  font-size: 19px;
  max-width: 540px;
  margin: 0 auto 48px;
  line-height: 1.55;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-tagline {
  color: var(--ink-dim);
  font-size: 14px;
}

.footer-col-title {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: var(--ink-dim);
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--gold);
  opacity: 1;
}

.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: var(--ink-faint);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal p {
  margin: 0;
}

/* ——— МОДАЛКА СОГЛАСИЯ ——— */
.consent-modal {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 540px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 32px;
  z-index: 1000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  pointer-events: none;
}

.consent-modal.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.consent-modal h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--ink);
}

.consent-modal p {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.55;
  margin-bottom: 20px;
}

.consent-modal p a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-modal-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.consent-modal-link {
  color: var(--ink-dim);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ——— ПРАВОВЫЕ СТРАНИЦЫ (оферта, политика, соглашение) ——— */
.legal-page {
  padding: 80px 0 120px;
  max-width: 860px;
  margin: 0 auto;
}

.legal-page .container {
  max-width: 860px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-dim);
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 48px;
  transition: color 0.2s;
}

.legal-back:hover {
  color: var(--gold);
  opacity: 1;
}

.legal-title {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.legal-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.legal-subtitle {
  font-size: 15px;
  color: var(--ink-faint);
  margin-bottom: 64px;
  letter-spacing: 0.02em;
}

.legal-content h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  margin-top: 64px;
  margin-bottom: 24px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--ink);
}

.legal-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-dim);
  margin-bottom: 18px;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 18px;
  padding-left: 24px;
  color: var(--ink-dim);
}

.legal-content li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.legal-content strong,
.legal-content b {
  color: var(--ink);
  font-weight: 600;
}

.legal-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content .legal-term {
  color: var(--ink);
  font-weight: 500;
}

.legal-content .legal-note {
  background: rgba(232, 200, 122, 0.06);
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}

.legal-content .legal-note p {
  margin-bottom: 0;
  color: var(--ink);
}

.legal-requisites {
  background: rgba(19, 33, 64, 0.5);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  margin-top: 48px;
}

.legal-requisites p {
  margin-bottom: 8px;
}

.legal-requisites strong {
  display: inline-block;
  min-width: 200px;
}

/* ——— АНИМАЦИИ ——— */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ——— RESPONSIVE ——— */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .hero { padding: 80px 0 100px; }
  section { padding: 80px 0; }
  .layers-grid,
  .security-grid,
  .versus-grid { grid-template-columns: 1fr; }
  .hero-ornament { display: none; }
  .timeline::before { left: 56px; }
  .timeline-item { grid-template-columns: 68px 1fr; gap: 20px; }
  .timeline-time { font-size: 20px; }
  .timeline-quote { font-size: 18px; }
  .versus-col { padding: 32px 24px; }
  .layer-card { padding: 32px 28px; }
  .faq-item summary { font-size: 19px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .consent-modal { left: 16px; right: 16px; padding: 24px; }
  .legal-content h2 { font-size: 26px; margin-top: 48px; }
  .legal-requisites strong { min-width: 140px; }
}
