/* ============================================================
   «Сыр көжегі» балабақшасы — styles
   ============================================================ */

:root {
  --green:  #2fb37a;
  --green-d:#1f8f5f;
  --orange: #ff9f45;
  --yellow: #ffd23f;
  --blue:   #4bc4e8;
  --pink:   #ff6b9d;
  --purple: #8a7bff;

  --ink:    #2c2b3a;
  --muted:  #6d6b7c;
  --bg:     #fffdf7;
  --card:   #ffffff;
  --line:   #efe9dd;

  --wa:     #25d366;

  --radius:  22px;
  --radius-lg: 34px;
  --shadow: 0 18px 40px -20px rgba(44,43,58,.28);
  --shadow-sm: 0 10px 24px -16px rgba(44,43,58,.35);
  --container: 1160px;
  --ease: cubic-bezier(.22,1,.36,1);

  --font-head: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

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

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

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

h1, h2, h3, .logo__text strong { font-family: var(--font-head); font-weight: 600; line-height: 1.15; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head);
  font-weight: 500; font-size: 1.02rem;
  padding: 14px 26px; border-radius: 999px;
  border: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn--sm { padding: 10px 18px; font-size: .95rem; }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 12px 26px -12px var(--wa); }
.btn--wa:hover { box-shadow: 0 18px 30px -12px var(--wa); }
.btn--ig { background: linear-gradient(45deg,#f9ce34,#ee2a7b,#6228d7); color: #fff; box-shadow: 0 12px 26px -14px #ee2a7b; }
.btn--docs { background: linear-gradient(135deg, #4b8bff, #6a5cff); color: #fff; box-shadow: 0 12px 26px -14px #4b8bff; }
.btn--docs:hover { box-shadow: 0 18px 30px -14px #4b8bff; }
.btn--ghost { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { background: #fff; }

/* ============ HEADER ============ */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,253,247,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.header.is-stuck { box-shadow: 0 8px 30px -22px rgba(44,43,58,.6); border-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 20px; height: 74px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark {
  font-size: 1.7rem; width: 46px; height: 46px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #fff2d6, #ffe0ea);
  border-radius: 16px; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease);
}
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.05); }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__text strong { font-size: 1.22rem; color: var(--ink); }
.logo__text small { font-size: .78rem; color: var(--muted); font-weight: 700; }

.nav { display: flex; gap: 6px; margin-left: auto; }
.nav__link {
  font-weight: 700; font-size: .98rem; color: var(--muted);
  padding: 8px 14px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav__link:hover, .nav__link.is-active { color: var(--green-d); background: #eafaf2; }

.header__cta { margin-left: 6px; }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span {
  display: block; width: 26px; height: 3px; margin: 5px 0;
  background: var(--ink); border-radius: 3px; transition: .3s var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ HERO ============ */
.hero { position: relative; padding: 70px 0 40px; overflow: hidden; }
.hero__blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .55; }
.blob--1 { width: 340px; height: 340px; background: #ffe8b0; top: -80px; right: -60px; }
.blob--2 { width: 300px; height: 300px; background: #cdeffb; bottom: -120px; left: -80px; }
.blob--3 { width: 220px; height: 220px; background: #ffd6e6; top: 120px; left: 40%; opacity: .4; }

.floaty { position: absolute; font-size: 2rem; animation: float 6s ease-in-out infinite; }
.floaty--1 { top: 14%; left: 8%; font-size: 1.7rem; animation-delay: .2s; }
.floaty--2 { top: 26%; right: 12%; animation-delay: 1.2s; }
.floaty--3 { top: 8%; left: 44%; font-size: 2.4rem; animation-delay: .6s; }
.floaty--4 { bottom: 30%; right: 6%; font-size: 2.3rem; animation-delay: 1.6s; }
.floaty--5 { bottom: 22%; left: 14%; animation-delay: 1s; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(6deg); } }

.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--green-d); font-weight: 800; font-size: .9rem;
  padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.hero__title { font-size: clamp(2.3rem, 5.4vw, 4rem); margin: 18px 0 16px; color: var(--ink); }
.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 520px; font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 34px; }

.hero__facts { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__facts li {
  background: #fff; border-radius: 18px; padding: 14px 20px;
  box-shadow: var(--shadow-sm); text-align: center; min-width: 96px;
}
.hero__facts strong { font-family: var(--font-head); font-size: 1.8rem; color: var(--orange); display: block; }
.hero__facts span { font-size: .82rem; color: var(--muted); font-weight: 700; }

/* hero art */
.hero__art { position: relative; min-height: 420px; display: grid; place-items: center; }
.hero__photo {
  position: relative; z-index: 1;
  width: min(100%, 440px); aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 8px solid #fff; box-shadow: var(--shadow);
  transform: rotate(-2deg); animation: bob 6s ease-in-out infinite;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
@keyframes bob { 0%,100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-14px); } }
.hero__card {
  position: absolute; z-index: 2; width: 78px; height: 78px; border-radius: 22px;
  display: grid; place-items: center; font-size: 2.2rem;
  background: #fff; box-shadow: var(--shadow); animation: float 5s ease-in-out infinite;
}
.hero__card--sun  { top: 6%; left: 6%; background: #fff6dd; }
.hero__card--book { bottom: 12%; left: 0; background: #e6f7ff; animation-delay: 1s; }
.hero__card--ball { bottom: 6%; right: 8%; background: #ffe9f0; animation-delay: .5s; }

.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; z-index: 1; }
.hero__wave svg { width: 100%; height: 90px; }
.hero__wave path { fill: #fff; }

/* ============ SECTIONS ============ */
.section { padding: 84px 0; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  color: var(--green); background: #eafaf2; padding: 6px 16px; border-radius: 999px;
  font-size: .9rem; margin-bottom: 14px;
}
.section__title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); color: var(--ink); }
.section__sub { color: var(--muted); font-size: 1.08rem; margin-top: 14px; font-weight: 600; }

.about { background: #fff; }

/* ============ FEATURES ============ */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  background: var(--card); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.feature__icon {
  width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center;
  font-size: 1.9rem; margin-bottom: 16px;
}
.feature--green  .feature__icon { background: #e6f8ef; }
.feature--orange .feature__icon { background: #fff1de; }
.feature--blue   .feature__icon { background: #e3f6fd; }
.feature--pink   .feature__icon { background: #ffe7ef; }
.feature h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-weight: 600; font-size: .98rem; }

/* ============ GROUPS ============ */
.groups__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.group-card {
  position: relative; border-radius: var(--radius-lg); padding: 38px 30px 34px;
  color: #fff; overflow: hidden; box-shadow: var(--shadow);
  transition: transform .3s var(--ease);
}
.group-card:hover { transform: translateY(-10px); }
.group-card--1 { background: linear-gradient(150deg, #ffb457, #ff8a5c); }
.group-card--2 { background: linear-gradient(150deg, #3ec7e0, #4b8bff); }
.group-card--3 { background: linear-gradient(150deg, #7d6bff, #b06bff); }
.group-card::after {
  content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,.16); top: -60px; right: -50px;
}
.group-card__emoji {
  font-size: 3rem; width: 84px; height: 84px; border-radius: 24px;
  background: rgba(255,255,255,.22); display: grid; place-items: center;
  margin-bottom: 20px; position: relative;
}
.group-card__name { font-size: 1.7rem; }
.group-card__tag {
  display: inline-block; background: rgba(255,255,255,.25); font-weight: 800;
  padding: 4px 14px; border-radius: 999px; font-size: .82rem; margin: 8px 0 14px;
}
.group-card__age { font-family: var(--font-head); font-size: 1.15rem; opacity: .95; margin-bottom: 10px; }
.group-card__text { font-weight: 600; opacity: .95; position: relative; }

/* ============ SERVICES ============ */
.services { background: #fff; }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 40px; }
.service {
  text-align: center; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 22px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service:hover { transform: translateY(-8px); box-shadow: var(--shadow); background: #fff; }
.service__ic {
  font-size: 2.6rem; display: inline-grid; place-items: center;
  width: 84px; height: 84px; border-radius: 50%; background: #fff;
  box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.service h3 { font-size: 1.25rem; margin-bottom: 6px; }
.service p { color: var(--muted); font-weight: 600; font-size: .95rem; }

.meals {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, #2fb37a, #1f8f5f);
  color: #fff; border-radius: var(--radius-lg); padding: 36px 44px;
  box-shadow: 0 26px 50px -26px rgba(31,143,95,.7);
}
.meals__text h3 { font-size: 1.7rem; margin-bottom: 6px; }
.meals__text p { font-weight: 600; opacity: .95; max-width: 520px; }
.meals__emojis { display: flex; gap: 8px; }
.meals__emojis span {
  font-size: 1.9rem; width: 62px; height: 62px; border-radius: 18px;
  background: rgba(255,255,255,.18); display: grid; place-items: center;
}

/* ============ GALLERY ============ */
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery__item {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius);
  overflow: hidden; padding: 0; border: none; cursor: pointer;
  background: #f2ede2; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.gallery__item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item::after {
  content: "🔍"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 2rem; background: rgba(44,43,58,.28); opacity: 0;
  transition: opacity .3s;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item--wide { grid-column: span 2; aspect-ratio: 8 / 3; }
.gallery__cta { text-align: center; margin-top: 40px; }

/* ============ CONTACTS ============ */
.contacts { background: #fff; }
.contacts__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; }
.contacts__info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px; transition: transform .25s var(--ease), box-shadow .25s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.info-card__ic {
  font-size: 1.5rem; width: 50px; height: 50px; flex: none;
  display: grid; place-items: center; background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm);
}
.info-card strong { display: block; font-family: var(--font-head); }
.info-card p { color: var(--muted); font-weight: 600; font-size: .92rem; }

.hours {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #fff3d6, #ffe0ea);
  border-radius: 18px; padding: 22px 24px;
}
.hours h3 { font-size: 1.2rem; margin-bottom: 12px; }
.hours ul { display: grid; gap: 8px; }
.hours li { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.hours li span { color: var(--muted); }
.hours li b { color: var(--green-d); }
.hours__off b { color: var(--pink); }

.contacts__map {
  border-radius: var(--radius-lg); overflow: hidden; min-height: 420px;
  box-shadow: var(--shadow); border: 6px solid #fff;
}
.contacts__map iframe { display: block; width: 100%; height: 100%; min-height: 420px; }

/* ============ FOOTER ============ */
.footer { background: #262536; color: #cfcedd; padding: 54px 0 0; }
.footer__inner {
  display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 30px; align-items: center;
  padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand strong { color: #fff; font-family: var(--font-head); font-size: 1.15rem; }
.footer__brand p { font-size: .92rem; margin-top: 4px; max-width: 320px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__nav a { font-weight: 700; transition: color .2s; }
.footer__nav a:hover { color: var(--yellow); }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 46px; height: 46px; border-radius: 14px; font-size: 1.3rem;
  display: grid; place-items: center; background: rgba(255,255,255,.08);
  transition: transform .25s var(--ease), background .25s;
}
.footer__social a:hover { transform: translateY(-4px); background: rgba(255,255,255,.16); }
.footer__bottom { text-align: center; padding: 22px 0; font-size: .88rem; color: #9997ab; }

/* ============ FLOATING WA ============ */
.fab-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 62px; height: 62px; border-radius: 50%; background: var(--wa);
  display: grid; place-items: center; font-size: 1.8rem; color: #fff;
  box-shadow: 0 14px 30px -8px rgba(37,211,102,.7);
  animation: pulse 2.4s infinite;
}
.fab-wa:hover { transform: scale(1.08); }
@keyframes pulse {
  0% { box-shadow: 0 14px 30px -8px rgba(37,211,102,.7), 0 0 0 0 rgba(37,211,102,.45); }
  70% { box-shadow: 0 14px 30px -8px rgba(37,211,102,.7), 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 14px 30px -8px rgba(37,211,102,.7), 0 0 0 0 rgba(37,211,102,0); }
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(20,19,30,.86); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: 92vw; max-height: 86vh; border-radius: 18px;
  border: 6px solid #fff; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  transform: scale(.94); transition: transform .3s var(--ease);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__close {
  position: absolute; top: 20px; right: 24px;
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.16); color: #fff; font-size: 1.4rem;
  display: grid; place-items: center; transition: background .25s, transform .25s;
}
.lightbox__close:hover { background: rgba(255,255,255,.3); transform: rotate(90deg); }

/* ============ REVEAL ANIM ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__content { order: 2; }
  .hero__art { order: 1; height: 300px; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__facts { justify-content: center; }
  .features, .services__grid { grid-template-columns: repeat(2, 1fr); }
  .groups__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .contacts__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__brand { flex-direction: column; }
  .footer__nav, .footer__social { justify-content: center; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0;
    background: #fff; flex-direction: column; gap: 4px; padding: 16px 20px 24px;
    box-shadow: 0 20px 40px -20px rgba(44,43,58,.4);
    transform: translateY(-120%); transition: transform .35s var(--ease);
    margin-left: 0;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: 12px 14px; }
  .header__cta { display: none; }
  .burger { display: block; margin-left: auto; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .meals { padding: 28px 26px; text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
  .features, .services__grid, .contacts__info, .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: auto; aspect-ratio: 4 / 3; }
  .hero__facts li { min-width: 84px; padding: 10px 14px; }
  .logo__text small { display: none; }
}

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