/* ============================================================
   Sirius — инклюзивті мектепке дейінгі ұйым
   ============================================================ */

:root {
  /* Негізгі түстер */
  --purple: #6c5ce7;
  --purple-d: #4b3ba9;
  --indigo: #3b2a7a;
  --night:  #241a52;
  --sun:    #ffc93c;
  --pink:   #ff6b9d;
  --teal:   #2ec4b6;
  --sky:    #4aa8ff;
  --coral:  #ff8c5a;

  --bg:      #fbf7ff;
  --bg-2:    #f2ecff;
  --card:    #ffffff;
  --text:    #2b2350;
  --text-2:  #6a6486;
  --line:    #ece5fb;

  --radius:   26px;
  --radius-sm:16px;
  --shadow:   0 18px 45px -20px rgba(60, 40, 120, .35);
  --shadow-sm:0 10px 26px -14px rgba(60, 40, 120, .3);
  --maxw: 1180px;
  --font: "Nunito", system-ui, -apple-system, sans-serif;
  --font-head: "Baloo 2", "Nunito", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--purple);
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px;
  background: var(--btn-bg);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  border: none; border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 12px 24px -12px var(--btn-bg);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -12px var(--btn-bg); }
.btn:active { transform: translateY(-1px); }
.btn--sm { padding: 10px 20px; font-size: .92rem; }
.btn--wa { --btn-bg: #25d366; }
.btn--ig { --btn-bg: #e1306c; }
.btn--ghost {
  background: transparent; color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.55);
}
.btn--ghost:hover { background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 2px #fff; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 16px 0;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.header.scrolled {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px -20px rgba(60,40,120,.5);
  padding: 10px 0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__img {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 6px 16px -8px rgba(0,0,0,.55);
}
.logo__text {
  font-family: var(--font-head); font-weight: 800; font-size: 1.4rem;
  line-height: 1; color: #fff; display: flex; flex-direction: column; gap: 2px;
}
.logo__text small { font-family: var(--font); font-weight: 600; font-size: .62rem; letter-spacing: .5px; opacity: .8; text-transform: uppercase; }
.header.scrolled .logo__text { color: var(--text); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  padding: 9px 15px; border-radius: 100px;
  font-weight: 700; font-size: .98rem; color: rgba(255,255,255,.9);
  transition: background .2s, color .2s;
}
.nav__link:hover { background: rgba(255,255,255,.16); }
.header.scrolled .nav__link { color: var(--text-2); }
.header.scrolled .nav__link:hover { background: var(--bg-2); color: var(--purple); }
.nav__cta { margin-left: 8px; color: #fff !important; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 26px; height: 3px; background: #fff; border-radius: 3px; transition: .3s; }
.header.scrolled .burger span { background: var(--text); }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  padding: 160px 0 140px;
  background:
    radial-gradient(1200px 600px at 80% -10%, #6c5ce7 0%, transparent 55%),
    radial-gradient(900px 500px at 5% 20%, #7b52c9 0%, transparent 50%),
    linear-gradient(160deg, var(--indigo), var(--night) 70%);
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.hero__stars { position: absolute; inset: 0; z-index: -2; }
.hero__stars .star {
  position: absolute; background: #fff; border-radius: 50%;
  animation: twinkle var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes twinkle { 0%,100% { opacity: .15; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }

.hero__planets { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.planet { position: absolute; font-size: 2.6rem; filter: drop-shadow(0 8px 14px rgba(0,0,0,.25)); animation: float 7s ease-in-out infinite; }
.planet--1 { top: 16%; left: 8%; font-size: 3.4rem; animation-delay: .2s; }
.planet--2 { top: 24%; right: 10%; animation-delay: 1.2s; }
.planet--3 { bottom: 24%; left: 12%; font-size: 3rem; animation-delay: .6s; }
.planet--4 { bottom: 30%; right: 9%; font-size: 2.8rem; animation-delay: 1.8s; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-22px) rotate(4deg); } }

.hero__inner { position: relative; max-width: 860px; margin-inline: auto; }
.hero__badge {
  display: inline-block; padding: 9px 20px; margin-bottom: 26px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px; font-weight: 700; font-size: .95rem;
  backdrop-filter: blur(4px);
}
.hero__title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.1rem, 5.2vw, 3.7rem); line-height: 1.12;
  margin-bottom: 22px; text-wrap: balance;
}
.hero__brand {
  background: linear-gradient(100deg, var(--sun), var(--coral));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 1.15em; letter-spacing: 1px;
}
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,.85);
  max-width: 640px; margin: 0 auto 34px; text-wrap: balance;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 54px; }

.hero__facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  max-width: 680px; margin-inline: auto;
}
.hero__facts li {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-sm); padding: 18px 10px; backdrop-filter: blur(6px);
}
.hero__facts strong { display: block; font-family: var(--font-head); font-size: 1.9rem; color: var(--sun); line-height: 1; }
.hero__facts span { font-size: .85rem; color: rgba(255,255,255,.8); }

.hero__wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 1; }
.hero__wave svg { width: 100%; height: 90px; }
.hero__wave path { fill: var(--bg); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block; margin-bottom: 12px; padding: 6px 16px;
  background: var(--bg-2); color: var(--purple);
  border-radius: 100px; font-weight: 800; font-size: .82rem;
  text-transform: uppercase; letter-spacing: 1px;
}
.section__title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.15;
  margin-bottom: 16px; text-wrap: balance;
}
.section__lead { color: var(--text-2); font-size: 1.08rem; text-wrap: balance; }

/* ---------- About / Features ---------- */
.about { background: var(--bg); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  background: var(--card); border-radius: var(--radius); padding: 32px 26px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative; overflow: hidden;
}
.feature::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: var(--c);
}
.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.feature__icon {
  display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 18px;
  font-size: 1.9rem; border-radius: 18px;
  background: color-mix(in srgb, var(--c) 16%, white);
}
.feature h3 { font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: .97rem; }

/* ---------- Groups ---------- */
.groups { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.group-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.group {
  position: relative; overflow: hidden;
  background: var(--card); border-radius: var(--radius); padding: 34px 30px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.group::after {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: color-mix(in srgb, var(--c) 16%, white);
  z-index: 0;
}
.group:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.group > * { position: relative; z-index: 1; }
.group__emoji { font-size: 2.8rem; margin-bottom: 14px; }
.group__tag {
  display: inline-block; margin-bottom: 10px; padding: 5px 13px;
  background: color-mix(in srgb, var(--c) 18%, white);
  color: color-mix(in srgb, var(--c) 70%, black);
  border-radius: 100px; font-weight: 800; font-size: .78rem;
}
.group h3 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 8px; }
.group p { color: var(--text-2); font-size: .97rem; }

.group--cta {
  background: linear-gradient(150deg, var(--purple), var(--purple-d));
  color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  justify-content: center;
}
.group--cta::after { background: rgba(255,255,255,.12); }
.group--cta h3, .group--cta p { color: #fff; }
.group--cta p { opacity: .9; margin-bottom: 12px; }

/* ---------- Services ---------- */
.services { background: var(--bg-2); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  background: var(--card); border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: flex-start;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service__icon {
  width: 60px; height: 60px; display: grid; place-items: center;
  font-size: 1.8rem; margin-bottom: 16px; border-radius: 18px;
  background: linear-gradient(140deg, var(--bg-2), #fff);
  box-shadow: inset 0 0 0 1px var(--line);
}
.service h3 { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 8px; }
.service p { color: var(--text-2); font-size: .97rem; }

/* ---------- Gallery ---------- */
.gallery { background: var(--bg); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px; gap: 18px;
}
.gallery__item {
  border-radius: var(--radius-sm); overflow: hidden;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-family: var(--font-head);
  background: linear-gradient(145deg, var(--purple), var(--indigo));
  position: relative;
}
.gallery__item:nth-child(3n+1) { background: linear-gradient(145deg, var(--pink), var(--coral)); }
.gallery__item:nth-child(3n+2) { background: linear-gradient(145deg, var(--teal), var(--sky)); }
.gallery__item:nth-child(4n)   { grid-row: span 1; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item span { opacity: .9; }
.gallery__cta { text-align: center; margin-top: 34px; }

/* ---------- Contacts ---------- */
.contacts { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.contacts__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 34px; align-items: stretch; }
.contact-list { display: flex; flex-direction: column; gap: 16px; }
.contact-list li {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.contact__ic {
  flex-shrink: 0; width: 52px; height: 52px; display: grid; place-items: center;
  font-size: 1.5rem; border-radius: 15px; background: var(--bg-2);
}
.contact-list b { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.contact-list a { color: var(--purple); font-weight: 700; }
.contact-list a:hover { text-decoration: underline; }
.contact-list span { color: var(--text-2); }

.contacts__socials { display: flex; gap: 12px; margin-top: 22px; }
.social {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 15px; color: #fff; transition: transform .2s;
}
.social:hover { transform: translateY(-4px); }
.social--wa { background: #25d366; }
.social--ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }

.contacts__map {
  border-radius: var(--radius); overflow: hidden; min-height: 380px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.contacts__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: #fff; padding: 54px 0 30px; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.logo--footer .logo__text { color: #fff; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.footer__nav a { color: rgba(255,255,255,.8); font-weight: 700; }
.footer__nav a:hover { color: var(--sun); }
.footer__copy { color: rgba(255,255,255,.55); font-size: .9rem; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); width: 100%; max-width: 700px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: #25d366; box-shadow: 0 12px 26px -8px rgba(37,211,102,.7);
  animation: pulse 2.4s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes pulse { 0%,100% { box-shadow: 0 12px 26px -8px rgba(37,211,102,.7), 0 0 0 0 rgba(37,211,102,.5); } 50% { box-shadow: 0 12px 26px -8px rgba(37,211,102,.7), 0 0 0 14px rgba(37,211,102,0); } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .features, .service-grid, .group-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts__grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px;
    background: #fff; padding: 90px 22px 30px;
    box-shadow: -20px 0 60px -20px rgba(0,0,0,.3);
    transform: translateX(100%); transition: transform .35s ease; z-index: 99;
  }
  .nav.open { transform: none; }
  .nav__link { color: var(--text) !important; padding: 13px 16px; }
  .nav__link:hover { background: var(--bg-2); }
  .nav__cta { margin: 10px 0 0; text-align: center; justify-content: center; }
  .burger { display: flex; z-index: 100; }
  .header.scrolled .burger span, .nav.open ~ .burger span { background: var(--text); }
  .section { padding: 74px 0; }
  .hero { padding: 140px 0 110px; }
}

@media (max-width: 560px) {
  .features, .service-grid, .group-grid, .gallery-grid { grid-template-columns: 1fr; }
  .hero__facts { grid-template-columns: repeat(2, 1fr); }
  .planet { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
