/* ==========================================================================
   Балабақша «MadinArai»
   Палитра — из логотипа и интерьера: малина (фасад), нежно-розовый (стены), бирюза «Madin»,
   солнечно-жёлтый и зелёный листьев.
   ========================================================================== */

/* ---------- Шрифты (локально; cyrillic-ext нужен для қазақ әріптері: ә ғ қ ң ө ү һ) ---------- */
@font-face { font-family: "Rubik"; font-weight: 300 900; font-style: normal; font-display: swap; src: url("../assets/fonts/rubik-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rubik"; font-weight: 300 900; font-style: normal; font-display: swap; src: url("../assets/fonts/rubik-cyrillic-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Rubik"; font-weight: 300 900; font-style: normal; font-display: swap; src: url("../assets/fonts/rubik-latin-wght-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: "Rubik"; font-weight: 300 900; font-style: normal; font-display: swap; src: url("../assets/fonts/rubik-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Pacifico"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/pacifico-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: "Pacifico"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/pacifico-cyrillic-ext-400-normal.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Pacifico"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/pacifico-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: "Pacifico"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/pacifico-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Токены ---------- */
:root {
  --rasp: #d4236b;        /* малиновый фасад */
  --rasp-d: #a8134f;
  --pink: #f0407f;        /* розовый из логотипа */
  --pink-l: #fde3ee;
  --pink-xl: #fff4f8;
  --rose: #f6b3d1;        /* нежно-розовые стены внутри */
  --teal: #0d5f7e;        /* «Madin» в логотипе */
  --teal-2: #1d98b0;
  --teal-l: #def3f7;
  --sun: #fdb827;
  --sun-d: #e99a00;
  --sun-l: #fff3d4;
  --leaf: #6db33f;
  --leaf-d: #4c9a2a;
  --leaf-l: #e7f3da;
  --cream: #fffaf7;
  --ink: #2b2433;
  --muted: #6b6074;
  --line: rgba(212, 35, 107, .14);

  --font-body: "Rubik", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-script: "Pacifico", "Rubik", cursive;

  --radius: 28px;
  --radius-sm: 16px;
  --shadow: 0 14px 34px rgba(168, 19, 79, .09);
  --shadow-lg: 0 28px 64px rgba(168, 19, 79, .18);
  --ease: cubic-bezier(.22, .8, .28, 1);
  --header-h: 84px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 6px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--cream); overflow-x: hidden; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--rasp); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rasp-d); }
h1, h2, h3, h4 { font-family: var(--font-body); font-weight: 800; line-height: 1.14; color: var(--teal); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--rasp); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 300; }
.skip-link:focus { left: 8px; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.note { color: var(--muted); background: rgba(255, 255, 255, .75); border: 2px dashed var(--rose); border-radius: var(--radius-sm); padding: 18px 22px; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Фон: пятна, кольцо логотипа, частицы ---------- */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.blob.b1 { width: 46vw; height: 46vw; left: -12vw; top: -10vw; background: radial-gradient(circle, #ffc9de, transparent 70%); animation: drift-a 26s ease-in-out infinite alternate; }
.blob.b2 { width: 40vw; height: 40vw; right: -10vw; top: 25vh; background: radial-gradient(circle, #ffe3a1, transparent 70%); animation: drift-b 30s ease-in-out infinite alternate; }
.blob.b3 { width: 38vw; height: 38vw; left: 18vw; bottom: -18vw; background: radial-gradient(circle, #bfe9f1, transparent 70%); animation: drift-a 34s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate3d(8vw, 6vh, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-9vw, -8vh, 0) scale(1.1); } }

/* огромные кольца из логотипа: цветной градиент, медленно вращаются */
.ring-big { position: absolute; border-radius: 50%; background: conic-gradient(from 0deg, #fbb034, #fdb827, #8cc63f, #20b3b0, #f0407f, #fbb034); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 14px), #000 calc(100% - 13px)); mask: radial-gradient(farthest-side, transparent calc(100% - 14px), #000 calc(100% - 13px)); animation: spin 120s linear infinite; }
.ring-big.r1 { width: 880px; height: 880px; left: -440px; bottom: -300px; opacity: .17; }
.ring-big.r2 { width: 560px; height: 560px; right: -250px; top: 120px; opacity: .14; animation-duration: 90s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* частицы — листья, сердечки, лепестки, солнышки: создаются в js/main.js */
.pt { position: absolute; top: -12vh; opacity: 0; will-change: transform; animation: pt-fall var(--dur, 24s) linear var(--delay, 0s) infinite; }
.pt svg { display: block; width: 100%; height: 100%; animation: pt-sway var(--sway, 5s) ease-in-out var(--delay, 0s) infinite alternate; }
.pt.up { top: auto; bottom: -12vh; animation-name: pt-rise; }
@keyframes pt-fall {
  0% { transform: translate3d(0, 0, 0) rotate(var(--r0, 0deg)); opacity: 0; }
  8% { opacity: var(--o, .4); }
  92% { opacity: var(--o, .4); }
  100% { transform: translate3d(var(--dx, 8vw), 120vh, 0) rotate(var(--r1, 280deg)); opacity: 0; }
}
@keyframes pt-rise {
  0% { transform: translate3d(0, 0, 0) rotate(var(--r0, 0deg)); opacity: 0; }
  10% { opacity: var(--o, .4); }
  88% { opacity: var(--o, .4); }
  100% { transform: translate3d(var(--dx, 6vw), -120vh, 0) rotate(var(--r1, 40deg)); opacity: 0; }
}
@keyframes pt-sway { from { transform: rotate(-14deg) translateX(-8px); } to { transform: rotate(14deg) translateX(8px); } }

main, .site-footer { position: relative; z-index: 1; }
main { overflow-x: clip; } /* повёрнутая бегущая строка не создаёт горизонтальную прокрутку */

/* ---------- Кнопки ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.5em; border-radius: 18px; border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-3px) rotate(-.6deg); }
.btn-sm { padding: .55em 1.1em; font-size: .93rem; border-radius: 14px; }
.btn-lg { padding: .95em 1.8em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--pink), var(--rasp)); color: #fff; box-shadow: 0 10px 24px rgba(212, 35, 107, .32); }
.btn-primary:hover { color: #fff; box-shadow: 0 16px 32px rgba(212, 35, 107, .4); }
.btn-sun { background: var(--sun); color: #3a2a00; box-shadow: 0 10px 24px rgba(253, 184, 39, .4); }
.btn-sun:hover { color: #3a2a00; background: #ffc84a; }
.btn-ghost { background: rgba(255, 255, 255, .8); color: var(--teal); border-color: var(--teal); }
.btn-ghost:hover { background: var(--teal); color: #fff; }
.btn-white { background: #fff; color: var(--rasp-d); box-shadow: 0 12px 28px rgba(0, 0, 0, .18); }
.btn-white:hover { color: var(--rasp); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .75); }
.btn-ghost-light:hover { background: #fff; color: var(--rasp-d); }

.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; color: var(--rasp); text-decoration: none; }
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(5px); }
.link-sm { font-size: .97rem; }

/* подзаголовок-«рукопись» с сердечком, как в логотипе */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-script); font-weight: 400; font-size: 1.3rem; line-height: 1.2; color: var(--rasp); margin-bottom: .45em; }
.eyebrow::before { content: ""; width: 22px; height: 20px; flex: none; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-52 -40 104 84'%3E%3Cpath d='M0 40C-76-8-34-56 0-20C34-56 76-8 0 40Z' fill='%23f0407f'/%3E%3C/svg%3E"); animation: heartbeat 2.4s ease-in-out infinite; }
.eyebrow-light { color: #fff; }
.eyebrow-light::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-52 -40 104 84'%3E%3Cpath d='M0 40C-76-8-34-56 0-20C34-56 76-8 0 40Z' fill='%23fdb827'/%3E%3C/svg%3E"); }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.22); } 24% { transform: scale(1); } 36% { transform: scale(1.14); } 48% { transform: scale(1); } }

/* ---------- Шапка: «парящая» капсула ---------- */
.site-header { position: sticky; top: 0; z-index: 100; padding: 12px 0 0; height: var(--header-h); pointer-events: none; }
.header-pill { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; width: min(1260px, 100% - 24px); height: 62px; margin-inline: auto; padding: 0 10px 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .8); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgba(212, 35, 107, .12); box-shadow: 0 10px 30px rgba(168, 19, 79, .1); transition: background .3s, box-shadow .3s; }
.site-header.is-stuck .header-pill { background: rgba(255, 255, 255, .94); box-shadow: 0 14px 36px rgba(168, 19, 79, .16); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark { width: 46px; height: 46px; border-radius: 50%; transition: transform .6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.1); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--font-script); font-weight: 400; font-size: 1.45rem; color: var(--teal); }
.brand-text small { font-size: .72rem; font-weight: 600; letter-spacing: .14em; color: var(--rasp); margin-top: 3px; }

.site-nav ul { display: flex; align-items: center; gap: 0; }
.site-nav a:not(.btn) { position: relative; display: block; white-space: nowrap; padding: 8px 11px; font-weight: 500; font-size: .94rem; color: var(--ink); text-decoration: none; border-radius: 999px; transition: color .2s, background .2s; }
.site-nav a:not(.btn):hover { color: var(--rasp); background: var(--pink-xl); }
.site-nav a.is-active { color: #fff; background: linear-gradient(135deg, var(--pink), var(--rasp)); box-shadow: 0 6px 16px rgba(212, 35, 107, .3); }
.nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--pink-l); }
.lang a { padding: 5px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--rasp-d); text-decoration: none; transition: background .2s, color .2s; }
.lang a:hover { color: var(--rasp); }
.lang a.is-on { background: #fff; color: var(--rasp); box-shadow: 0 2px 8px rgba(168, 19, 79, .18); }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--pink-l); position: relative; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--rasp); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + clamp(24px, 4vw, 56px)) 0 0; background: linear-gradient(180deg, #ffe4ef 0%, #fff0f6 55%, rgba(255, 250, 247, 0) 100%); overflow-x: clip; }
.hero-sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 8px 18px 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(168, 19, 79, .08); font-weight: 600; font-size: .9rem; color: var(--rasp-d); }
.hero-eyebrow .ico { color: var(--pink); fill: currentColor; stroke: none; width: 1.05em; height: 1.05em; animation: heartbeat 2.4s ease-in-out infinite; }
.hero h1 { margin-bottom: .4em; }
.h1-accent { position: relative; display: inline-block; font-family: var(--font-script); font-weight: 400; font-size: 1.04em; color: var(--rasp); padding-inline: .05em; white-space: nowrap; }
.h1-accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.04em; height: .2em; z-index: -1; border-radius: 99px; background: linear-gradient(90deg, var(--sun), #ffd86b); opacity: .75; transform-origin: left; animation: underline-draw 1.2s var(--ease) .5s both; }
@keyframes underline-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-lead { font-size: 1.18rem; color: var(--muted); max-width: 33em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-weight: 500; font-size: .92rem; color: var(--teal); background: rgba(255, 255, 255, .75); border: 1px solid rgba(13, 95, 126, .14); }
.hero-chips .ico { color: var(--teal-2); }

.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: .1s; }
.hero-copy > *:nth-child(3) { animation-delay: .2s; }
.hero-copy > *:nth-child(4) { animation-delay: .3s; }
.hero-copy > *:nth-child(5) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* сцена с анимированным логотипом */
.hero-visual { position: relative; display: grid; place-items: center; padding: 18px 0; isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; z-index: -1; width: min(760px, 150%); aspect-ratio: 1; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(253, 184, 39, .22) 0 6deg, transparent 6deg 16deg); -webkit-mask: radial-gradient(circle, #000 28%, transparent 68%); mask: radial-gradient(circle, #000 28%, transparent 68%); animation: spin 150s linear infinite; }
.scene-orbit { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.orbit { position: absolute; border-radius: 50%; aspect-ratio: 1; }
.orbit i { position: absolute; border-radius: 50%; }
.orbit.o1 { width: min(590px, 118%); border: 2px dashed rgba(212, 35, 107, .35); animation: spin 70s linear infinite; }
.orbit.o1 i { top: 10%; left: 12%; width: 16px; height: 16px; background: var(--sun); box-shadow: 0 0 0 7px rgba(253, 184, 39, .24); }
.orbit.o2 { width: min(660px, 132%); border: 2px dotted rgba(13, 95, 126, .3); animation: spin 100s linear infinite reverse; }
.orbit.o2 i { bottom: 12%; right: 14%; width: 14px; height: 14px; background: var(--teal-2); box-shadow: 0 0 0 6px rgba(29, 152, 176, .2); }
.scene-wrap { position: relative; width: min(520px, 100%); aspect-ratio: 1; border-radius: 50%; filter: drop-shadow(0 32px 40px rgba(168, 19, 79, .26)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.logo-scene { display: block; width: 100%; height: 100%; overflow: visible; -webkit-tap-highlight-color: transparent; }
.hero-photo { position: absolute; left: 2%; bottom: 4%; width: clamp(104px, 22%, 156px); aspect-ratio: 1; margin: 0; border-radius: 50%; overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow-lg); animation: float 6s ease-in-out -2s infinite; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.hero-stats { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(28px, 5vw, 56px); margin-bottom: -58px; }
.stat-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 24px; color: #fff; box-shadow: var(--shadow-lg); transition: transform .35s var(--ease); position: relative; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; right: -28px; top: -36px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.stat-card:hover { transform: translateY(-6px) rotate(-.8deg); }
.stat-card > .ico { width: 46px; height: 46px; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .24); stroke-width: 1.7; }
.stat-card strong { display: block; font-size: 1.45rem; font-weight: 800; line-height: 1.15; }
.stat-card span { font-size: .88rem; font-weight: 500; opacity: .92; }
.st-pink { background: linear-gradient(140deg, #f0407f, #d4236b); }
.st-teal { background: linear-gradient(140deg, #1d98b0, #0d5f7e); }
.st-sun { background: linear-gradient(140deg, #fdb827, #f09a00); color: #3a2a00; }
.st-sun > .ico { background: rgba(255, 255, 255, .4); }
.st-leaf { background: linear-gradient(140deg, #7ec24d, #4c9a2a); }

/* ---------- Секции ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
#about { padding-top: clamp(124px, 13vw, 170px); }
.head-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px 48px; align-items: end; margin-bottom: clamp(30px, 5vw, 52px); }
.head-split h2, .head-split .lead { margin-bottom: 0; }

/* цветные секции с волнистым краем */
.sec { background: var(--sec); }
.sec-sun { --sec: #fff3d1; }
.sec-teal { --sec: #dff3f8; }
.sec-pink { --sec: #ffe6f0; }
.wave { position: absolute; left: 0; width: 100%; height: clamp(34px, 5vw, 64px); fill: var(--sec); pointer-events: none; }
.wave-t { bottom: calc(100% - 1px); }
.wave-b { top: calc(100% - 1px); transform: scaleY(-1); }
.sec + .section { padding-top: clamp(80px, 10vw, 128px); }

/* О нас */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.about-copy .lead { color: var(--ink); }
.about-copy p { color: var(--muted); }
.collage { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; grid-template-rows: 200px 200px; gap: 16px; }
.tile { position: relative; margin: 0; overflow: hidden; border-radius: 28px; background: linear-gradient(150deg, #ffd3e4, #f8a5c8); box-shadow: var(--shadow); transition: transform .5s var(--ease); }
.tile:hover { transform: translateY(-6px) rotate(-.8deg); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.07); }
.tile-1 { grid-row: span 2; border-radius: 28px 28px 28px 120px; }
.tile-2 { border-radius: 120px 28px 28px 28px; }
.tile-2.tile-empty { background: linear-gradient(150deg, #ffe9a8, #fdb827); }
.tile-3 { border-radius: 28px 28px 120px 28px; }
.tile-3.tile-empty { background: linear-gradient(150deg, #c5ecf3, #4cb6c9); }
.tile-art { position: absolute; width: 56%; left: 22%; top: 12%; height: auto; aspect-ratio: 1; color: #fff; opacity: .6; animation: float 6s ease-in-out infinite; }
.tile figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 16px; background: rgba(255, 255, 255, .93); font-weight: 600; font-size: .88rem; color: var(--teal); backdrop-filter: blur(6px); }
.tile figcaption span { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--sun); color: #3a2a00; font-size: .75rem; font-weight: 700; }

/* Паспорт сада */
.passport { margin-top: clamp(48px, 7vw, 84px); padding: clamp(24px, 4vw, 44px); border-radius: 36px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.passport::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: linear-gradient(90deg, var(--pink), var(--sun), var(--leaf), var(--teal-2)); }
.passport-head { margin-bottom: 26px; }
.passport-head h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fact { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: 22px; background: var(--pink-xl); border: 1px solid rgba(212, 35, 107, .1); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.fact:hover { transform: translateY(-4px); border-color: var(--pink); box-shadow: var(--shadow); }
.fact > div { display: flex; flex-direction: column; min-width: 0; }
.fact-label { font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fact strong, .fact a { font-size: 1.05rem; font-weight: 600; color: var(--teal); overflow-wrap: anywhere; text-decoration: none; }
.fact a:hover { color: var(--rasp); text-decoration: underline; }
.fact.f1 { background: var(--teal-l); border-color: rgba(13, 95, 126, .12); }
.fact.f2 { background: var(--sun-l); border-color: rgba(233, 154, 0, .2); }
.fact.f3 { background: var(--leaf-l); border-color: rgba(76, 154, 42, .18); }
.ico-bubble { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 16px; background: #fff; color: var(--rasp); box-shadow: 0 6px 14px rgba(168, 19, 79, .1); }
.fact.f1 .ico-bubble { color: var(--teal-2); }
.fact.f2 .ico-bubble { color: var(--sun-d); }
.fact.f3 .ico-bubble { color: var(--leaf-d); }
.ico-bubble .ico { width: 22px; height: 22px; }

/* Бегущая строка */
.marquee { position: relative; z-index: 2; margin: clamp(26px, 4vw, 52px) -2vw; padding: 15px 0; background: linear-gradient(90deg, var(--rasp), var(--pink) 50%, var(--rasp)); color: #fff; transform: rotate(-1.3deg); overflow: hidden; box-shadow: 0 16px 36px rgba(168, 19, 79, .25); }
.marquee-track { --gap: 30px; display: flex; align-items: center; gap: var(--gap); padding-right: var(--gap); width: max-content; font-weight: 800; font-size: clamp(1.15rem, 2.4vw, 1.75rem); letter-spacing: .05em; text-transform: uppercase; animation: marquee 46s linear infinite; }
.marquee-track span { white-space: nowrap; }
.m-dot { width: 26px; height: 26px; flex: none; }
.m-dot-0 { color: #ffd0e2; } .m-dot-1 { color: #c9f0a6; } .m-dot-2 { color: #ffe08a; } .m-dot-3 { color: #fff; }
@keyframes marquee { to { transform: translateX(-25%); } }

/* Руководитель */
.director-card { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(20px, 4vw, 44px); border-radius: 44px; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); position: relative; overflow: hidden; }
.director-card::before { content: ""; position: absolute; right: -90px; top: -90px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(253, 184, 39, .35), transparent 70%); }
.director-photo { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: visible; background: linear-gradient(150deg, #ffd3e4, #f06fa0); box-shadow: 0 0 0 8px #fff, 0 0 0 11px var(--pink), var(--shadow-lg); }
.director-photo > img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.director-photo.is-empty { display: grid; place-items: center; }
.director-photo .tile-art { opacity: .35; }
.initials { position: relative; font-weight: 800; font-size: 6rem; color: #fff; text-shadow: 0 6px 20px rgba(168, 19, 79, .35); }
.dp-leaf { position: absolute; width: 64px; height: 96px; }
.dp-l1 { left: -22px; bottom: 6%; color: var(--leaf); rotate: -28deg; animation: sway 5s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.dp-l2 { right: -14px; top: 4%; color: var(--teal-2); rotate: 32deg; animation: sway 6s ease-in-out -2s infinite alternate; transform-origin: 50% 100%; }
.dp-heart { position: absolute; right: 4%; bottom: -4%; width: 62px; height: 52px; color: var(--pink); animation: heartbeat 2.2s ease-in-out infinite; }
@keyframes sway { from { rotate: -6deg; } to { rotate: 8deg; } }
.director-copy { position: relative; }
.director-copy h2 { margin-bottom: .2em; }
.director-role { font-weight: 600; color: var(--rasp); font-size: 1.05rem; }
.director-copy p { color: var(--muted); }
.director-copy .btn { margin-top: 10px; }

/* Кружки */
.extras-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.extra-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s; }
.extra-card:hover { transform: translateY(-9px) rotate(-.6deg); box-shadow: var(--shadow-lg); }
.extra-media { position: relative; height: 180px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(150deg, #ffd3e4, #f06fa0); }
.ec-1 .extra-media { background: linear-gradient(150deg, #bfe9f1, #1d98b0); }
.ec-2 .extra-media { background: linear-gradient(150deg, #ffe9a8, #fdb827); }
.ec-3 .extra-media { background: linear-gradient(150deg, #d4eec0, #6db33f); }
.extra-media::before { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; right: -64px; top: -76px; background: rgba(255, 255, 255, .28); }
.extra-media::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; left: -40px; bottom: -50px; background: rgba(255, 255, 255, .2); }
.extra-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.extra-card:hover .extra-media img { transform: scale(1.07); }
.extra-badge { position: relative; z-index: 1; display: grid; place-items: center; width: 94px; height: 94px; border-radius: 50%; background: #fff; color: var(--rasp); box-shadow: 0 12px 26px rgba(43, 36, 51, .2); transition: transform .5s var(--ease); }
.ec-1 .extra-badge { color: var(--teal); }
.ec-2 .extra-badge { color: var(--sun-d); }
.ec-3 .extra-badge { color: var(--leaf-d); }
.extra-card:hover .extra-badge { transform: rotate(-8deg) scale(1.08); }
.extra-ico { width: 54px; height: 54px; }
.extra-media.has-photo .extra-badge { position: absolute; left: 14px; bottom: 14px; width: 56px; height: 56px; }
.extra-media.has-photo .extra-ico { width: 32px; height: 32px; }
.extra-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.extra-body h3 { margin-bottom: .35em; }
.extra-body p { color: var(--muted); font-size: .98rem; }
.extra-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.extra-meta li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 500; color: var(--teal); background: var(--teal-l); }
.extra-meta .meta-price { background: var(--sun-l); color: #7a5300; }
.extra-body .link-arrow { margin-top: auto; }

/* Галерея */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip { padding: 8px 18px; border-radius: 999px; border: 2px solid rgba(212, 35, 107, .25); background: rgba(255, 255, 255, .7); color: var(--rasp-d); font-weight: 600; font-size: .93rem; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.chip:hover { transform: translateY(-2px); border-color: var(--rasp); }
.chip.is-on { background: linear-gradient(135deg, var(--pink), var(--rasp)); border-color: transparent; color: #fff; box-shadow: 0 8px 18px rgba(212, 35, 107, .3); }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 16px; }
.m-item { position: relative; margin: 0; overflow: hidden; border-radius: 26px; background: #fff; border: 5px solid #fff; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s; }
.m-item:nth-child(3n+1) { rotate: -1deg; }
.m-item:nth-child(3n+2) { rotate: .8deg; }
.m-item:hover { rotate: 0deg; transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-lg); z-index: 2; }
.m-item.m-big { grid-column: span 2; grid-row: span 2; }
.m-item[hidden] { display: none; }
.m-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; border-radius: 20px; overflow: hidden; }
.m-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.m-item:hover .m-btn img { transform: scale(1.08); }
.m-item figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 7px 12px; border-radius: 14px; background: rgba(168, 19, 79, .8); backdrop-filter: blur(6px); color: #fff; font-size: .85rem; font-weight: 500; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.m-item:hover figcaption, .m-btn:focus-visible + figcaption { opacity: 1; transform: none; }
.mosaic-empty .m-item { display: grid; place-items: center; background: linear-gradient(150deg, #ffe0ec, #ffc0d8); animation: pulse-soft 4s ease-in-out infinite; }
.mosaic-empty .m-item:nth-child(2) { background: linear-gradient(150deg, #d9f1f6, #9fd8e4); animation-delay: -1s; }
.mosaic-empty .m-item:nth-child(3) { background: linear-gradient(150deg, #fff0c4, #ffd76b); animation-delay: -2s; }
.mosaic-empty .m-item:nth-child(4) { background: linear-gradient(150deg, #e0f2cf, #b5de93); animation-delay: -3s; }
.mosaic-empty .m-item { rotate: 0deg; }
@keyframes pulse-soft { 50% { filter: brightness(1.05) saturate(1.1); } }
.mosaic-empty .tile-art { position: static; width: 36%; color: #fff; opacity: .75; }
.mosaic-empty + .note { margin-top: 24px; text-align: center; }
.more-wrap { text-align: center; margin: 32px 0 0; }

.lightbox { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; background: rgba(43, 14, 30, .93); animation: fade .25s; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(92vw, 1100px); text-align: center; }
.lightbox img { max-height: 82vh; width: auto; margin-inline: auto; border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox figcaption { margin-top: 14px; color: #ffe6f0; font-weight: 500; }
.lb-close, .lb-nav { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; transition: background .2s, transform .2s; }
.lb-close:hover, .lb-nav:hover { background: var(--sun); color: #3a2a00; transform: scale(1.08); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
@keyframes fade { from { opacity: 0; } }

/* Документы */
.docs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.docs-col { padding: 28px; }
.docs-col h3 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; padding-bottom: 14px; border-bottom: 3px dotted var(--rose); }
.docs-col h3 .ico { width: 1.4em; height: 1.4em; color: var(--rasp); }
.doc-list { display: grid; gap: 10px; margin-top: 4px; }
.doc-list li { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 18px; background: var(--pink-xl); transition: background .25s, transform .25s var(--ease); }
.doc-list li:hover { background: var(--pink-l); transform: translateX(5px); }
.doc-list a { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; color: var(--teal); text-decoration: none; }
.doc-list a .ico { margin-top: 3px; color: var(--rasp); }
.doc-list small { padding-left: 33px; color: var(--muted); font-weight: 500; }
.docs-col .note { margin-top: 16px; }
.attest-badge { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 28px; padding: 8px 24px 8px 8px; border-radius: 999px; background: #fff; border: 2px solid var(--sun); box-shadow: 0 12px 28px rgba(233, 154, 0, .2); font-weight: 600; color: var(--teal); }
.seal { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #ffd66b, var(--sun-d)); color: #fff; animation: seal-wobble 4s ease-in-out infinite; }
.seal .ico { width: 28px; height: 28px; stroke-width: 2; }
@keyframes seal-wobble { 0%, 100% { rotate: -6deg; } 50% { rotate: 8deg; } }

/* Соцсети */
.social { padding-block: clamp(36px, 6vw, 64px); }
.social-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px 48px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 44px; color: #fff; background: radial-gradient(circle at 90% 0%, rgba(253, 184, 39, .55), transparent 45%), linear-gradient(135deg, #f0407f, #c21a62 60%, #a8134f); box-shadow: var(--shadow-lg); }
.social-card h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.social-card .lead { color: rgba(255, 255, 255, .9); margin-bottom: 0; }
.social-copy, .social-buttons { position: relative; z-index: 1; }
.social-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
.sc-deco { position: absolute; color: #fff; opacity: .16; pointer-events: none; }
.sc-d1 { width: 140px; height: 118px; left: 46%; bottom: -34px; animation: heartbeat 3s ease-in-out infinite; }
.sc-d2 { width: 190px; height: 190px; right: -50px; top: -60px; opacity: .22; color: var(--sun); animation: spin 60s linear infinite; }
.sc-d3 { width: 84px; height: 126px; left: -18px; top: 18%; rotate: 20deg; }

/* Вакансии */
.jobs { display: grid; gap: 14px; max-width: 860px; }
.job { border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: border-color .3s; }
.job[open] { border-color: var(--pink); }
.job summary { display: flex; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; }
.job summary::-webkit-details-marker { display: none; }
.job-title { flex: 1; font-weight: 700; font-size: 1.15rem; color: var(--teal); }
.job summary time { font-size: .85rem; font-weight: 500; color: var(--muted); }
.job-plus { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--pink-l); }
.job-plus::before, .job-plus::after { content: ""; position: absolute; left: 10px; right: 10px; top: 17px; height: 2px; border-radius: 2px; background: var(--rasp); transition: transform .3s var(--ease); }
.job-plus::after { transform: rotate(90deg); }
.job[open] .job-plus::after { transform: rotate(0); }
.job-body { padding: 0 24px 24px; color: var(--muted); animation: fade .4s; }

/* Новости */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.news-card { overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.news-card:hover { transform: translateY(-7px) rotate(.4deg); box-shadow: var(--shadow-lg); }
.news-open { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; }
.news-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(150deg, #ffe9a8, #fdb827); }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news-card:hover .news-img img { transform: scale(1.06); }
.news-img-empty { display: grid; place-items: center; }
.news-img-empty .tile-art { position: static; width: 34%; opacity: .7; }
.news-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 24px 24px; }
.news-body time { font-size: .83rem; font-weight: 600; letter-spacing: .08em; color: var(--rasp); }
.news-title { font-weight: 700; font-size: 1.2rem; line-height: 1.25; color: var(--teal); }
.news-excerpt { color: var(--muted); font-size: .96rem; }
.news-body .link-arrow { margin-top: auto; padding-top: 6px; }

.news-dialog { width: min(720px, calc(100% - 28px)); max-height: 90vh; padding: 0; border: 0; border-radius: 32px; background: #fff; color: var(--ink); box-shadow: 0 30px 90px rgba(0, 0, 0, .4); overflow: auto; }
.news-dialog::backdrop { background: rgba(43, 14, 30, .7); backdrop-filter: blur(4px); }
.news-dialog[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.nd-close { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--rasp); box-shadow: var(--shadow); }
.nd-img { width: 100%; max-height: 380px; object-fit: cover; }
.nd-body { padding: 28px clamp(22px, 5vw, 40px) 36px; }
.nd-body time { font-weight: 600; font-size: .85rem; letter-spacing: .08em; color: var(--rasp); }
.nd-body h3 { font-size: 1.7rem; margin: .3em 0 .6em; }
.nd-body #ndText { overflow-wrap: anywhere; }

/* Контакты */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-list { display: grid; gap: 16px; margin: 28px 0; }
.contact-list li { display: flex; align-items: flex-start; gap: 16px; }
.contact-list li > div { display: flex; flex-direction: column; }
.contact-label { font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-list a:not(.addr-map) { font-weight: 600; font-size: 1.12rem; text-decoration: none; }
.contact-list a:not(.addr-map):hover { text-decoration: underline; }
.contact-list span:not(.contact-label):not(.ico-bubble) { font-weight: 600; font-size: 1.1rem; color: var(--teal); }
.addr-map { font-size: .93rem; font-weight: 600; color: var(--rasp); }
.contact-social { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chip-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 2px solid var(--line); color: var(--teal); font-weight: 600; font-size: .95rem; text-decoration: none; transition: background .25s, color .25s, transform .25s var(--ease); }
.chip-link:hover { background: var(--rasp); color: #fff; transform: translateY(-2px); }
.map-frame { overflow: hidden; border-radius: 28px; border: 5px solid #fff; box-shadow: var(--shadow); aspect-ratio: 16 / 10; background: var(--pink-l); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.form { display: flex; flex-direction: column; padding: clamp(24px, 4vw, 40px); position: sticky; top: calc(var(--header-h) + 16px); border-radius: 36px; box-shadow: var(--shadow-lg); overflow: hidden; }
.form::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: linear-gradient(90deg, var(--pink), var(--sun), var(--leaf), var(--teal-2)); }
.form h3 { margin-bottom: .2em; }
.form-lead { color: var(--muted); margin-bottom: 14px; }
.form label { font-weight: 600; font-size: .92rem; margin: 12px 0 6px; color: var(--teal); }
.form input:not([type="checkbox"]), .form textarea { width: 100%; padding: 13px 16px; border: 2px solid #f1d3df; border-radius: 16px; background: #fffdfe; font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; min-height: 96px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--rasp); box-shadow: 0 0 0 4px rgba(212, 35, 107, .14); }
.form input.is-bad { border-color: #c62828; }
.check-line { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 500 !important; color: var(--muted) !important; font-size: .9rem !important; margin: 16px 0 18px !important; }
.check-line input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--rasp); flex: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { min-height: 1.5em; margin: 12px 0 0; font-weight: 600; text-align: center; }
.form-note.ok { color: var(--leaf-d); }
.form-note.err { color: #c62828; }
.form .btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Подвал ---------- */
.site-footer { position: relative; margin-top: clamp(70px, 9vw, 120px); padding-top: clamp(70px, 9vw, 110px); background: radial-gradient(circle at 85% 0%, rgba(240, 64, 127, .28), transparent 45%), linear-gradient(180deg, #0d5f7e, #08394f); color: #cfe7ee; overflow: hidden; }
.footer-wave { position: absolute; left: 0; top: -1px; width: 100%; height: clamp(34px, 5vw, 64px); fill: var(--cream); }
.footer-grid { position: relative; display: grid; grid-template-columns: .9fr .8fr 1.1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand img { width: min(240px, 100%); height: auto; border-radius: 50%; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
.site-footer h3 { color: var(--sun); font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer a { color: #e6f4f8; text-decoration: none; }
.site-footer a:hover { color: var(--sun); text-decoration: underline; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .92rem; }
.footer-bottom p { margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

.fab-wa { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #1fa855; color: #fff; box-shadow: 0 10px 28px rgba(15, 80, 40, .4); transition: transform .3s var(--ease); }
.fab-wa .ico { width: 30px; height: 30px; }
.fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1fa855; animation: ping 2.6s ease-out infinite; }
.fab-wa:hover { transform: scale(1.1) rotate(-6deg); color: #fff; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Анимация логотипа (inline-SVG в hero). Части логотипа: .ml-*
   Правило: transform-origin задаём только внутренним группам (у них нет атрибута transform),
   а двигаем через отдельные свойства rotate / scale / translate.
   ========================================================================== */
.logo-scene .ml-leaf, .logo-scene .ml-bow, .logo-scene .ml-ray, .logo-scene .ml-letter, .logo-scene .ml-heart,
.logo-scene .ml-head, .logo-scene .ml-kid-in, .logo-scene .ml-sun-body, .logo-scene .ml-sprout { transform-box: fill-box; }
.logo-scene .ml-ring { transform-box: view-box; transform-origin: 512px 512px; animation: fade-in 1s .1s both, spin 90s linear infinite; }

/* солнце: лучи «дышат», тело чуть пульсирует */
.logo-scene .ml-sun { animation: rise-in 1s var(--ease) .15s both; }
.logo-scene .ml-ray { transform-origin: 50% 50%; animation: ray 2.8s ease-in-out infinite; }
.logo-scene .ml-rays > g:nth-child(2n) .ml-ray { animation-delay: -.5s; }
.logo-scene .ml-rays > g:nth-child(3n) .ml-ray { animation-delay: -1.1s; }
.logo-scene .ml-rays > g:nth-child(4n) .ml-ray { animation-delay: -1.8s; }
.logo-scene .ml-sun-body { transform-origin: 50% 100%; animation: sun-breathe 5s ease-in-out infinite; }
.logo-scene .ml-rays { transform-box: view-box; transform-origin: 512px 288px; }
@keyframes ray { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: 1.2 1.32; opacity: .82; } }
@keyframes sun-breathe { 0%, 100% { scale: 1; } 50% { scale: 1.035; } }

/* крыша «вздыхает» */
.logo-scene .ml-roof { animation: rise-in 1s var(--ease) .3s both; }

/* листья качаются от основания, на старте «вырастают» */
.logo-scene .ml-leaf { transform-origin: 50% 100%; animation: leaf-pop .9s var(--ease) var(--pd, .4s) both, leaf-sway var(--t, 5s) ease-in-out var(--d, 0s) infinite alternate; }
.logo-scene .ml-leaf-l1 { --t: 5.4s; --d: -.4s; --pd: .35s; } .logo-scene .ml-leaf-l2 { --t: 4.6s; --d: -1.6s; --pd: .5s; }
.logo-scene .ml-leaf-l3 { --t: 6s; --d: -2.2s; --pd: .45s; } .logo-scene .ml-leaf-l4 { --t: 5s; --d: -.9s; --pd: .6s; }
.logo-scene .ml-leaf-l5 { --t: 4.2s; --d: -2.8s; --pd: .7s; } .logo-scene .ml-leaf-r1 { --t: 5.6s; --d: -1.2s; --pd: .4s; }
.logo-scene .ml-leaf-r2 { --t: 4.8s; --d: -2.4s; --pd: .55s; } .logo-scene .ml-leaf-r3 { --t: 5.2s; --d: -.2s; --pd: .65s; }
.logo-scene .ml-leaf-s1 { --t: 3.8s; --pd: 1.3s; } .logo-scene .ml-leaf-s2 { --t: 4.4s; --d: -1s; --pd: 1.2s; } .logo-scene .ml-leaf-s3 { --t: 4s; --d: -2s; --pd: 1.4s; }
@keyframes leaf-pop { from { scale: 0; opacity: 0; } }
@keyframes leaf-sway { from { rotate: -4deg; } to { rotate: 5deg; } }

/* сердечки бьются */
.logo-scene .ml-heart { transform-origin: 50% 55%; animation: fade-in .8s var(--pd, .8s) both, heartbeat 2.4s ease-in-out var(--d, 0s) infinite; }
.logo-scene .ml-heart-teal { --pd: 1s; --d: -.8s; } .logo-scene .ml-heart-gold { --pd: 1.1s; --d: -1.5s; } .logo-scene .ml-heart-word { --pd: 1.6s; --d: -.4s; }

/* дети: подпрыгивают, наклоняют головы, банты качаются */
.logo-scene .ml-kid { animation: rise-in .9s var(--ease) var(--pd, .6s) both; }
.logo-scene .ml-boy { --pd: .55s; } .logo-scene .ml-girl { --pd: .7s; } .logo-scene .ml-girl2 { --pd: .85s; }
.logo-scene .ml-kid-in { animation: kid-bob 3.4s ease-in-out infinite; }
.logo-scene .ml-girl .ml-kid-in { animation-delay: -1.1s; }
.logo-scene .ml-girl2 .ml-kid-in { animation-delay: -2.2s; }
.logo-scene .ml-head { transform-origin: 50% 92%; animation: head-tilt 4.8s ease-in-out infinite alternate; }
.logo-scene .ml-girl .ml-head { animation-delay: -1.6s; animation-duration: 5.4s; }
.logo-scene .ml-girl2 .ml-head { animation-delay: -3s; animation-duration: 4.4s; }
.logo-scene .ml-bow { transform-origin: 50% 50%; animation: bow 2.6s ease-in-out infinite alternate; }
@keyframes kid-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes head-tilt { from { rotate: -2.6deg; } to { rotate: 2.6deg; } }
@keyframes bow { from { rotate: -7deg; } to { rotate: 7deg; } }

/* надпись и росток */
.logo-scene .ml-cloud, .logo-scene #ml-cloud { animation: fade-in .6s .5s both; }
.logo-scene .ml-word { animation: rise-in 1s var(--ease) 1s both; }
.logo-scene .ml-letter { transform-origin: 50% 100%; animation: letter-float 4.4s ease-in-out infinite; }
.logo-scene .ml-letter-1 { animation-delay: -.4s; } .logo-scene .ml-letter-2 { animation-delay: -.8s; } .logo-scene .ml-letter-3 { animation-delay: -1.2s; }
.logo-scene .ml-letter-4 { animation-delay: -1.6s; } .logo-scene .ml-letter-5 { animation-delay: -2s; } .logo-scene .ml-letter-6 { animation-delay: -2.4s; }
.logo-scene .ml-letter-7 { animation-delay: -2.8s; } .logo-scene .ml-letter-8 { animation-delay: -3.2s; }
@keyframes letter-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
.logo-scene .ml-sub { animation: rise-in 1s var(--ease) 1.2s both; }
.logo-scene .ml-sprout { animation: rise-in 1s var(--ease) 1.3s both; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes rise-in { from { opacity: 0; translate: 0 26px; } }

/* --- Пасхалки: на этих частях логотипа можно кликать (js/fun.js) --- */
.logo-scene .ml-sun-body, .logo-scene .ml-heart, .logo-scene .ml-kid, .logo-scene .ml-leaf, .logo-scene .ml-letter, .logo-scene .ml-bow { cursor: pointer; }
.logo-scene .ml-sun.is-burst .ml-rays { animation: rays-spin 1.7s var(--ease); }
.logo-scene .ml-sun.is-burst .ml-sun-body { animation: sun-pop 1.2s var(--ease); }
.logo-scene .ml-heart.is-pop { animation: heart-pop .8s var(--ease); }
.logo-scene .ml-kid.is-jump .ml-kid-in { animation: kid-jump .85s var(--ease); }
.logo-scene .ml-kid.is-jump .ml-head { animation: giggle .85s ease-in-out; }
.logo-scene .ml-leaf.is-spin { animation: leaf-spin 1s var(--ease); }
.logo-scene .ml-letter.is-hop { animation: letter-hop .7s var(--ease); }
@keyframes rays-spin { to { rotate: 360deg; } }
@keyframes sun-pop { 30% { scale: 1.2; } 60% { scale: .96; } }
@keyframes heart-pop { 0% { scale: 1; } 30% { scale: 1.55; } 60% { scale: .9; } 100% { scale: 1; } }
@keyframes kid-jump { 0% { translate: 0 0; scale: 1 1; } 25% { translate: 0 6px; scale: 1.04 .94; } 55% { translate: 0 -46px; scale: .97 1.05; } 100% { translate: 0 0; scale: 1 1; } }
@keyframes giggle { 0%, 100% { rotate: 0deg; } 20% { rotate: -8deg; } 40% { rotate: 7deg; } 60% { rotate: -6deg; } 80% { rotate: 5deg; } }
@keyframes leaf-spin { 0% { rotate: 0deg; scale: 1; } 50% { rotate: 200deg; scale: 1.25; } 100% { rotate: 360deg; scale: 1; } }
@keyframes letter-hop { 0% { translate: 0 0; } 40% { translate: 0 -22px; } 100% { translate: 0 0; } }

/* «пузырь» над ребёнком */
.kid-bubble { position: absolute; z-index: 5; padding: 8px 16px; border-radius: 18px; background: #fff; color: var(--rasp); font-family: var(--font-script); font-size: 1.15rem; white-space: nowrap; box-shadow: 0 10px 24px rgba(168, 19, 79, .25); transform: translate(-50%, -100%); animation: bubble 1.6s var(--ease) forwards; pointer-events: none; }
.kid-bubble::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
@keyframes bubble { 0% { opacity: 0; margin-top: 10px; scale: .5; } 18% { opacity: 1; margin-top: 0; scale: 1.08; } 28% { scale: 1; } 80% { opacity: 1; } 100% { opacity: 0; margin-top: -16px; } }

/* конфетти из частей логотипа */
.fx-bit { position: fixed; left: 0; top: 0; z-index: 400; width: var(--s, 22px); height: var(--s, 22px); pointer-events: none; will-change: transform, opacity; }
.fx-bit svg { display: block; width: 100%; height: 100%; }

/* режим «праздник» (5 кликов по логотипу в шапке или набрать «madin») */
.party-toast { position: fixed; left: 50%; bottom: 28px; z-index: 450; padding: 12px 24px; border-radius: 999px; background: linear-gradient(135deg, var(--pink), var(--sun)); color: #fff; font-family: var(--font-script); font-size: 1.25rem; box-shadow: 0 16px 36px rgba(168, 19, 79, .35); transform: translateX(-50%); animation: toast 4s var(--ease) forwards; pointer-events: none; }
@keyframes toast { 0% { opacity: 0; translate: 0 30px; } 10%, 85% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 20px; } }
html.party .ring-big { animation-duration: 8s; opacity: .35; }
html.party .logo-scene .ml-ring { animation-duration: 3s; }
html.party .logo-scene .ml-kid-in { animation-duration: .7s; }
html.party .logo-scene .ml-heart { animation-duration: .8s; }
html.party .logo-scene .ml-head { animation-duration: .9s; }
html.party .brand-mark { animation: spin 1.2s linear infinite; }
html.party .pt { animation-duration: calc(var(--dur, 24s) / 4); }

/* ---------- Адаптив ---------- */
@media (max-width: 1240px) {
  .menu-toggle { display: block; }
  .site-nav { position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 4px); padding: 14px; border-radius: 30px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-12px) scale(.98); transition: opacity .25s, transform .3s var(--ease), visibility .25s; max-height: calc(100vh - var(--header-h) - 24px); overflow: auto; pointer-events: auto; }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a:not(.btn) { padding: 13px 18px; font-size: 1.05rem; border-radius: 16px; }
  .nav-cta { display: block; margin-top: 8px; }
  .nav-cta .btn { width: 100%; }
}
@media (max-width: 980px) {
  .hero-grid, .about-grid, .contact-grid, .head-split, .social-card { grid-template-columns: 1fr; }
  .hero-visual { order: -1; padding: 8px 0 0; }
  .scene-wrap { width: min(400px, 82%); }
  .orbit.o1 { width: min(450px, 100%); }
  .orbit.o2 { width: min(500px, 112%); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-bottom: -40px; }
  #about { padding-top: 110px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .mosaic { grid-template-columns: repeat(3, 1fr); }
  .director-card { grid-template-columns: 1fr; text-align: center; }
  .director-photo { width: min(280px, 72%); margin-inline: auto; }
  .social-buttons { justify-content: flex-start; }
  .form { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .ring-big.r1 { opacity: .1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-call span { display: none; }
  .header-call { padding: .6em .75em; }
  .brand-text strong { font-size: 1.25rem; }
  .brand-text small { display: none; }
  .hero-stats { gap: 10px; }
  .stat-card { padding: 14px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .stat-card > .ico { width: 38px; height: 38px; padding: 8px; }
  .stat-card strong { font-size: 1.15rem; }
  .facts { grid-template-columns: 1fr; }
  .collage { grid-template-rows: 150px 150px; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .job summary { flex-wrap: wrap; gap: 6px 12px; padding: 16px 18px; }
  .job-title { flex-basis: calc(100% - 50px); }
  .job summary time { order: 3; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .lb-nav { top: auto; bottom: 20px; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .fab-wa { width: 54px; height: 54px; right: 14px; bottom: 14px; }
  .lang a { padding: 5px 9px; }
}

@media (max-width: 480px) {
  .header-pill { gap: 8px; padding-right: 8px; }
  .header-call { display: none; }
  .menu-toggle { width: 42px; height: 42px; }
  .brand-mark { width: 42px; height: 42px; }
}

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