/* ==========================================================================
   Oñpai — сайт центра мульти-развития
   Основа: брендбук Oñpai (фирменные цвета, шрифт Roboto Slab, паттерн, знак).
   Структура страницы — по образцу сайта Munarat.
   ========================================================================== */

/* ---------- Фирменный шрифт (Roboto Slab: Light / Regular / Bold) ---------- */
@font-face { font-family: "Roboto Slab"; font-weight: 300; font-style: normal; font-display: swap;
  src: url("../assets/fonts/RobotoSlab-Light.woff2") format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../assets/fonts/RobotoSlab-Regular.woff2") format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../assets/fonts/RobotoSlab-Bold.woff2") format("woff2"); }

/* ---------- Токены ---------- */
:root {
  /* Фирменные цвета (логобук, стр. 11) */
  --blue:   #019df4;   /* яркий голубой  — rgb 1,157,244  */
  --navy:   #28428c;   /* тёмно-синий    — rgb 40,66,140  */
  --teal:   #70c3cb;   /* бирюзовый      — rgb 112,195,203 */
  --pink:   #ffacd6;   /* розовый        — rgb 255,172,214 */
  --orange: #ff7900;   /* оранжевый      — rgb 255,121,0  */
  --white:  #ffffff;

  /* Производные от фирменных (только для фонов, текста и границ) */
  --ink:        #1f2d5e;                /* основной текст на светлом */
  --ink-deep:   #14224d;                /* текст на оранжевом (контраст 5.8:1) */
  --muted:      #55648f;                /* второстепенный текст */
  --navy-deep:  #1f3573;
  --eyebrow:    #0b79bd;                /* подписи-метки на светлом (контраст 4.7:1) */
  --tint-blue:  #eaf6fe;
  --tint-pink:  #fff2f9;
  --tint-teal:  #e9f6f7;
  --tint-orange:#fff0e2;
  --line:       rgba(40, 66, 140, .14);

  --radius:     28px;
  --radius-lg:  48px;
  --shadow:     0 1px 0 rgba(40, 66, 140, .04), 0 18px 40px -24px rgba(40, 66, 140, .35);
  --header-h:   76px;
  --font: "Roboto Slab", Georgia, "Times New Roman", serif;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 48px, 1200px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-navy   { background: var(--navy);   color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-orange { background: var(--orange); color: var(--ink-deep); }
.btn-orange:hover { background: #ff8a24; box-shadow: 0 14px 28px -14px rgba(255, 121, 0, .8); }
.btn-white  { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--tint-blue); }
.btn-ghost  { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-sm { padding: 10px 20px; font-size: .95rem; }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; margin-top: 8px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(40, 66, 140, .5); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: block; flex: none; line-height: 0; }
.brand img { height: 44px; width: auto; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 2px; }
.site-nav a:not(.btn) {
  display: block; white-space: nowrap; padding: 9px 16px; border-radius: 999px;
  text-decoration: none; font-weight: 400; color: var(--navy); font-size: .98rem;
  transition: background-color .18s ease;
}
.site-nav a:not(.btn):hover { background: var(--tint-blue); }
.site-nav a.is-active { background: var(--tint-blue); font-weight: 700; }
.nav-wa { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--tint-blue); color: var(--navy); font-weight: 700; font-size: .9rem; text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.lang-btn:hover { background: var(--navy); color: #fff; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--tint-blue);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 0;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--blue); color: #fff;
  padding-top: clamp(48px, 7vw, 88px);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
/* Фон как в логобуке: знак бренда укрупнён и уходит за край блока */
/* Знак вписан в голубой блок: верх, право и низ совпадают с краем фона */
.hero-bgmark {
  position: absolute; z-index: -1; pointer-events: none;
  top: 0; right: -3%; bottom: 0; left: auto;
  height: 100%; width: auto; aspect-ratio: 1; transform: none;
}

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-eyebrow { color: var(--ink-deep); font-weight: 400; font-size: 1.05rem; line-height: 1.45; max-width: 28em; margin-bottom: 16px; text-transform: none; letter-spacing: 0; }
.hero h1 { font-size: clamp(2.3rem, 4.8vw, 4rem); line-height: 1.08; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; text-shadow: 0 2px 0 rgba(20, 34, 77, .22); }
.hero-lead { margin-top: 20px; max-width: 34em; font-size: clamp(1.05rem, 1.5vw, 1.2rem); font-weight: 400; color: var(--ink-deep); line-height: 1.55; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.hero-tags li {
  padding: 7px 14px; border-radius: 999px; background: rgba(20, 34, 77, .12);
  color: var(--ink-deep); font-size: .88rem; font-weight: 700;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .btn-ghost { color: var(--ink-deep); border-color: var(--ink-deep); }
.hero .btn-ghost:hover { background: rgba(20, 34, 77, .1); border-color: var(--ink-deep); }

.hero-visual { position: relative; width: min(100%, 520px); margin-left: auto; aspect-ratio: 1 / 1.12; z-index: 1; }
.hero-bgmark-stage { display: none; }
.hero-arch { position: absolute; inset: 0; z-index: 1; }
.hero-arch img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }

.hero-note { margin-top: clamp(36px, 5vw, 60px); margin-bottom: 12px; font-size: .9rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-deep); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 40px; }
.stat-card {
  padding: 22px 26px; border-radius: 24px;
  background: rgba(40, 66, 140, .9); border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 18px 36px -24px rgba(20, 34, 77, .7);
}
.stat-card strong { display: block; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.15; font-weight: 700; white-space: nowrap; }
.stat-card span { display: block; margin-top: 4px; font-size: .95rem; color: rgba(255, 255, 255, .9); }

/* ---------- Секции ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section-pink { background: var(--tint-pink); }
.panel { margin-inline: clamp(8px, 2vw, 28px); border-radius: var(--radius-lg); }
.panel-blue { background: var(--tint-blue); }
.panel-teal { background: var(--tint-teal); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--eyebrow);
}
.eyebrow::before { content: ""; width: 18px; height: 16px; background: url("../assets/logo/mark.svg") center / contain no-repeat; }
.eyebrow-light { color: var(--pink); }

h2 { margin-top: 14px; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.14; font-weight: 700; color: var(--navy); text-wrap: balance; }
.h2-sm { font-size: clamp(1.55rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; color: var(--navy); }
.lead { font-size: 1.08rem; line-height: 1.75; color: var(--muted); }
.muted { color: var(--muted); }

.head-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: end; margin-bottom: clamp(32px, 5vw, 52px); }
.head-split-sub { margin-top: clamp(56px, 8vw, 96px); margin-bottom: 0; }
.head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 52px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy);
  text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 7px;
}
.link-arrow .ico { transition: transform .18s ease; }
.link-arrow:hover .ico { transform: translateX(4px); }
.link-sm { font-size: .95rem; }
.about-copy .link-arrow { margin-top: 28px; }

/* ---------- Карточки ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.card h3 + p { margin-top: 10px; }
.card p { color: var(--muted); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(40px, 6vw, 64px); }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.feature-mark { width: 46px; height: 46px; margin-bottom: 20px; }
.card-accent::before { content: ""; display: block; width: 52px; height: 6px; border-radius: 3px; margin-bottom: 22px; background: var(--orange); }
.card-accent-blue::before { background: var(--blue); }

/* ---------- О центре: коллаж ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.collage { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; height: clamp(360px, 44vw, 520px); }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: transparent; box-shadow: var(--shadow); }
.tile-1 { grid-row: 1 / span 2; }
.tile img, .tile .art { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile figcaption, .m-item figcaption {
  position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 8px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .88rem; font-weight: 400;
}
.tile figcaption span {
  display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 4px; border-radius: 999px;
  background: var(--orange); color: var(--ink-deep); font-weight: 700; font-size: .78rem;
}

/* ---------- Цитата ---------- */
.quote-band { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: clamp(64px, 9vw, 104px) 0; text-align: center; isolation: isolate; }
.quote-band blockquote { max-width: 21em; margin: 0 auto; font-size: clamp(1.6rem, 3.4vw, 2.7rem); line-height: 1.25; font-weight: 700; text-wrap: balance; }
.qb { position: absolute; display: block; z-index: -1; }
.quote-band .qb-pink   { left: 0; top: 0; width: clamp(110px, 16vw, 210px); aspect-ratio: 1; background: var(--pink); border-bottom-right-radius: 100%; }
.quote-band .qb-orange { right: 0; bottom: 0; width: clamp(120px, 18vw, 240px); aspect-ratio: 1; background: var(--orange); border-top-left-radius: 100%; }
.quote-band .qb-teal   { left: 9%; bottom: 0; width: clamp(80px, 10vw, 130px); height: clamp(40px, 5vw, 65px); background: var(--teal); border-radius: 200px 200px 0 0; }

/* Фирменный паттерн как разделитель */
.pattern-strip { height: 80px; background: #fff url("../assets/img/pattern.svg") repeat-x left center / auto 80px; }

/* ---------- Направления ---------- */
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.program { display: flex; flex-direction: column; transition: transform .22s ease, box-shadow .22s ease; }
.program:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(40, 66, 140, .04), 0 28px 44px -26px rgba(40, 66, 140, .45); }
.program-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.program-mark { width: 56px; height: 56px; }
.age-pill { padding: 6px 15px; border-radius: 999px; background: var(--tint-blue); color: var(--navy); font-size: .85rem; font-weight: 700; }
.program p { flex: 1; }
.program .link-arrow { margin-top: 22px; align-self: flex-start; }


/* ---------- Программа мини-центра ---------- */
/* Карточка кружка с фото (или мозаикой бренда) */
.program-card { padding: 0; overflow: hidden; }
.program-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: transparent; border-radius: var(--radius) var(--radius) 0 0; }
.program-media img, .program-media .art { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.program-card:hover .program-media img, .program-card:hover .program-media .art { transform: scale(1.06); }
.program-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, rgba(20, 34, 77, .35), transparent); pointer-events: none; }
.program-media .age-pill { position: absolute; top: 16px; left: 16px; z-index: 1; background: #fff; box-shadow: 0 6px 16px -8px rgba(20, 34, 77, .4); }
.program-media .price-pill { position: absolute; right: 16px; bottom: 16px; z-index: 1; padding: 8px 16px; border-radius: 999px; background: var(--orange); color: var(--ink-deep); font-size: .85rem; box-shadow: 0 8px 18px -8px rgba(20, 34, 77, .55); }
.program-media .price-pill strong { font-size: 1.1rem; }
.program-body { display: flex; flex-direction: column; flex: 1; padding: 24px 28px 28px; }
.program-body h3 { margin-bottom: 8px; }
.program-body p { flex: 1; }

/* ---------- Программа мини-центра: список + прайс ---------- */
.head-center { max-width: 780px; margin: 0 auto clamp(32px, 5vw, 52px); text-align: center; }
.head-center .lead { margin: 14px auto 0; }
.program-wrap { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(20px, 3vw, 32px); align-items: start; }
.program-list { margin: 0; padding: 10px clamp(22px, 3vw, 38px); list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.program-list li { display: flex; align-items: center; gap: 18px; padding: 18px 0; font-size: 1.08rem; font-weight: 700; line-height: 1.35; color: var(--ink); border-bottom: 1px solid var(--line); }
.program-list li:last-child { border-bottom: 0; }
.program-bullet { flex: none; width: 34px; height: 34px; }

.price-card { position: sticky; top: calc(var(--header-h) + 24px); padding: clamp(26px, 3vw, 38px); border-radius: var(--radius); background: var(--navy); color: #fff; box-shadow: var(--shadow); overflow: hidden; }
.price-card::after { content: ""; position: absolute; right: -46px; top: -46px; width: 140px; height: 140px; border-radius: 0 0 0 140px; background: var(--pink); opacity: .9; pointer-events: none; }
.price-card h3 { position: relative; z-index: 1; font-size: 1.6rem; color: #fff; }
.price-sub { position: relative; z-index: 1; margin: 6px 0 22px; max-width: 24ch; color: rgba(255, 255, 255, .8); font-size: .95rem; }
.price-row { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.price-label { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: rgba(255, 255, 255, .85); }
.price-label::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }
.price-row-2 .price-label::before { background: var(--orange); }
.price-amount { display: block; margin-top: 6px; font-size: .95rem; color: rgba(255, 255, 255, .8); }
.price-amount strong { font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1.1; color: #fff; }
.price-card .btn { margin-top: 10px; }

/* ---------- Үйірмелер ---------- */
.extra-price { margin-top: 18px; color: var(--muted); font-size: .95rem; }
.extra-price strong { font-size: 1.35rem; color: var(--navy); }
.program .extra-price + .link-arrow { margin-top: 14px; }

/* ---------- Руководитель ---------- */
.director { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; margin-top: 28px; }
.director img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; }
.director h3 { font-size: 1.5rem; }

/* ---------- Быстрая связь ---------- */
.connect-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.connect .lead { margin-top: 12px; }
.social-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.social-buttons .btn { justify-content: center; white-space: nowrap; }
.contact-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip-link { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .45); color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; transition: background-color .18s ease, border-color .18s ease; }
.chip-link:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }

/* ---------- Как начать ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { padding: 28px; }
.badge { display: inline-block; margin-bottom: 18px; padding: 6px 15px; border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: var(--navy); background: var(--tint-blue); }
.step-2 .badge { background: var(--tint-pink); }
.step-3 .badge { background: var(--tint-teal); }
.step-4 .badge { background: var(--tint-orange); }

/* ---------- Галерея ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 17vw, 220px); gap: 16px; }
.m-item { position: relative; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.m-big { grid-column: span 2; grid-row: span 2; }
.m-item.is-extra { display: none; }
.m-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; }
.m-item img, .m-item .art { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.m-btn:hover img { transform: scale(1.05); }
.art { display: block; }
.note { display: flex; align-items: center; gap: 12px; margin-top: 28px; padding: 16px 22px; border-radius: 20px; background: var(--tint-blue); color: var(--muted); }
.panel-blue .note { background: #fff; }
.mosaic-empty + .note { margin-top: 24px; }

.lightbox { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 24px; background: rgba(20, 34, 77, .94); }
.lightbox figure { max-width: min(92vw, 1100px); text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 22px; }
.lightbox figcaption { margin-top: 14px; color: #fff; }
.lb-close, .lb-nav { display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: #fff; color: var(--navy); flex: none; transition: transform .18s ease; }
.lb-close:hover, .lb-nav:hover { transform: scale(1.08); }
.lb-close { position: absolute; top: 20px; right: 20px; }

/* ---------- Новости и документы ---------- */
.news-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.news-grid h2 { margin-bottom: 20px; }
.sub-title { margin: 40px 0 6px; }
.post { border-bottom: 1px solid var(--line); }
.post summary { display: flex; align-items: baseline; gap: 18px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 700; color: var(--navy); }
.post summary::-webkit-details-marker { display: none; }
.post summary::after { content: "+"; margin-left: auto; font-size: 1.5rem; line-height: 1; color: var(--orange); transition: transform .2s ease; }
.post[open] summary::after { content: "–"; }
.post time { flex: none; font-size: .85rem; font-weight: 400; color: var(--muted); min-width: 5.6em; }
.post p { padding: 0 0 20px calc(5.6em + 18px); color: var(--muted); }

.docs-panel { padding: 36px; background: var(--tint-blue); border-color: transparent; box-shadow: none; }
.docs-panel .muted { margin-top: 10px; }
.docs-panel .sub-title { margin-top: 28px; font-size: 1.05rem; }
.doc-list { margin-top: 8px; }
.doc-list li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.doc-list a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); text-decoration: none; }
.doc-list a:hover span { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 5px; }
.doc-list small { color: var(--muted); }
.docs-panel .note { background: #fff; }

/* ---------- Контакты ---------- */
.contact { background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.contact .qb-pink { right: 0; top: 0; width: clamp(110px, 14vw, 200px); aspect-ratio: 1; background: var(--pink); border-bottom-left-radius: 100%; }
.contact .qb-blue { left: 0; bottom: 0; width: clamp(120px, 15vw, 220px); aspect-ratio: 1; background: var(--blue); clip-path: polygon(0 0, 0 100%, 100% 100%); }
.contact h2 { color: #fff; }
.contact .lead { margin-top: 18px; color: rgba(255, 255, 255, .86); max-width: 30em; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list { margin-top: 36px; display: grid; gap: 20px; }
.contact-list li { display: flex; align-items: center; gap: 18px; }
.ico-bubble { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, .13); color: #fff; }
.contact-label { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pink); }
.contact-list li { align-items: flex-start; }
.contact-list li > div { display: grid; gap: 2px; }
.contact-list a:not(.addr-map), .contact-list li div > span:not(.contact-label):not(.addr):not(.city) { font-size: 1.15rem; font-weight: 700; color: #fff; text-decoration: none; }
.contact-list .city { font-size: .95rem; color: rgba(255, 255, 255, .8); }
.contact-list .addr-name { flex: 0 0 100%; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--pink); }
.contact-list .addr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 1.15rem; font-weight: 700; }
.contact-list .addr-map { font-size: .85rem; font-weight: 400; color: var(--pink); text-decoration: underline; text-underline-offset: 4px; }
.contact-list a:not(.addr-map):hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 5px; }
.contact-list .contact-soon { font-weight: 300; font-style: italic; opacity: .75; }
.map { margin-top: 32px; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 10; background: rgba(255, 255, 255, .08); }
.map iframe { width: 100%; height: 100%; border: 0; }

.form { padding: clamp(24px, 4vw, 40px); color: var(--ink); }
.form h3 { font-size: 1.5rem; margin-bottom: 8px; }
.form label { display: block; margin: 16px 0 6px; font-size: .9rem; font-weight: 700; color: var(--navy); }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 16px; border-radius: 16px; border: 1.5px solid #cfd8ee; background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.form textarea { resize: vertical; min-height: 96px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(1, 157, 244, .22); }
.form input:user-invalid { border-color: #d6338a; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { display: none; margin-top: 16px; padding: 14px 18px; border-radius: 16px; font-weight: 700; font-size: .95rem; background: var(--tint-teal); color: #14505a; }
.form-note.show { display: block; }
.form-note.error { background: var(--tint-pink); color: #8a1c52; }
.consent { margin-top: 14px; font-size: .8rem; line-height: 1.5; color: var(--muted); }

/* ---------- Подвал ---------- */
.site-footer { background: var(--navy); color: #fff; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 44px; width: auto; }
.footer-brand p { margin-top: 18px; max-width: 20em; color: rgba(255, 255, 255, .8); font-weight: 300; }
.site-footer h3 { color: var(--pink); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer li { margin-bottom: 10px; }
.site-footer li a { color: rgba(255, 255, 255, .92); text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 5px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .88rem; color: rgba(255, 255, 255, .75); }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; }

.fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab-menu { min-width: 220px; padding: 14px; border-radius: 22px; background: #fff; box-shadow: 0 24px 48px -18px rgba(20, 34, 77, .5); border: 1px solid var(--line); }
.fab-menu[hidden] { display: none; }
.fab-title { margin: 2px 6px 10px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--eyebrow); }
.fab-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; color: var(--ink); font-weight: 700; text-decoration: none; }
.fab-item + .fab-item { margin-top: 4px; }
.fab-item:hover { background: var(--tint-orange); }
.fab-item .ico { width: 22px; height: 22px; color: var(--orange); }
.fab-wa {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%; background: var(--orange); color: var(--ink-deep);
  box-shadow: 0 14px 30px -10px rgba(255, 121, 0, .75);
}
.fab-wa .ico { width: 26px; height: 26px; }
.fab-wa:hover { transform: translateY(-3px); }
.fab-wa { transition: transform .18s ease; }

/* ---------- Появление при прокрутке (включается только если работает JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .site-nav a:not(.btn) { padding: 9px 12px; }
}

/* Меню сворачивается раньше остальной вёрстки: казахские названия длиннее */
@media (max-width: 1240px) {
  .menu-toggle { display: flex; }
  .header-wa { display: none; }
  .nav-wa { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(40, 66, 140, .5);
    padding: 12px 24px 24px; display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a:not(.btn) { padding: 14px 16px; font-size: 1.05rem; }
  .nav-wa { margin-top: 10px; }
  .nav-wa .btn { width: 100%; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 1020px) {
  .hero-grid, .about-grid, .head-split, .news-grid, .contact-grid { grid-template-columns: 1fr; }
  .head-split { align-items: start; }
  /* Мобильный фон: знак за текстом, размыт, отдельным блоком не живёт */
  .hero-bgmark-stage { display: none; }
  .hero-bgmark-page {
    display: block;
    top: -8%; right: -28%; bottom: auto; left: auto;
    height: min(78vw, 420px); width: auto;
    opacity: .4; filter: blur(22px);
  }
  .hero-grid, .hero-note, .hero-stats { position: relative; z-index: 1; }
  .hero-visual { width: min(220px, 56vw); aspect-ratio: 1; margin: 20px auto 0; }
  .hero-visual.is-empty { display: none; }
  .collage { height: clamp(320px, 70vw, 460px); }
  .cards-3 { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .program-wrap { grid-template-columns: 1fr; }
  .price-card { position: relative; top: auto; }
  .connect-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .pattern-strip { height: 56px; background-size: auto 56px; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .container { width: min(100% - 32px, 1200px); }
  .brand img { height: 38px; }
  .hero { border-radius: 0 0 32px 32px; }
  .hero-visual { width: min(200px, 52vw); margin-top: 16px; }
  .hero-note { margin-top: 24px; }
  .hero-stats { grid-template-columns: 1fr; gap: 10px; }
  .stat-card { display: flex; align-items: baseline; gap: 14px; padding: 16px 20px; }
  .btn { padding: 13px 22px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .cards-2, .programs-grid, .steps { grid-template-columns: 1fr; }
  .program-list li { font-size: 1rem; padding: 15px 0; gap: 14px; }
  .social-buttons { grid-template-columns: 1fr; }
  .director { grid-template-columns: 1fr; }
  .head-row { flex-direction: column; align-items: start; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 12px; }
  .m-big { grid-column: span 2; grid-row: span 2; }
  .collage { grid-template-columns: 1fr 1fr; height: 400px; gap: 12px; }
  .post p { padding-left: 0; }
  .post summary { flex-wrap: wrap; gap: 4px 12px; }
  .post time { min-width: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: start; }
  .card { padding: 26px; }
  .panel, .panel-blue { border-radius: 32px; }
  .lb-nav { position: absolute; bottom: 20px; }
  .lb-prev { left: 20px; }
  .lb-next { right: 20px; }
}

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