/* ============================================================
   Высший пилотаж — анимационная студия
   Светлый уютный дизайн. Палитра: фиолетовый → фуксия → янтарь.
   ============================================================ */

/* ---------- Переменные ---------- */
:root {
  --bg-0: #f7f5fb;
  --bg-1: #efeaf8;
  --surface: #ffffff;
  --surface-2: #fbf9ff;
  --line: rgba(120, 100, 150, 0.12);
  --line-strong: rgba(120, 100, 150, 0.24);

  --txt: #241f36;
  --txt-dim: #5c5373;
  --txt-mute: #8a81a0;

  --violet: #7c3aed;
  --fuchsia: #e0359a;
  --amber: #f59e0b;
  --cyan: #0ea5e9;

  --grad: linear-gradient(110deg, var(--violet), var(--fuchsia) 50%, var(--amber));
  --grad-soft: linear-gradient(110deg, rgba(124,58,246,0.10), rgba(224,53,154,0.08), rgba(245,158,11,0.06));

  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 24px 60px -30px rgba(70, 50, 110, 0.35);
  --shadow-soft: 0 12px 40px -22px rgba(70, 50, 110, 0.30);
  --maxw: 1180px;
  --font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, var(--bg-0), var(--bg-1));
  background-attachment: fixed;
  color: var(--txt);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Анимированный фон ---------- */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.35;
}
body::before {
  width: 640px; height: 640px;
  top: -200px; left: -140px;
  background: radial-gradient(circle at 30% 30%, rgba(124,58,246,0.55), transparent 65%);
  animation: floatA 18s ease-in-out infinite;
}
body::after {
  width: 600px; height: 600px;
  bottom: -180px; right: -140px;
  background: radial-gradient(circle at 70% 60%, rgba(224,53,154,0.45), transparent 65%);
  animation: floatB 22s ease-in-out infinite;
}
@keyframes floatA { 50% { transform: translate(90px, 70px) scale(1.12); } }
@keyframes floatB { 50% { transform: translate(-80px, -60px) scale(1.1); } }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Утилиты ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
  position: relative;
  z-index: 2;
}
.section { padding: 120px 0; position: relative; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--txt-mute);
  margin-bottom: 18px;
}
.section-tag::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; font-weight: 700; }
h2 { font-size: clamp(28px, 4.4vw, 52px); margin-bottom: 14px; letter-spacing: -0.02em; }
h2 .grad,
.gradient-text {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shift 8s linear infinite;
}
@keyframes shift { to { background-position: 200% center; } }
.lead { color: var(--txt-dim); font-size: clamp(15px, 1.5vw, 18px); max-width: 62ch; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 74px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-align: left;
  line-height: 1.1;
}
.logo .mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 8px 26px -8px rgba(224,53,154,0.6);
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 8px 26px -8px rgba(224,53,154,0.6); }
  50% { box-shadow: 0 8px 34px -6px rgba(124,58,246,0.7); }
}
.logo .words { display: flex; flex-direction: column; }
.logo .words .studio { font-size: 10px; letter-spacing: 0.32em; color: var(--txt-mute); text-transform: uppercase; }
.logo .words .name { font-size: 15px; letter-spacing: 0.16em; }

.nav { margin-left: auto; display: flex; gap: 6px; }
.nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--txt-dim);
  padding: 10px 16px;
  border-radius: 999px;
  transition: color .25s, background .25s, transform .2s;
}
.nav a:hover { color: var(--txt); background: var(--surface-2); }
.nav a.active { color: var(--txt); position: relative; }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 4px;
  transform: translateX(-50%);
  height: 2px;
  width: 22px;
  background: var(--grad);
  border-radius: 2px;
}

.phone-btn {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 12px 34px -14px rgba(224,53,154,0.7);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.phone-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 60px;
  position: relative;
}
.hero-head { max-width: 760px; margin-bottom: 48px; }
.hero-title {
  font-size: clamp(34px, 6vw, 74px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 22px;
}
.hero-sub { color: var(--txt-dim); font-size: clamp(15px, 1.6vw, 19px); max-width: 60ch; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.track {
  position: relative;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.track:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.track .media {
  height: 190px;
  overflow: hidden;
  position: relative;
}
.track .media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(255,255,255,0.9));
}
.track .media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.track:hover .media img { transform: scale(1.08); }
.track .track-body { padding: 26px 30px 30px; }
.track .num {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--txt-mute);
  margin-bottom: 14px;
}
.track h3 { font-size: clamp(20px, 2.4vw, 28px); margin-bottom: 12px; }
.track p { color: var(--txt-dim); font-size: 15px; }
.track .tag-pill {
  display: inline-block;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fuchsia);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 14px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.about-text p { color: var(--txt-dim); margin-bottom: 18px; }
.about-text strong { color: var(--txt); font-weight: 600; }
.about-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.about-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(255,255,255,0.12), transparent 40%);
  pointer-events: none;
}
.about-stats {
  position: absolute;
  left: 22px; right: 22px; bottom: 22px;
  display: flex;
  gap: 12px;
}
.stat {
  flex: 1;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  transition: transform .3s;
}
.stat:hover { transform: translateY(-4px); }
.stat .n { font-family: var(--font-display); font-size: 26px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { font-size: 11px; color: var(--txt-mute); margin-top: 4px; }

/* ---------- Team ---------- */
.team-head { max-width: 620px; margin-bottom: 44px; }
.team-head p { color: var(--txt-dim); margin-top: 10px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.member {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 28px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.member:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.member .avatar {
  width: 68px; height: 68px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
  background: var(--grad);
  box-shadow: 0 10px 30px -10px rgba(224,53,154,0.6);
  transition: transform .3s;
}
.member:hover .avatar { transform: rotate(-6deg) scale(1.05); }
.member .member-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.member .role { font-size: 13px; color: var(--fuchsia); font-weight: 600; margin-bottom: 14px; }
.member .bio { font-size: 14px; color: var(--txt-dim); }
.member .bio b { color: var(--txt); }
.member .link {
  display: inline-flex;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--amber);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .2s;
}
.member .link:hover { border-color: var(--amber); }

/* ---------- Courses ---------- */
.courses-head { max-width: 680px; margin-bottom: 44px; }
.courses-head p { color: var(--txt-dim); margin-top: 10px; }
.course-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.course {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.course:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.course .media {
  height: 210px;
  overflow: hidden;
  position: relative;
}
.course .media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,14,40,0.06), transparent 45%);
}
.course .media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.course:hover .media img { transform: scale(1.07); }
.course .card-body { padding: 30px 30px 8px; }
.course .age-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--grad);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 16px;
}
.course h3 { font-size: 24px; margin-bottom: 12px; }
.course .desc { color: var(--txt-dim); font-size: 15px; margin-bottom: 20px; }
.course ul { list-style: none; display: grid; gap: 10px; margin-bottom: 22px; }
.course li { position: relative; padding-left: 26px; color: var(--txt-dim); font-size: 14px; }
.course li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--grad);
  transform: rotate(45deg);
}
.course .meta {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin: 0 -14px;
  padding-left: 14px; padding-right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.course .meta .m-item { display: flex; flex-direction: column; }
.course .meta .m-k { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--txt-mute); }
.course .meta .m-v { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--txt); margin-top: 4px; }
.course .meta .m-v.price { color: var(--amber); }

/* ---------- Info page columns ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.info-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 30px 26px;
  position: relative;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.info-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.info-card .step-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.info-card h3 { font-size: 18px; margin-bottom: 14px; }
.info-card ol { list-style: none; display: grid; gap: 12px; }
.info-card li { position: relative; padding-left: 26px; color: var(--txt-dim); font-size: 14px; }
.info-card li::before {
  content: counter(item);
  position: absolute;
  left: 0; top: 0;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  border-radius: 6px;
}
.info-card li { counter-increment: item; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
  padding: 64px 0 40px;
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer .brand p { color: var(--txt-mute); font-size: 14px; margin-top: 14px; max-width: 34ch; }
.footer h4 {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--txt-mute);
  margin-bottom: 18px;
}
.footer .contacts p { font-size: 14px; color: var(--txt-dim); margin-bottom: 10px; }
.footer .contacts a.phone { font-family: var(--font-display); font-weight: 600; color: var(--txt); }
.footer-nav { display: flex; flex-direction: column; gap: 4px; }
.footer-nav a { font-size: 14px; color: var(--txt-dim); padding: 4px 0; transition: color .2s; }
.footer-nav a:hover { color: var(--txt); }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials a {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform .2s, background .2s, box-shadow .2s;
}
.socials a:hover { transform: translateY(-3px); background: var(--surface-2); box-shadow: var(--shadow-soft); }
.socials svg { width: 20px; height: 20px; fill: var(--txt-dim); transition: fill .2s; }
.socials a:hover svg { fill: var(--violet); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--txt-mute);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .course-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .team-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .nav { position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 4px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 16px; transform: translateY(-140%); transition: transform .3s ease; box-shadow: var(--shadow); }
  .nav.open { transform: none; }
  .nav a { display: block; padding: 14px; }
  .phone-btn { display: none; }
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    cursor: pointer;
  }
  .nav-toggle .bar, .nav-toggle .bar::before, .nav-toggle .bar::after {
    content: ""; display: block; width: 20px; height: 2px; background: var(--txt); position: absolute; border-radius: 2px; transition: transform .25s, opacity .25s;
  }
  .nav-toggle .bar::before { transform: translateY(-6px); }
  .nav-toggle .bar::after { transform: translateY(6px); }
  .nav-toggle.open .bar { background: transparent; }
  .nav-toggle.open .bar::before { transform: rotate(45deg) translate(2px, 2px); }
  .nav-toggle.open .bar::after { transform: rotate(-45deg) translate(2px, -2px); }
}
@media (max-width: 560px) {
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
