/*
Theme Name: Бөбек
Description: Сайт ясли-сада «Бөбек» (Костанай). Русский и казахский.
Version: 1.0.0
Text Domain: bobek
*/

:root {
  --ink: #123a5c;
  --ink-2: #0c2a44;
  --muted: #4d6478;
  --bg: #f4f9fd;
  --tint: #e6f1fa;
  --card: #fff;
  --line: #d6e5f1;
  --sky: #2b8fd6;   --sky-l: #e1f0fb;
  --sun: #ffc83d;   --sun-l: #fff3cc;
  --kite: #ef5b43;  --kite-l: #fde5df;
  --mint: #4cb98f;  --mint-l: #ddf3ea;
  --r: 20px;
  --shadow: 0 1px 2px rgba(18, 58, 92, .06), 0 10px 28px -16px rgba(18, 58, 92, .25);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: "Montserrat Alternates", system-ui, sans-serif;
  --body: "Commissioner", system-ui, sans-serif;
  --hdr-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 10px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font: 400 17px/1.6 var(--body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(32px, 4.8vw, 56px); letter-spacing: -.015em; }
h2 { font-weight: 700; font-size: clamp(27px, 3.4vw, 40px); letter-spacing: -.01em; }
h3 { font-weight: 600; font-size: 19px; }
p { margin: 0 0 .8em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.tone-sky  { --t: var(--sky);  --tl: var(--sky-l); }
.tone-sun  { --t: var(--sun);  --tl: var(--sun-l); }
.tone-kite { --t: var(--kite); --tl: var(--kite-l); }
.tone-mint { --t: var(--mint); --tl: var(--mint-l); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; font: 600 16px/1.1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s; touch-action: manipulation; }
.btn:active { transform: scale(.97); }
.btn-kite { background: var(--kite); color: #fff; box-shadow: 0 8px 20px -10px rgba(239, 91, 67, .8); }
.btn-kite:hover { background: #e14a32; }
.btn-sun { background: var(--sun); color: var(--ink-2); }
.btn-sun:hover { background: #ffd35f; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--sky); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }

/* header */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(244, 249, 253, .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.hdr.is-scrolled { background: rgba(255, 255, 255, .94); border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(18, 58, 92, .5); }
.hdr-in { height: var(--hdr-h); display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-kite { width: 34px; height: 42px; color: var(--ink); transform: rotate(-10deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font: 700 24px/1 var(--display); letter-spacing: -.01em; }
.brand-text small { font-size: 13px; color: var(--muted); margin-top: 4px; }
.hdr-nav { display: flex; gap: 24px; margin-left: auto; }
.hdr-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.hdr-nav a:hover { color: var(--sky); }
.hdr-lang { font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; padding: 9px 13px; border-radius: 999px; background: var(--sky-l); white-space: nowrap; }
.hdr-lang:hover { background: #cfe6f8; }
.hdr-lang-short { display: none; }
.hdr-cta { min-height: 42px; padding: 0 18px; font-size: 15px; font-variant-numeric: tabular-nums; }
.hdr-burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 12px 10px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.hdr-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease); }
.hdr-burger[aria-expanded="true"] span:first-child { transform: translateY(8px) rotate(45deg); }
.hdr-burger[aria-expanded="true"] span:last-child { transform: translateY(-8px) rotate(-45deg); }

/* hero */
.hero { padding: 36px 0 0; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.hero-lead { font-size: 19px; color: var(--muted); margin: 22px 0 32px; max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { position: relative; padding: 56px 0 0 40px; }
.hero-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 32px 32px 32px 140px; box-shadow: var(--shadow); }
.hero-kite { position: absolute; z-index: 2; left: -4px; top: -6px; width: 104px; height: 130px; color: var(--ink); transform-origin: 50% 70%; animation: sway 6s ease-in-out infinite; filter: drop-shadow(0 10px 14px rgba(18, 58, 92, .18)); }
@keyframes sway { 0%, 100% { transform: rotate(-14deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-6px); } }
.hero-string { position: absolute; z-index: 0; left: -60px; top: 70px; width: 200px; height: 260px; overflow: visible; }
.hero-string path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 3 7; stroke-linecap: round; opacity: .35; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; }
.stats li { background: var(--card); border-radius: var(--r); padding: 22px 22px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stats li::before { content: ""; position: absolute; right: -18px; top: -18px; width: 64px; height: 64px; background: var(--tl); transform: rotate(45deg); border-radius: 10px; }
.stats b { position: relative; display: block; font: 700 clamp(26px, 2.8vw, 34px)/1.05 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.stats b::after { content: ""; display: block; width: 26px; height: 5px; border-radius: 3px; background: var(--t); margin-top: 10px; }
.stats span { position: relative; display: block; margin-top: 10px; font-size: 15px; color: var(--muted); line-height: 1.4; }

/* sections */
.sec { padding: clamp(64px, 8vw, 100px) 0; }
.sec-tint { background: var(--tint); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 48px; margin-bottom: 36px; }
.sec-head p { color: var(--muted); font-size: 17px; max-width: 34em; }

/* about */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-lead { font-size: 18px; margin-top: 20px; }
.about-head { font-weight: 600; color: var(--muted); margin-top: 18px; padding-left: 14px; border-left: 4px solid var(--sun); }
.about-photos { position: relative; padding-bottom: 60px; }
.about-big { width: 82%; margin-left: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; }
.about-small { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 22px; border: 6px solid var(--bg); box-shadow: var(--shadow); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 48px; }
.features li { background: var(--card); border-radius: var(--r); padding: 22px 24px; box-shadow: var(--shadow); border-top: 5px solid var(--t); }
.features h3 { font-size: 18px; margin-bottom: 8px; }
.features p { color: var(--muted); font-size: 15px; }
.groups { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.groups-h { font-size: 20px; }
.groups ul { display: flex; flex-wrap: wrap; gap: 10px; }
.groups li { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--tl); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--t) 45%, transparent); }
.groups li b { font: 600 16px/1.2 var(--display); }
.groups li span { font-size: 14px; color: var(--muted); }

/* classes */
.classes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.classes li { position: relative; background: var(--card); border-radius: var(--r); padding: 26px 26px 26px; box-shadow: var(--shadow); overflow: hidden; }
.classes li::before { content: ""; position: absolute; right: 0; top: 0; width: 56px; height: 56px; background: var(--t); clip-path: polygon(0 0, 100% 0, 100% 100%); opacity: .9; }
.classes h3 { font-size: 20px; margin-bottom: 10px; padding-right: 40px; }
.classes p { color: var(--muted); font-size: 16px; }

/* events */
.events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ev[hidden] { display: none; }
.ev-open { display: flex; flex-direction: column; width: 100%; height: 100%; text-align: left; padding: 0; border: 0; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s; }
.ev-open:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(18, 58, 92, .06), 0 18px 34px -18px rgba(18, 58, 92, .35); }
.ev-photo { position: relative; display: block; }
.ev-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ev-count { position: absolute; right: 12px; bottom: 12px; background: rgba(12, 42, 68, .78); color: #fff; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.ev-body { display: block; padding: 18px 20px 22px; }
.ev-body time, .dlg-body time { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.ev-body h3 { font-size: 18px; }

/* dialog */
.dlg { border: 0; padding: 0; border-radius: 24px; width: min(760px, 100% - 24px); max-height: calc(100dvh - 24px); background: var(--card); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); overscroll-behavior: contain; }
.dlg::backdrop { background: rgba(8, 28, 46, .55); backdrop-filter: blur(3px); }
.dlg[open] { animation: dlg-in .28s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.dlg-body { padding: 32px 36px 36px; }
.dlg-body h3 { font-size: 26px; margin-bottom: 16px; padding-right: 36px; }
.dlg-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 22px 0 18px; }
.dlg-photos a { display: block; border-radius: 12px; overflow: hidden; }
.dlg-photos img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; transition: transform .4s var(--ease); }
.dlg-photos a:hover img { transform: scale(1.04); }
.dlg-link { font-weight: 600; }
.dlg-x { position: sticky; float: right; top: 12px; margin: 12px 12px 0 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--tint); font-size: 24px; line-height: 1; cursor: pointer; z-index: 2; }
.dlg-x:hover { background: #d3e6f5; }
body.is-locked { overflow: hidden; }

/* admission — signature */
.adm { background: var(--ink); color: #fff; overflow: hidden; }
.adm h2 { color: #fff; }
.adm-in { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.adm-text p { color: rgba(255, 255, 255, .78); font-size: 18px; margin: 18px 0 28px; max-width: 28em; }
.adm-route { position: relative; padding-top: 96px; }
.adm-kite { position: absolute; left: 0; top: 0; width: 64px; height: 80px; color: #fff; transform: rotate(-8deg); animation: sway 7s ease-in-out infinite; }
.adm-string { position: absolute; left: 12px; top: 74px; bottom: 30px; width: 40px; height: calc(100% - 104px); overflow: visible; }
.adm-string path { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.adm-route ol { position: relative; padding-left: 92px; display: grid; gap: 34px; }
.adm-route li { position: relative; }
.bow { position: absolute; left: -76px; top: 2px; width: 44px; height: 26px; background: var(--t); clip-path: polygon(0 0, 50% 40%, 100% 0, 100% 100%, 50% 60%, 0 100%); }
.bow::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; }
.adm-route h3 { color: #fff; font-size: 22px; display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.adm-n { font-size: 15px; color: var(--t); font-variant-numeric: tabular-nums; }
.adm-route p { color: rgba(255, 255, 255, .78); max-width: 34em; }

/* reviews */
.rating { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); background: var(--card); border-radius: 999px; padding: 8px 22px 8px 10px; box-shadow: var(--shadow); }
.rating > b { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--sun); font: 700 19px/1 var(--display); }
.rating > span { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }
.stars { color: #f2a900; letter-spacing: 2px; font-size: 16px; }
.reviews { columns: 3 300px; column-gap: 18px; }
.rev { break-inside: avoid; margin: 0 0 18px; background: var(--card); border-radius: var(--r); padding: 24px 26px; box-shadow: var(--shadow); border-left: 5px solid var(--t); }
.rev blockquote { margin: 0; font-size: 16px; }
.rev figcaption { margin-top: 14px; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.rev figcaption b { font-family: var(--display); font-weight: 600; }
.rev figcaption span { color: var(--muted); }
.more-btn { text-align: center; margin-top: 26px; }

/* gallery */
.gal { columns: 4 240px; column-gap: 12px; }
.gal a { display: block; margin-bottom: 12px; break-inside: avoid; border-radius: 16px; overflow: hidden; }
.gal a[hidden] { display: none; }
.gal img { width: 100%; transition: transform .5s var(--ease); }
.gal a:hover img { transform: scale(1.03); }

/* faq */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.7fr; gap: 48px; align-items: start; }
.faq details { background: var(--card); border-radius: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 60px 20px 24px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--sky-l); display: grid; place-items: center; font: 600 20px/1 var(--display); color: var(--sky); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* contacts */
.contacts { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; align-items: stretch; }
.ct { background: var(--card); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.ct dl { margin: 0; display: grid; gap: 18px; }
.ct dt { font-size: 14px; color: var(--muted); margin-bottom: 2px; }
.ct dd { margin: 0; }
.ct-big { display: block; font: 600 20px/1.35 var(--display); color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
a.ct-big:hover { color: var(--sky); }
.ct-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0 !important; }
.ct-links .btn { min-height: 42px; padding: 0 16px; font-size: 15px; }
.ct-photo { margin-top: 24px; border-radius: 16px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.map { border-radius: 24px; overflow: hidden; min-height: 460px; box-shadow: var(--shadow); background: var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }

/* footer */
.ftr { background: var(--ink-2); color: rgba(255, 255, 255, .75); padding: 48px 0 26px; font-size: 15px; }
.ftr a { color: #fff; text-decoration: none; }
.ftr a:hover { text-decoration: underline; }
.ftr-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.ftr-brand { display: flex; gap: 14px; align-items: flex-start; }
.ftr-kite { flex: none; width: 36px; height: 45px; color: #fff; }
.ftr-brand b { color: #fff; font-weight: 600; }
.ftr-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .5); }

.mbar { display: none; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(6, 20, 34, .93); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; max-height: 100dvh; padding: 24px 0; }
.lb img { max-width: 100%; max-height: calc(100dvh - 90px); object-fit: contain; border-radius: 8px; }
.lb figcaption { color: rgba(255, 255, 255, .8); font-size: 14px; }
.lb-nav, .lb-x { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; justify-self: center; }
.lb-nav:hover, .lb-x:hover { background: rgba(255, 255, 255, .22); }
.lb-x { position: absolute; top: 16px; right: 16px; font-size: 28px; }

/* ---------- news ---------- */
a.ev-open { color: inherit; text-decoration: none; }
.ev-ph { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--tint); color: var(--ink); }
.ev-ph svg { width: 64px; height: 80px; opacity: .55; }
.ev-ex { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.45; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--sky); text-decoration: underline; }
.news-art { max-width: 860px; padding: 40px 0 72px; }
.news-head time { display: block; font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.news-head h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.12; margin-bottom: 28px; text-wrap: balance; }
.news-cover { margin: 0 0 30px; }
.news-cover a { display: block; border-radius: 28px 28px 28px 90px; overflow: hidden; box-shadow: var(--shadow); }
.news-cover img { width: 100%; max-height: 620px; object-fit: cover; }
.news-text { font-size: 18px; line-height: 1.65; max-width: 44em; }
.news-text p { margin: 0 0 1em; }
.news-h2 { font-size: 22px; margin: 36px 0 16px; }
.news-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.news-photos a { display: block; border-radius: 14px; overflow: hidden; }
.news-photos img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; transition: transform .4s var(--ease); }
.news-photos a:hover img { transform: scale(1.04); }
.news-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.news-list > .sec { padding-top: 40px; }
.news-list .sec-head h1 { font-size: clamp(32px, 4.4vw, 48px); }
.news-empty { color: var(--muted); font-size: 18px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 36px; color: var(--muted); }

.page { max-width: 760px; }
.page h1 { margin-bottom: 24px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hdr-nav { gap: 16px; }
  .hdr-nav a { font-size: 14px; }
  .events, .classes { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --hdr-h: 64px; }
  .hdr-in { gap: 10px; }
  .brand-kite { width: 28px; height: 35px; }
  .brand-text b { font-size: 21px; }
  .hdr-burger { display: flex; }
  .hdr-nav { position: fixed; inset: var(--hdr-h) 0 auto 0; flex-direction: column; gap: 0; background: #fff; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .25); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
  .hdr-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .hdr-nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .hdr-nav a:last-child { border-bottom: 0; }
  .hdr-lang { margin-left: auto; }
  .hdr-lang-full { display: none; }
  .hdr-lang-short { display: inline; }
  .hdr-cta { display: none; }
  .hero { padding-top: 12px; }
  .hero-in { grid-template-columns: 1fr; gap: 24px; }
  .hero-photo { order: -1; padding: 38px 0 0 26px; }
  .hero-photo img { border-radius: 24px 24px 24px 80px; aspect-ratio: 3 / 2; }
  .hero-kite { width: 64px; height: 80px; left: -2px; top: -4px; }
  .hero-string { display: none; }
  .hero-lead { font-size: 17px; margin: 14px 0 24px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
  .stats li { padding: 18px 16px; }
  .sec-head { margin-bottom: 26px; }
  .sec-head p { font-size: 16px; }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .about-lead { font-size: 17px; }
  .features { grid-template-columns: 1fr; margin-top: 32px; gap: 10px; }
  .classes { grid-template-columns: 1fr; gap: 12px; }
  .events { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ev-body { padding: 12px 14px 16px; }
  .ev-body h3 { font-size: 15px; }
  .ev-body time { font-size: 12px; }
  .ev-ex { display: none; }
  .news-art { padding: 20px 0 48px; }
  .news-cover a { border-radius: 20px 20px 20px 56px; }
  .news-text { font-size: 17px; }
  .news-photos { grid-template-columns: 1fr 1fr; gap: 8px; }
  .news-actions .btn { flex: 1 1 auto; }
  .dlg { border-radius: 20px 20px 0 0; width: 100%; max-width: 100%; margin: auto 0 0; max-height: 92dvh; }
  .dlg-body { padding: 8px 20px 28px; }
  .dlg-body h3 { font-size: 22px; }
  .dlg-photos { grid-template-columns: 1fr 1fr; }
  .adm-in { grid-template-columns: 1fr; gap: 36px; }
  .adm-route ol { padding-left: 78px; gap: 28px; }
  .bow { left: -66px; width: 38px; height: 22px; }
  .adm-route h3 { font-size: 19px; }
  .reviews { columns: 1; }
  .gal { columns: 2; column-gap: 8px; }
  .gal a { margin-bottom: 8px; border-radius: 12px; }
  .faq-wrap { grid-template-columns: 1fr; gap: 22px; }
  .contacts { grid-template-columns: 1fr; }
  .ct { padding: 22px; }
  .map, .map iframe { min-height: 320px; }
  .ftr-in { grid-template-columns: 1fr; gap: 18px; }
  .ftr { padding-bottom: 100px; }
  .mbar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s var(--ease); }
  .mbar.is-on { transform: none; }
  .mbar .btn { flex: 1; min-height: 50px; font-size: 15px; padding: 0 12px; }
  .lb { grid-template-columns: 1fr; }
  .lb-nav { position: absolute; bottom: 20px; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lb figure { grid-column: 1; padding: 64px 10px 90px; }
  .lb img { max-height: calc(100dvh - 170px); }
}
