/* Балабақша: тёплый лист, узкая колонка, факты сбоку.
   Цвета знака — только как тонкие метки, не как заливка секций. */

@font-face { font-family: "Nunito"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../assets/fonts/nunito-cyrillic-ext-400.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../assets/fonts/nunito-cyrillic-ext-700.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("../assets/fonts/nunito-cyrillic-ext-800.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../assets/fonts/nunito-cyrillic-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../assets/fonts/nunito-cyrillic-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("../assets/fonts/nunito-cyrillic-800.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../assets/fonts/nunito-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../assets/fonts/nunito-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("../assets/fonts/nunito-latin-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #243044;
  --muted: #5d6b80;
  --blue: #1a5fbf;
  --sky: #e7f3ff;
  --paper: #fff8ee;
  --sheet: #ffffff;
  --line: #f0d9c4;
  --sun: #ffd24a;
  --rose: #ff7eb3;
  --leaf: #7dce82;
  --orange: #ff9f43;
  --font: "Nunito", "Segoe UI", sans-serif;
  --top-h: 112px;
  --radius: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, #ffe7a3 0 70px, transparent 72px),
    radial-gradient(circle at 96% 4%, #ffd0e6 0 54px, transparent 56px),
    radial-gradient(circle at 92% 40%, #c9f2d4 0 40px, transparent 42px),
    var(--paper);
}
img, svg { max-width: 100%; }
img { display: block; }
a { color: var(--blue); }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.wrap { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 12px; top: -40px; background: var(--ink); color: #fff;
  padding: 8px 12px; z-index: 20;
}
.skip-link:focus { top: 8px; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .94);
  border-bottom: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--sun), var(--rose), var(--orange), var(--leaf), var(--blue)) 1;
  backdrop-filter: blur(10px);
}
.utility {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 8px 0; font-size: .86rem; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.utility a { color: var(--ink); text-decoration: none; }
.utility a:hover { text-decoration: underline; }
.utility-links { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.lang {
  border-radius: 999px; background: var(--sky); padding: 4px 10px; text-decoration: none; font-weight: 800; font-size: .78rem;
}
.bar { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; margin-right: auto; }
.brand-mark { width: 72px; height: 76px; object-fit: contain; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-title { font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand-title .k { color: var(--rose); }
.brand-title .i { color: #e07a12; }
.brand-title .d { color: var(--sun); }
.brand-title .s { color: var(--leaf); }
.brand-sub { margin-top: 3px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: #9a6a12; }
.nav { display: flex; gap: 18px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav a:hover, .nav a.is-active { color: var(--blue); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--sun); padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; text-decoration: none; font-weight: 800;
  border: 0; border-radius: 16px; box-shadow: 0 8px 0 rgba(22, 48, 90, .12);
}
.btn .ico { width: 20px; height: 20px; }
.btn-ig {
  background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7);
  color: #fff;
}
.btn-solid { background: var(--blue); color: #fff; }
.btn-solid:hover { transform: translateY(-2px); }
.btn-line { background: #fff; color: var(--ink); box-shadow: 0 8px 0 var(--sun); }
.text-link { font-weight: 800; }

.intro { padding: 36px 0 12px; }
.intro-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.kicker { display: inline-block; background: #fff; border-radius: 999px; padding: 6px 12px; color: var(--blue); font-weight: 800; font-size: .9rem; margin-bottom: 14px; }
h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); line-height: .98; font-weight: 800; letter-spacing: -.03em; max-width: 11ch; }
.lede { margin-top: 14px; max-width: 36em; font-size: 1.08rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li { background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: .88rem; }
.chips li:nth-child(5n+1) { background: #fff3c4; }
.chips li:nth-child(5n+2) { background: #ffd6ea; }
.chips li:nth-child(5n+3) { background: #d9f3ff; }
.chips li:nth-child(5n+4) { background: #ffe0c2; }
.chips li:nth-child(5n) { background: #d9f5df; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.hero-frame {
  background: #fff; border-radius: 40px; padding: 18px;
  box-shadow: 12px 16px 0 #ffd24a;
  min-height: 320px; display: grid; place-items: center;
}
.hero-frame img { width: 100%; height: 340px; object-fit: cover; border-radius: 28px; }
.hero-frame .hero-mark { width: min(100%, 280px); height: auto; object-fit: contain; }
.bubbles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.bubble { border-radius: 24px; padding: 16px 18px; background: var(--sun); }
.bubble-rose { background: var(--rose); }
.bubble-leaf { background: var(--leaf); }
.bubble strong { display: block; font-size: 1.6rem; line-height: 1.1; }
.bubble span { font-weight: 800; }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.facts dd { margin: 4px 0 0; font-weight: 800; font-size: 1.05rem; }
.facts a { color: inherit; }

.block { padding: 56px 0; }
.block-plain { background: var(--sheet); border-block: 1px solid var(--line); }
.block-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: 28px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; font-weight: 800; }
h3 { font-size: 1.15rem; line-height: 1.3; }
.block-head p, .empty { color: var(--muted); }

.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.group { background: #fff7d6; border-radius: var(--radius); padding: 22px 22px 26px; }
.group-rose { background: #ffe4f1; }
.group-leaf { background: #e5f8e8; }
.age { font-weight: 800; margin-bottom: 10px; }
.age span { display: block; font-size: 3.6rem; line-height: .9; letter-spacing: -.04em; }
.group h3 { margin-bottom: 8px; }

.story { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; }
.ticks { margin-top: 14px; }
.ticks li { padding: 10px 0 10px 18px; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 18px; width: 7px; height: 7px; background: var(--blue); }
.photo-row, .photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.photos { margin-top: 0; }
.photo-row img, .photos img, .slot { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; min-height: 240px; }
.lesson-photo { position: relative; aspect-ratio: 4 / 3; background: var(--sky); }
.slot {
  display: grid; place-items: end start; padding: 14px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.2), rgba(255,255,255,0)),
    repeating-linear-gradient(45deg, #ffe7a8 0 12px, #fff 12px 24px);
  border: 3px dashed #f0b429;
}
.slot span { background: #fff; border-radius: 999px; padding: 4px 10px; font-weight: 800; font-size: .85rem; }
.slot-tall { aspect-ratio: 1; }
#classes { background: var(--sky); border-radius: 40px; margin-inline: 12px; }

.lessons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lesson { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 16px 0 rgba(26, 95, 191, .08); display: flex; flex-direction: column; }
.lesson-photo { aspect-ratio: 4 / 3; background: var(--sky); }
.lesson-photo img, .lesson-photo .cover { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.lesson-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lesson-body p { color: var(--muted); flex: 1; }
.lesson-body a { font-weight: 800; }
.lesson-age, .lesson-price {
  position: absolute; z-index: 1; border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: .85rem;
}
.lesson-age { top: 12px; left: 12px; background: #fff; color: var(--ink); }
.lesson-price { right: 12px; bottom: 12px; background: var(--sun); color: var(--ink); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { background: #fff; border-radius: 24px; padding: 18px; }
.steps span {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--sun); font-weight: 800;
}
.steps li:nth-child(2) span { background: var(--rose); }
.steps li:nth-child(3) span { background: var(--leaf); }
.steps li:nth-child(4) span { background: #b9dcff; }
.steps h3 { margin: 12px 0 6px; }
.steps p { color: var(--muted); font-size: .95rem; }

.photos button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.post { border-bottom: 1px solid var(--line); }
.post summary { cursor: pointer; padding: 12px 0; font-weight: 800; display: flex; gap: 16px; }
.post time { color: var(--muted); font-weight: 700; min-width: 6.5em; }
.post p { padding: 0 0 14px; }
.later { margin-top: 28px; }
.docs li { margin: 8px 0; }
.docs small { display: block; color: var(--muted); }
#director {
  background: #fff0f6;
  border-radius: 40px;
  margin: 12px 12px 0;
}
#contact {
  background: #fff;
  border-radius: 40px 40px 0 0;
  margin-top: 28px;
  box-shadow: 0 -12px 0 #ffe0c2;
}
.director { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 36px; align-items: center; }
.director-photo img, .director-photo .slot { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 36px; min-height: 0; }
.director-role { margin-top: 8px; font-weight: 800; color: var(--blue); }
.director .lede { margin-top: 14px; }

.form { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: 10px 12px 0 #ffd0e6; }
.form label { display: block; margin: 14px 0 4px; font-size: .85rem; font-weight: 800; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 2px solid #ffe0c2; background: #fffdf8; border-radius: 14px;
}
.form .btn { width: 100%; margin-top: 16px; border: 0; cursor: pointer; }
.hp-field { position: absolute; left: -9999px; }
.form-note { display: none; margin-top: 12px; font-weight: 800; }
.form-note.show { display: block; }
.form-note.error { color: var(--rose); }
.consent { margin-top: 10px; font-size: .8rem; color: var(--muted); }
.facts-contact a { font-weight: 800; }
.socials { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; font-weight: 800; }
.socials a { display: inline-flex; align-items: center; gap: 8px; }
.socials .ico { width: 20px; height: 20px; }
.foot .socials { margin-top: 0; }

.foot { padding: 28px 0 40px; color: var(--muted); font-size: .92rem; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--ink); font-weight: 800; }

.lightbox {
  position: fixed; inset: 0; z-index: 40; background: rgba(20, 24, 28, .92);
  display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 80vh; max-width: min(1000px, 80vw); }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 8px; }
.lb-close, .lb-nav {
  width: 44px; height: 44px; border: 0; background: #fff; color: var(--ink); cursor: pointer;
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .bar-wa span, .btn-ig span { display: none; }
  .bar-wa, .btn-ig { width: 44px; min-height: 44px; padding: 0; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--sheet); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 8px 20px 16px; gap: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .intro-grid, .story, .split, .block-head, .groups, .steps, .lessons, .director { grid-template-columns: 1fr; }
  .director-photo { max-width: 280px; }
  .bubbles, .photos, .photo-row { grid-template-columns: 1fr; }
  .hero-frame img { height: 240px; }
  #classes, #director { margin-inline: 0; border-radius: 0; }
  #contact { border-radius: 0; margin-top: 0; }
  h1 { max-width: none; }
  .utility { flex-direction: column; align-items: flex-start; }
}
