/* ─── Академия Савви — стили лендинга ───────────────────────────────── */

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

:root {
  --accent:        #2B5CFF;
  --accent-hover:  #1E47D6;
  --accent-soft:   #E8EEFF;
  --accent-line:   #C5D2FF;

  --bg:            #FFFFFF;
  --bg-alt:        #F6F7FB;
  --bg-dark:       #0A0F1F;

  --text:          #0A0F1F;
  --text-2:        #3A3F52;
  --text-3:        #6B7080;
  --text-muted:    #9CA0AE;
  --text-on-dark:  #F4F5FA;

  --border:        #E7E9F2;
  --border-strong: #D1D5E0;

  --shadow-sm: 0 1px 2px rgba(10, 15, 31, 0.04), 0 1px 3px rgba(10, 15, 31, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 15, 31, 0.06), 0 2px 8px rgba(10, 15, 31, 0.04);
  --shadow-lg: 0 20px 48px rgba(10, 15, 31, 0.10), 0 4px 12px rgba(10, 15, 31, 0.05);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --container: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Логотип (текстом) ──────────────────────────────────────────────── */

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: 22px;
  color: var(--text);
}
.logo-line { display: inline-flex; }
.logo .blue { color: var(--accent); }
.logo-footer { font-size: 36px; }

/* ─── Header ─────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* ─── Buttons ────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--text);
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-2); padding: 10px 14px; }
.btn-ghost:hover { color: var(--accent); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ─── Sections общая ─────────────────────────────────────────────────── */

section { padding: 96px 0; }
.section-tag {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  margin-bottom: 20px;
}
.section-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 18px;
  color: var(--text-3);
  max-width: 720px;
  line-height: 1.55;
}
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin: 0 auto; }

/* ─── Hero ───────────────────────────────────────────────────────────── */

.hero {
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -180px; right: -120px;
  width: 540px; height: 540px;
  background: radial-gradient(circle at center, var(--accent-soft), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 920px;
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: 19px;
  color: var(--text-2);
  max-width: 640px;
  margin-bottom: 36px;
  line-height: 1.6;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ─── Stats bar ──────────────────────────────────────────────────────── */

.stats-bar {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  padding: 8px 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.10);
}
.stat-item:first-child { border-left: none; padding-left: 0; }
.stat-value {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.stat-value .accent { color: var(--accent); }
.stat-label { font-size: 14px; color: rgba(255, 255, 255, 0.65); }

/* ─── «Кому подойдёт» — 3 карточки ───────────────────────────────────── */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.audience-card {
  padding: 32px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.audience-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.audience-card .num {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 20px;
}
.audience-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.audience-card p { color: var(--text-3); font-size: 15px; }

/* ─── «Что научитесь создавать» — 5 сценариев ───────────────────────── */

.scenarios {
  background: var(--bg-alt);
}
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.scenario-card {
  padding: 28px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.scenario-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.scenario-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.scenario-card p { font-size: 14px; color: var(--text-3); line-height: 1.5; }
.scenarios-grid .scenario-card:nth-child(4),
.scenarios-grid .scenario-card:nth-child(5) {
  /* в ряд по 2 для последних */
}

/* ─── Заработок интеграторов ─────────────────────────────────────────── */

.earnings {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.earnings-stats { display: grid; gap: 20px; }
.earnings-stat {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.earnings-stat .big {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}
.earnings-stat .text { font-size: 15px; color: var(--text-2); line-height: 1.45; }

/* ─── Программа уроков (accordion) ───────────────────────────────────── */

.program {
  background: var(--bg-alt);
}
.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}
.program-meta-item .value {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.program-meta-item .label { font-size: 13px; color: var(--text-3); margin-top: 2px; }

.lessons-list {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.lesson-row {
  border-bottom: 1px solid var(--border);
}
.lesson-row:last-child { border-bottom: none; }
.lesson-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  cursor: pointer;
  transition: background 0.15s;
}
.lesson-head:hover { background: var(--bg-alt); }
.lesson-num {
  flex: 0 0 36px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.lesson-title {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lesson-duration {
  font-size: 13px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.lesson-toggle {
  flex: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.lesson-row.open .lesson-toggle { transform: rotate(180deg); color: var(--accent); }
.lesson-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.lesson-row.open .lesson-body { max-height: 400px; }
.lesson-body-inner {
  padding: 0 28px 24px 84px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ─── «Что входит» — 5 карточек ──────────────────────────────────────── */

.included-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.included-card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.included-card .num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.included-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.included-card p { font-size: 14px; color: var(--text-3); line-height: 1.55; }

/* ─── Pricing ────────────────────────────────────────────────────────── */

.pricing { background: var(--bg-alt); }
.pricing-card {
  max-width: 540px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: var(--accent);
}
.pricing-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.pricing-amount {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  line-height: 1;
}
.pricing-amount .currency { font-size: 36px; color: var(--text-3); font-weight: 700; }
.pricing-note {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 28px;
  line-height: 1.55;
}
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
  display: grid;
  gap: 12px;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-2);
}
.pricing-features li::before {
  content: '';
  flex: 0 0 18px;
  height: 18px;
  margin-top: 3px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='%23000' d='M16.7 5.3a1 1 0 0 1 0 1.4l-8 8a1 1 0 0 1-1.4 0l-4-4a1 1 0 1 1 1.4-1.4L8 12.6l7.3-7.3a1 1 0 0 1 1.4 0z'/></svg>") no-repeat center;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='%23000' d='M16.7 5.3a1 1 0 0 1 0 1.4l-8 8a1 1 0 0 1-1.4 0l-4-4a1 1 0 1 1 1.4-1.4L8 12.6l7.3-7.3a1 1 0 0 1 1.4 0z'/></svg>") no-repeat center;
}
.pricing-pay {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-3);
}

/* ─── Cases ──────────────────────────────────────────────────────────── */

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent-line); }
.case-niche {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.case-company { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.case-results { font-size: 14px; color: var(--text-3); flex: 1; line-height: 1.5; }
.case-author { font-size: 13px; color: var(--text-muted); padding-top: 12px; border-top: 1px solid var(--border); }
.cases-empty {
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
}

/* ─── Blog ───────────────────────────────────────────────────────────── */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.blog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-cover {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-alt));
  position: relative;
  overflow: hidden;
}
.blog-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.blog-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.blog-card h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  flex: 1;
}
.blog-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
}
.blog-meta span + span::before { content: '·'; margin-right: 10px; }
.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
}

/* ─── Отзывы — заглушка ──────────────────────────────────────────────── */

.reviews { background: var(--bg-alt); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-stub {
  padding: 32px;
  background: var(--bg);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--text-muted);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ─── FAQ ────────────────────────────────────────────────────────────── */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background 0.15s;
}
.faq-q:hover { background: var(--bg-alt); }
.faq-q .icon {
  flex: 0 0 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform 0.2s;
}
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner {
  padding: 0 28px 24px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ─── Финальный CTA ──────────────────────────────────────────────────── */

.final-cta {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(43, 92, 255, 0.20), transparent 60%);
  pointer-events: none;
}
.final-cta .container { position: relative; z-index: 1; }
.final-cta h2 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.final-cta h2 .accent { color: var(--accent); }
.final-cta p {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 580px;
  margin: 0 auto 32px;
}
.final-cta .btn-primary { background: #fff; color: var(--bg-dark); }
.final-cta .btn-primary:hover { background: var(--accent-soft); }
.final-cta .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.final-cta .btn-secondary:hover { border-color: #fff; color: #fff; }

/* ─── Footer ─────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-3);
  margin-top: 20px;
  max-width: 280px;
  line-height: 1.55;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── Адаптив ────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .hero h1 { font-size: 48px; }
  .section-title { font-size: 36px; }
  .final-cta h2 { font-size: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .stat-item:nth-child(3) { border-left: none; padding-left: 0; }
  .scenarios-grid,
  .included-grid,
  .audience-grid,
  .cases-grid,
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .earnings { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .nav-links { display: none; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 17px; }
  .section-title { font-size: 28px; }
  .final-cta h2 { font-size: 32px; }
  .pricing-card { padding: 32px 24px; }
  .pricing-amount { font-size: 48px; }
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
  .stat-item { border-left: none; padding-left: 0; }
  .scenarios-grid,
  .included-grid,
  .audience-grid,
  .cases-grid,
  .reviews-grid,
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .lesson-head { padding: 18px 20px; gap: 14px; }
  .lesson-body-inner { padding: 0 20px 20px 68px; }
}
