/* ===== СИ-БОЙ! — детские события ===== */
:root {
  --milk: #fdf6ec;
  --ink: #111111;
  --blue: #2f5bff;
  --yellow: #ffd400;
  --orange: #ff8a2a;
  --green: #37d67a;
  --purple: #7a3cff;
  --pink: #ff5ca8;
  --r-lg: 36px;
  --r-md: 24px;
  --side-w: 200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  background: var(--milk);
  color: var(--ink);
  overflow-x: hidden;
}
.mono {
  font-family: "SF Mono", "JetBrains Mono", Menlo, monospace;
  letter-spacing: .12em;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ===== Прелоадер ===== */
#loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--blue);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px;
  transition: transform .7s cubic-bezier(.7,0,.3,1), visibility .7s;
}
#loader.done { transform: translateY(-100%); visibility: hidden; }
.loader-logo { display: flex; align-items: baseline; }
.lb {
  font-size: clamp(48px, 9vw, 110px);
  color: var(--milk);
  -webkit-text-stroke: 3px var(--ink);
  text-shadow: 5px 6px 0 var(--ink);
  animation: bounce 1.1s ease-in-out infinite;
}
.lb-dash { color: var(--yellow); text-shadow: 5px 6px 0 var(--ink); }
.lb.bang { color: var(--yellow); }
.l1{animation-delay:.05s}.l2{animation-delay:.15s}.l3{animation-delay:.25s}.l4{animation-delay:.35s}.l5{animation-delay:.45s}.bang{animation-delay:.55s}
@keyframes bounce {
  0%, 100% { transform: translateY(0) scaleY(1); }
  35% { transform: translateY(-18px) scaleY(1.06); }
  60% { transform: translateY(0) scaleY(.94); }
}
.loader-bar { width: min(320px, 60vw); height: 10px; border: 2.5px solid var(--ink); border-radius: 99px; background: rgba(255,255,255,.25); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0%; background: var(--yellow); transition: width .15s linear; }
.loader-pct { color: var(--milk); }

/* ===== Мобильная шапка ===== */
.mobile-top {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: var(--milk);
  border-bottom: 3px solid var(--ink);
  padding: 14px 18px;
  align-items: center; justify-content: space-between;
}
.mt-logo { font-size: 22px; -webkit-text-stroke: 1px var(--ink); color: var(--blue); }
.mt-logo span { color: var(--orange); }
.mt-logo em { font-style: normal; color: var(--ink); }
.burger { background: none; border: 2.5px solid var(--ink); border-radius: 12px; padding: 9px 8px; cursor: pointer; display: grid; gap: 4px; }
.burger span { width: 20px; height: 2.5px; background: var(--ink); transition: transform .25s, opacity .25s; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mt-nav {
  position: fixed; top: 59px; left: 0; right: 0;
  background: var(--milk);
  border-bottom: 3px solid var(--ink);
  display: grid; gap: 4px; padding: 14px 18px 20px;
  transform: translateY(-130%); transition: transform .35s cubic-bezier(.6,.1,.2,1);
}
.mt-nav.open { transform: translateY(0); }
.mt-nav a { font-weight: 900; padding: 10px 4px; border-bottom: 1.5px dashed #cbbfae; }
.mt-nav a i { font-style: normal; font-family: "SF Mono", Menlo, monospace; color: var(--blue); margin-right: 10px; }
.mt-nav a:nth-child(2) i{color:var(--purple)} .mt-nav a:nth-child(3) i{color:var(--green)} .mt-nav a:nth-child(4) i{color:var(--orange)}
.mt-cta { background: var(--ink); color: var(--milk) !important; border-radius: 16px; text-align: center; border-bottom: none !important; margin-top: 8px; }

/* ===== Боковая навигация ===== */
.sidenav {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 800;
  width: var(--side-w);
  padding: 28px 22px;
  display: flex; flex-direction: column; gap: 34px;
  border-right: 3px solid var(--ink);
  background: var(--milk);
}
.sn-mark { transition: transform .25s; }
.sn-mark:hover { transform: rotate(-8deg) scale(1.08); }
.sn-list { display: grid; gap: 6px; }
.sn-list a {
  display: flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 13px;
  padding: 9px 10px; border-radius: 14px;
  border: 2.5px solid transparent;
  transition: border-color .2s, background .2s, transform .2s;
}
.sn-list a i { font-style: normal; font-family: "SF Mono", Menlo, monospace; font-size: 11px; }
.sn-list a[data-spy="formats"] i { color: var(--blue); }
.sn-list a[data-spy="programs"] i { color: var(--purple); }
.sn-list a[data-spy="how"] i { color: var(--green); }
.sn-list a[data-spy="contacts"] i { color: var(--orange); }
.sn-list a:hover { transform: translateX(4px); }
.sn-list a.active { border-color: var(--ink); background: #fff; box-shadow: 3px 3px 0 var(--ink); }
.sn-cta {
  margin-top: auto;
  background: var(--ink); color: var(--milk);
  font-size: 12px; line-height: 1.6;
  padding: 16px 14px; border-radius: 18px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 4px 4px 0 var(--yellow);
}
.sn-cta:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--yellow); }

.page { margin-left: var(--side-w); overflow: hidden; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 90px 40px 120px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.bg-wave { position: absolute; left: -2%; bottom: -4%; width: 104%; height: 42%; }
.cf { position: absolute; border-radius: 3px; animation: confetti-fall linear infinite; }
.c1{width:14px;height:22px;background:var(--pink);left:8%;top:-5%;animation-duration:9s}
.c2{width:10px;height:16px;background:var(--green);left:24%;top:-5%;animation-duration:12s;animation-delay:2s}
.c3{width:16px;height:12px;background:var(--purple);left:45%;top:-5%;animation-duration:10s;animation-delay:4s}
.c4{width:11px;height:18px;background:var(--blue);left:63%;top:-5%;animation-duration:13s;animation-delay:1s}
.c5{width:15px;height:15px;background:var(--yellow);left:78%;top:-5%;animation-duration:9.5s;animation-delay:3s;border-radius:50%}
.c6{width:10px;height:20px;background:var(--orange);left:90%;top:-5%;animation-duration:11s;animation-delay:5s}
.c7{width:12px;height:12px;background:var(--pink);left:34%;top:-5%;animation-duration:14s;animation-delay:6s;border-radius:50%}
.c8{width:9px;height:17px;background:var(--ink);left:70%;top:-5%;animation-duration:12s;animation-delay:7s}
@keyframes confetti-fall {
  0% { transform: translateY(-6vh) rotate(0deg); }
  100% { transform: translateY(112vh) rotate(720deg); }
}
.doodle { position: absolute; width: clamp(60px, 7vw, 110px); }
.star1 { top: 12%; right: 8%; animation: spin-slow 14s linear infinite; }
.smile1 { bottom: 26%; right: 16%; animation: floaty 6s ease-in-out infinite; }
.arrow1 { top: 30%; left: 5%; animation: floaty 7s ease-in-out infinite reverse; }
.ring1 { top: 64%; left: 12%; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-16px);} }

.balloon { position: absolute; width: clamp(80px, 9vw, 150px); filter: drop-shadow(6px 8px 0 rgba(17,17,17,.14)); }
.b1 { left: 6%; bottom: 12%; animation: floaty 5s ease-in-out infinite; }
.b2 { right: 5%; top: 16%; animation: floaty 6.5s ease-in-out .8s infinite; }
.b3 { right: 20%; bottom: 8%; animation: floaty 5.6s ease-in-out .4s infinite; }

.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 1000px; }
.hl-row { display: flex; align-items: baseline; justify-content: center; flex-wrap: nowrap; gap: .02em; }
.hb {
  font-size: clamp(48px, 11.5vw, 168px);
  line-height: .95;
  color: var(--milk);
  -webkit-text-stroke: 4px var(--ink);
  text-shadow: 7px 9px 0 var(--ink);
  display: inline-block;
  animation: hb-bounce 2.6s ease-in-out infinite;
}
.hb-dash { color: var(--orange); }
.h-blue{color:var(--blue)} .h-orange{color:var(--orange)} .h-green{color:var(--green)}
.h-purple{color:var(--purple)} .h-pink{color:var(--pink)} .h-yellow{color:var(--yellow)}
.hb:nth-child(1){animation-delay:0s}.hb:nth-child(2){animation-delay:.12s}.hb:nth-child(3){animation-delay:.24s}
.hb:nth-child(4){animation-delay:.36s}.hb:nth-child(5){animation-delay:.48s}.hb:nth-child(6){animation-delay:.6s}.hb:nth-child(7){animation-delay:.72s}
@keyframes hb-bounce {
  0%, 70%, 100% { transform: translateY(0) scaleY(1); }
  82% { transform: translateY(-14px) scale(1.03, .97) rotate(-2deg); }
  91% { transform: translateY(0) scaleY(.95); }
}
.hero-title { font-size: clamp(20px, 3vw, 40px); font-weight: 900; letter-spacing: .01em; margin-top: 28px; text-transform: uppercase; }
.hero-sub { font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 500; font-size: clamp(15px, 1.4vw, 19px); margin-top: 14px; color: #444; }
.cta-black {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 32px;
  background: var(--ink); color: var(--milk);
  font-weight: 900; font-size: clamp(14px, 1.3vw, 17px);
  padding: 18px 34px;
  border-radius: 99px;
  box-shadow: 5px 6px 0 var(--yellow), 5px 6px 0 3px var(--ink);
  transition: transform .18s, box-shadow .18s;
}
.cta-black b { transition: transform .18s; }
.cta-black:hover { transform: translate(-3px,-3px); box-shadow: 9px 10px 0 var(--yellow), 9px 10px 0 3px var(--ink); }
.cta-black:hover b { transform: rotate(45deg); }
.hero-scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 8px;
  font-size: 10px; color: var(--ink);
}
.hero-scroll i { width: 3px; height: 38px; background: var(--ink); border-radius: 3px; animation: scroll-hint 1.6s ease-in-out infinite; transform-origin: top; }
@keyframes scroll-hint { 0%{transform:scaleY(0)} 50%{transform:scaleY(1)} 100%{transform:scaleY(0); transform-origin:bottom;} }

/* ===== Бегущие строки ===== */
.marquee { overflow: hidden; white-space: nowrap; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.mq-yellow { background: var(--yellow); }
.mq-dark { background: var(--ink); color: var(--milk); }
.mq-track { display: inline-block; padding: 16px 0; animation: mq 22s linear infinite; font-weight: 900; font-size: clamp(16px, 2vw, 26px); }
@keyframes mq { to { transform: translateX(-50%); } }

/* ===== Секции ===== */
.section { padding: clamp(70px, 9vw, 130px) clamp(24px, 4vw, 70px); }
.sec-head { max-width: 900px; margin-bottom: clamp(36px, 5vw, 70px); }
.sec-num { display: inline-block; font-size: 13px; color: var(--milk); background: var(--ink); padding: 7px 14px; border-radius: 99px; margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(34px, 5.4vw, 76px); line-height: .98; letter-spacing: -.01em; }
.sec-head p { margin-top: 18px; font-family: "Helvetica Neue", Arial, sans-serif; font-size: clamp(15px, 1.4vw, 19px); color: #444; max-width: 560px; }

/* ===== Форматы ===== */
.fmt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fmt-card {
  position: relative;
  border: 3px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 30px 26px 34px;
  min-height: 260px;
  transition: transform .22s, box-shadow .22s;
}
.fmt-card:hover { transform: translate(-3px,-4px) rotate(-.5deg); box-shadow: 7px 9px 0 var(--ink); }
.f-blue { background: var(--blue); color: var(--milk); }
.f-purple { background: var(--purple); color: var(--milk); }
.f-green { background: var(--green); }
.f-orange { background: var(--orange); }
.fmt-card.wide { grid-column: span 2; display: flex; flex-direction: column; justify-content: center; }
.fmt-tag { display: inline-block; font-size: 10px; background: var(--milk); color: var(--ink); border: 2px solid var(--ink); border-radius: 99px; padding: 5px 12px; margin-bottom: 18px; }
.fmt-card h3 { font-size: clamp(20px, 1.8vw, 28px); line-height: 1.05; text-transform: uppercase; }
.fmt-card p { margin-top: 12px; font-family: "Helvetica Neue", Arial, sans-serif; font-size: 14.5px; line-height: 1.55; max-width: 420px; }
.fmt-arrow { position: absolute; top: 22px; right: 24px; font-size: 30px; font-weight: 900; transition: transform .22s; }
.fmt-card:hover .fmt-arrow { transform: rotate(45deg) scale(1.25); }
.fmt-doodle { position: absolute; width: 74px; right: -14px; bottom: -16px; transform: rotate(14deg); }

/* ===== Программы ===== */
.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prog-card {
  border: 3px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 28px 26px 30px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .22s, box-shadow .22s;
}
.prog-card:hover { transform: translateY(-6px); box-shadow: 0 12px 0 rgba(17,17,17,.16); }
.p-big { grid-row: span 2; justify-content: flex-end; min-height: 480px; font-size: 1.1em; }
.p-blue { background: var(--blue); color: var(--milk); }
.p-pink { background: var(--pink); }
.p-yellow { background: var(--yellow); }
.p-purple { background: var(--purple); color: var(--milk); }
.prog-num { font-size: 11px; opacity: .75; }
.prog-card h3 { font-size: clamp(19px, 1.7vw, 26px); text-transform: uppercase; line-height: 1.08; }
.prog-card p { font-family: "Helvetica Neue", Arial, sans-serif; font-size: 14.5px; line-height: 1.55; }
.prog-go { margin-top: auto; padding-top: 16px; font-weight: 900; font-size: 13px; letter-spacing: .06em; }
.prog-go::after { content: ""; }

/* ===== Шоу-лист ===== */
.show-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding: 22px 8px;
  border-bottom: 2.5px solid var(--ink);
  transition: padding-left .2s, background .2s;
}
.show-list li:first-child { border-top: 2.5px solid var(--ink); }
.show-list li:hover { padding-left: 24px; background: #fff; }
.show-list span { font-size: clamp(19px, 2.3vw, 32px); font-weight: 900; text-transform: uppercase; }
.show-list small { font-family: "Helvetica Neue", Arial, sans-serif; font-size: 14px; color: #666; text-align: right; }

/* ===== Лента фото ===== */
.strip-section { padding: clamp(40px, 5vw, 80px) 0; overflow: hidden; }
.strip {
  display: flex; gap: 18px;
  width: max-content;
  animation: strip-move 36s linear infinite;
}
.strip:hover { animation-play-state: paused; }
@keyframes strip-move { to { transform: translateX(-50%); } }
.shot {
  flex: 0 0 auto;
  width: clamp(220px, 24vw, 340px);
  border: 3px solid var(--ink);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
}
.shot svg { width: 100%; height: auto; }
.shot figcaption { font-size: 10px; letter-spacing: .14em; padding: 10px 12px; border-top: 3px solid var(--ink); }

/* ===== Шаги ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { border: 3px solid var(--ink); border-radius: var(--r-lg); padding: 26px 22px 30px; transition: transform .2s, box-shadow .2s; }
.step:hover { transform: translate(-2px,-3px); box-shadow: 6px 7px 0 var(--ink); }
.s-blue{background:#dbe4ff} .s-yellow{background:#ffefad} .s-green{background:#d3f5e0} .s-orange{background:#ffe0c2}
.step-num { display: inline-block; font-size: 10px; background: var(--ink); color: var(--milk); border-radius: 99px; padding: 5px 11px; margin-bottom: 16px; }
.step h3 { font-size: 18px; text-transform: uppercase; }
.step p { margin-top: 10px; font-family: "Helvetica Neue", Arial, sans-serif; font-size: 13.5px; line-height: 1.55; color: #333; }

/* ===== Безопасность ===== */
.safety {
  margin-top: 46px;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 54px);
}
.safety h3 { font-size: clamp(22px, 2.4vw, 34px); text-transform: uppercase; margin-bottom: 18px; }
.safety ul { display: grid; gap: 10px; }
.safety li { font-family: "Helvetica Neue", Arial, sans-serif; font-size: 15px; line-height: 1.5; padding-left: 26px; position: relative; }
.safety li::before { content: "✦"; position: absolute; left: 0; color: var(--blue); }
.safety-badge { display: grid; justify-items: center; gap: 12px; text-align: center; font-size: 11px; }
.safety-badge svg { width: clamp(90px, 9vw, 130px); animation: spin-slow 24s linear infinite reverse; }

/* ===== Отзывы ===== */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rev-card {
  border: 3px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  background: #fff;
  display: flex; flex-direction: column; gap: 20px;
}
.r1 { transform: rotate(-1.2deg); background: #ffefad; }
.r2 { transform: rotate(.8deg) translateY(18px); background: #dbe4ff; }
.r3 { transform: rotate(-.6deg); background: #ffd9ec; }
.rev-card p { font-family: "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.6; font-weight: 600; }
.rev-card footer { margin-top: auto; font-size: 10.5px; color: #555; }

/* ===== Контакты ===== */
.contacts { background: var(--blue); color: var(--milk); border-top: 4px solid var(--ink); }
.contacts .sec-num { background: var(--yellow); color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.big-cta {
  border: 3px solid var(--milk);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 44px);
  display: grid; gap: 10px;
  transition: background .2s, transform .2s;
}
.big-cta span { font-size: 11px; opacity: .8; }
.big-cta strong { font-size: clamp(22px, 3vw, 42px); }
.big-cta:hover { background: var(--milk); color: var(--ink); transform: translateY(-4px); }
.big-cta.alt { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.big-cta.alt:hover { background: var(--milk); }
.lead-form {
  margin-top: 40px;
  display: grid; grid-template-columns: 1fr 1fr 1fr auto;
  gap: 16px; align-items: end;
  border: 3px solid var(--milk);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 40px);
}
.lead-form label { display: grid; gap: 8px; font-size: 10px; }
.lead-form input {
  background: rgba(255,255,255,.12);
  border: 2.5px solid var(--milk);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--milk);
  font-size: 15px;
  outline: none;
}
.lead-form input::placeholder { color: rgba(253,246,236,.5); }
.lead-form input:focus { border-color: var(--yellow); }
.form-btn { margin: 0; box-shadow: 4px 5px 0 var(--yellow); white-space: nowrap; }
.form-note { min-height: 1em; font-size: 12px; color: var(--green); }
.site-footer {
  margin-top: 60px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  font-size: 10.5px;
  border-top: 2px solid rgba(253,246,236,.35);
  padding-top: 22px;
}
.back-apex { text-decoration: underline; text-underline-offset: 4px; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Адаптив ===== */
@media (max-width: 1100px) {
  :root { --side-w: 0px; }
  .page { margin-left: 0; padding-top: 59px; }
  .sidenav { display: none; }
  .mobile-top { display: flex; }
  .fmt-grid, .prog-grid, .rev-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .fmt-card.wide { grid-column: span 2; }
  .p-big { grid-row: auto; min-height: 320px; }
  .lead-form { grid-template-columns: 1fr 1fr; }
  .form-btn { grid-column: span 2; justify-content: center; }
}
@media (max-width: 640px) {
  .hero { padding: 70px 18px 90px; }
  .b1 { left: -4%; } .b2 { right: -6%; } .b3 { right: 4%; bottom: 4%; }
  .fmt-grid, .prog-grid, .rev-grid, .contact-grid { grid-template-columns: 1fr; }
  .fmt-card.wide { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .lead-form { grid-template-columns: 1fr; }
  .form-btn { grid-column: span 1; }
  .show-list li { flex-direction: column; gap: 4px; }
  .show-list small { text-align: left; }
  .safety { grid-template-columns: 1fr; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
