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

@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; }
@font-face { font-family: "Golos Text"; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/golos-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: "Golos Text"; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/golos-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/golos-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; }

/* цвета темы плавно переливаются при смене */
@property --a { syntax: "<color>"; inherits: true; initial-value: #14a0dc; }
@property --a2 { syntax: "<color>"; inherits: true; initial-value: #ff8aa8; }
@property --tint { syntax: "<color>"; inherits: true; initial-value: #e6f6ff; }
:root { transition: --a .7s ease, --a2 .7s ease, --tint .7s ease; }
:root, [data-theme="blue"] { --a: #14a0dc; --a2: #ff8aa8; --tint: #e6f6ff; --a-ink: #fff; --a-deep: #0b6c96; }
[data-theme="orange"] { --a: #f58220; --a2: #14a0dc; --tint: #fff0e0; --a-ink: #fff; --a-deep: #b25200; }
[data-theme="green"] { --a: #2fc414; --a2: #ffb21e; --tint: #e8fbe3; --a-ink: #08330a; --a-deep: #167a05; }
[data-theme="red"] { --a: #e8281e; --a2: #ffb21e; --tint: #ffe9e6; --a-ink: #fff; --a-deep: #a3160e; }
[data-theme="violet"] { --a: #8a5cf0; --a2: #ff8aa8; --tint: #f0eaff; --a-ink: #fff; --a-deep: #5b34b8; }
:root { --bg: #fffdf8; --ink: #2d2550; --soft: #6b6490; --line: rgba(45, 37, 80, .14); --card: #fff; --dark: #2d2550; --r: 30px; --shadow: 0 16px 40px rgba(45, 37, 80, .12);
  --head: "Nunito", system-ui, sans-serif; --body: "Golos Text", system-ui, sans-serif; --bar-h: 72px; }
h2, h3 { font-weight: 800; letter-spacing: 0; }
.kicker { color: var(--a-deep); }
.kicker::before { content: ""; width: 26px; height: 8px; border-radius: 8px; background: var(--a); }
.btn { font-weight: 700; }
.btn-main { color: var(--a-ink); }
.btn-line { color: var(--ink); border-color: var(--a); }

/* ---------- Шапка ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(255, 253, 248, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: box-shadow .3s; }
.top.is-stuck { box-shadow: 0 8px 28px rgba(45, 37, 80, .12); }
.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: rotate(360deg); }
.brand-text strong { font-family: var(--head); font-weight: 700; font-size: 1.3rem; 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: 600; font-size: .95rem; text-decoration: none; transition: background .2s, color .2s; }
.menu a:hover { background: var(--tint); }
.menu a.is-active { background: var(--a); color: var(--a-ink); }
.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(--a); border-radius: 999px; background: transparent; color: var(--ink); font-weight: 700; font-size: .9rem; text-decoration: none; transition: background .2s, color .2s; }
.chip:hover { background: var(--a); color: var(--a-ink); }
.chip-call { background: var(--a); color: var(--a-ink); }
.chip-menu { display: none; justify-content: center; width: 42px; padding: 0; cursor: pointer; }

/* ---------- Первый экран: логотип «красится» ---------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--bar-h) + 30px) 0 70px; overflow: hidden; background: var(--bg); }
.blobs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; display: block; background: var(--tint); }
.b1 { left: -8%; top: 4%; width: 52vw; height: 52vw; max-width: 760px; max-height: 760px; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
.b2 { right: -10%; bottom: -12%; width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; background: color-mix(in srgb, var(--a) 22%, transparent); border-radius: 58% 42% 38% 62% / 52% 62% 38% 48%; }
.b3 { right: 12%; top: 8%; width: 14vw; height: 14vw; max-width: 200px; max-height: 200px; background: color-mix(in srgb, var(--a2) 55%, transparent); border-radius: 50% 50% 38% 62% / 55% 40% 60% 45%; }
.js .b1 { animation: morph 14s ease-in-out infinite alternate; }
.js .b2 { animation: morph 18s ease-in-out -4s infinite alternate-reverse; }
.js .b3 { animation: morph 9s ease-in-out -2s infinite alternate, float 7s ease-in-out infinite; }
@keyframes morph { 0% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: rotate(0); } 50% { border-radius: 63% 37% 45% 55% / 58% 62% 38% 42%; } 100% { border-radius: 38% 62% 40% 60% / 60% 38% 62% 40%; transform: rotate(14deg); } }
@keyframes float { 50% { translate: 0 -22px; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(24px, 5vw, 72px); }
.hero-logo { justify-self: center; width: min(100%, 520px, 72svh); }
.hero-text { display: grid; justify-items: start; gap: 18px; }
.eyebrow { display: inline-flex; align-items: center; padding: 6px 18px; border-radius: 999px; background: var(--tint); color: var(--a-deep); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
h1 { font-family: var(--head); font-weight: 800; font-size: clamp(2.5rem, 1rem + 5vw, 5rem); line-height: 1.08; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; background: linear-gradient(transparent 82%, color-mix(in srgb, var(--a) 40%, transparent) 82% 94%, transparent 94%); background-repeat: no-repeat; width: fit-content; max-width: 100%; }
.hero-lead { max-width: 46ch; color: var(--soft); font-size: 1.14rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.palette { display: grid; gap: 8px; margin-top: 8px; padding: 14px 20px; border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.palette-label { font-family: var(--head); font-weight: 700; color: var(--ink); }
.swatches { display: flex; gap: 12px; }
.swatch { width: 40px; height: 40px; padding: 0; border: 4px solid #fff; border-radius: 50%; background: var(--sw); cursor: pointer; box-shadow: 0 0 0 2px color-mix(in srgb, var(--sw) 60%, transparent), 0 6px 12px rgba(0, 0, 0, .15); transition: transform .3s cubic-bezier(.3, 1.8, .5, 1), box-shadow .2s; }
.swatch:hover { transform: translateY(-4px) scale(1.12); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink), 0 6px 12px rgba(0, 0, 0, .2); transform: scale(1.16); }
.palette small { color: var(--soft); font-size: .84rem; }

/* ---------- Логотип из слоёв: «краска» ---------- */
.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(45, 37, 80, .18); }
.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% 70%; cursor: pointer; user-select: none; -webkit-user-drag: none; transition: transform .35s cubic-bezier(.3, 1.8, .5, 1); }
.rl-l:hover { transform: translateY(-5%) rotate(-5deg) scale(1.05); }
.js .rl-ring { animation: ring-spin 14s linear infinite; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
.js .rl-paint .rl-l { animation: paint-in .9s cubic-bezier(.2, 1.3, .4, 1) calc(.2s + var(--i) * .14s) backwards; }
.js .rl-paint .rl-l:not(.rl-tag) { animation: paint-in .9s cubic-bezier(.2, 1.3, .4, 1) calc(.2s + var(--i) * .14s) backwards, hue 10s linear calc(1.6s + var(--i) * -1.1s) infinite; }
@keyframes paint-in { from { clip-path: circle(0% at 50% 50%); transform: scale(.3) rotate(-30deg); opacity: 0; } to { clip-path: circle(90% at 50% 50%); } }
@keyframes hue { to { filter: hue-rotate(360deg); } }
.js .rl-paint .rl-ring { animation: ring-in 1.2s cubic-bezier(.2, 1.2, .4, 1) backwards, ring-spin 14s linear 1.2s infinite; }
@keyframes ring-in { from { transform: scale(.5) rotate(-120deg); opacity: 0; } }

/* ---------- О нас: коллаж-полароиды ---------- */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); 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: 600; }
.mini-contacts li { display: flex; gap: 10px; align-items: center; }
.mini-contacts .ico { color: var(--a); }
.mini-contacts a { color: var(--ink); }
.collage { position: relative; width: min(100%, 540px); aspect-ratio: 1.02; margin-inline: auto; }
.polaroid { position: absolute; margin: 0; padding: 10px 10px 30px; background: #fff; border-radius: 10px; box-shadow: 0 16px 34px rgba(45, 37, 80, .22); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), z-index 0s; }
.polaroid img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; border-radius: 4px; }
.polaroid.p0 { left: 0; top: 0; width: 56%; rotate: -5deg; }
.polaroid.p1 { right: 0; top: 14%; width: 52%; rotate: 4deg; z-index: 2; }
.polaroid.p2 { left: 17%; bottom: 0; width: 54%; rotate: -2deg; z-index: 3; }
.polaroid:hover { transform: translateY(-10px) rotate(-3deg) scale(1.04); z-index: 5; }
.tape { position: absolute; left: 50%; top: -12px; width: 84px; height: 26px; translate: -50% 0; rotate: -3deg; background: color-mix(in srgb, var(--a2) 55%, #fff); opacity: .85; }

/* ---------- Группы: наклейки Star и Sun ---------- */
.groups { background: var(--tint); }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(24px, 4vw, 48px); }
.duo-card { --k: #8a5cf0; --kt: #f0eaff; position: relative; display: flex; flex-direction: column; border-radius: 44px; background: #fff; overflow: visible; box-shadow: 0 22px 50px rgba(45, 37, 80, .16); transition: transform .4s cubic-bezier(.3, 1.5, .5, 1); }
.duo-card.kind-sun { --k: #f5a000; --kt: #fff4c7; }
.duo-card:hover { transform: translateY(-8px); }
.duo-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 44px 44px 0 0; overflow: hidden; background: var(--kt); }
.duo-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.duo-card:hover .duo-photo img { transform: scale(1.06); }
.sticker { position: absolute; right: 22px; top: -30px; width: clamp(84px, 18%, 120px); height: auto; filter: drop-shadow(0 10px 14px rgba(45, 37, 80, .3)); rotate: 10deg; }
.js .sticker-sun .st-rays { transform-origin: 50px 50px; animation: spin-slow 16s linear infinite; }
.js .sticker-star .st-body { transform-origin: 50px 50px; animation: wobble 4s ease-in-out infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes wobble { 0%, 100% { transform: rotate(-6deg) scale(1); } 50% { transform: rotate(8deg) scale(1.07); } }
.duo-body { display: grid; gap: 8px; padding: 26px 32px 32px; background: linear-gradient(180deg, #fff, var(--kt)); border-radius: 0 0 44px 44px; flex: 1; align-content: start; }
.duo-body h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--ink); }
.duo-body h3 small { font-size: .5em; color: var(--soft); font-weight: 600; }
.duo-motto { font-weight: 700; color: var(--k); filter: brightness(.8); }
.duo-body p { color: var(--soft); }
.t-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; justify-self: start; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--k); color: #fff; font-weight: 700; text-decoration: none; transition: transform .15s; }
.kind-sun .t-link { color: #3a2400; }
.t-link:hover { transform: translateY(-3px); }

/* ---------- Мозаика фото ---------- */
.gallery { background: var(--bg); }
.gallery .album { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 170px; gap: 14px; width: min(1160px, 100% - 40px); margin-inline: auto; padding: 20px 0 0; overflow: visible; cursor: default; scroll-snap-type: none; }
.gallery .album figure { height: 100%; margin: 0; }
.gallery .album figure:hover { transform: scale(1.02); }
.gallery .album figure:nth-child(1), .gallery .album figure:nth-child(8) { grid-column: span 2; grid-row: span 2; }
.gallery .album figure:nth-child(4) { grid-row: span 2; }
.gallery .album figure:nth-child(6) { grid-column: span 2; }
.gallery .photo-btn { width: 100%; height: 100%; border-radius: 28px; }
.gallery .photo-btn img { width: 100%; height: 100%; max-width: none; }
.gallery .hall-nav, .gallery .hall-hint { display: none; }
.tab { border-color: var(--a); color: var(--ink); }
.tab.is-on { color: var(--a-ink); }

/* ---------- Общие разделы ---------- */
.extras { background: var(--tint); }
.team { background: var(--bg); }
.news { background: var(--tint); }
.docs { background: var(--bg); }
.club-media { background: var(--a); color: var(--a-ink); }
.club:nth-child(3n+2) .club-media { background: var(--a2); color: #fff; }
.club:nth-child(3n+3) .club-media { background: #8a5cf0; color: #fff; }
.leader { box-shadow: var(--shadow); }
.leader-photo { border-radius: 36px 36px 36px 8px; }
.leader-role { color: var(--a-ink); }
.jobs { background: var(--ink); }
.contact { position: relative; color: #fff; background: linear-gradient(135deg, var(--a), color-mix(in srgb, var(--a) 62%, #1a0f40)); overflow: hidden; }
.contact::before { content: ""; position: absolute; right: -10%; top: -30%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; border-radius: 50%; background: color-mix(in srgb, var(--a2) 35%, transparent); }
.contact > * { position: relative; }
.contact h2 { color: #fff; } .contact .kicker { color: #fff; } .contact .kicker::before { background: #fff; } .contact .lede { color: rgba(255, 255, 255, .88); }
.contact-phone { color: #fff; }
.contact-list .ico { color: #fff; }
.contact-list a { color: #fff; }
.form { box-shadow: 0 30px 70px rgba(0, 0, 0, .25); }
.foot { background: #fff; }
.stripe { height: 10px; background: linear-gradient(90deg, #e8281e, #f58220, #ffd54a, #2fc414, #14a0dc, #8a5cf0); }
.foot-in { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; padding: 24px 0 30px; }
.foot-in p { margin-right: auto; line-height: 1.4; }
.foot-in small { color: var(--soft); }
.foot-in a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--a-deep); }

/* ---------- Адаптив ---------- */
@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(45, 37, 80, .28); }
  .menu.open { display: flex; }
  .menu a { padding: 13px 18px; font-size: 1.05rem; }
}
@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-logo { width: min(100%, 380px); }
  .hero-text { justify-items: center; text-align: center; }
  .hero-actions { justify-content: center; }
  .palette { justify-items: center; }
  .about-text { justify-items: start; }
  .gallery .album { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
}
@media (max-width: 640px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .duo-body { padding: 22px 22px 28px; }
  .collage { aspect-ratio: .95; }
}
@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.1rem; }
  .chips { gap: 6px; }
  .chip { min-height: 40px; padding: 0 12px; font-size: .86rem; }
  .chip-menu, .chip-call { width: 40px; padding: 0; }
}
