/* «Rich Baby 3»: Rich — «богатство», здесь — богатство мечтаний. Дневное небо, облака и воздушные шары: буквы логотипа — шары,
   справа «высотомер» растёт, пока вы листаете страницу, группы — три шара на разной высоте, а к вечеру небо темнеет.
   Шрифты: Montserrat (заголовки) и Nunito (текст), свои, assets/fonts/; казахские буквы Ә Ғ Қ Ң Ө Ұ Ү Һ І проверены. */

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

:root {
  --bg: #f3fbff; --ink: #12306a; --soft: #4b6592; --line: rgba(18, 48, 106, .14);
  --a: #ff6b4a; --a2: #14a0dc; --a-ink: #fff; --card: #fff; --dark: #12306a; --tint: #e3f5ff;
  --r: 30px; --shadow: 0 16px 40px rgba(18, 48, 106, .14);
  --head: "Montserrat", "Nunito", system-ui, sans-serif; --body: "Nunito", system-ui, sans-serif; --bar-h: 72px;
}
h2, h3 { font-weight: 800; letter-spacing: -.015em; }
.btn-main { box-shadow: 0 12px 26px rgba(255, 107, 74, .4); }
.btn-line { color: var(--ink); border-color: var(--ink); }
.kicker { color: var(--a); }
.kicker::before { content: ""; width: 28px; height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--a), #ffb21e); }

/* ---------- Шапка ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(243, 251, 255, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: box-shadow .3s, background .3s; }
.top.is-stuck { background: rgba(243, 251, 255, .94); box-shadow: 0 8px 28px rgba(18, 48, 106, .14); }
.top-in { display: flex; align-items: center; gap: 16px; width: min(1220px, 100% - 32px); min-height: var(--bar-h); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 46px; height: 46px; transition: transform .8s cubic-bezier(.3, 1.4, .5, 1); }
.brand:hover img { transform: translateY(-6px) rotate(-12deg); }
.brand-text strong { font-family: var(--head); font-weight: 800; font-size: 1.2rem; white-space: nowrap; }
.menu { display: flex; justify-content: center; flex: 1; gap: 4px; }
.menu a { white-space: nowrap; padding: 9px 16px; border-radius: 999px; color: var(--ink); font-weight: 700; font-size: .95rem; text-decoration: none; transition: background .2s, color .2s; }
.menu a:hover { background: var(--tint); }
.menu a.is-active { background: var(--ink); color: #fff; }
.chips { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.chip { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 42px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font-weight: 800; font-size: .9rem; text-decoration: none; transition: background .2s, color .2s; }
.chip:hover { background: var(--ink); color: #fff; }
.chip-call { background: var(--a); border-color: var(--a); color: #fff; }
.chip-menu { display: none; justify-content: center; width: 42px; padding: 0; cursor: pointer; }

/* ---------- Первый экран: небо, облака, шары-буквы ---------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: grid; align-items: center; padding: calc(var(--bar-h) + 24px) 0 80px; overflow: hidden; background: linear-gradient(180deg, #62c2fb 0%, #a9e0ff 48%, #e6f7ff 100%); }
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sun { position: absolute; right: 8%; top: 12%; width: clamp(120px, 16vw, 220px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff7c2 0, #ffe27a 45%, rgba(255, 226, 122, 0) 72%); }
.js .sun { animation: sun-pulse 6s ease-in-out infinite; }
@keyframes sun-pulse { 50% { scale: 1.08; opacity: .9; } }
.cl { position: absolute; left: 0; width: var(--w); opacity: .96; filter: drop-shadow(0 10px 14px rgba(18, 48, 106, .1)); translate: calc(var(--sy, 0) * var(--k, 1) * -.12px) 0; }
.cl svg { width: 100%; height: auto; }
.c1 { --w: clamp(150px, 22vw, 300px); top: 16%; left: -8%; --k: 1; } .c2 { --w: clamp(110px, 15vw, 210px); top: 34%; left: 60%; --k: 1.6; }
.c3 { --w: clamp(170px, 26vw, 360px); top: 64%; left: 10%; --k: .7; } .c4 { --w: clamp(100px, 13vw, 180px); top: 8%; left: 38%; --k: 2; }
.js .cl svg { animation: drift 24s ease-in-out infinite alternate; }
.js .c2 svg { animation-duration: 30s; animation-delay: -8s; } .js .c3 svg { animation-duration: 36s; animation-delay: -14s; } .js .c4 svg { animation-duration: 28s; animation-delay: -4s; }
@keyframes drift { from { transform: translateX(-4vw); } to { transform: translateX(8vw); } }
.hero-stack { display: grid; justify-items: center; gap: 16px; text-align: center; }
.eyebrow { display: inline-flex; padding: 6px 20px; border-radius: 999px; background: rgba(255, 255, 255, .8); color: var(--ink); font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; box-shadow: 0 6px 16px rgba(18, 48, 106, .12); }
.hero-logo { width: min(100%, 440px, 52svh); margin-block: 6px; }
h1 { font-family: var(--head); font-weight: 800; font-size: clamp(2.3rem, 1rem + 4.4vw, 4.6rem); line-height: 1.06; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.hero-lead { max-width: 54ch; color: #2b4a85; font-size: 1.14rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.fly-hint { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #3c5d99; }
.fly-hint .ico { fill: #ffb21e; stroke: none; }

/* ---------- Логотип из слоёв: буквы — воздушные шары ---------- */
.rl { position: relative; width: 100%; aspect-ratio: 1; container-type: inline-size; -webkit-tap-highlight-color: transparent; }
.rl-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 20deg, #e8281e, #f58220 22%, #9cc02a 38%, #3de01a 52%, #14a0dc 74%, #6a5aa0 90%, #e8281e); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6cqw), #000 calc(100% - 6cqw)); mask: radial-gradient(farthest-side, transparent calc(100% - 6cqw), #000 calc(100% - 6cqw)); }
.rl-in { position: absolute; inset: 6%; border-radius: 50%; background: #fff; box-shadow: 0 24px 50px rgba(18, 48, 106, .25); }
.rl-sq { position: absolute; inset: 3.4%; }
.rl-red { position: absolute; inset: 0; border: 1.35cqw solid #e8281e; border-radius: 50%; }
.rl-l { position: absolute; transform-origin: 50% 85%; cursor: pointer; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 6px 5px rgba(18, 48, 106, .18)); }
.js .rl-ring { animation: ring-spin 40s linear infinite; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
.js .rl-balloon .rl-l { animation: rise-in 1.7s cubic-bezier(.2, .9, .3, 1) calc(.1s + var(--i) * .13s) backwards, bob 5.2s ease-in-out calc(1.9s + var(--i) * .45s) infinite; }
@keyframes rise-in { from { transform: translateY(150%) scale(.5) rotate(-12deg); opacity: 0; } 70% { transform: translateY(-6%) scale(1.04); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2.2deg); } 50% { transform: translateY(-7%) rotate(2.6deg); } }

/* ---------- Высотомер ---------- */
.altimeter { position: fixed; right: 16px; top: 50%; z-index: 45; display: grid; justify-items: center; gap: 8px; width: 62px; padding: 12px 6px 10px; translate: 0 -50%; border-radius: 999px; background: rgba(255, 255, 255, .88); box-shadow: 0 10px 30px rgba(18, 48, 106, .22); backdrop-filter: blur(8px); font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); text-align: center; }
.alt-track { position: relative; width: 6px; height: min(32vh, 230px); border-radius: 6px; background: #cfe9fa; }
.alt-fill { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--p, 0) * 100%); border-radius: 6px; background: linear-gradient(0deg, #14a0dc, #ff6b4a); }
.alt-balloon { position: absolute; left: 50%; bottom: calc(var(--p, 0) * 100%); width: 30px; translate: -50% 52%; }
.alt-svg { width: 100%; height: auto; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .2)); }
.alt-n { color: var(--ink); line-height: 1.1; }
.alt-n b { display: block; font-family: var(--head); font-size: .95rem; }

/* ---------- О нас: шар с фото здания ---------- */
.about { background: radial-gradient(ellipse at 100% 0, #d3efff 0, transparent 55%), var(--bg); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-text { display: grid; gap: 16px; justify-items: start; }
.about-text .head { margin-bottom: 4px; }
.mini-contacts { display: grid; gap: 8px; margin-top: 6px; font-weight: 700; }
.mini-contacts li { display: flex; gap: 10px; align-items: center; }
.mini-contacts .ico { color: var(--a); }
.mini-contacts a { color: var(--ink); }
.big-balloon { position: relative; justify-self: center; width: min(100%, 400px); margin: 0; }
.balloon-photo { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 24px 30px rgba(18, 48, 106, .25)); }
.js .balloon-photo { animation: sway 7s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes sway { 0%, 100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-14px); } }
.big-balloon figcaption { position: absolute; left: 50%; bottom: -6px; translate: -50% 0; }
.big-balloon figcaption span { display: inline-block; padding: 7px 22px; border-radius: 999px; background: #fff; color: var(--ink); font-family: var(--head); font-weight: 800; white-space: nowrap; box-shadow: 0 10px 24px rgba(18, 48, 106, .2); }

/* ---------- Группы: три шара на разной высоте ---------- */
.groups { background: linear-gradient(180deg, var(--bg), #fff 40%, var(--tint)); }
.flight { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 34px; align-items: start; }
.gcard { position: relative; padding-top: 150px; }
.gcard:nth-child(2) { margin-top: -40px; } .gcard:nth-child(3) { margin-top: 20px; }
.gballoon { position: absolute; left: 50%; top: 0; z-index: 2; width: 124px; translate: -50% 0; }
.gballoon svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 12px 14px rgba(18, 48, 106, .25)); }
.js .gballoon svg { animation: sway 6s ease-in-out calc(var(--i) * -1.7s) infinite; transform-origin: 50% 0; }
.gbody { position: relative; display: grid; gap: 8px; padding: 36px 26px 28px; border-radius: 34px; background: #fff; box-shadow: var(--shadow); transition: transform .4s cubic-bezier(.3, 1.5, .5, 1); }
.gcard:hover .gbody { transform: translateY(-8px); }
.gphoto { margin: 6px -10px 6px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 24px; }
.gphoto img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.gcard:hover .gphoto img { transform: scale(1.06); }
.gbody h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.gbody h3 small { font-size: .55em; color: var(--soft); font-weight: 700; }
.gmotto { font-weight: 800; color: var(--a); }
.gbody p { color: var(--soft); }
.t-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; justify-self: start; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; text-decoration: none; transition: transform .15s, background .2s; }
.t-link:hover { transform: translateY(-3px); background: var(--a); }

/* ---------- Фото: «полароиды на верёвочке» ---------- */
.gallery { background: #fff; }
.gallery .album figure:nth-child(odd) { rotate: -1.4deg; } .gallery .album figure:nth-child(even) { rotate: 1.4deg; }
.gallery .album figure:hover { rotate: 0deg; }
.gallery .photo-btn { padding: 10px 10px 34px; border-radius: 8px; background: #fff; box-shadow: 0 14px 30px rgba(18, 48, 106, .22); }
.gallery .photo-btn img { border-radius: 4px; }
.gallery .photo-btn figcaption { left: 10px; right: 10px; bottom: 34px; }
.gallery .photo-btn::before { content: ""; position: absolute; left: 50%; top: -8px; width: 70px; height: 22px; translate: -50% 0; background: rgba(255, 178, 30, .6); rotate: -3deg; z-index: 2; }
.tab { border-color: var(--ink); color: var(--ink); }
.tab.is-on { background: var(--ink); color: #fff; }
.hall-nav { background: var(--a); }

/* ---------- Общие разделы ---------- */
.extras { background: var(--tint); }
.team { background: #fff; }
.news { background: var(--tint); }
.docs { background: #fff; }
.club-media { background: var(--a2); color: #fff; }
.club:nth-child(3n+2) .club-media { background: var(--a); }
.club:nth-child(3n+3) .club-media { background: #3dc41a; }
.leader-role { background: var(--ink); color: #fff; }
.contact { position: relative; color: #fff; background: radial-gradient(1.5px 1.5px at 40px 50px, #fff, transparent), radial-gradient(1.2px 1.2px at 140px 120px, #cfe6ff, transparent), radial-gradient(1.8px 1.8px at 210px 40px, #ffe9a3, transparent), linear-gradient(180deg, #3e7ec0 0%, #17407e 45%, #12306a 100%); background-size: 240px 200px, 240px 200px, 240px 200px, auto; }
.contact h2 { color: #fff; } .contact .kicker { color: #ffe27a; } .contact .lede { color: #cfe3ff; }
.contact-phone { color: #ffe27a; }
.contact-list .ico { color: #ffe27a; }
.contact-list a { color: #ffe27a; }
.form { box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.jobs { background: var(--ink); }
.foot { background: #12306a; }
.city { height: 110px; margin-top: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='110' viewBox='0 0 520 110'%3E%3Cg fill='%230c2250'%3E%3Crect x='0' y='60' width='40' height='50'/%3E%3Crect x='46' y='30' width='34' height='80'/%3E%3Crect x='86' y='70' width='50' height='40'/%3E%3Crect x='142' y='44' width='30' height='66'/%3E%3Crect x='178' y='12' width='36' height='98'/%3E%3Crect x='220' y='56' width='44' height='54'/%3E%3Crect x='270' y='34' width='32' height='76'/%3E%3Crect x='308' y='72' width='48' height='38'/%3E%3Crect x='362' y='22' width='34' height='88'/%3E%3Crect x='402' y='50' width='40' height='60'/%3E%3Crect x='448' y='66' width='30' height='44'/%3E%3Crect x='482' y='40' width='38' height='70'/%3E%3C/g%3E%3Cg fill='%23ffe27a' fill-opacity='.7'%3E%3Crect x='54' y='42' width='6' height='6'/%3E%3Crect x='184' y='28' width='6' height='6'/%3E%3Crect x='194' y='48' width='6' height='6'/%3E%3Crect x='370' y='36' width='6' height='6'/%3E%3Crect x='278' y='48' width='6' height='6'/%3E%3Crect x='490' y='56' width='6' height='6'/%3E%3C/g%3E%3C/svg%3E") repeat-x bottom / 520px 110px; }
.foot-ground { background: #0c2250; }
.foot-in { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; padding: 20px 0 30px; }
.foot-in p { margin-right: auto; line-height: 1.4; color: #fff; }
.foot-in small { color: #8fa8d8; font-weight: 600; }
.foot-in a { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; color: #ffe27a; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .chip-menu { display: inline-flex; }
  .chip-call span { display: none; }
  .chip-call { width: 42px; padding: 0; justify-content: center; }
  .menu { position: absolute; top: calc(var(--bar-h) - 4px); left: 12px; right: 12px; display: none; flex-direction: column; gap: 4px; padding: 14px; border-radius: 28px; background: #fff; box-shadow: 0 24px 60px rgba(18, 48, 106, .3); }
  .menu.open { display: flex; }
  .menu a { padding: 13px 18px; font-size: 1.05rem; }
}
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .big-balloon { width: min(100%, 320px); }
  .altimeter { display: none; }
  .gcard:nth-child(n) { margin-top: 0; }
}
@media (max-width: 640px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .gcard { padding-top: 130px; }
  .gballoon { width: 104px; }
}
@media (max-width: 520px) {
  .top-in { gap: 8px; width: calc(100% - 20px); }
  .brand { gap: 8px; min-width: 0; }
  .brand img { width: 40px; height: 40px; }
  .brand-text strong { font-size: 1.05rem; }
  .chips { gap: 6px; }
  .chip { min-height: 40px; padding: 0 12px; font-size: .86rem; }
  .chip-menu, .chip-call { width: 40px; padding: 0; }
}
