/* ===========================================================
   Умнатика — визуальная система (фиолетовый бренд)
   Только визуал. Шрифт — Nunito (кириллица, скруглённый).
   =========================================================== */

:root {
  /* Brand */
  --brand-700: #4F32C9;
  --brand-600: #6A4BE4;
  --brand-500: #7C5CF0;
  --brand-300: #B7A6F7;
  --brand-100: #ECE7FE;
  --brand-50:  #F5F2FF;
  --hero-from: #6B4DE6;
  --hero-to:   #8B5CF2;

  /* Accents */
  --green:      #1FB89A;
  --green-soft: #DCF6EF;
  --gold:       #FFB42A;
  --gold-soft:  #FFF1D2;
  --orange:     #FF8A5B;
  --orange-soft:#FFE6DA;
  --blue:       #3E7BFA;
  --blue-soft:  #E1ECFF;
  --pink:       #FF7AA8;

  /* Neutrals */
  --ink:    #211B45;
  --ink-2:  #3A3460;
  --muted:  #6E6A85;
  --faint:  #9C99AE;
  --line:   #ECEAF4;
  --line-2: #E2DEF1;
  --bg:     #F6F5FB;
  --card:   #FFFFFF;

  /* Radii */
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm:  0 4px 14px -6px rgba(70,45,150,.18);
  --shadow-card:0 16px 38px -16px rgba(70,45,150,.24);
  --shadow-lift:0 24px 60px -20px rgba(70,45,150,.34);
  --header-shadow: 0 8px 28px -14px rgba(70,45,150,.30);

  --maxw: 1200px;
  --header-h: 76px;
}

/* Per-page accent (set via data-accent on <html>). Home falls back to brand. */
:root {
  --accent-from: var(--hero-from);
  --accent-to:   var(--hero-to);
  --accent-solid:var(--brand-600);
  --accent-soft: var(--brand-100);
  --accent-ink:  var(--brand-700);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 88% -8%, var(--brand-50), transparent 60%),
    radial-gradient(900px 460px at -6% 4%, #FFF7EE, transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1,h2,h3 { margin: 0; line-height: 1.1; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===== Decorative floating shapes ===== */
.bg-decor { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; }
.shape { position: absolute; font-weight: 800; opacity: .14; color: var(--brand-500); }

/* Мобила: приглушаем крупные шары (.blob), чтобы не бликовали; призрачные глифы (.shape) не трогаем */
@media (max-width: 600px) {
  .blob { opacity: .1; filter: none; }
}

/* =====================================================================
   HEADER (shared)
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  transition: box-shadow .25s ease, background .25s ease;
}

.hdr-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 22px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark {
  width: 46px; height: 46px; border-radius: 13px;
  background: transparent;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.logo-word { font-size: 25px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }

/* Nav */
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: var(--r-pill);
  font-size: 16px; font-weight: 700; color: var(--ink-2);
  transition: background .18s ease, color .18s ease, transform .12s ease;
  white-space: nowrap;
}
.nav-link:hover { background: var(--brand-50); color: var(--brand-700); transform: translateY(-1px); }
.nav-link.is-active { background: var(--accent-solid); color: #fff; box-shadow: 0 8px 18px -10px var(--accent-solid); }

/* Right cluster */
.hdr-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* Burger (mobile) */
.burger { display: none; width: 46px; height: 46px; border-radius: 13px;
  background: var(--brand-50); color: var(--brand-700); place-items: center; }

/* ---------- Variant: BRAND (filled violet) ---------- */
[data-header="brand"] .site-header { background: linear-gradient(120deg, var(--accent-from), var(--accent-to)); }
[data-header="brand"] .site-header.is-stuck { box-shadow: 0 10px 30px -14px rgba(60,30,140,.6); }
[data-header="brand"] .logo-mark { background: #fff; box-shadow: 0 6px 14px -8px rgba(0,0,0,.3); }
[data-header="brand"] .logo-word { color: #fff; }
[data-header="brand"] .nav-link { color: rgba(255,255,255,.86); }
[data-header="brand"] .nav-link:hover { background: rgba(255,255,255,.16); color: #fff; }
[data-header="brand"] .nav-link.is-active { background: #fff; color: var(--accent-ink); box-shadow: 0 8px 18px -10px rgba(0,0,0,.3); }
[data-header="brand"] .burger { background: rgba(255,255,255,.18); color: #fff; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { padding: 38px 0 10px; position: relative; z-index: 1; }
.hero-card {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--accent-from), var(--accent-to));
  border-radius: var(--r-xl);
  padding: 56px 60px; color: #fff;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 24px;
  box-shadow: var(--shadow-card);
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero-copy h1 { text-wrap: balance; }
.hero-card::after {
  content: ""; position: absolute; right: -80px; top: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 65%);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; white-space: nowrap;
  background: rgba(255,255,255,.16); padding: 7px 14px; border-radius: var(--r-pill);
  font-weight: 800; font-size: 14px; letter-spacing: .02em;
}
.hero h1 { font-size: clamp(34px, 4.2vw, 54px); font-weight: 800; }
.hero h1 .u { color: #FFD86B; }
.hero-sub { margin-top: 18px; font-size: 19px; font-weight: 600; color: rgba(255,255,255,.9); max-width: 30ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 15px 26px; border-radius: var(--r-pill); font-weight: 800; font-size: 17px;
  transition: transform .14s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: #FFB42A; color: #5A3A00; box-shadow: 0 14px 26px -12px rgba(255,150,0,.8); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -12px rgba(255,150,0,.9); }
.btn-ghost { background: rgba(255,255,255,.16); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.26); transform: translateY(-2px); }

.hero-art { position: relative; display: grid; place-items: center; min-height: 300px; }
.hero-orb { position: absolute; border-radius: 50%; }
.owl-big {
  position: relative; z-index: 2; width: 220px; height: 220px; border-radius: 44px;
  background: #fff;
  display: grid; place-items: center;
  box-shadow: 0 26px 50px -18px rgba(40,20,110,.45), inset 0 2px 0 rgba(255,255,255,.6);
  animation: bob 4s ease-in-out infinite;
}
.float-sym {
  position: absolute; z-index: 3; font-weight: 900; color: #fff;
  background: rgba(255,255,255,.16); width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center; font-size: 26px; backdrop-filter: blur(2px);
  box-shadow: 0 10px 20px -10px rgba(0,0,0,.35);
}
.float-sym.s1 { top: 4%;  left: 6%;  color: #FFD86B; animation: bob 3.4s ease-in-out infinite; }
.float-sym.s2 { top: 12%; right: 4%; color: #8DEBD6; animation: bob 4.2s ease-in-out infinite .3s; }
.float-sym.s3 { bottom: 14%; left: 0%; color: #FFB8CF; animation: bob 3.8s ease-in-out infinite .5s; }
.float-sym.s4 { bottom: 4%; right: 10%; color: #fff; animation: bob 4.6s ease-in-out infinite .15s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }


/* =====================================================================
   SECTION
   ===================================================================== */
.section { padding: 52px 0 8px; position: relative; z-index: 1; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.sec-title { font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.sec-title small { display: block; font-size: 16px; font-weight: 700; color: var(--accent-solid); margin-bottom: 6px; letter-spacing: .04em; text-transform: uppercase; }
.sec-sub { color: var(--muted); font-weight: 600; font-size: 16px; max-width: 46ch; margin-top: 8px; }

/* Trainer cards */
.trainers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tcard {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .22s ease, border-color .2s;
  display: flex; flex-direction: column; min-height: 248px;
}
.tcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: var(--line-2); }
.tcard-ico { width: 60px; height: 60px; border-radius: 17px; display: grid; place-items: center; margin-bottom: 18px; }
.tcard h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.tcard p { color: var(--muted); font-weight: 600; font-size: 15.5px; flex-grow: 1; }
.tcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.tcard-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--brand-600); font-size: 16px; }
.tcard:hover .tcard-go { gap: 12px; }
.tag { font-size: 13px; font-weight: 800; padding: 5px 11px; border-radius: var(--r-pill); }





/* Подвал — единый футер платформы определён в assets/shell.css (подключён к главной
   перед styles.css). Дубль-порт удалён при дедупликации (Шаг 3). */




/* Tips / steps reuse .how + .step. Cross-links reuse .trainers/.tcard. */


/* =====================================================================
   MOBILE
   ===================================================================== */
.mobile-menu { display: none; }

@media (max-width: 920px) {
  .nav { display: none !important; }
  .burger { display: grid; }
  .hero-card { grid-template-columns: 1fr; padding: 40px 30px; }
  .hero-art { min-height: 200px; }
  .trainers { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero h1 { font-size: 32px; }
}

/* Mobile slide-down menu */
.mobile-menu.open { display: block; }
.mm-backdrop { position: fixed; inset: 0; background: rgba(33,27,69,.32); z-index: 70; backdrop-filter: blur(2px); animation: fade .2s ease; }
.mm-sheet {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  background: #fff; border-radius: 0 0 var(--r-xl) var(--r-xl); padding: 18px 20px 26px;
  box-shadow: var(--shadow-lift); animation: drop .26s cubic-bezier(.2,.9,.3,1.1);
}
.mm-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mm-links { display: flex; flex-direction: column; gap: 6px; }
.mm-links a {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r);
  font-weight: 800; font-size: 18px; color: var(--ink-2); background: var(--brand-50);
}
.mm-links a.is-active { background: var(--accent-solid); color: #fff; }
.mm-links a .mm-ic { width: 30px; height: 30px; display: grid; place-items: center; }
.close-btn { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drop { from { transform: translateY(-16px); opacity: .4; } to { transform: translateY(0); opacity: 1; } }
