/* ============================================
   ТОКЕНЫ
   ============================================ */
:root {
  color-scheme: dark;

  --bg: #0B1020;
  --bg-alt: #0E1428;
  --bg-card: #121A31;
  --bg-elevated: #16203C;

  --text: #E8ECF5;
  --text-muted: #94A2C4;
  --text-faint: #6B7A9E;

  --blue: #5B7CFA;
  --violet: #8B5CF6;
  --green: #34D399;

  --warm-a: #F59E0B;
  --warm-b: #EF4444;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;

  --shadow-warm: 0 8px 24px rgba(239, 68, 68, 0.25);

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container: 1140px;
  --container-narrow: 760px;
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-elevated);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: 88px 0;
  background: var(--bg);
}
.section--alt {
  background: var(--bg-alt);
}
.section--contact {
  background: var(--bg-elevated);
}

.section-heading {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  max-width: 760px;
  margin: 0 auto 20px;
  text-align: center;
}
.section-heading--left {
  text-align: left;
  margin: 0 0 12px;
}

.kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 14px;
}
.kicker--center { text-align: center; }

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 40px;
}
.lead--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ============================================
   REVEAL / SCROLL ANIMATION
   ============================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--warm-a), var(--warm-b));
  color: #ffffff;
  box-shadow: var(--shadow-warm);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(239, 68, 68, 0.35); }
.btn--primary:active { transform: translateY(0); }

.btn--small { padding: 10px 20px; font-size: 0.9rem; }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.btn--block { width: 100%; padding: 16px 24px; font-size: 1.05rem; }

.cta-sub {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-faint);
}
.cta-center { text-align: center; margin-top: 32px; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled {
  background: rgba(11, 16, 32, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}
.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 96px;
}
.hero__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 700px;
  background:
    radial-gradient(600px circle at 20% 20%, rgba(91, 124, 250, 0.28), transparent 60%),
    radial-gradient(500px circle at 85% 10%, rgba(139, 92, 246, 0.22), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 32px;
}
.grad-num {
  background: linear-gradient(135deg, var(--warm-a), var(--warm-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__photo { display: flex; justify-content: center; }
.photo-placeholder {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-card));
  border: 1px dashed var(--border-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-faint);
}
.photo-placeholder span {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* ============================================
   CARDS / GRIDS
   ============================================ */
.cards-grid {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}
.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 24px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}
.card-icon {
  display: inline-flex;
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card--pain {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 22px;
}
.pain-icon {
  color: var(--warm-b);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.card--pain p { color: var(--text); font-size: 0.95rem; }

.card--step { text-align: left; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}

.stat-line {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: -12px 0 36px;
}
.stat-line strong { color: var(--violet); }

/* ============================================
   CALLOUT
   ============================================ */
.callout {
  margin-top: 40px;
  padding: 28px 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-align: center;
}
.callout p {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
}
.accent-warm {
  background: linear-gradient(135deg, var(--warm-a), var(--warm-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================
   ECONOMICS
   ============================================ */
.economics-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.economics-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px 26px;
}
.economics-arrow {
  color: var(--warm-a);
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.economics-row p { font-size: 1rem; }
.economics-final {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 32px 0 0;
}

/* ============================================
   ACCORDION (кейсы + FAQ)
   ============================================ */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.accordion-item[open] {
  border-color: var(--border-strong);
}
.accordion-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.02rem;
}
.accordion-summary::-webkit-details-marker { display: none; }
.accordion-summary::marker { content: ''; }

.item-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
}
.item-title { flex: 1; }

.accordion-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform .3s ease;
  flex-shrink: 0;
  margin-right: 4px;
}
.accordion-item[open] .accordion-chevron {
  transform: rotate(225deg);
}

.accordion-content {
  display: block;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.accordion-inner {
  padding: 0 26px 26px;
}
.accordion-inner p {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 0.97rem;
}
.accordion-inner p strong { color: var(--text); }

.case-result {
  background: rgba(52, 211, 153, 0.12);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 12px 16px;
  color: #A7F3D0;
  font-size: 0.92rem;
  font-weight: 600;
  margin: 14px 0;
}
.accordion-inner .case-prompt {
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0;
}
.case-arrow {
  color: var(--text-faint);
}
.case-cta {
  display: inline;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.case-cta:hover {
  color: var(--violet);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================
   ABOUT
   ============================================ */
.about-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
}
.about-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg));
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  flex-shrink: 0;
}
.about-text p { margin-bottom: 14px; color: var(--text-muted); }
.about-name { font-size: 1.3rem; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.about-signature {
  font-size: 0.88rem;
  color: var(--text-faint);
  margin-top: 18px;
  margin-bottom: 0;
}

/* ============================================
   CONTACT / FORM
   ============================================ */
.contact-divider {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.95rem;
  margin: 36px 0 32px;
  position: relative;
}
.contact-divider span {
  background: var(--bg-elevated);
  padding: 0 16px;
  position: relative;
  z-index: 1;
}
.contact-divider::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--border);
}

.contact-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-row label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.optional { font-weight: 400; color: var(--text-faint); }
.form-row input {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
}
.form-row input:focus {
  border-color: var(--blue);
  outline: none;
}
.form-row input::placeholder { color: var(--text-faint); }

.form-hp {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-faint);
  text-align: center;
}
.form-note a { color: var(--text-muted); text-decoration: underline; }

.form-status {
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status--ok { color: var(--green); }
.form-status--error { color: var(--warm-b); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.site-footer__inner {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.88rem;
}
.site-footer a { text-decoration: underline; }

/* ============================================
   PRIVACY PAGE
   ============================================ */
.legal {
  padding: 72px 0 96px;
}
.legal h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.legal .updated {
  color: var(--text-faint);
  font-size: 0.9rem;
  margin-bottom: 32px;
}
.legal h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 36px 0 12px;
}
.legal p, .legal li {
  color: var(--text-muted);
  margin-bottom: 12px;
}
.legal ul { padding-left: 20px; list-style: disc; }
.legal a { color: var(--blue); text-decoration: underline; }
.legal .back-link { display: inline-block; margin-bottom: 32px; color: var(--blue); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1199px) {
  .cards-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__photo { order: -1; }
  .photo-placeholder { max-width: 220px; aspect-ratio: 1; }
}

@media (max-width: 767px) {
  .section { padding: 64px 0; }
  .cards-grid--3,
  .cards-grid--2 { grid-template-columns: 1fr; }
  .about-card { flex-direction: column; align-items: center; text-align: center; }
  .economics-row { padding: 18px 20px; }
}
