/* ═══════════════════════════════════════════════
   УМНЯШКИ · Детский клуб · sad.aplika.cc
   ═══════════════════════════════════════════════ */

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

:root {
  /* Умняшки × iSpring: чистая геометрия + фиолетовый бренд */
  --white: #ffffff;
  --cream: #faf9fc;
  --cream2: #f4f2f8;
  --ink: #14121f;
  --ink2: #2d2a3d;
  --muted: #5e5a6f;
  --line: rgba(20, 18, 31, 0.08);

  --accent: #ff8562;
  --accent-dark: #f06b42;
  --accent-bg: #fff4ef;
  --brand: #8860d9;
  --brand-dark: #6f4fc4;
  --brand-light: #cfbff1;
  --brand-bg: #f6f2fc;
  --brand-soft: #ede7fa;
  --navy: var(--brand-dark);
  --navy-light: var(--brand);
  --teal: #3d8b8b;
  --teal-bg: #e8f4f4;
  --sage: #5a8f6a;
  --sage-light: #7cb88a;
  --sage-bg: #edf5ef;
  --gold: #d4a054;
  --gold-bg: #faf3e6;

  --blue: var(--navy-light);
  --blue-light: var(--teal);
  --blue-bg: var(--teal-bg);
  --green: var(--sage);
  --green-light: var(--sage-light);
  --green-bg: var(--sage-bg);
  --coral: var(--accent);
  --coral-bg: var(--accent-bg);

  --intellect: linear-gradient(135deg, #6f4fc4 0%, #8860d9 100%);
  --creative: linear-gradient(135deg, #4a7c59 0%, #6aa67a 100%);
  --lead-bg: linear-gradient(160deg, #7d58d4 0%, #8860d9 42%, #6f4fc4 100%);
  --hero-mesh: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 255, 255, 0.14) 0%, transparent 55%),
               radial-gradient(ellipse 50% 50% at 0% 100%, rgba(207, 191, 241, 0.2) 0%, transparent 50%);

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: var(--font);
  --w: 1180px;
  --nav-h: 80px;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow: 0 2px 8px rgba(20, 18, 31, 0.04), 0 20px 48px rgba(111, 79, 196, 0.1);
  --shadow-sm: 0 1px 3px rgba(20, 18, 31, 0.04), 0 8px 24px rgba(20, 18, 31, 0.05);
  --shadow-card: 0 4px 20px rgba(20, 18, 31, 0.06);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  color: var(--ink2);
  background: var(--white);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--white); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── LAYOUT ── */
.sec {
  padding: clamp(80px, 11vw, 132px) 24px;
  max-width: var(--w);
  margin: 0 auto;
}

.sec--cream { background: linear-gradient(180deg, #ffffff 0%, var(--brand-bg) 100%); max-width: none; }
.sec--cream > * { max-width: var(--w); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }

.sec--white {
  background: #ffffff;
  max-width: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sec--white > * { max-width: var(--w); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }

.sec--soft {
  background: linear-gradient(180deg, #f6f2fc 0%, #efe9f9 100%);
  max-width: none;
  border-top: 1px solid rgba(136, 96, 217, 0.1);
  border-bottom: 1px solid rgba(136, 96, 217, 0.08);
}
.sec--soft > * { max-width: var(--w); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }

.sec--dark { background: var(--ink); color: #fff; max-width: none; border-top: none; border-bottom: none; }
.sec--dark > * { max-width: var(--w); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }

.sec__head { margin-bottom: 56px; }
.sec__head--center { text-align: center; }
.sec__head--center .lead { margin-left: auto; margin-right: auto; }

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-dark);
  background: var(--brand-soft);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.tag--light {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

h2 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.04em;
}

.h2--light { color: #fff; }

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 580px;
  margin-top: 20px;
  line-height: 1.75;
  font-weight: 400;
}

.lead--light { color: rgba(255, 255, 255, 0.72); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 133, 98, 0.35);
}

.btn--primary:hover { box-shadow: 0 8px 28px rgba(255, 133, 98, 0.42); }

.btn--shine {
  position: relative;
  overflow: hidden;
}

.btn--shine::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease-out);
}

.btn--shine:hover::after { transform: translateX(120%); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover { background: rgba(255, 255, 255, 0.25); }

.btn--outline {
  background: #fff;
  border-color: rgba(136, 96, 217, 0.35);
  color: var(--brand-dark);
  box-shadow: var(--shadow-sm);
}

.btn--outline:hover {
  background: var(--brand-bg);
  border-color: var(--brand);
}

.btn--block { width: 100%; }

.btn--sm { padding: 10px 20px; font-size: 0.88rem; }
.btn--lg { padding: 18px 36px; font-size: 1rem; }

/* ── HEADER ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
}

.header__bar {
  background: #ffffff;
  backdrop-filter: blur(20px) saturate(1.1);
  border-bottom: 1px solid rgba(20, 18, 31, 0.08);
  height: 100%;
  box-shadow: 0 1px 0 rgba(20, 18, 31, 0.06);
  transition: box-shadow 0.3s;
}

.header__in {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo__img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.logo__text--hide-mobile i { display: block; }

@media (max-width: 480px) {
  .logo__text--hide-mobile { display: none; }
  .logo__img { height: 38px; }
}

.logo__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--intellect);
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo__mark--sm { width: 36px; height: 36px; font-size: 1.1rem; border-radius: 10px; }

.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__text b { font-size: 1.05rem; color: var(--ink); }
.logo__text i { font-size: 0.72rem; color: var(--muted); font-style: normal; }

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink2);
  transition: color 0.2s;
  position: relative;
  letter-spacing: -0.01em;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: width 0.3s var(--ease-out);
}

.nav a:hover,
.nav a.is-active { color: var(--brand-dark); }

.nav a.is-active::after,
.nav a:hover::after { width: 100%; }

.header__meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__phone {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  white-space: nowrap;
}

.header__social { display: flex; gap: 8px; }

.soc {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.soc:hover { transform: scale(1.08); }
.soc--vk { background: #0077ff; color: #fff; }
.soc--tg { background: #229ed9; color: #fff; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobnav {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--white);
  z-index: 199;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobnav.is-open { transform: translateX(0); }

.mobnav a {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.mobnav__phone { color: var(--blue) !important; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 24px 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-color: #8860d9;
  background-image:
    linear-gradient(135deg, rgba(111, 79, 196, 0.88) 0%, rgba(136, 96, 217, 0.82) 50%, rgba(125, 88, 212, 0.9) 100%),
    url('../img/hero-cover.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-mesh);
}

.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

.shape--1 { width: 400px; height: 400px; top: -100px; right: -100px; animation: float 8s ease-in-out infinite; }
.shape--2 { width: 200px; height: 200px; bottom: 20%; left: 5%; animation: float 6s ease-in-out infinite reverse; }
.shape--3 { width: 120px; height: 120px; top: 40%; right: 30%; animation: float 7s ease-in-out infinite 1s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

.hero__in {
  position: relative;
  z-index: 2;
  max-width: var(--w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__copy { max-width: 560px; }

.hero__visual {
  position: relative;
  height: 420px;
  display: none;
}

@media (min-width: 900px) {
  .hero__visual { display: block; }
}

.hero__card {
  position: absolute;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 56px rgba(20, 18, 31, 0.18);
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.hero__card--1 {
  width: 55%;
  height: 70%;
  top: 5%;
  right: 5%;
  animation: cardFloat 5s ease-in-out infinite;
}

.hero__card--2 {
  width: 45%;
  height: 50%;
  bottom: 8%;
  left: 0;
  animation: cardFloat 6s ease-in-out infinite 0.5s;
}

.hero__card--3 {
  width: 35%;
  height: 35%;
  top: 0;
  left: 15%;
  animation: cardFloat 7s ease-in-out infinite 1s;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero__badge {
  position: absolute;
  bottom: 12%;
  right: -8px;
  background: var(--white);
  padding: 14px 20px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-align: center;
  animation: cardFloat 4s ease-in-out infinite;
}

.hero__badge span { display: block; font-weight: 800; font-size: 1.2rem; color: var(--navy); }
.hero__badge small { font-size: 0.72rem; color: var(--muted); }

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.75rem, 5.8vw, 4.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: normal;
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
}

.hero__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.14);
  padding: 10px 18px;
  border-radius: 999px;
  margin-bottom: 30px;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__lead {
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 40px;
  font-weight: 400;
}

.hero__lead strong { color: #fff; }

.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero__stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__stats b {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hero__stats span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

/* ── AFISHA ── */
#afisha {
  position: relative;
  z-index: 0;
}

.afisha {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.afisha__loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 40px;
}

.afisha-card {
  background: #ffffff;
  border: 1px solid rgba(136, 96, 217, 0.14);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
  box-shadow: 0 8px 32px rgba(111, 79, 196, 0.1);
}

.afisha-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(111, 79, 196, 0.16);
  border-color: rgba(136, 96, 217, 0.28);
}

.afisha-card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-dark);
  background: var(--brand-soft);
  padding: 7px 12px;
  border-radius: 999px;
  width: fit-content;
}

.afisha-card h3 {
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.afisha-card p {
  font-size: 0.95rem;
  color: var(--muted);
  flex: 1;
  line-height: 1.65;
}

.afisha-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink2);
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.afisha-card .btn {
  margin-top: 4px;
  border-radius: 14px;
  padding: 14px 20px;
}

/* ── LEAD ── */
.lead {
  background: #ffffff;
  padding: clamp(80px, 10vw, 120px) 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.lead::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.lead__in {
  max-width: var(--w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.lead h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.lead p { color: var(--muted); line-height: 1.7; }

.lead__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.messenger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 28px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: -0.01em;
}

.messenger-btn:hover { transform: translateY(-2px); }

.messenger-btn--tg {
  background: linear-gradient(135deg, #229ed9, #1a8bc7);
  box-shadow: 0 8px 24px rgba(34, 158, 217, 0.35);
}

.messenger-btn--max {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.messenger-btn--sm {
  padding: 12px 20px;
  font-size: 0.9rem;
  border-radius: 12px;
  flex: 1;
}

.lead__consent {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
}

/* ── BENEFITS ── */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.benefit {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(136, 96, 217, 0.08);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
  box-shadow: var(--shadow-sm);
}

.benefit:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.benefit--photo { padding: 0; }

.benefit__photo {
  height: 160px;
  overflow: hidden;
  position: relative;
}

.benefit__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 40, 48, 0.35) 0%, transparent 50%);
  pointer-events: none;
}

.benefit__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.benefit:hover .benefit__photo img { transform: scale(1.06); }

.benefit__body { padding: 22px 24px 26px; }

.benefit__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.benefit__icon--blue { background: var(--blue-bg); }
.benefit__icon--green { background: var(--green-bg); }
.benefit__icon--coral { background: var(--coral-bg); }
.benefit__icon--purple { background: #f3e8ff; }
.benefit__icon--yellow { background: #fef9c3; }
.benefit__icon--mint { background: #ccfbf1; }

.benefit h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.025em;
}

.benefit p { font-size: 0.92rem; color: var(--muted); line-height: 1.6; }

/* ── ABOUT / WHY US (prose) ── */
.about-prose {
  max-width: 760px;
  margin: 0 auto;
}

.about-prose__lead {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: 20px;
  text-align: center;
}

.about-prose > p {
  color: var(--muted);
  margin-bottom: 16px;
  text-align: center;
}

.about-points {
  display: grid;
  gap: 14px;
  margin: 24px 0 28px;
}

.about-point {
  background: var(--brand-bg, #f6f1ff);
  border: 1px solid rgba(136, 96, 217, 0.12);
  border-radius: 16px;
  padding: 18px 20px;
}

.about-point h3 {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.about-point p {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.about-club {
  background: linear-gradient(135deg, rgba(136, 96, 217, 0.1), rgba(136, 96, 217, 0.04));
  border-radius: 20px;
  padding: 24px 26px;
  border: 1px solid rgba(136, 96, 217, 0.14);
}

.about-club p {
  color: var(--ink);
  line-height: 1.65;
  margin: 0 0 14px;
  font-size: 0.98rem;
}

.about-club p:last-child { margin-bottom: 0; }

/* ── TRACKS ── */
.tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

.track {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 28px 32px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  color: #fff;
  transition: transform 0.25s, box-shadow 0.25s, opacity 0.25s;
  opacity: 0.75;
  position: relative;
  z-index: 2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255,255,255,0.2);
  user-select: none;
}

.track.is-active { opacity: 1; transform: scale(1.02); box-shadow: var(--shadow); }
.track:hover { opacity: 1; }

.track--intellect { background: var(--intellect); }
.track--creative { background: var(--creative); }

.track__icon { opacity: 0.9; }
.track__label { font-size: 1.35rem; font-weight: 800; font-family: var(--display); letter-spacing: -0.035em; }
.track__age { font-size: 0.88rem; opacity: 0.85; font-weight: 600; }

/* ── COURSES ── */
.courses {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.course-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
  box-shadow: var(--shadow-sm);
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(136, 96, 217, 0.16);
}

.course-card__img {
  height: 180px;
  position: relative;
  overflow: hidden;
  background: var(--cream2);
}

.course-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.course-card:hover .course-card__img img {
  transform: scale(1.06);
}

.course-card__age {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.course-card__body { padding: 20px; }

.course-card h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.35;
  margin-bottom: 8px;
}

.course-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.courses__cta { text-align: center; margin-top: 40px; }

.course-card--featured {
  border-color: rgba(136, 96, 217, 0.35);
  box-shadow: 0 12px 40px rgba(136, 96, 217, 0.18);
}

.course-card--featured .course-card__img::after {
  content: 'Флагман';
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── PRODLENKA ── */
.prodlenka {
  background: linear-gradient(160deg, #7d58d4 0%, #8860d9 50%, #6f4fc4 100%);
  padding: clamp(72px, 9vw, 108px) 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.prodlenka::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 90% 10%, rgba(255,255,255,0.12), transparent 60%);
  pointer-events: none;
}

.prodlenka__in {
  max-width: var(--w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.prodlenka h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  margin-bottom: 16px;
  color: #fff;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.prodlenka__intro {
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 640px;
}

.prodlenka__list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 720px;
}

.prodlenka__list li {
  position: relative;
  padding-left: 28px;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
  font-size: 0.95rem;
}

.prodlenka__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.prodlenka__list strong { color: #fff; }

/* Course gradients removed — using real photos */

/* ── TEACHERS ── */
.teachers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.teacher {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--line);
}

.teacher__photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.teacher__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--intellect);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.teacher__avatar--alt { background: var(--creative); }

.teacher h3 { font-family: var(--display); font-size: 1.12rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; letter-spacing: -0.025em; }
.teacher__role { font-size: 0.85rem; color: var(--brand); font-weight: 600; margin-bottom: 12px; }
.teacher p { font-size: 0.92rem; color: var(--muted); line-height: 1.65; }

/* ── REVIEWS ── */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.review {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review__stars { color: #fbbf24; font-size: 1.1rem; letter-spacing: 2px; }
.review p { font-size: 0.95rem; color: var(--ink2); line-height: 1.7; flex: 1; font-style: italic; }
.review footer,
.review__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.review__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.review__author div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review footer b,
.review__author b { font-size: 0.92rem; color: var(--ink); }

.review footer span,
.review__author span { font-size: 0.82rem; color: var(--muted); }

.yandex-btn { margin: 0 auto; display: flex; width: fit-content; }

/* ── VIDEO ── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.video-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: #fff;
  transition: transform 0.25s;
}

.video-card:hover { transform: translateY(-4px); }

.video-card__thumb {
  height: 180px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.video-card__thumb--2 { background: linear-gradient(135deg, #059669, #0d9488); }

.video-card__play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.video-card p { padding: 20px; font-size: 0.95rem; font-weight: 600; line-height: 1.5; }

/* ── GALLERY ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 12px;
}

.gallery__item {
  border-radius: 16px;
  background-size: cover;
  background-position: center 30%;
  border: none;
  padding: 0;
  cursor: pointer;
}

.gallery__item--1 { grid-column: span 2; grid-row: span 2; }

/* ── CONTACTS ── */
.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contacts h2 { margin-bottom: 28px; }

.contacts__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.contacts__list li { display: flex; flex-direction: column; gap: 4px; }
.contacts__lbl { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.contacts__list a { font-weight: 700; color: var(--blue); }

.contacts__messengers { display: flex; gap: 12px; }

.contacts__map {
  border-radius: var(--radius);
  overflow: hidden;
  height: 360px;
  border: 1px solid var(--line);
  background: var(--cream2);
}

.contacts__map iframe { border: 0; }

/* ── FOOTER ── */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 24px;
}

.footer__in {
  max-width: var(--w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__brand b { display: block; color: #fff; font-size: 0.95rem; }
.footer__brand span { font-size: 0.78rem; }

.footer__nav { display: flex; gap: 24px; }
.footer__nav a { font-size: 0.88rem; font-weight: 600; transition: color 0.2s; }
.footer__nav a:hover { color: #fff; }

.footer__legal a { font-size: 0.82rem; text-decoration: underline; }

/* ── FAB ── */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 150;
}

.fab__btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: var(--intellect);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.fab__btn:hover { transform: scale(1.06); }

.fab__icon--close { display: none; }
.fab__btn.is-open .fab__icon--chat { display: none; }
.fab__btn.is-open .fab__icon--close { display: block; }

.fab__menu {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
}

.fab__menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fab__opt {
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  white-space: nowrap;
  text-align: center;
}

.fab__opt--tg { background: #229ed9; }
.fab__opt--max { background: #7c3aed; }
.fab__opt--phone { background: var(--ink); }

/* ── BTT ── */
.btt {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.2s;
}

.btt[hidden] { display: none; }

/* ── MODAL ── */
.modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 560px;
  width: calc(100% - 32px);
}

.modal::backdrop { background: rgba(26, 22, 37, 0.6); backdrop-filter: blur(4px); }

.modal__in {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 2;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal__img {
  height: 220px;
  overflow: hidden;
  background: var(--cream2);
}

.modal__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal__body { padding: 28px; }

.modal__age {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-bg);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.modal__body h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}

.modal__body p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.modal--video { max-width: 800px; }
.modal__close--video { position: fixed; top: 20px; right: 20px; }
.modal__video { aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; }
.modal__video iframe { width: 100%; height: 100%; border: 0; }

/* ═══ PREMIUM LAYER: animations, marquee, FAQ, etc. ═══ */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  z-index: 300;
  transition: width 0.1s linear;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--d1 { transition-delay: 0.1s; }
.reveal--d2 { transition-delay: 0.2s; }
.reveal--d3 { transition-delay: 0.3s; }
.reveal--d4 { transition-delay: 0.4s; }
.reveal--d5 { transition-delay: 0.5s; }

.marquee {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.9);
  padding: 16px 0;
  overflow: hidden;
  border-block: none;
  box-shadow: 0 8px 32px rgba(79, 55, 137, 0.25);
  position: relative;
  z-index: 1;
}

.marquee__track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
}

.marquee__track i { color: var(--brand-light); font-style: normal; opacity: 0.8; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.afisha-wrap { overflow: visible; }

@media (max-width: 768px) {
  .afisha {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.method {
  background: linear-gradient(160deg, #4e3789 0%, #5a3f9e 55%, #6f4fc4 100%);
  padding: clamp(72px, 9vw, 108px) 24px;
  position: relative;
  overflow: hidden;
}

.method::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.method__in {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.method h2 { color: #fff; font-family: var(--display); font-size: clamp(2rem, 4vw, 2.85rem); margin-bottom: 16px; font-weight: 800; letter-spacing: -0.04em; }
.method p { color: rgba(255,255,255,0.75); line-height: 1.75; margin-bottom: 24px; }

.method__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.method__list li {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  padding-left: 28px;
  position: relative;
}

.method__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 800;
}

.method__visual {
  position: relative;
  height: 320px;
}

.method__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}

.method__orb--1 { width: 200px; height: 200px; background: var(--accent); top: 0; right: 20%; animation: float 6s ease-in-out infinite; }
.method__orb--2 { width: 160px; height: 160px; background: var(--teal); bottom: 10%; left: 10%; animation: float 8s ease-in-out infinite reverse; }

.method__card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 24px;
  padding: 40px 48px;
  text-align: center;
}

.method__num { display: block; font-family: var(--display); font-size: 3.5rem; font-weight: 600; color: #fff; line-height: 1; letter-spacing: -0.04em; }
.method__lbl { font-size: 0.9rem; color: rgba(255,255,255,0.7); font-weight: 500; }

.track {
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s, opacity 0.3s;
}

.courses.is-switching {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s;
}

.course-card {
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.course-card:hover .course-card__img {
  transform: scale(1.05);
}

.course-card__img {
  transition: transform 0.5s var(--ease-out);
  overflow: hidden;
}

.course-card::after {
  content: 'Подробнее →';
  display: block;
  padding: 0 20px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s, transform 0.3s;
}

.course-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.reviews-slider { position: relative; }

@media (max-width: 768px) {
  .reviews {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 12px;
    scrollbar-width: none;
  }
  .reviews::-webkit-scrollbar { display: none; }
  .review { min-width: 88%; scroll-snap-align: center; flex-shrink: 0; }
}

.reviews-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .reviews-dots { display: flex; }
}

.reviews-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.3s, transform 0.3s;
}

.reviews-dots span.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

.faq {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.faq__item[open] { box-shadow: var(--shadow-sm); }

.faq__item summary {
  padding: 20px 24px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.3s var(--ease-out);
}

.faq__item[open] summary::after { transform: rotate(45deg); }

.faq__item p {
  padding: 0 24px 20px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.gallery__item {
  border: none;
  cursor: pointer;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.gallery__item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
  z-index: 2;
}

.gallery__item--1 { background: linear-gradient(160deg, #5a8f6a, #1b3a4b); }
.gallery__item--2 { background: linear-gradient(160deg, #3d8b8b, #2d5a73); }
.gallery__item--3 { background: linear-gradient(160deg, #e07a5f, #d4a054); }
.gallery__item--4 { background: linear-gradient(160deg, #7cb88a, #4a7c59); }

/* removed duplicate gallery mobile - see MOBILE UX */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 180;
  display: none;
  gap: 10px;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: rgba(255, 252, 250, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
}

.sticky-cta.is-visible { transform: translateY(0); }

@media (max-width: 768px) {
  .sticky-cta { display: flex; }
  .btt { bottom: 88px; right: 16px; }
}

.sticky-cta__btn {
  flex: 1;
  padding: 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
}

.sticky-cta__btn--tg,
.sticky-cta__btn--max { background: #229ed9; color: #fff; }
.sticky-cta__btn--main { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; flex: 1.4; }

.modal__in {
  animation: modalIn 0.4s var(--ease-out);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .nav, .header__meta .header__phone, .header__social, .header__meta .btn { display: none; }
  .burger { display: flex; }
  .lead__in { grid-template-columns: 1fr; }
  .method__in { grid-template-columns: 1fr; }
  .method__visual { height: 240px; }
  .contacts { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery__item--1 { grid-row: span 1; }
  .gallery__item { height: 200px; }
}

.footer__logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* ── MOBILE UX ── */
@media (max-width: 899px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .sec--soft > *,
  .sec--white > *,
  .sec--cream > * {
    padding-left: 0;
    padding-right: 0;
  }

  .sec { padding: 52px 16px; }
  .sec__head { margin-bottom: 32px; }
  .sec__head--center { text-align: left; }

  #afisha .sec__head,
  #courses .sec__head,
  #reviews .sec__head {
    text-align: left;
  }

  #about .sec__head--center,
  #teachers .sec__head--center,
  #gallery .sec__head--center,
  #faq .sec__head--center {
    text-align: center;
  }

  #afisha .lead,
  #courses .lead {
    margin-left: 0;
    margin-right: 0;
  }

  h2 { font-size: clamp(1.75rem, 7vw, 2.4rem); }

  .lead { font-size: 1.05rem; }

  /* Hero */
  .hero {
    min-height: auto;
    padding: calc(var(--nav-h) + 24px) 16px 40px;
  }

  .hero__in {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 28px;
  }

  .hero__copy { max-width: none; margin: 0; }

  .hero h1 { font-size: clamp(2rem, 9vw, 2.75rem); }

  .hero__lead {
    margin-left: 0;
    margin-right: 0;
    font-size: 1.05rem;
  }

  .hero__btns {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero__btns .btn { width: 100%; justify-content: center; }

  .hero__stats {
    justify-content: flex-start;
    gap: 24px;
  }

  .hero__visual {
    display: block;
    height: 240px;
    margin-top: 8px;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  }

  .hero__card {
    animation: none !important;
    border-width: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .hero__card--1 {
    position: relative;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
  }

  .hero__card--2,
  .hero__card--3 { display: none; }

  .hero__badge {
    right: 12px;
    bottom: 12px;
    padding: 10px 14px;
    border-radius: 12px;
  }

  .scroll-hint { display: none; }

  /* Афиша */
  .afisha { gap: 16px; }

  .afisha-card {
    padding: 24px 20px 20px;
    box-shadow: 0 6px 28px rgba(111, 79, 196, 0.12);
  }

  .afisha-card h3 { font-size: 1.2rem; line-height: 1.3; }

  .afisha-card p { font-size: 1rem; line-height: 1.65; }

  .afisha-card__meta {
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
  }

  .afisha-card .btn {
    padding: 16px 20px;
    font-size: 1rem;
    min-height: 52px;
  }

  /* Lead */
  .lead { padding: 52px 16px; }

  .lead__in { gap: 28px; }

  .lead h2 { font-size: clamp(1.75rem, 7vw, 2.3rem); }

  .messenger-btn {
    padding: 18px 20px;
    font-size: 1rem;
    min-height: 56px;
    border-radius: 14px;
  }

  .lead__actions { position: static; }

  /* Продлёнка / методика */
  .prodlenka,
  .method { padding: 52px 16px; }

  .prodlenka__intro,
  .method p { font-size: 1rem; }

  .prodlenka__list li { font-size: 0.95rem; }

  /* Преимущества */
  .benefits { grid-template-columns: 1fr; gap: 16px; }

  .benefit__photo { height: 180px; }

  .benefit__body { padding: 20px; }

  /* Курсы */
  .tracks { gap: 12px; }

  .track {
    padding: 20px;
    min-height: auto;
    width: 100%;
  }

  .track__label { font-size: 1.15rem; }

  .courses { grid-template-columns: 1fr; gap: 14px; }

  .course-card {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .course-card__img {
    width: 100%;
    height: 200px;
    min-height: 200px;
  }

  .course-card__body {
    padding: 18px 20px 20px;
  }

  .course-card h3 { font-size: 1.05rem; }

  .course-card p { font-size: 0.92rem; }

  .course-card::after { display: none; }

  .courses__cta .btn { width: 100%; }

  /* Педагоги */
  .teachers { grid-template-columns: 1fr; }

  .teacher { padding: 24px; }

  /* Отзывы */
  .reviews { gap: 14px; padding-bottom: 8px; }

  .review {
    min-width: calc(100% - 8px);
    padding: 24px 20px;
  }

  /* FAQ */
  .faq__item summary {
    padding: 18px 20px;
    font-size: 0.98rem;
    line-height: 1.4;
  }

  .faq__item p { padding: 0 20px 20px; font-size: 0.95rem; }

  /* Галерея — сетка, без горизонтального скролла */
  .gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    overflow: visible;
  }

  .gallery__item {
    min-width: 0;
    height: 190px;
    scroll-snap-align: unset;
    flex-shrink: unset;
  }

  .gallery__item--1 { grid-column: span 2; height: 200px; }

  /* Контакты */
  .contacts { gap: 28px; }

  .contacts__map { height: 260px; min-height: 260px; }

  .contacts__messengers {
    flex-direction: column;
  }

  .contacts__messengers .messenger-btn--sm {
    width: 100%;
    min-height: 52px;
  }

  /* Модалка курса */
  .modal {
    width: calc(100% - 24px);
    max-width: none;
    margin: auto;
  }

  .modal__in {
    max-height: min(90dvh, 720px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal__img { height: 200px; }

  .modal__body { padding: 22px 20px 24px; }

  .modal__body h3 { font-size: 1.2rem; }

  .modal__body p { font-size: 0.95rem; }

  .modal__body .btn { width: 100%; min-height: 52px; }

  /* Нижняя панель — без дубля FAB */
  .fab { display: none; }

  .mobnav__phone {
    font-size: 1.35rem !important;
    text-align: center;
    padding: 16px 0 !important;
    border: none !important;
  }

  .sticky-cta {
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .sticky-cta__btn {
    padding: 15px 12px;
    font-size: 0.95rem;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .tracks { grid-template-columns: 1fr; }

  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
  }

  .hero__stats li { align-items: flex-start; }

  .hero__stats b { font-size: 1.4rem; }

  .hero__stats span { font-size: 0.72rem; }

  .marquee__track { font-size: 0.75rem; }

  .gallery { grid-template-columns: 1fr; }

  .gallery__item--1 { grid-column: span 1; height: 200px; }

  .gallery__item { height: 220px; }

  .footer__in { flex-direction: column; text-align: center; }

  .footer__nav { flex-wrap: wrap; justify-content: center; }

  .video-grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 1.85rem; }

  .hero__stats { grid-template-columns: 1fr 1fr; }

  .hero__stats li:last-child { grid-column: span 2; }
}
