/* ---------- шрифты (свои файлы, без внешних сервисов) ---------- */
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url(../fonts/unbounded-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url(../fonts/unbounded-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url(../fonts/manrope-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url(../fonts/manrope-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(../fonts/manrope-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(../fonts/manrope-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url(../fonts/manrope-cyrillic-800-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url(../fonts/manrope-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --void: #07060c;
  --stage: #0d0b16;
  --card: #100e18;
  --line: rgba(255, 255, 255, .12);
  --pink: #ff2e97;
  --pink-hot: #ff6bb8;
  --core: #ffe3f2;
  --pink-glow: rgba(255, 46, 151, .55);
  --lilac: #b78cff;
  --white: #fff;
  --muted: #bdb8c9;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --display: "Unbounded", "Arial Black", "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1200px;
  --neon: 0 0 4px rgba(255,255,255,.7), 0 0 10px var(--pink), 0 0 24px var(--pink), 0 0 48px var(--pink-glow);
  --neon-soft: 0 0 12px var(--pink-glow), 0 0 32px rgba(255,46,151,.28);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--void); color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { background: var(--void); color: var(--white); font-family: var(--font); font-weight: 400; font-size: 17px; -webkit-font-smoothing: antialiased; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { max-width: 62ch; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; background: var(--pink); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  font: 700 16px/1.1 var(--font); padding: 14px 30px; border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 0 18px var(--pink-glow), 0 0 44px rgba(255,46,151,.28);
  transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); background: var(--pink-hot); box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 0 28px var(--pink), 0 0 70px var(--pink-glow); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.btn--line { background: transparent; box-shadow: 0 0 0 1px rgba(255,46,151,.6) inset; }
.btn--line:hover { background: rgba(255,46,151,.14); box-shadow: 0 0 0 1px var(--pink) inset, 0 0 22px var(--pink-glow); }
.btn--pulse { animation: pulse 2.8s ease-in-out 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 0 16px var(--pink-glow), 0 0 40px rgba(255,46,151,.25); } 50% { box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 0 26px var(--pink), 0 0 64px rgba(255,46,151,.45); } }

/* ---------- шапка ---------- */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: 10px var(--gutter); transition: background .3s, backdrop-filter .3s; animation: drop .8s ease both; }
@keyframes drop { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }
header.scrolled { background: rgba(7, 6, 12, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; min-height: 44px; font: 700 18px var(--display); text-decoration: none; letter-spacing: -.01em; }
.brand span { color: var(--pink); text-shadow: 0 0 12px var(--pink-glow); }
nav { display: flex; gap: 26px; align-items: center; }
nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; position: relative; display: inline-flex; align-items: center; min-height: 44px; }
nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--pink); box-shadow: 0 0 8px var(--pink); transform: scaleX(0); transition: transform .25s; }
nav a:not(.btn):hover { color: #fff; }
nav a:not(.btn):hover::after { transform: scaleX(1); }

/* ---------- hero: единственный запуск анимации при загрузке ---------- */
.hero { position: relative; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; --mx: 70%; --my: 50%; }
#notes { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
#notes.grabbing { cursor: grabbing; }
.glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 520px at var(--mx) var(--my), rgba(255,46,151,.2), transparent 70%),
              radial-gradient(60% 60% at 75% 55%, rgba(255,46,151,.12), transparent 70%),
              radial-gradient(40% 40% at 10% 90%, rgba(183,140,255,.1), transparent 70%); }
.content { position: relative; z-index: 2; flex: 1; display: flex; align-items: center; padding: 172px var(--gutter) 72px; pointer-events: none; }
.copy { max-width: 600px; pointer-events: auto; }
.hero h1 { font: 700 clamp(36px, 5.8vw, 80px)/1.04 var(--display); letter-spacing: -.03em; margin-bottom: 28px; color: var(--core);
  text-shadow: 0 0 6px rgba(255,255,255,.55), 0 0 18px var(--pink), 0 0 44px var(--pink-glow);
  animation: neon-on 1.6s .25s both; }
@keyframes neon-on {
  0% { opacity: .08; text-shadow: none; }
  8% { opacity: 1; } 10% { opacity: .15; } 14% { opacity: 1; } 18% { opacity: .3; } 22%, 100% { opacity: 1; }
}
.lead { color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); max-width: 500px; margin-bottom: 34px; animation: rise-in .8s 1s both; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; animation: rise-in .8s 1.25s both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.meta { position: relative; z-index: 2; padding: 0 var(--gutter) 24px; color: var(--muted); font-size: 14px; }
.hint { position: absolute; z-index: 2; right: calc(var(--gutter) + 4%); bottom: 64px; color: var(--muted); font-size: 14px; font-weight: 600;
  display: flex; gap: 10px; align-items: center; transition: opacity .6s; animation: nudge 2.4s ease-in-out infinite; pointer-events: none; }
.hint.gone { opacity: 0; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }

/* бегущая строка слов */
.ticker { overflow: hidden; border-block: 1px solid rgba(255,46,151,.35); background: var(--stage); padding: 14px 0; }
.track-line { display: flex; width: max-content; animation: slide 36s linear infinite; }
.ticker:hover .track-line { animation-play-state: paused; }
.track-line span { font: 700 clamp(18px, 2.4vw, 28px) var(--display); white-space: nowrap; padding: 0 28px; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.5); }
.track-line span:nth-child(even) { color: var(--core); -webkit-text-stroke: 0; text-shadow: var(--neon); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- секции ---------- */
section.block { padding: clamp(72px, 10vw, 130px) var(--gutter); position: relative; overflow: hidden; }
section.stage { background: var(--stage); }
.wrap { max-width: var(--max); margin: 0 auto; position: relative; z-index: 1; }
h2 { font: 700 clamp(28px, 4.2vw, 54px)/1.1 var(--display); letter-spacing: -.025em; margin-bottom: 32px; max-width: 20ch; }
h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
.sub { color: var(--muted); font-size: 19px; max-width: 46ch; margin-bottom: 40px; }
.after { margin-top: 44px; }
.tbd { color: var(--muted); font-style: italic; }
.nw { white-space: nowrap; }
.split { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* плавающие ноты на фоне (только мастер-классы и форма) */
.bgnotes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.bgnotes i { position: absolute; bottom: -40px; font-style: normal; color: var(--pink); opacity: 0; text-shadow: 0 0 12px var(--pink); animation: rise linear infinite; }
@keyframes rise { 0% { transform: translateY(0) rotate(-12deg); opacity: 0; } 12% { opacity: .3; } 100% { transform: translateY(-110vh) rotate(18deg); opacity: 0; } }

/* сомнения: пузыри-мысли */
.thoughts { display: grid; gap: clamp(44px, 7vw, 88px); margin-top: 24px; }
.thought { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px 24px; align-items: center; }
.bubble { grid-column: 1 / span 7; position: relative; font: 700 clamp(21px, 2.7vw, 36px)/1.2 var(--display); letter-spacing: -.02em; padding: 28px 34px;
  border: 2px solid var(--pink); border-radius: 36px 36px 36px 6px; color: var(--core); box-shadow: var(--neon-soft), inset 0 0 28px rgba(255,46,151,.08); }
.bubble::before, .bubble::after { content: ""; position: absolute; border: 2px solid var(--pink); border-radius: 50%; background: var(--void); }
.bubble::before { width: 16px; height: 16px; left: 18px; bottom: -30px; }
.bubble::after { width: 8px; height: 8px; left: 6px; bottom: -46px; }
.reply { grid-column: 8 / span 5; color: var(--muted); font-size: 18px; }
.thought:nth-child(even) .bubble { grid-column: 6 / span 7; grid-row: 1; border-radius: 36px 36px 6px 36px; }
.thought:nth-child(even) .bubble::before { left: auto; right: 18px; }
.thought:nth-child(even) .bubble::after { left: auto; right: 6px; }
.thought:nth-child(even) .reply { grid-column: 1 / span 5; grid-row: 1; }
/* пузырь появляется как мысль, потом слегка покачивается */
.bubble.pop { opacity: 0; transform: scale(.82) translateY(14px); transition: opacity .5s ease, transform .7s cubic-bezier(.34,1.56,.64,1); transform-origin: 10% 100%; }
.bubble.pop.in { opacity: 1; transform: none; animation: bob 5s ease-in-out 1s infinite; }
.thought:nth-child(2) .bubble.pop.in { animation-duration: 6.2s; animation-delay: 1.4s; }
.thought:nth-child(3) .bubble.pop.in { animation-duration: 5.6s; animation-delay: .8s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (max-width: 760px) {
  .bubble, .thought:nth-child(even) .bubble { grid-column: 1 / -1; }
  .reply, .thought:nth-child(even) .reply { grid-column: 1 / -1; grid-row: auto; padding-top: 30px; }
}

/* пробное: треклист */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.chip { border: 1px solid var(--pink); color: #fff; border-radius: 999px; padding: 8px 18px; font-size: 15px; font-weight: 600; }
.tracks { list-style: none; position: relative; border-top: 1px solid var(--line); --p: 0; }
.tracks::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: calc(var(--p) * 100%); background: var(--pink); box-shadow: var(--neon-soft); }
.track { display: grid; grid-template-columns: clamp(64px, 11vw, 150px) 1fr 1.3fr; gap: 8px 28px; align-items: baseline; padding: 34px 0; border-bottom: 1px solid var(--line); opacity: .4; transition: opacity .5s; }
.track.on { opacity: 1; }
.track .n { font: 700 clamp(44px, 8vw, 104px)/1 var(--display); color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.4); transition: color .4s, text-shadow .4s, -webkit-text-stroke-color .4s; }
.track.on .n { color: var(--core); -webkit-text-stroke: 2px transparent; text-shadow: var(--neon); }
.track h3 { font-size: clamp(20px, 2.4vw, 30px); line-height: 1.15; }
.track p { color: var(--muted); }
@media (max-width: 760px) {
  .track { grid-template-columns: 56px 1fr; padding: 26px 0; }
  .track p { grid-column: 2; }
}

/* чему учим */
.list { list-style: none; border-top: 1px solid var(--line); }
.list li { padding: 22px 0 22px 40px; border-bottom: 1px solid var(--line); position: relative; font: 600 clamp(19px, 2vw, 24px)/1.3 var(--font); }
.list li::before { content: "♪"; position: absolute; left: 0; top: 20px; color: var(--pink); font-size: 26px; text-shadow: 0 0 10px var(--pink); }

/* мастер-классы */
.mc { background: radial-gradient(60% 80% at 8% 100%, rgba(183,140,255,.16), transparent 60%), radial-gradient(60% 80% at 100% 0%, rgba(255,46,151,.14), transparent 60%); }
.mc h2 { max-width: 24ch; }
.mc-lead { color: var(--muted); font-size: 20px; max-width: 46ch; margin-bottom: 52px; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.cols > div { padding: 6px 36px; border-left: 1px solid rgba(183,140,255,.4); }
.cols > div:first-child { padding-left: 0; border-left: 0; }
.mc-note { margin-top: 44px; color: var(--muted); font-size: 18px; }
.mc-note a { color: #fff; text-decoration: none; border-bottom: 2px solid var(--pink); }
.cols h3 { font-size: 20px; line-height: 1.2; margin-bottom: 14px; color: #efe6ff; }
.cols p { color: var(--muted); }
@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; gap: 28px; }
  .cols > div { padding: 24px 0 0; border-left: 0; border-top: 1px solid rgba(183,140,255,.4); }
  .cols > div:first-child { padding-top: 0; border-top: 0; }
}

/* это не просто уроки */
.rows { list-style: none; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px 40px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); }
.rows h3 { font-size: clamp(22px, 3.4vw, 44px); line-height: 1.1; transition: color .3s, text-shadow .3s, transform .3s; }
.rows p { color: var(--muted); font-size: 18px; }
@media (hover: hover) { .rows li:hover h3 { color: var(--core); text-shadow: var(--neon); transform: translateX(10px); } }
@media (max-width: 760px) { .rows li { grid-template-columns: 1fr; } }

/* преподаватели */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.person:nth-child(2) { margin-top: 56px; }
.person .photo { aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, #1b1230, #100e18 60%, #2a0b1d);
  display: grid; place-items: center; color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.person .photo img { width: 100%; height: 100%; object-fit: cover; }
.person figcaption strong { display: block; font: 700 20px/1.2 var(--display); letter-spacing: -.01em; margin-bottom: 4px; }
.person figcaption span { display: block; color: var(--pink-hot); font-weight: 600; margin-bottom: 8px; }
.person figcaption p { color: var(--muted); }
@media (max-width: 860px) { .team { grid-template-columns: 1fr 1fr; } .person:nth-child(2) { margin-top: 0; } .person:nth-child(3) { margin-top: 28px; } }
@media (max-width: 520px) { .team { grid-template-columns: 1fr; } .person:nth-child(3) { margin-top: 0; } }

/* отзывы: крупные цифры */
.scores { display: flex; flex-wrap: wrap; gap: 40px clamp(40px, 8vw, 110px); align-items: flex-end; }
.score b { display: block; font: 700 clamp(64px, 9vw, 128px)/.95 var(--display); letter-spacing: -.05em; color: var(--core); text-shadow: var(--neon); }
.score p { font-size: 19px; font-weight: 600; margin-top: 10px; }
.score small { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }

/* отзывы: большие цитаты без карточек */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px clamp(28px, 4vw, 64px); margin-top: clamp(56px, 7vw, 96px); align-items: start; }
.quote { margin: 0; position: relative; padding-left: 26px; border-left: 2px solid var(--pink); box-shadow: -10px 0 24px -14px var(--pink-glow); }
.quote:nth-child(2) { margin-top: 48px; }
.stars { color: var(--pink-hot); letter-spacing: .18em; font-size: 18px; text-shadow: 0 0 10px var(--pink-glow); margin-bottom: 14px; }
.quote blockquote { font-size: 18px; line-height: 1.6; color: #f1ecf8; }
.quote figcaption { margin-top: 16px; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } .quote:nth-child(2) { margin-top: 0; } }

/* вопросы */
.faq { max-width: 820px; }
details { border-bottom: 1px solid var(--line); padding: 8px 0; }
details:first-child { border-top: 1px solid var(--line); }
summary { cursor: pointer; min-height: 56px; font: 700 clamp(17px, 1.6vw, 20px)/1.3 var(--font); list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--pink); font-size: 30px; line-height: 1; transition: transform .3s; text-shadow: 0 0 10px var(--pink); flex: none; }
details[open] summary::after { transform: rotate(135deg); }
details p { color: var(--muted); padding: 4px 0 18px; animation: fade-in .4s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* форма: единственная карточка на странице */
.form-wrap { display: grid; gap: 44px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .form-wrap { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }
form { background: var(--card); border: 1px solid rgba(255,46,151,.5); border-radius: 26px; padding: clamp(22px, 3vw, 38px); display: grid; gap: 22px;
  box-shadow: 0 0 40px rgba(255,46,151,.15), inset 0 0 40px rgba(255,46,151,.04); }
label.f { display: grid; gap: 8px; font-size: 15px; font-weight: 600; color: var(--muted); }
input[type=text], input[type=tel] { background: var(--void); border: 1px solid var(--line); color: #fff; border-radius: 14px; padding: 17px 16px; font: 600 17px var(--font); width: 100%; min-height: 52px; transition: border-color .2s, box-shadow .2s; }
input[type=text]:focus, input[type=tel]:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,46,151,.25), 0 0 20px rgba(255,46,151,.3); outline: none; }
fieldset { border: 0; display: grid; gap: 10px; }
legend { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label { position: relative; }
.radios input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radios span { display: inline-flex; align-items: center; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s, box-shadow .2s; }
.radios label:hover span { border-color: var(--pink); }
.radios input:checked + span { background: var(--pink); border-color: var(--pink); box-shadow: 0 0 18px var(--pink-glow); }
.radios input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { margin-top: 3px; accent-color: var(--pink); width: 20px; height: 20px; flex: none; }
.consent a { color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { font-size: 16px; min-height: 24px; font-weight: 600; }
.msg.ok { color: #7dffb0; text-shadow: 0 0 12px rgba(125,255,176,.5); }
.msg.err { color: #ff8aa8; }
.fallback { display: flex; flex-wrap: wrap; gap: 10px; }

/* контакты */
.contacts dl { display: grid; gap: 26px; }
.contacts dt { color: var(--muted); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.contacts dd { font-size: 22px; font-weight: 600; line-height: 1.35; }
.contacts dd a { text-decoration: none; border-bottom: 2px solid var(--pink); transition: text-shadow .2s; }
.contacts dd a:hover { text-shadow: 0 0 14px var(--pink); }
.map-link { padding-top: 8px; }
@media (min-width: 900px) { .map-link { padding-top: 72px; } }

/* подвал */
footer { border-top: 1px solid var(--line); padding: 40px var(--gutter); color: var(--muted); font-size: 14px; }
footer strong { color: #fff; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
footer a { color: var(--muted); }
footer a:hover { color: #fff; }
footer nav { gap: 20px; flex-wrap: wrap; }

/* cookie */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; background: var(--card); border: 1px solid rgba(255,46,151,.5);
  border-radius: 20px; padding: 20px; display: none; gap: 14px; font-size: 14px; color: var(--muted); box-shadow: 0 10px 40px rgba(0,0,0,.5), 0 0 30px rgba(255,46,151,.2); }
.cookie.show { display: grid; animation: fade-in .4s ease; }
.cookie a { color: #fff; }
.cookie .row { display: flex; gap: 10px; flex-wrap: wrap; }

/* юридические страницы */
.legal { max-width: 800px; margin: 0 auto; padding: 120px var(--gutter) 80px; }
.legal h1 { font: 700 clamp(26px, 4.5vw, 44px)/1.1 var(--display); letter-spacing: -.02em; margin-bottom: 24px; }
.legal h2 { font: 700 20px var(--display); margin: 32px 0 12px; letter-spacing: 0; max-width: none; }
.legal p, .legal li { color: var(--muted); margin-bottom: 10px; max-width: none; }
.legal ul { padding-left: 20px; }
.legal .todo { background: rgba(255,46,151,.12); border: 1px dashed var(--pink); color: #fff; padding: 2px 6px; border-radius: 6px; }

@media (max-width: 760px) {
  nav a:not(.btn) { display: none; }
  /* на телефоне надпись из нот стоит под текстом и кнопками, а не поверх них */
  .content { order: 1; flex: none; align-items: flex-start; padding: 124px var(--gutter) 8px; }
  #notes { order: 2; position: relative; inset: auto; width: 100%; height: 104vw; max-height: 520px; flex: none; }
  .hint { order: 3; position: static; justify-content: center; padding: 0 var(--gutter) 20px; text-align: center; }
  .meta { order: 4; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .bubble.pop { opacity: 1; transform: none; }
  .track { opacity: 1; }
  .track .n { color: var(--core); -webkit-text-stroke: 2px transparent; text-shadow: var(--neon); }
  .tracks::before { width: 100%; }
  html { scroll-behavior: auto; }
}

/* тап-зоны не меньше 44px для ссылок в тексте */
.contacts dd a, .consent a, .cookie a, .score a, .mc-note a { display: inline-block; padding-block: 12px; margin-block: -12px; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* детское направление */
.kids .cols { grid-template-columns: repeat(2, 1fr); margin-bottom: 40px; }
.kids .cols > div { border-left-color: var(--pink); }
.kids .cols h3 { color: var(--core); }
.kids-lead { max-width: 60ch; font-size: 19px; margin: 0 0 32px; }
.kids-blocks { margin-bottom: 32px; counter-reset: kb; }
.kids-blocks h3 { font-size: clamp(20px, 2.6vw, 32px); }
.kids-blocks b { color: #fff; }
@media (max-width: 900px) { .kids .cols { grid-template-columns: 1fr; } }

/* логотип в шапке: вверху страницы крупный, при прокрутке уменьшается вдвое */
.brand img { display: block; height: 140px; width: auto; transition: height .35s ease; }
header.scrolled .brand img { height: 70px; }
@media (max-width: 760px) { .brand img { height: 84px; } header.scrolled .brand img { height: 42px; } }
@media (prefers-reduced-motion: reduce) { .brand img { transition: none; } }
