/* ==========================================================================
   Бөбекжай-бақша «Ботақан»
   Палитра — с логотипа и из интерьера: небесно-синий плаката, песок и золото барханов,
   верблюжья охра, красная попона, жёлтые скамейки, бирюзовые стены, розовый цветок кактуса.
   Шрифты: Comfortaa (заголовки), Golos Text (текст) — оба знают казахские буквы.
   ========================================================================== */

:root {
  --blue: #1f6fb5;
  --blue-d: #0f4c81;
  --blue-dd: #0a3558;
  --sky: #7cc4ec;
  --sky-l: #e4f2fb;
  --sand: #f3d9a4;
  --sand-l: #fbefd2;
  --sand-d: #e9c27a;
  --cream: #fff8ea;
  --paper: #fffdf6;
  --camel: #e9a05a;
  --orange: #e6803a;
  --red: #d3202a;
  --yellow: #f6c81c;
  --yellow-d: #d9a90a;
  --cactus: #8cb04a;
  --teal: #3e9d8e;
  --pink: #f0638f;
  --ink: #16324f;
  --muted: #587089;
  --line: rgba(15, 76, 129, .14);

  --font-head: "Comfortaa", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r: 28px;
  --r-sm: 18px;
  --shadow: 0 12px 34px rgba(15, 76, 129, .11);
  --shadow-lg: 0 26px 60px rgba(15, 76, 129, .2);
  --ease: cubic-bezier(.22, .8, .28, 1);
  --bar-h: 68px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -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(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-d); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; color: var(--blue-d); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.1vw, 3.55rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--blue-d); 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; }
.lead { font-size: 1.14rem; color: var(--muted); }
.note { color: var(--muted); background: rgba(255, 255, 255, .7); border: 2px dashed var(--sand-d); border-radius: var(--r-sm); padding: 18px 22px; }
.note-light { color: #dcecf8; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }

main, .footer { position: relative; z-index: 1; }

/* ---------- Фон: облака, свечение, лепестки ---------- */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.glow.g1 { width: 46vw; height: 46vw; left: -12vw; top: -12vw; background: radial-gradient(circle, #bfe3f6, transparent 70%); }
.glow.g2 { width: 44vw; height: 44vw; right: -12vw; bottom: -14vw; background: radial-gradient(circle, #f9dfa6, transparent 70%); }
.bg-cloud { position: absolute; left: 0; width: 210px; height: 62px; opacity: .85; filter: drop-shadow(0 8px 14px rgba(31, 111, 181, .16)); will-change: transform; }
.bg-cloud.bc1 { top: 18%; animation: cloud-run 110s linear -30s infinite; }
.bg-cloud.bc2 { top: 52%; width: 160px; height: 48px; opacity: .7; animation: cloud-run 150s linear -90s infinite; }
.bg-cloud.bc3 { top: 80%; width: 240px; height: 70px; opacity: .75; animation: cloud-run 130s linear -10s infinite; }
@keyframes cloud-run { from { transform: translateX(-30vw); } to { transform: translateX(110vw); } }

.petal-p { position: absolute; top: -8vh; opacity: 0; will-change: transform; animation: petal-fall var(--dur, 24s) linear var(--delay, 0s) infinite; }
.petal-p svg { display: block; width: 100%; height: 100%; animation: petal-sway var(--sway, 5s) ease-in-out var(--delay, 0s) infinite alternate; }
@keyframes petal-fall {
  0% { transform: translate3d(0, 0, 0) rotate(var(--r0, 0deg)); opacity: 0; }
  8% { opacity: var(--o, .5); }
  92% { opacity: var(--o, .5); }
  100% { transform: translate3d(var(--dx, 8vw), 112vh, 0) rotate(var(--r1, 300deg)); opacity: 0; }
}
@keyframes petal-sway { from { transform: rotate(-16deg) translateX(-10px); } to { transform: rotate(16deg) translateX(10px); } }

/* частицы пасхалок */
.fx-layer { position: fixed; inset: 0; z-index: 250; pointer-events: none; overflow: hidden; }

/* ---------- Кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.5em; border-radius: 16px; border: 0; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap; font-family: var(--font-body);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
}
.btn:active { transform: translateY(3px); }
.btn-sm { padding: .55em 1.05em; font-size: .93rem; border-radius: 13px; }
.btn-lg { padding: .95em 1.7em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-icon { padding-inline: .95em; }
.btn-sun { background: var(--yellow); color: #3b2a00; box-shadow: 0 4px 0 var(--yellow-d), 0 14px 24px rgba(217, 169, 10, .28); }
.btn-sun:hover { background: #ffd53a; color: #3b2a00; transform: translateY(-2px); box-shadow: 0 6px 0 var(--yellow-d), 0 18px 28px rgba(217, 169, 10, .32); }
.btn-sun:active { box-shadow: 0 1px 0 var(--yellow-d); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 4px 0 var(--blue-dd), 0 14px 24px rgba(15, 76, 129, .25); }
.btn-blue:hover { background: var(--blue-d); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 0 var(--blue-dd), 0 18px 28px rgba(15, 76, 129, .3); }
.btn-blue:active { box-shadow: 0 1px 0 var(--blue-dd); }
.btn-glass { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); backdrop-filter: blur(6px); }
.btn-glass:hover { background: #fff; color: var(--blue-d); transform: translateY(-2px); }

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

/* заголовок раздела */
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: .84rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: .9em; }
.eb-flower { width: 22px; height: 22px; color: var(--pink); animation: flower-spin 14s linear infinite; }
.eyebrow-light { color: var(--yellow); }
.sec-head { max-width: 760px; margin: 0 auto clamp(30px, 5vw, 52px); text-align: center; }
.sec-head h2 { position: relative; padding-bottom: 22px; margin-bottom: .55em; }
.sec-head h2::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 144px; height: 26px; transform: translateX(-50%); background: url("../assets/ornament-blue.svg") repeat-x center / auto 26px; opacity: .55; }
.sec-head-left { text-align: left; margin-inline: 0; }
.sec-head-left h2::after { left: 0; transform: none; }
.sec-head-light h2 { color: #fff; }
.sec-head-light .eyebrow { color: var(--yellow); }
.sec-head-light h2::after { background-image: url("../assets/ornament-sand.svg"); opacity: .8; }
.sec-head-light .lead { color: #cfe3f3; }
.sec-head .lead { margin-bottom: 0; }
@keyframes flower-spin { to { transform: rotate(360deg); } }

/* ---------- Шапка ---------- */
.bar { position: sticky; top: 0; z-index: 100; padding: 12px 14px 0; pointer-events: none; }
.bar-in {
  pointer-events: auto; display: flex; align-items: center; gap: 16px;
  width: min(1240px, 100%); max-width: 1240px; height: var(--bar-h); margin: 0 auto; padding: 0 12px 0 14px;
  background: rgba(255, 248, 234, .82); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 24px; box-shadow: 0 10px 30px rgba(15, 76, 129, .14);
  transition: background .3s, box-shadow .3s;
}
.bar.is-stuck .bar-in { background: rgba(255, 248, 234, .94); box-shadow: 0 14px 34px rgba(15, 76, 129, .2); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand-mark { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(15, 76, 129, .25); transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-head); font-size: 1.28rem; color: var(--blue-d); }
.brand-text small { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); margin-top: 3px; }

.nav { min-width: 0; flex: 1 1 auto; display: flex; justify-content: flex-end; overflow: hidden; }
.nav ul { display: flex; align-items: center; gap: 0; min-width: 0; }
.nav a { position: relative; display: block; white-space: nowrap; padding: 8px 8px; font-weight: 500; font-size: .88rem; color: var(--ink); text-decoration: none; border-radius: 12px; transition: color .2s, background .2s; }
.nav a:hover { background: var(--sky-l); color: var(--blue-d); }
.nav a.is-active { background: var(--blue); color: #fff; }

.bar-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.bar-call { flex: none; }
.lang { display: inline-flex; padding: 3px; border-radius: 14px; background: rgba(15, 76, 129, .09); }
.lang a { padding: 6px 11px; border-radius: 11px; font-size: .82rem; font-weight: 700; letter-spacing: .06em; color: var(--blue-d); text-decoration: none; transition: background .2s, color .2s; }
.lang a:hover { background: rgba(255, 255, 255, .7); }
.lang a.is-on { background: var(--blue); color: #fff; box-shadow: 0 3px 8px rgba(15, 76, 129, .3); }
.burger { display: none; width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--sky-l); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2.5px; background: var(--blue-d); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Главный экран ---------- */
.hero {
  position: relative; margin-top: calc(var(--bar-h) * -1 - 12px); padding-top: calc(var(--bar-h) + 40px);
  background: linear-gradient(180deg, #0c4379 0%, #1f6fb5 30%, #55a8dd 58%, #a4d6f1 80%, #ffe6ae 100%);
  overflow: hidden; isolation: isolate;
}
.hero-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sky-cloud { position: absolute; left: 0; width: 230px; height: 68px; opacity: .55; filter: drop-shadow(0 10px 16px rgba(10, 53, 88, .2)); will-change: transform; }
.sky-cloud.sk1 { top: 17%; animation: cloud-run 90s linear -20s infinite; }
.sky-cloud.sk2 { top: 38%; width: 160px; height: 48px; opacity: .45; animation: cloud-run 120s linear -80s infinite; }
.sky-cloud.sk3 { top: 8%; width: 130px; height: 38px; opacity: .4; animation: cloud-run 150s linear -50s infinite; }
.star { position: absolute; width: 16px; height: 16px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 3.6s ease-in-out infinite; }
.star.st1 { left: 6%; top: 24%; --d: 0s; }
.star.st2 { left: 42%; top: 12%; width: 12px; height: 12px; animation-delay: .8s; }
.star.st3 { left: 54%; top: 32%; width: 10px; height: 10px; animation-delay: 1.6s; }
.star.st4 { left: 17%; top: 44%; width: 12px; height: 12px; animation-delay: 2.2s; }
.star.st5 { left: 33%; top: 28%; width: 18px; height: 18px; animation-delay: 1.1s; }
@keyframes twinkle { 0%, 100% { transform: scale(.3) rotate(0); opacity: .1; } 50% { transform: scale(1) rotate(45deg); opacity: .95; } }

.dunes { position: absolute; left: 0; width: 100%; pointer-events: none; will-change: transform; }
.dunes-back { bottom: 0; z-index: 1; height: clamp(150px, 21vw, 300px); }
.dunes-front { bottom: -2px; z-index: 3; height: clamp(110px, 14vw, 200px); }

.hero-grid {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; align-items: end;
  gap: clamp(16px, 4vw, 56px); min-height: min(80vh, 760px); padding-bottom: clamp(70px, 9vw, 130px);
}
.hero-copy { align-self: center; padding-bottom: clamp(20px, 4vw, 70px); color: #fff; }
.hero-hello { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 7px 18px 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: #fff; backdrop-filter: blur(6px); }
.hero-hello-ico { width: 26px; height: 26px; color: var(--pink); animation: flower-spin 12s linear infinite; }
.hero h1 { color: #fff; text-shadow: 0 3px 0 rgba(10, 53, 88, .25); margin-bottom: .45em; }
.mark-word { position: relative; display: inline-block; color: var(--yellow); white-space: nowrap; }
.mark-word::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.12em; height: .3em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12' preserveAspectRatio='none'%3E%3Cpath d='M0 6 Q10 -2 20 6 T40 6' fill='none' stroke='%23f6c81c' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left / 40px 100%; transform-origin: left; animation: underline-draw 1.1s var(--ease) .6s both; }
@keyframes underline-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-lead { font-size: 1.2rem; color: rgba(255, 255, 255, .92); max-width: 31em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; 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: 6px 14px; border-radius: 12px; font-weight: 500; font-size: .92rem; color: #fff; background: rgba(10, 53, 88, .32); }
.hero-chips .ico { color: var(--yellow); }

.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-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; margin-bottom: clamp(-30px, -2vw, 0px); }
.fig { height: clamp(340px, 64vh, 620px); width: auto; aspect-ratio: 840 / 880; overflow: visible; filter: drop-shadow(0 18px 24px rgba(10, 53, 88, .22)); animation: stage-in 1.1s var(--ease) .2s both; }
@keyframes stage-in { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
.fig g[role="button"] { cursor: pointer; outline: none; }
.fig g[role="button"]:focus-visible { outline: none; }
.fig-camel { transform-box: view-box; transform-origin: 540px 772px; }
.fig-camel.is-hop { animation: camel-hop .75s cubic-bezier(.3, .7, .4, 1); }
@keyframes camel-hop { 0% { transform: none; } 30% { transform: translateY(-34px) scale(1.02, .98); } 55% { transform: translateY(0) scale(1.03, .95); } 75% { transform: translateY(-9px); } 100% { transform: none; } }
.camel-say { position: absolute; left: 2%; top: 4%; max-width: 70%; padding: 9px 18px; border-radius: 18px 18px 18px 4px; background: #fff; color: var(--blue-d); font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; box-shadow: 0 10px 24px rgba(10, 53, 88, .25); opacity: 0; transform: translateY(8px) scale(.9); transform-origin: left bottom; transition: opacity .25s, transform .35s var(--ease); pointer-events: none; z-index: 4; }
.camel-say.is-on { opacity: 1; transform: none; }

/* оживающий логотип (те же движения, что в assets/logo/logo-animated.svg) */
.fig .c-lid { animation: bt-blink 5.2s infinite; }
@keyframes bt-blink { 0%, 92%, 100% { transform: scaleY(0); } 94%, 97% { transform: scaleY(1); } }
.fig .c-tail { animation: bt-tail 3s ease-in-out infinite alternate; }
@keyframes bt-tail { from { transform: rotate(-4deg); } to { transform: rotate(7deg); } }
.fig .c-ear { animation: bt-ear 7s ease-in-out infinite; }
@keyframes bt-ear { 0%, 78%, 100% { transform: rotate(0); } 82% { transform: rotate(-11deg); } 86% { transform: rotate(5deg); } 90% { transform: rotate(-6deg); } }
.fig .c-headneck { animation: bt-nod 5s ease-in-out infinite; }
@keyframes bt-nod { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-1.4deg); } }
.fig .c-tassel { animation: bt-tas 2.4s ease-in-out infinite alternate; }
@keyframes bt-tas { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
.fig .c-rays { opacity: .9 !important; animation: bt-spin 60s linear infinite; }
.fig .c-rays path { fill: #fff3b0; opacity: .85; }
@keyframes bt-spin { to { transform: rotate(360deg); } }
.fig .c-cloud1 { animation: bt-drift 14s ease-in-out infinite alternate; }
@keyframes bt-drift { from { transform: translateX(-18px); } to { transform: translateX(26px); } }
.fig .c-flower { animation: bt-flo 3.2s ease-in-out infinite alternate; }
@keyframes bt-flo { from { transform: scale(.92) rotate(-6deg); } to { transform: scale(1.1) rotate(8deg); } }
.fig .c-cactus { animation: bt-sway 6s ease-in-out infinite alternate; }
@keyframes bt-sway { from { transform: rotate(-.7deg); } to { transform: rotate(.9deg); } }
.fig .c-grass { animation: bt-grass 3s ease-in-out infinite alternate; }
@keyframes bt-grass { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }
.fig-sun .c-sun { transform-box: view-box; transform-origin: 640px 148px; }
.fig-sun:hover .c-sun { animation: sun-pulse 1s ease-in-out infinite alternate; }
@keyframes sun-pulse { to { transform: scale(1.05); } }
.fig-sun.is-happy .c-sunface { opacity: 1 !important; }
.fig-sun.is-happy .c-sun { animation: sun-pulse .45s ease-in-out 4 alternate; }
.fig-sun.is-happy .c-rays { animation-duration: 6s; }
.fig-cloud.is-rain .c-cloud { animation: cloud-shake .5s ease-in-out 3; }
@keyframes cloud-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-9px); } 75% { transform: translateX(9px); } }
.fig-cactus .c-flowers { cursor: pointer; }
.fig-cactus .c-flowers.is-open .c-flower { animation: flower-pop .8s var(--ease); }
@keyframes flower-pop { 0% { transform: scale(1); } 40% { transform: scale(1.9) rotate(80deg); } 100% { transform: scale(1) rotate(0); } }

/* ---------- Коротко ---------- */
.glance { position: relative; z-index: 5; margin-top: -58px; }
.glance-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--paper); border-radius: 30px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .8); overflow: hidden; }
.glance-item { display: flex; align-items: center; gap: 14px; padding: 22px 24px; position: relative; }
.glance-item + .glance-item::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 2px; background: repeating-linear-gradient(180deg, var(--sand-d) 0 6px, transparent 6px 12px); }
.glance-item strong { display: block; font-family: var(--font-head); font-size: 1.45rem; line-height: 1.15; color: var(--blue-d); }
.glance-item.is-long strong { font-size: 1.02rem; line-height: 1.3; }
.glance-item div > span { font-size: .86rem; color: var(--muted); font-weight: 500; }
.ico-chip { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 16px; background: var(--sky-l); color: var(--blue); }
.ico-chip .ico { width: 22px; height: 22px; }
.glance-item:nth-child(2) .ico-chip { background: #fde6cf; color: var(--orange); }
.glance-item:nth-child(3) .ico-chip { background: #fff0b5; color: #b58a00; }
.glance-item:nth-child(4) .ico-chip { background: #d8f0ea; color: var(--teal); }

/* ---------- Секции ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 110px) 0; }
#about { padding-top: clamp(70px, 9vw, 110px); }

/* цветные панели с волнистым краем */
.panel { position: relative; }
.panel::before, .panel::after {
  content: ""; position: absolute; left: 0; right: 0; height: 40px; background: var(--panel-bg);
  -webkit-mask: url("../assets/wave.svg") repeat-x center / 1440px 40px; mask: url("../assets/wave.svg") repeat-x center / 1440px 40px;
}
.panel::before { top: -39px; }
.panel::after { bottom: -39px; transform: scaleY(-1); }
.panel-blue { --panel-bg: #0f4c81; background: radial-gradient(circle at 88% 45%, rgba(124, 196, 236, .28), transparent 45%), linear-gradient(170deg, #1a64a8, #0f4c81 55%, #0a3558); color: #dcecf8; }
.panel-blue::before, .panel-blue::after { background: #1a64a8; }
.panel-blue::after { background: #0a3558; }
.panel-blue > .container { position: relative; z-index: 1; }
.panel-sand { --panel-bg: #f6dfae; background: linear-gradient(170deg, #f9e6b8, #f3d28c); }
.panel-sand::before, .panel-sand::after { background: #f9e6b8; }
.panel-sand::after { background: #f3d28c; }
.panel-cream { background: var(--sand-l); }
.panel-cream::before, .panel-cream::after { background: var(--sand-l); }
.panel-blue, .panel-sand, .panel-cream { margin-block: 40px; }

/* ---------- О нас ---------- */
.about { 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); }
.about-copy .link-go { margin-top: 6px; }
.trio { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; grid-template-rows: 190px 190px; gap: 16px; }
.trio-item { position: relative; margin: 0; overflow: hidden; background: linear-gradient(150deg, #bfe3f6, #7cc4ec); box-shadow: var(--shadow); transition: transform .5s var(--ease); display: grid; place-items: center; }
.trio-item:hover { transform: translateY(-6px) rotate(-.8deg); }
.trio-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.trio-item:hover img { transform: scale(1.07); }
.trio-1 { grid-row: span 2; border-radius: 200px 200px 200px 200px / 220px 220px 180px 180px; }
.trio-2 { border-radius: 90px 26px 26px 26px; background: linear-gradient(150deg, #ffe9a8, #f6c76a); }
.trio-3 { border-radius: 26px 26px 90px 26px; background: linear-gradient(150deg, #fbd9bd, #eba15a); }
.trio-item .ph-art { width: 48%; max-width: 150px; filter: drop-shadow(0 8px 10px rgba(10, 53, 88, .18)); }
.ph-spin { animation: bt-spin 40s linear infinite; }
.trio-item figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 16px; background: rgba(255, 253, 246, .93); font-weight: 700; font-size: .86rem; color: var(--blue-d); backdrop-filter: blur(6px); }
.trio-item figcaption span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: #3b2a00; font-size: .72rem; }

/* паспорт */
.passport { position: relative; margin-top: clamp(48px, 7vw, 84px); padding: clamp(24px, 4vw, 44px); border-radius: 34px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.passport::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; background: url("../assets/ornament-blue.svg") repeat-x center / auto 18px, var(--sky-l); opacity: .85; }
.passport-head { margin: 14px 0 26px; }
.passport-head h3 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); 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(--cream); border: 1px solid rgba(233, 194, 122, .5); transition: transform .3s var(--ease), border-color .3s, background .3s; }
.fact:hover { transform: translateY(-3px); border-color: var(--yellow); background: #fff; }
.fact > div { display: flex; flex-direction: column; min-width: 0; }
.fact dt { font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--orange); }
.fact dd, .fact a { font-size: 1.05rem; font-weight: 700; color: var(--blue-d); overflow-wrap: anywhere; text-decoration: none; }
.fact a:hover { text-decoration: underline; }
.fact:nth-child(3n+2) .ico-chip { background: #fde6cf; color: var(--orange); }
.fact:nth-child(3n+3) .ico-chip { background: #d8f0ea; color: var(--teal); }

/* ---------- Кружки ---------- */
#extra { padding-block: clamp(80px, 10vw, 130px); }
#extra::before, #extra::after { z-index: 0; }
.bento { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px; }
.tile { --tone: var(--blue); --tone-2: var(--sky); position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r); box-shadow: 0 14px 30px rgba(3, 25, 45, .25); color: var(--ink); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.tile:hover { transform: translateY(-8px) rotate(-.4deg); box-shadow: 0 26px 46px rgba(3, 25, 45, .35); }
.tone-0 { --tone: #1f6fb5; --tone-2: #7cc4ec; }
.tone-1 { --tone: #e6803a; --tone-2: #f9c08a; }
.tone-2 { --tone: #d9a90a; --tone-2: #ffe27a; }
.tone-3 { --tone: #3e9d8e; --tone-2: #9fdccf; }
.tone-4 { --tone: #d3202a; --tone-2: #f59a8f; }
.tone-5 { --tone: #d6467f; --tone-2: #f7a9c6; }
.tile-media { position: relative; height: 158px; background: linear-gradient(150deg, var(--tone-2), var(--tone)); overflow: hidden; }
.tile-media::before { content: ""; position: absolute; inset: 0; background: url("../assets/ornament-white.svg") repeat center / 54px auto; opacity: .2; }
.tile-media::after { content: ""; position: absolute; left: -8%; right: -8%; bottom: -1px; height: 34px; background: var(--paper); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); z-index: 0; }
.tile:hover .tile-media img { transform: scale(1.07); }
.tile-badge { position: absolute; z-index: 2; left: 24px; bottom: -4px; display: grid; place-items: center; width: 82px; height: 82px; border-radius: 50%; background: var(--paper); color: var(--tone); box-shadow: 0 0 0 5px var(--paper), 0 10px 20px rgba(3, 25, 45, .22); transition: transform .5s var(--ease); }
.tile:hover .tile-badge { transform: rotate(-8deg) scale(1.08); }
.tile-badge .extra-ico { width: 46px; height: 46px; }
.tile-body { display: flex; flex-direction: column; flex: 1; padding: 36px 26px 26px; }
.tile-body h3 { margin: 0 0 .4em; color: var(--tone); }
.tile-body p { color: var(--muted); font-size: .98rem; }
.tile-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.tile-meta li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 10px; font-size: .84rem; font-weight: 500; color: var(--blue-d); background: var(--sky-l); }
.tile-meta .meta-price { background: var(--sand-l); color: #7a5a1a; font-weight: 700; }
.tile-body .link-go { margin-top: auto; color: var(--tone); }

/* ---------- Галерея ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.chip { padding: 8px 18px; border-radius: 14px; border: 2px solid var(--line); background: var(--paper); color: var(--blue-d); font-weight: 700; font-size: .92rem; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.chip:hover { transform: translateY(-2px); border-color: var(--blue); }
.chip.is-on { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 4px 0 var(--blue-dd); }
.masonry { column-count: 4; column-gap: 16px; }
.shot { position: relative; break-inside: avoid; margin: 0 0 16px; overflow: hidden; border-radius: 24px; background: var(--sky-l); box-shadow: var(--shadow); }
.shot[hidden] { display: none; }
.shot-btn { display: block; width: 100%; padding: 0; border: 0; background: none; }
.shot-btn img { width: 100%; height: auto; transition: transform .7s var(--ease); }
.shot:hover .shot-btn img { transform: scale(1.06); }
.shot figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 7px 12px; border-radius: 14px; background: rgba(10, 53, 88, .78); 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; }
.shot:hover figcaption, .shot-btn:focus-visible + figcaption { opacity: 1; transform: none; }
.masonry-empty { column-count: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.masonry-empty .shot { display: grid; place-items: center; height: 170px; margin: 0; animation: pulse-soft 4s ease-in-out infinite; }
.masonry-empty .shot:nth-child(4n+1) { background: linear-gradient(150deg, #cfe9f8, #9fd3f0); }
.masonry-empty .shot:nth-child(4n+2) { background: linear-gradient(150deg, #fff0b5, #f9d36a); animation-delay: -1.3s; }
.masonry-empty .shot:nth-child(4n+3) { background: linear-gradient(150deg, #fde0c4, #f2ad6c); animation-delay: -2.6s; }
.masonry-empty .shot:nth-child(4n+4) { background: linear-gradient(150deg, #d8f0ea, #8fd0c2); animation-delay: -3.2s; }
.masonry-empty .ph-art { width: 42%; max-width: 110px; }
@keyframes pulse-soft { 50% { filter: brightness(1.06); } }
.more-wrap { text-align: center; margin: 30px 0 0; }

.lightbox { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; background: rgba(6, 28, 48, .94); 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: #dcecf8; font-weight: 500; }
.lb-close, .lb-nav { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; transition: background .2s, transform .2s; }
.lb-close:hover, .lb-nav:hover { background: var(--yellow); color: #3b2a00; transform: scale(1.08); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Руководитель ---------- */
.director { display: grid; grid-template-columns: minmax(250px, 400px) 1fr; gap: clamp(26px, 6vw, 80px); align-items: center; }
.director-photo { position: relative; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(150deg, #bfe3f6, #7cc4ec); box-shadow: 0 0 0 10px rgba(255, 253, 246, .85), var(--shadow-lg); display: grid; place-items: center; }
.director-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.director-ring { position: absolute; inset: -26px; border-radius: 50%; border: 3px dashed rgba(15, 76, 129, .35); animation: flower-spin 80s linear infinite; pointer-events: none; }
.director-ring::after { content: ""; position: absolute; top: 9%; left: 13%; width: 20px; height: 20px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 7px rgba(246, 200, 28, .3); }
.director-photo .ph-sun { width: 60%; opacity: .9; }
.initials { position: absolute; font-family: var(--font-head); font-size: 6rem; font-weight: 700; color: #fff; text-shadow: 0 6px 20px rgba(10, 53, 88, .35); }
.director-copy h2 { margin-bottom: .15em; }
.director-role { font-weight: 700; color: #a8651c; font-size: 1.05rem; }
.director-copy p { color: #4a5c6e; }
.director-quote { position: relative; padding-left: 22px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.5; color: var(--blue-d) !important; }
.director-quote::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px; border-radius: 4px; background: linear-gradient(180deg, var(--yellow), var(--orange)); }
.director-copy .btn { margin-top: 10px; }

/* ---------- Новости ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.news-card { overflow: hidden; background: var(--paper); border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s; }
.news-card:hover { transform: translateY(-6px); 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, #bfe3f6, #7cc4ec); }
.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 .ph-art { width: 34%; }
.news-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 24px 24px; }
.news-body time { align-self: flex-start; padding: 2px 11px; border-radius: 9px; background: var(--sand-l); font-size: .8rem; font-weight: 700; letter-spacing: .05em; color: #8a5b12; }
.news-title { font-family: var(--font-head); font-size: 1.2rem; line-height: 1.25; color: var(--blue-d); }
.news-excerpt { color: var(--muted); font-size: .96rem; }
.news-body .link-go { margin-top: auto; padding-top: 6px; }
@media (min-width: 980px) {
  .news-card:first-child:nth-last-child(n + 3) { grid-column: span 2; }
  .news-card:first-child:nth-last-child(n + 3) .news-open { flex-direction: row; }
  .news-card:first-child:nth-last-child(n + 3) .news-img { flex: 1.1; aspect-ratio: auto; min-height: 300px; }
  .news-card:first-child:nth-last-child(n + 3) .news-body { flex: 1; justify-content: center; padding: 32px; }
  .news-card:first-child:nth-last-child(n + 3) .news-title { font-size: 1.55rem; }
}

.news-dialog { width: min(720px, calc(100% - 28px)); max-height: 90vh; padding: 0; border: 0; border-radius: 30px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 90px rgba(0, 0, 0, .4); overflow: auto; }
.news-dialog::backdrop { background: rgba(6, 28, 48, .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: 14px; background: rgba(255, 253, 246, .94); color: var(--blue-d); 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: 700; font-size: .85rem; letter-spacing: .06em; color: #8a5b12; }
.nd-body h3 { font-size: 1.7rem; margin: .3em 0 .6em; }
.nd-body #ndText { color: var(--ink); overflow-wrap: anywhere; }

/* ---------- Вакансии ---------- */
#jobs { padding-block: clamp(70px, 9vw, 110px); }
.jobs-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(26px, 5vw, 70px); align-items: start; }
.jobs-wrap .sec-head { position: sticky; top: 110px; margin-bottom: 0; }
.jobs { display: grid; gap: 14px; }
.job { border-radius: 24px; background: var(--paper); border: 1px solid rgba(233, 194, 122, .6); box-shadow: var(--shadow); overflow: hidden; transition: border-color .3s; }
.job[open] { border-color: var(--blue); }
.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-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--blue-d); }
.job summary time { font-size: .84rem; font-weight: 500; color: #8a5b12; }
.job-plus { position: relative; flex: none; width: 34px; height: 34px; border-radius: 12px; background: var(--sky-l); }
.job-plus::before, .job-plus::after { content: ""; position: absolute; left: 10px; right: 10px; top: 16px; height: 2.5px; border-radius: 2px; background: var(--blue-d); 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; }
#jobs .note { background: var(--paper); }

/* ---------- Документы ---------- */
.docs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px 24px; padding-top: 14px; }
.folder { position: relative; padding: 30px 26px 26px; border-radius: 6px var(--r) var(--r) var(--r); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.folder::before { content: ""; position: absolute; left: -1px; top: -16px; width: 120px; height: 17px; border-radius: 14px 14px 0 0; background: var(--sand); border: 1px solid rgba(233, 194, 122, .8); border-bottom: 0; }
.folder h3 { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; padding-bottom: 14px; border-bottom: 2px dashed var(--sand-d); }
.folder h3 .ico { width: 1.4em; height: 1.4em; color: var(--orange); }
.doc-list { display: grid; gap: 10px; margin-top: 4px; }
.doc-list li { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 16px; background: var(--cream); transition: background .25s, transform .25s var(--ease); }
.doc-list li:hover { background: var(--sky-l); transform: translateX(4px); }
.doc-list a { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; color: var(--blue-d); text-decoration: none; }
.doc-list a .ico { margin-top: 3px; color: var(--orange); }
.doc-list small { padding-left: 33px; color: var(--muted); font-weight: 500; }
.folder .note { margin-top: 16px; }

/* ---------- Соцсети ---------- */
.social { padding-block: clamp(30px, 5vw, 60px); }
.social-card { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: 26px 40px; align-items: center; padding: clamp(32px, 5vw, 60px); border-radius: 40px; color: #fff; overflow: hidden;
  background: linear-gradient(130deg, #0f4c81, #1f6fb5 62%, #3b8fd0); box-shadow: var(--shadow-lg); }
.social-card::after { content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #ffe27a 0 36%, rgba(255, 226, 122, .38) 37% 52%, rgba(255, 226, 122, .14) 53% 68%, transparent 69%); animation: sun-breathe 6s ease-in-out infinite alternate; }
@keyframes sun-breathe { to { transform: scale(1.12); } }
.social-orn { position: absolute; inset: 0; background: url("../assets/ornament-white.svg") repeat center / 72px auto; opacity: .09; pointer-events: none; }
.social-copy, .social-buttons { position: relative; }
.social-card h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.social-card .lead { color: #dcecf8; margin: 0; }
.social-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }

/* ---------- Контакты ---------- */
.contact { padding-bottom: clamp(100px, 12vw, 160px); }
.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: 26px 0; }
.contact-list li { display: flex; align-items: flex-start; gap: 16px; }
.contact-list li > div { display: flex; flex-direction: column; }
.contact-list li:nth-child(2) .ico-chip { background: #fde6cf; color: var(--orange); }
.contact-list li:nth-child(3) .ico-chip { background: #fff0b5; color: #b58a00; }
.contact-list li:nth-child(4) .ico-chip { background: #d8f0ea; color: var(--teal); }
.c-label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.contact-list a:not(.addr-map) { font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.contact-list a:not(.addr-map):hover { text-decoration: underline; }
.contact-list span:not(.c-label):not(.ico-chip) { font-weight: 700; font-size: 1.1rem; color: var(--blue-d); }
.addr-map { font-size: .93rem; font-weight: 700; color: var(--orange); }
.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: 14px; background: var(--paper); border: 2px solid var(--line); color: var(--blue-d); font-weight: 700; font-size: .95rem; text-decoration: none; transition: background .25s, color .25s, transform .25s var(--ease); }
.chip-link:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }
.map-frame { overflow: hidden; border-radius: 28px; border: 5px solid var(--paper); box-shadow: var(--shadow); aspect-ratio: 16 / 10; background: var(--sky-l); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.form { position: sticky; top: 110px; display: flex; flex-direction: column; padding: clamp(24px, 4vw, 40px); border-radius: 34px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.form::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(90deg, var(--blue) 0 22px, var(--yellow) 22px 44px, var(--red) 44px 66px, var(--teal) 66px 88px); }
.form h3 { margin: 8px 0 .2em; }
.form-lead { color: var(--muted); margin-bottom: 14px; }
.form label { font-weight: 700; font-size: .92rem; margin: 12px 0 6px; color: var(--blue-d); }
.form input:not([type="checkbox"]), .form textarea { width: 100%; padding: 13px 16px; border: 2px solid #c9d9e6; border-radius: 16px; background: #fff; 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(--blue); box-shadow: 0 0 0 4px rgba(31, 111, 181, .16); }
.form input.is-bad { border-color: var(--red); }
.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(--blue); 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: 700; text-align: center; }
.form-note.ok { color: #1e8a4a; }
.form-note.err { color: var(--red); }
.form .btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Подвал ---------- */
.footer { position: relative; padding-top: 110px; background: linear-gradient(180deg, #0f4c81, #0a3558 70%, #082b49); color: #cfe3f3; overflow: hidden; }
.footer-wave { position: absolute; left: 0; top: -1px; width: 100%; height: 70px; }
.footer::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 54px; background: url("../assets/ornament-white.svg") repeat-x center / auto 36px; opacity: .08; pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.15fr .75fr 1.1fr; gap: 40px; padding-bottom: 50px; }
.foot-word { width: min(360px, 100%); height: auto; overflow: visible; margin-bottom: 14px; }
.c-letter { cursor: pointer; transform-box: view-box; }
.c-letter.is-jump { animation: letter-jump .7s cubic-bezier(.3, .7, .4, 1); }
@keyframes letter-jump { 0%, 100% { transform: translateY(0) rotate(0); } 35% { transform: translateY(-26px) rotate(-8deg); } 65% { transform: translateY(0) rotate(4deg); } 80% { transform: translateY(-7px); } }
.foot-word.is-dance .c-letter { animation: letter-dance 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * .09s); }
@keyframes letter-dance { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(-6deg); } }
.egg { margin-top: 10px; }
.egg-title { font-size: .86rem; color: #a8c9e6; margin-bottom: 10px; max-width: 30em; }
.footer .egg-dots { display: flex; flex-wrap: wrap; gap: 8px; }
.egg-dots li { padding: 4px 12px; border-radius: 10px; background: rgba(255, 255, 255, .08); border: 1.5px dashed rgba(255, 255, 255, .25); font-size: 0; transition: background .3s, border-color .3s, transform .4s var(--ease); }
.egg-dots li span { font-size: .78rem; font-weight: 700; color: transparent; letter-spacing: .04em; transition: color .3s; }
.egg-dots li::before { content: "?"; font-size: .85rem; font-weight: 700; color: rgba(255, 255, 255, .45); }
.egg-dots li.is-found { background: var(--yellow); border: 1.5px solid var(--yellow); transform: rotate(-3deg) scale(1.05); }
.egg-dots li.is-found::before { content: ""; }
.egg-dots li.is-found span { color: #3b2a00; }
.footer h3 { color: var(--yellow); font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; }
.footer ul { display: grid; gap: 8px; }
.footer a { color: #e3f0fa; text-decoration: none; }
.footer a:hover { color: var(--yellow); text-decoration: underline; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 22px 70px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .92rem; }
.footer-bottom p { margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }

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

/* всплывающая подсказка пасхалок */
.egg-toast { position: fixed; left: 50%; bottom: 26px; z-index: 280; transform: translate(-50%, 24px); padding: 12px 24px; border-radius: 18px; background: var(--blue-d); color: #fff; font-family: var(--font-head); font-weight: 700; box-shadow: 0 16px 34px rgba(10, 53, 88, .4); opacity: 0; transition: opacity .3s, transform .4s var(--ease); max-width: calc(100% - 28px); text-align: center; }
.egg-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.egg-toast[hidden] { display: none; }

/* частицы */
.fx-drop { position: fixed; width: 5px; height: 14px; border-radius: 4px; background: linear-gradient(180deg, rgba(255, 255, 255, .9), #5fb2e8); animation: drop-fall 1.1s cubic-bezier(.5, 0, 1, .6) forwards; }
@keyframes drop-fall { to { transform: translateY(var(--fall, 300px)); opacity: 0; } }
.fx-bit { position: fixed; width: var(--s, 14px); height: var(--s, 14px); animation: bit-fly var(--t, 1.4s) cubic-bezier(.2, .8, .3, 1) forwards; }
.fx-bit svg { display: block; width: 100%; height: 100%; }
@keyframes bit-fly { 0% { transform: translate(0, 0) rotate(0) scale(.4); opacity: 1; } 60% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1); opacity: 0; } }
.fx-caravan { position: fixed; left: 0; bottom: 9vh; width: 150px; animation: caravan 9s linear forwards; }
.fx-caravan svg { display: block; width: 100%; overflow: visible; animation: caravan-bob .55s ease-in-out infinite alternate; }
@keyframes caravan { from { transform: translateX(110vw); } to { transform: translateX(-30vw); } }
@keyframes caravan-bob { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(-9px) rotate(1deg); } }

/* ---------- Появление при прокрутке ---------- */
.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; }

/* ---------- Адаптив ---------- */
@media (max-width: 1280px) {
  .burger { display: block; }
  .nav { position: fixed; left: 14px; right: 14px; top: calc(var(--bar-h) + 24px); padding: 14px; border-radius: 26px; background: var(--paper); 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(--bar-h) - 48px); overflow: auto; pointer-events: auto; }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav a { padding: 13px 16px; font-size: 1.05rem; border-radius: 14px; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-bottom: clamp(60px, 14vw, 110px); }
  .hero-copy { padding-bottom: 0; }
  .hero-stage { order: 2; margin-top: 10px; }
  .fig { height: clamp(300px, 52vh, 460px); }
  .glance-row { grid-template-columns: repeat(2, 1fr); }
  .glance-item:nth-child(3)::before { display: none; }
  .glance-item:nth-child(n + 3) { border-top: 2px dashed var(--sand); }
  .about, .contact-grid, .social-card, .jobs-wrap { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .masonry { column-count: 3; }
  .masonry-empty { grid-template-columns: repeat(2, 1fr); }
  .director { grid-template-columns: 1fr; text-align: center; }
  .director-photo { width: min(300px, 76%); margin-inline: auto; }
  .director-quote { text-align: left; }
  .social-buttons { justify-content: flex-start; }
  .form, .jobs-wrap .sec-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bar { padding: 8px 8px 0; }
  .bar-in { padding: 0 8px 0 10px; gap: 8px; }
  .bar-call span { display: none; }
  .bar-call { padding: .6em .75em; }
  .brand-text strong { font-size: 1.12rem; }
  .brand-text small { display: none; }
  .lang a { padding: 6px 9px; }
  .hero-cta .btn-lg { padding: .85em 1.3em; }
  .sky-cloud { opacity: .4; }
  .sky-cloud.sk2 { display: none; }
  .glance { margin-top: -44px; }
  .glance-item { padding: 16px 14px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .facts { grid-template-columns: 1fr; }
  .trio { grid-template-rows: 150px 150px; }
  .masonry { column-count: 2; column-gap: 12px; }
  .masonry-empty { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .shot { margin-bottom: 12px; border-radius: 18px; }
  .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; }
}

@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; }
}
