/* =========================================================================
   Лендинг — шапка, hero, секции, подвал
   ========================================================================= */

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 22px; color: #fff;
  background: linear-gradient(150deg, var(--orange-400), var(--orange-600));
  box-shadow: var(--shadow-accent);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-ui); font-weight: 800; font-size: 16px; letter-spacing: .01em; }
.brand-text small { font-size: 11.5px; color: var(--text-muted); letter-spacing: .02em; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav-links { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.nav-links a { font-family: var(--font-ui); font-weight: 600; font-size: 14.5px; color: var(--text-soft); transition: color .2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { display: flex; gap: 10px; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 6px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--panel-border);
  background: var(--surface-2); color: var(--text); font-size: 17px; display: grid; place-items: center;
  transition: border-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--accent); transform: translateY(-1px); }

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--panel-border); border-radius: 12px; background: var(--surface-2); flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 18px; padding: 22px;
    background: var(--surface); border-bottom: 1px solid var(--panel-border);
    transform: translateY(-130%); transition: transform .35s var(--ease); box-shadow: var(--shadow-lg);
  }
  .nav.open { transform: translateY(0); }
  .nav-links { flex-direction: column; gap: 4px; }
  .nav-links a { display: block; padding: 11px 6px; font-size: 16px; border-bottom: 1px solid var(--hairline); }
  .nav-cta { flex-direction: column; }
  .nav-cta .btn { width: 100%; }
  .burger { display: flex; }
  body.nav-lock { overflow: hidden; }
}

/* ---------------- Hero ---------------- */
.hero { position: relative; padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-title { font-size: clamp(38px, 6vw, 68px); margin-block: 16px 0; }
.hero-sub { margin-top: 22px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { list-style: none; display: flex; gap: 30px; margin: 38px 0 0; padding: 26px 0 0; border-top: 1px solid var(--hairline); }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--font-display); font-size: 28px; font-weight: 700; }
.hero-stats span { font-size: 13px; color: var(--text-muted); }

.hero-visual { position: relative; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-xl); overflow: hidden;
  background: radial-gradient(120% 120% at 70% 10%, var(--navy-600), var(--navy-850));
  border: 1px solid var(--panel-border); box-shadow: var(--shadow-lg);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-fallback { position: absolute; inset: 0; display: none; place-items: center; }
.portrait.noimg .portrait-fallback { display: grid; }
.portrait-fallback span {
  font-family: var(--font-display); font-size: 140px; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px var(--orange-300); opacity: .55;
}
.portrait .deco { position: absolute; color: var(--orange-300); }
.portrait .sun { width: 54px; height: 54px; top: 22px; right: 22px; opacity: .9; }
.portrait .spark { color: var(--orange); }
.portrait .s1 { width: 22px; height: 22px; bottom: 40%; left: 18px; opacity: .85; }
.portrait .s2 { width: 14px; height: 14px; top: 30%; right: 30px; opacity: .7; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 11px;
  background: var(--surface); border: 1px solid var(--panel-border); border-radius: 14px;
  padding: 11px 15px; box-shadow: var(--shadow-lg); animation: floaty 5s ease-in-out infinite;
}
.float-card b { font-size: 14px; display: block; } .float-card small { font-size: 12px; color: var(--text-muted); }
.float-card .fc-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); font-size: 17px; }
.float-card .fc-ico.good { background: var(--good-soft); color: var(--good); }
.fc1 { left: -28px; top: 26%; }
.fc2 { right: -22px; bottom: 16%; animation-delay: 1.4s; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 420px; margin-inline: auto; }
  .fc1 { left: 0; } .fc2 { right: 0; }
}
@media (max-width: 460px) { .hero-stats { gap: 18px; } .hero-stats b { font-size: 23px; } }

/* ---------------- Section titles ---------------- */
.section-title { font-size: clamp(28px, 4.5vw, 44px); margin-block: 12px; }

/* ---------------- Formats ---------------- */
.format { padding: 30px 26px; }
.format-ico {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 28px;
  background: var(--accent-soft); border: 1px solid var(--accent-ring); margin-bottom: 16px;
}
.format h3 { font-family: var(--font-ui); font-weight: 800; font-size: 19px; margin-bottom: 8px; }

/* ---------------- Courses ---------------- */
.course-card { position: relative; padding: 28px 26px; overflow: hidden; display: flex; flex-direction: column; }
.course-glow { position: absolute; top: -60px; right: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, var(--c) 0%, transparent 70%); opacity: .16; pointer-events: none; }
.course-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.course-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.course-card .badge { background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.course-card h3 { font-family: var(--font-display); font-size: 25px; margin-bottom: 8px; }
.course-tag { margin-bottom: 18px; }
.course-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 22px; padding: 0; font-size: 13px; color: var(--text-muted); }
.course-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--hairline); }
.course-price { font-size: 13px; color: var(--text-muted); }
.course-price b { font-family: var(--font-ui); font-size: 20px; color: var(--text); }
.course-price span { font-size: 12px; }

/* ---------------- How ---------------- */
.steps .step { padding: 8px 6px; }
.step-n { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-ring); margin-bottom: 16px; }
.step h3 { font-family: var(--font-ui); font-weight: 800; font-size: 17px; margin-bottom: 7px; }
.steps { counter-reset: s; }

/* ---------------- About ---------------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.about-photo { position: relative; aspect-ratio: 1; border-radius: var(--r-xl); overflow: hidden; max-width: 380px; background: radial-gradient(120% 120% at 30% 20%, var(--navy-600), var(--navy-850)); border: 1px solid var(--panel-border); box-shadow: var(--shadow-lg); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-fallback { position: absolute; inset: 0; display: none; place-items: center; }
.about-photo.noimg .about-photo-fallback { display: grid; }
.about-photo-fallback span { font-family: var(--font-display); font-size: 120px; color: transparent; -webkit-text-stroke: 2px var(--orange-300); opacity: .5; }
.about-points { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.about-points li { color: var(--text-soft); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; gap: 30px; } .about-photo { margin-inline: auto; } }

/* ---------------- Reviews ---------------- */
.review { padding: 28px 26px; }
.stars { color: var(--orange); letter-spacing: 3px; margin-bottom: 14px; }
.review-text { font-size: 16.5px; color: var(--text); margin-bottom: 20px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-author b { display: block; font-size: 14.5px; } .review-author small { font-size: 12.5px; }

/* ---------------- Pricing ---------------- */
.tariff { padding: 30px 26px; display: flex; flex-direction: column; gap: 14px; }
.tariff.featured { border-color: var(--accent-ring); box-shadow: var(--shadow-accent); position: relative; }
.tariff-price { display: flex; align-items: baseline; gap: 6px; }
.tariff-price b { font-family: var(--font-display); font-size: 38px; font-weight: 800; }
.tariff-price span { color: var(--text-muted); font-size: 14px; }
.tariff-list { list-style: none; margin: 4px 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tariff-list li { color: var(--text-soft); font-size: 14.5px; }
.tariff .btn { margin-top: auto; }
.pay-note { text-align: center; margin-top: 28px; font-size: 14px; }
.pay-note a { color: var(--accent); text-decoration: underline; }

/* ---------------- CTA band ---------------- */
.cta-band { background: linear-gradient(120deg, var(--orange), var(--orange-600)); color: #fff; }
.cta-inner { display: flex; align-items: center; gap: 26px; padding-block: clamp(40px, 6vw, 64px); position: relative; }
.cta-inner h2 { font-size: clamp(24px, 3.6vw, 38px); color: #fff; }
.cta-inner p { color: rgba(255, 255, 255, .9); margin-top: 6px; }
.cta-inner .btn { margin-left: auto; }
.cta-spark { width: 40px; height: 40px; color: rgba(255, 255, 255, .85); flex: none; animation: floaty 4s ease-in-out infinite; }
@media (max-width: 720px) { .cta-inner { flex-direction: column; text-align: center; } .cta-inner .btn { margin-left: 0; } }

/* ---------------- FAQ ---------------- */
.faq-wrap { max-width: 820px; margin-inline: auto; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--panel-border); border-radius: var(--r); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 22px; font-family: var(--font-ui); font-weight: 700; font-size: 16.5px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 18px; height: 18px; flex: none; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .25s; }
.faq-plus::before { left: 0; right: 0; top: 8px; height: 2px; }
.faq-plus::after { top: 0; bottom: 0; left: 8px; width: 2px; }
.faq-item[open] .faq-plus::after { transform: scaleY(0); }
.faq-a { padding: 0 22px 22px; color: var(--text-soft); line-height: 1.65; }

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--hairline); background: var(--bg-2); padding-top: 56px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 36px; }
.footer-brand p { margin: 14px 0 16px; max-width: 320px; }
.footer-col h4 { font-family: var(--font-ui); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.footer-col a { display: block; padding: 6px 0; color: var(--text-soft); font-size: 14.5px; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 34px; border-top: 1px solid var(--hairline); font-size: 13px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
