/* ============================================================
   SmartyKids Пушкино — design system
   Brand palette pulled from the original smartykids-theme2:
   yellow #ffcb00 · blue #005dd0 · pink #e62253 · cyan #55ddfd
   Type: Baloo 2 (display) + Montserrat (body/UI)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* brand */
  --yellow: #ffcb00;
  --yellow-600: #f4bd00;
  --yellow-050: #fff7d6;
  --blue: #005dd0;
  --blue-700: #0048a6;
  --blue-050: #eaf2fd;
  --pink: #e62253;
  --pink-050: #fdeaf0;
  --cyan: #55ddfd;
  --cyan-050: #e6fafe;

  /* neutrals */
  --ink: #202430;
  --ink-2: #4a505e;
  --muted: #727a8a;
  --paper: #ffffff;
  --cloud: #f5f8fd;
  --cloud-2: #eef3fb;
  --line: #e5ebf4;

  /* type */
  --font-display: "Baloo 2", "Montserrat", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* radii */
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --pill: 999px;

  /* shadow */
  --sh-sm: 0 2px 8px rgba(32, 41, 74, .06);
  --sh: 0 10px 30px rgba(23, 46, 92, .10);
  --sh-lg: 0 24px 60px rgba(15, 38, 82, .16);
  --sh-brand: 0 16px 40px rgba(255, 179, 0, .30);

  /* layout */
  --container: 1180px;
  --gutter: clamp(18px, 4vw, 40px);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .28s;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; color: var(--ink); margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-050);
  padding: 7px 14px; border-radius: var(--pill);
}
.section-head { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-top: 16px; }
.section-head p { color: var(--ink-2); margin-top: 14px; font-size: 1.06rem; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--yellow); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 1rem;
  padding: 15px 26px; border: none; border-radius: var(--pill);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  box-shadow: var(--sh-sm); white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { --bg: var(--yellow); --fg: #2a2300; box-shadow: var(--sh-brand); }
.btn--primary:hover { background: var(--yellow-600); box-shadow: 0 20px 46px rgba(255, 179, 0, .42); }
.btn--blue { --bg: var(--blue); --fg: #fff; box-shadow: 0 14px 34px rgba(0, 93, 208, .30); }
.btn--blue:hover { background: var(--blue-700); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost:hover { --fg: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.btn--max { --bg: #fff; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line), 0 8px 22px rgba(96, 84, 255, .14); }
.btn--max:hover { box-shadow: inset 0 0 0 1.5px #8a5cff, 0 10px 28px rgba(96, 84, 255, .24); }
.btn--max img { width: 22px; height: 22px; border-radius: 6px; display: block; }
.socials a.is-max { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.socials a.is-max img { width: 24px; height: 24px; border-radius: 7px; display: block; }
.socials a.is-max:hover { box-shadow: inset 0 0 0 1.5px #8a5cff; transform: translateY(-3px); }
/* Colored brand social tiles */
.socials a.is-ig { background: linear-gradient(45deg, #feda75 0%, #fa7e1e 28%, #d62976 55%, #962fbf 78%, #4f5bd5 100%); color: #fff; }
.socials a.is-call { background: linear-gradient(135deg, #2bd66a, #12a746); color: #fff; }
.socials a.is-vk { background: #0077ff; color: #fff; }
.socials a.is-ig:hover, .socials a.is-call:hover, .socials a.is-vk:hover { transform: translateY(-3px); filter: brightness(1.06); }
.btn--lg { padding: 18px 34px; font-size: 1.08rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.header.is-stuck { border-color: var(--line); box-shadow: var(--sh-sm); }
.nav { display: flex; align-items: center; gap: 22px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand b { color: var(--blue); }
.brand span { color: var(--pink); }
.brand small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: -2px; }
.nav__links { display: flex; gap: 24px; margin-left: 14px; }
.nav__links { flex-wrap: nowrap; }
.nav__links a { font-weight: 600; font-size: .96rem; color: var(--ink-2); transition: color var(--dur); white-space: nowrap; }
.nav__links a:hover { color: var(--blue); }
.nav__spacer { margin-left: auto; }
.nav__phone { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.nav__phone a { font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; }
.nav__phone small { color: var(--muted); font-size: .72rem; font-weight: 600; }
.nav__cta { flex: none; }
.nav__call { display: none; flex: none; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #2bd66a, #12a746); color: #fff; box-shadow: 0 8px 20px rgba(18, 167, 74, .28); }
.nav__call svg { width: 22px; height: 22px; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; align-items: center; justify-content: center; }
.burger svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 55% at 88% 8%, var(--cyan-050) 0%, transparent 60%),
    radial-gradient(50% 50% at 8% 30%, var(--yellow-050) 0%, transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--cloud) 100%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero__offer {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
  background: #fff; border: 1px solid var(--pink); color: var(--pink);
  font-weight: 700; font-size: .92rem; padding: 8px 16px 8px 10px; border-radius: var(--pill); box-shadow: var(--sh-sm);
}
.hero__offer b { background: var(--pink); color: #fff; padding: 3px 10px; border-radius: var(--pill); font-size: .82rem; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
.hero h1 mark { background: linear-gradient(180deg, transparent 62%, var(--yellow) 62%); color: inherit; padding: 0 .06em; }
.hero__sub { color: var(--ink-2); font-size: 1.16rem; margin-top: 20px; max-width: 40ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 30px; }
.hero__trust li { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: .95rem; color: var(--ink-2); list-style: none; }
.hero__trust svg { width: 22px; height: 22px; color: var(--blue); flex: none; }
.hero__media { position: relative; }
.hero__photo {
  position: relative; aspect-ratio: 4/5; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(140deg, var(--blue) 0%, #2b86ee 100%); box-shadow: var(--sh-lg);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo .ph-note { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #fff; font-weight: 700; gap: 6px; padding: 20px; }
.hero__blob { position: absolute; z-index: -1; border-radius: 46% 54% 60% 40% / 52% 44% 56% 48%; }
.hero__badge {
  position: absolute; background: #fff; border-radius: var(--r); box-shadow: var(--sh);
  padding: 13px 16px; display: flex; align-items: center; gap: 11px; font-weight: 700;
}
.hero__badge small { display: block; color: var(--muted); font-weight: 600; font-size: .74rem; }
.hero__badge .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-content: center; flex: none; }
.hero__badge--a { top: 22px; left: -26px; }
.hero__badge--b { bottom: 26px; right: -20px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.floaty { animation: floaty 5s var(--ease) infinite; }
.floaty--slow { animation-duration: 7s; }

/* ---------- Marquee / logos strip ---------- */
.strip { background: linear-gradient(120deg, #005dd0 0%, #1f8be9 52%, #2ec9ea 100%); color: #fff; }
.strip .container { display: grid; grid-template-columns: repeat(4, 1fr); align-items: stretch; gap: 26px 16px; padding-block: 34px; }
.strip .stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 7px; position: relative; }
.strip .stat + .stat::before { content: ""; position: absolute; left: -8px; top: 12%; bottom: 12%; width: 1px; background: rgba(255, 255, 255, .18); }
.strip .stat b { font-family: var(--font-display); font-size: 2.2rem; color: var(--yellow); line-height: 1; }
.strip .stat span { color: #eaf3ff; font-weight: 600; font-size: .92rem; max-width: 20ch; }

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 24px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh); border-color: transparent; }
.card__ic { width: 60px; height: 60px; border-radius: 16px; display: grid; place-content: center; margin-bottom: 18px; }
.card__ic svg { width: 32px; height: 32px; }
.card h3 { font-size: 1.28rem; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: .98rem; }
.i-yellow { background: var(--yellow-050); color: #b98600; }
.i-blue { background: var(--blue-050); color: var(--blue); }
.i-pink { background: var(--pink-050); color: var(--pink); }
.i-cyan { background: var(--cyan-050); color: #0596b8; }

/* ---------- Programs ---------- */
.prog {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 0; overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.prog:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.prog__banner { position: relative; min-height: 128px; padding: 20px 22px; display: flex; align-items: flex-end; background: linear-gradient(135deg, var(--accent, #005dd0), var(--accent2, #3a9bf4)); overflow: hidden; }
.prog__banner::before { content: ""; position: absolute; right: -34px; top: -34px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.prog__banner::after { content: ""; position: absolute; right: 40px; bottom: -26px; width: 82px; height: 82px; border-radius: 50%; background: rgba(255, 255, 255, .10); }
.prog__art { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 94px; height: 94px; color: rgba(255, 255, 255, .95); z-index: 1; transition: transform var(--dur) var(--ease); }
.prog:hover .prog__art { transform: translateY(-50%) scale(1.08) rotate(-4deg); }
.prog__age { position: relative; z-index: 2; font-weight: 700; font-size: .8rem; color: var(--accent, #005dd0); background: #fff; padding: 6px 14px; border-radius: var(--pill); box-shadow: 0 4px 12px rgba(0, 0, 0, .14); }
.prog__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.prog h3 { font-size: 1.3rem; margin-bottom: 8px; }
.prog p { color: var(--ink-2); font-size: .95rem; flex: 1; }
.prog__actions { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.prog__btn { background: var(--accent, #005dd0); color: #fff; font-family: inherit; font-weight: 700; font-size: .95rem; padding: 12px 22px; border: none; border-radius: var(--pill); cursor: pointer; transition: transform var(--dur) var(--ease), filter var(--dur); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent, #005dd0) 34%, transparent); }
.prog__btn:hover { transform: translateY(-2px); filter: brightness(1.07); }
.prog__more { font-weight: 700; font-size: .92rem; color: var(--accent, #005dd0); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.prog__more svg { width: 17px; height: 17px; transition: transform var(--dur); }
.prog:hover .prog__more svg { transform: translateX(4px); }

/* ---------- Steps ---------- */
.steps { counter-reset: s; display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding: 26px 24px; background: var(--cloud); border-radius: var(--r-lg); }
.step__n { counter-increment: s; font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--yellow); line-height: 1; }
.step__n::before { content: "0" counter(s); }
.step h3 { font-size: 1.14rem; margin: 10px 0 6px; }
.step p { color: var(--ink-2); font-size: .94rem; }

/* ---------- Split (method / results) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split__media { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 5/4; background: linear-gradient(140deg, var(--pink) 0%, #ff6f9d 100%); box-shadow: var(--sh-lg); position: relative; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media .ph-note { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #fff; font-weight: 700; padding: 20px; }
.check-list { display: grid; gap: 16px; margin-top: 24px; }
.check-list li { display: flex; gap: 14px; list-style: none; }
.check-list .tick { width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--blue-050); color: var(--blue); display: grid; place-content: center; }
.check-list .tick svg { width: 18px; height: 18px; }
.check-list b { display: block; font-family: var(--font-display); font-size: 1.06rem; }
.check-list span { color: var(--ink-2); font-size: .95rem; }

/* ---------- Testimonials ---------- */
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.tcard__stars { color: var(--yellow); display: flex; gap: 3px; margin-bottom: 14px; }
.tcard__stars svg { width: 20px; height: 20px; }
.tcard p { color: var(--ink-2); }
.tcard__who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.tcard__ava { width: 46px; height: 46px; border-radius: 50%; background: var(--cloud-2); display: grid; place-content: center; font-family: var(--font-display); font-weight: 700; color: var(--blue); flex: none; }
.tcard__who b { font-size: .98rem; }
.tcard__who small { color: var(--muted); display: block; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 14px; }
.gallery figure { margin: 0; border-radius: var(--r); overflow: hidden; position: relative; background: var(--cloud-2); }
.gallery figure:nth-child(1) { grid-row: span 2; }
.gallery figure:nth-child(6) { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery .ph { position: absolute; inset: 0; display: grid; place-content: center; color: var(--muted); font-weight: 600; font-size: .8rem; text-align: center; padding: 12px; background: repeating-linear-gradient(45deg, var(--cloud) 0 12px, var(--cloud-2) 12px 24px); }
/* Branded gallery tiles (until real photos are added) */
.g-tile { display: grid; place-content: center; gap: 10px; text-align: center; }
.g-tile svg { opacity: .95; }
.g-tile span { color: rgba(255,255,255,.92); font-weight: 700; font-size: .82rem; }
.g-tile::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 120% at 20% 10%, rgba(255,255,255,.18), transparent 55%); }
.g-a { background: linear-gradient(150deg, #005dd0, #2b86ee); }
.g-b { background: linear-gradient(150deg, #e62253, #ff6f9d); }
.g-c { background: linear-gradient(150deg, #0596b8, #55ddfd); }
.g-d { background: linear-gradient(150deg, #f4bd00, #ffd84d); }
.g-e { background: linear-gradient(150deg, #7a4dd0, #a985f0); }
.g-f { background: linear-gradient(150deg, #202430, #3a4256); }

/* ---------- CTA band ---------- */
.ctaband { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--blue) 0%, #0a74e8 100%); color: #fff; border-radius: var(--r-xl); padding: clamp(36px, 6vw, 68px); }
.ctaband::after { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(255,203,0,.35), transparent 62%); }
.ctaband h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.7rem); max-width: 18ch; }
.ctaband p { color: #d6e6fb; margin-top: 14px; max-width: 44ch; }
.ctaband .btn { margin-top: 26px; }

/* ---------- Form ---------- */
.lead { background: #fff; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 38px); box-shadow: var(--sh-lg); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--cloud);
  transition: border-color var(--dur), background var(--dur);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); background: #fff; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 10px; text-align: center; }
.form-note a { color: var(--blue); text-decoration: underline; }
.form-ok { display: none; text-align: center; padding: 20px; }
.form-ok svg { width: 54px; height: 54px; color: var(--blue); margin: 0 auto 10px; }
.is-sent form { display: none; }
.is-sent > h3, .is-sent .modal__lead { display: none; }
.is-sent .form-ok { display: block; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 4px 6px; transition: box-shadow var(--dur); }
.faq details[open] { box-shadow: var(--sh-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 18px; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--blue-050); color: var(--blue); display: grid; place-content: center; transition: transform var(--dur); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq p { padding: 0 18px 20px; color: var(--ink-2); }

/* ---------- Contacts ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.contacts__info { display: grid; gap: 18px; align-content: start; }
.crow { display: flex; gap: 14px; align-items: flex-start; }
.crow .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--yellow-050); color: #b98600; display: grid; place-content: center; flex: none; }
.crow b { font-family: var(--font-display); }
.crow a, .crow span { color: var(--ink-2); }
.map { border-radius: var(--r-lg); overflow: hidden; min-height: 340px; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 12px; background: var(--cloud-2); display: grid; place-content: center; color: var(--ink-2); transition: background var(--dur), color var(--dur), transform var(--dur); }
.socials a:hover { background: var(--blue); color: #fff; transform: translateY(-3px); }
.socials svg { width: 22px; height: 22px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #c3cad9; padding: 56px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer a { color: #c3cad9; transition: color var(--dur); }
.footer a:hover { color: var(--yellow); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: #fff; margin-bottom: 14px; }
.footer__brand b { color: var(--yellow); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .84rem; color: #8a93a6; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-content: center; padding: 20px; }
.modal.is-open { display: grid; }
.modal__bg { position: absolute; inset: 0; background: rgba(16, 24, 45, .55); backdrop-filter: blur(3px); animation: fade .2s var(--ease); }
.modal__box { position: relative; width: min(460px, 100%); background: #fff; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 36px); box-shadow: var(--sh-lg); animation: pop .28s var(--ease); max-height: 92vh; overflow: auto; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: none; background: var(--cloud); border-radius: 12px; display: grid; place-content: center; color: var(--ink-2); }
.modal__close:hover { background: var(--cloud-2); }
.modal h3 { font-size: 1.6rem; }
.modal__form > h3 { padding-right: 48px; }
.modal .modal__lead { color: var(--ink-2); margin: 8px 0 22px; }
/* Mobile: модалка — полноэкранный прокручиваемый лист (кнопка не уезжает под клавиатуру) */
@media (max-width: 640px) {
  .modal { place-content: start; padding: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .modal__box { width: 100%; max-width: 100%; min-height: 100%; max-height: none; border-radius: 0; padding: 56px 20px 40px; animation: none; }
  .modal .modal__lead { margin: 6px 0 18px; }
  .modal h3 { font-size: 1.45rem; }
  .field { margin-bottom: 14px; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* ---------- Program page hero ---------- */
.phero { position: relative; color: #fff; overflow: hidden; background: linear-gradient(135deg, var(--accent, #005dd0), var(--accent2, #3aa0f5)); }
.phero::before { content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.phero::after { content: ""; position: absolute; left: -60px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.phero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 56px); align-items: center; padding: clamp(34px, 6vw, 86px) 0; }
.phero__crumb { display: inline-flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .9); font-weight: 600; font-size: .92rem; margin-bottom: 20px; }
.phero__crumb svg { width: 18px; height: 18px; }
.phero__crumb:hover { color: #fff; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: .88rem; font-weight: 600; }
.crumbs a { color: rgba(255, 255, 255, .85); }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs .sep { color: rgba(255, 255, 255, .5); }
.crumbs .cur { color: #fff; }
.crumbbar { position: sticky; top: 74px; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.crumbbar .crumbs { margin: 0; padding: 13px 0; }
.crumbbar .crumbs a { color: var(--muted); }
.crumbbar .crumbs a:hover { color: var(--blue); }
.crumbbar .crumbs .sep { color: #c7d0de; }
.crumbbar .crumbs .cur { color: var(--ink); }
.phero__age { display: inline-block; background: rgba(255, 255, 255, .95); color: var(--accent, #005dd0); font-weight: 700; font-size: .85rem; padding: 7px 15px; border-radius: var(--pill); margin-bottom: 18px; }
.phero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); }
.phero__lead { color: rgba(255, 255, 255, .94); font-size: 1.16rem; margin-top: 18px; max-width: 46ch; }
.phero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.phero .btn--ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.phero .btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 2px #fff; }
.phero__art { justify-self: center; width: min(300px, 78%); height: auto; color: rgba(255, 255, 255, .96); }
.pintro { max-width: 760px; margin: 0 auto; text-align: center; }
.pintro p { color: var(--ink-2); font-size: 1.12rem; }
@media (max-width: 860px) {
  .phero__grid { grid-template-columns: 1fr; }
  .phero__art { grid-row: 1; width: min(200px, 55%); margin-bottom: 6px; }
}

/* ---------- Mobile sticky action bar ---------- */
.mbar { display: none; }
.mbar__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: none; background: none; font-family: inherit; font-weight: 700; font-size: .7rem;
  color: #fff; text-decoration: none; text-align: center; line-height: 1.1;
  min-height: 58px; padding: 8px 2px; cursor: pointer;
}
.mbar__item svg { width: 22px; height: 22px; }
.mbar__book { background: var(--yellow); color: #2a2300; }
.mbar__call { background: var(--blue); }
.mbar__max { background: #fff; color: var(--ink); }
.mbar__max img { width: 24px; height: 24px; border-radius: 6px; display: block; }
.mbar__route { background: var(--pink); }
.mbar__item:active { filter: brightness(.94); }

/* ---------- Floating messenger buttons ---------- */
.fab-wa, .fab-max {
  position: fixed; bottom: 26px; z-index: 70;
  width: 58px; height: 58px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.fab-wa span, .fab-max span { display: none; }
.fab-wa { right: 26px; background: #25d366; box-shadow: 0 12px 30px rgba(37, 211, 102, .4); }
.fab-wa svg { width: 30px; height: 30px; }
.fab-wa:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(37, 211, 102, .55); }
.fab-wa::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); animation: fabpulse 2.4s ease-out infinite;
}
@keyframes fabpulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
/* MAX — desktop only, sits to the left of WhatsApp */
.fab-max { right: 98px; background: #fff; box-shadow: 0 10px 26px rgba(96, 84, 255, .28), inset 0 0 0 1px var(--line); }
.fab-max img { width: 32px; height: 32px; border-radius: 8px; display: block; }
.fab-max:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(96, 84, 255, .42); }
/* Mobile: WhatsApp circle raised above the sticky bar; MAX hidden (it's in the bar) */
@media (max-width: 860px) {
  .fab-wa { right: 16px; bottom: 82px; width: 54px; height: 54px; }
  .fab-max { display: none; }
}

/* Utility: show only on mobile (calling makes no sense on desktop) */
.only-mobile { display: none !important; }
@media (max-width: 860px) { .only-mobile { display: inline-flex !important; } }

/* ---------- Blog ---------- */
.bloghero { background: radial-gradient(60% 60% at 50% 0%, var(--yellow-050) 0%, transparent 60%), linear-gradient(180deg, #fff, var(--cloud)); padding: clamp(96px, 13vw, 140px) 0 clamp(30px, 5vw, 54px); text-align: center; }
.bloghero .eyebrow { color: var(--pink); background: var(--pink-050); }
.bloghero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-top: 16px; }
.bloghero p { color: var(--ink-2); font-size: 1.14rem; max-width: 54ch; margin: 18px auto 0; }

.bloglist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .bloglist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .bloglist { grid-template-columns: 1fr; } }
.bcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.bcard:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.bcard__top { height: 8px; background: linear-gradient(90deg, var(--accent, var(--yellow)), var(--accent2, var(--pink))); }
.bcard__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.bcat { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent, var(--pink)); background: color-mix(in srgb, var(--accent, var(--pink)) 12%, #fff); padding: 5px 11px; border-radius: var(--pill); }
.bcard__title { font-family: var(--font-display); font-size: 1.22rem; line-height: 1.2; margin: 14px 0 10px; color: var(--ink); }
.bcard__excerpt { color: var(--ink-2); font-size: .96rem; line-height: 1.55; flex: 1; }
.bcard__meta { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .84rem; font-weight: 600; }
.bcard__more { margin-top: 12px; font-weight: 700; color: var(--accent, var(--pink)); display: inline-flex; align-items: center; gap: 6px; }
.bcard:hover .bcard__more { gap: 10px; }

/* Article page */
.article { max-width: 768px; margin: 0 auto; padding: 0 20px; }
.article__head { padding: clamp(94px, 12vw, 124px) 20px 8px; text-align: center; max-width: 768px; margin: 0 auto; }
.article__head h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin: 16px 0 14px; }
.article__meta { color: var(--muted); font-size: .9rem; font-weight: 600; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.article__meta .bcat { align-self: center; }
.article__body { font-size: 1.075rem; line-height: 1.75; color: #363b47; padding-top: 22px; }
.article__lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink-2); font-weight: 500; margin-bottom: 26px; }
.article__body h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 38px 0 14px; }
.article__body h3 { font-size: 1.18rem; margin: 26px 0 10px; }
.article__body p { margin: 0 0 18px; }
.article__body ul, .article__body ol { margin: 0 0 20px; padding-left: 22px; }
.article__body li { margin: 0 0 10px; }
.article__body li::marker { color: var(--accent, var(--pink)); font-weight: 700; }
.article__body a { color: var(--accent, var(--pink)); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent, var(--pink)) 35%, transparent); text-underline-offset: 3px; }
.article__body a:hover { text-decoration-color: var(--accent, var(--pink)); }
.article__body strong { color: var(--ink); }
.article__body blockquote { margin: 24px 0; padding: 18px 22px; border-radius: var(--r); background: color-mix(in srgb, var(--accent, var(--pink)) 7%, #fff); color: var(--ink-2); font-style: italic; }
.article__cta { margin: 40px 0 8px; padding: 30px 32px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--accent, var(--yellow)), var(--accent2, var(--pink))); color: #fff; }
.article__cta h3 { color: #fff; font-size: 1.45rem; margin-bottom: 8px; }
.article__cta p { margin-bottom: 20px; opacity: .96; }
.article__cta .btn { --bg: #fff; --fg: var(--ink); }
.article__related { border-top: 1px solid var(--line); margin: 46px auto 0; max-width: 768px; padding: 32px 20px 0; }
.article__related h2 { font-size: 1.4rem; margin-bottom: 20px; }
.backlink { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.article__foot { max-width: 768px; margin: 30px auto 0; padding: 0 20px; }

/* ---------- Polish ---------- */
::selection { background: color-mix(in srgb, var(--yellow) 60%, #fff); color: var(--ink); }
[id] { scroll-margin-top: 90px; }                 /* anchors clear the sticky header */
input, textarea, select { accent-color: var(--blue); caret-color: var(--blue); }
.field input:focus, .field textarea:focus, .field select:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 15%, transparent); }
.tcard { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.tcard:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }

/* ---------- Reveal on scroll ---------- */
/* Content is visible by default; hidden for animation ONLY when JS is active,
   so the page never depends on JS to show content (SEO + no-JS safe). */
.reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 440px; margin: 8px auto 0; width: 100%; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .nav__links, .nav__phone { display: none; }
  .nav__call { display: inline-flex; }
  .nav { gap: 10px; height: 66px; }
  .crumbbar { top: 66px; }
  .nav__cta { padding: 11px 17px; font-size: .92rem; }
  .brand { font-size: 1.18rem; gap: 8px; }
  .brand__mark { width: 34px; height: 34px; }
  .brand small { letter-spacing: .12em; }
  /* sticky mobile action bar */
  .mbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px rgba(16, 24, 45, .14);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  body { padding-bottom: 66px; }
  .burger { display: flex; }
  .nav__spacer { margin-left: auto; }
  .split, .contacts, .footer__grid { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .strip .container { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
  .strip .stat b { font-size: 1.9rem; }
  .strip .stat + .stat::before { display: none; }
  /* mobile nav drawer */
  .nav__links.is-open {
    display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 16px var(--gutter) 24px; gap: 4px; box-shadow: var(--sh); border-top: 1px solid var(--line);
  }
  .nav__links.is-open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .btn { white-space: normal; }
  .hero h1 { font-size: clamp(1.7rem, 7.6vw, 2.5rem); overflow-wrap: break-word; }
  .nav { gap: 7px; height: 62px; }
  .crumbbar { top: 62px; }
  .nav__cta { padding: 9px 13px; font-size: .85rem; }
  .nav__call { width: 42px; height: 42px; }
  .burger { width: 42px; height: 42px; }
  .brand { font-size: 1.02rem; gap: 7px; }
  .brand__mark { width: 30px; height: 30px; }
  .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .strip .container { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .strip .stat { min-width: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .hero__badge--a { left: 4px; } .hero__badge--b { right: 4px; }
  .hero__cta .btn { width: 100%; }
}
