/* ============ Детский сад «Люпин» ============ */
:root {
  --violet: #6A4BD8;
  --violet-dark: #4B32A8;
  --violet-soft: #F1ECFF;
  --sky: #2F8FE0;
  --sky-soft: #E6F3FF;
  --sun: #FFC93C;
  --sun-soft: #FFF6D9;
  --pink-soft: #FFE9F0;
  --green-soft: #E6F6E7;
  --orange-soft: #FFEEDD;
  --ink: #2A2340;
  --muted: #6B6680;
  --bg: #FFFDF8;
  --white: #fff;
  --radius: 24px;
  --shadow: 0 10px 30px rgba(74, 50, 168, .10);
  --shadow-lg: 0 20px 50px rgba(74, 50, 168, .18);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll, body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 900; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5.4vw, 58px); }
h2 { font-size: clamp(28px, 3.8vw, 42px); }
h3 { font-size: 20px; font-weight: 800; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section__sub { color: var(--muted); font-size: 18px; margin: 0; }
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--violet-soft);
  color: var(--violet);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--violet); color: #fff; box-shadow: 0 10px 24px rgba(106, 75, 216, .35); }
.btn--primary:hover { background: var(--violet-dark); }
.btn--ghost { background: #fff; color: var(--violet); border-color: #DCD2FB; }
.btn--ghost:hover { border-color: var(--violet); }
.btn--sm { padding: 11px 20px; font-size: 15px; }
.ico { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 248, .9);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(42, 35, 64, .08); }
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__text strong { font-size: 22px; font-weight: 900; color: var(--violet); }
.logo__text small { font-size: 13px; color: var(--muted); font-weight: 700; }

.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: 999px;
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 16px;
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--violet-soft); color: var(--violet); }

.header__actions { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; background: var(--violet-soft); border-radius: 999px; padding: 4px; }
.lang__btn {
  border: 0; background: transparent; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 13px; color: var(--violet);
  padding: 6px 12px; border-radius: 999px; transition: background .2s, color .2s;
}
.lang__btn.is-active { background: var(--violet); color: #fff; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: var(--violet-soft); border-radius: 14px; cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2.5px; background: var(--violet); border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-open .burger span:nth-child(1) { transform: translateY(8.2px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-8.2px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 96px;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(255, 201, 60, .22), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, rgba(106, 75, 216, .12), transparent 70%);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.lead { font-size: 20px; color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { position: relative; }
.hero__photo {
  position: relative; z-index: 2;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  overflow: hidden;
  border: 10px solid #fff;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.petal { position: absolute; border-radius: 50%; z-index: 1; }
.petal--a { width: 140px; height: 140px; background: var(--violet); opacity: .15; left: -30px; bottom: -10px; }
.petal--b { width: 70px; height: 70px; background: var(--sky); opacity: .2; right: -10px; top: 10%; }
.sun { position: absolute; z-index: 3; width: 74px; height: 74px; border-radius: 50%; background: var(--sun); right: 6%; bottom: 4%; box-shadow: 0 0 0 10px rgba(255, 201, 60, .25); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ---------- About ---------- */
.about { background: #fff; border-radius: 48px 48px 0 0; }
.about__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.about__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about__photos img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.about__photos img:nth-child(2) { margin-top: 48px; }
.about__text p { color: var(--muted); font-size: 18px; }
.chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 10px 18px 10px 40px; border-radius: 999px; background: var(--sun-soft);
  font-weight: 800; font-size: 15px; position: relative;
}
.chips li::before {
  content: ''; position: absolute; left: 16px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border-radius: 50%; background: var(--sun); box-shadow: inset 0 0 0 4px #fff3c4;
}

/* ---------- Features ---------- */
.features { background: #fff; padding-top: 24px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  padding: 30px 28px; border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); }
.card__icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px;
  border-radius: 20px; background: #fff; font-size: 32px; box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
}
.card--orange { background: var(--orange-soft); }
.card--pink   { background: var(--pink-soft); }
.card--blue   { background: var(--sky-soft); }
.card--violet { background: var(--violet-soft); }
.card--green  { background: var(--green-soft); }
.card--yellow { background: var(--sun-soft); }

/* ---------- Gallery ---------- */
.gallery__grid { columns: 4 240px; column-gap: 16px; }
.gallery__item {
  display: block; margin: 0 0 16px; break-inside: avoid;
  border-radius: 20px; overflow: hidden; position: relative; background: var(--violet-soft);
}
.gallery__item img { width: 100%; transition: transform .5s; }
.gallery__item::after {
  content: ''; position: absolute; inset: 0; background: rgba(106, 75, 216, 0);
  transition: background .3s;
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:hover::after { background: rgba(106, 75, 216, .12); }

/* ---------- Docs ---------- */
.docs { background: var(--violet-soft); border-radius: 48px; margin: 0 12px; }
.doc {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  background: #fff; border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow);
}
.doc__icon { flex: none; width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); }
.doc__icon svg { width: 40px; height: 40px; }
.doc__body { flex: 1; min-width: 0; }
.doc__body h3 { margin-bottom: 4px; font-size: 19px; }
.doc__meta { margin: 0; color: var(--muted); font-size: 15px; }
.doc__actions { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }

/* ---------- Contacts ---------- */
.contacts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 32px; }
.contact {
  display: flex; flex-direction: column; gap: 4px;
  padding: 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink);
  transition: transform .25s, box-shadow .25s;
}
.contact:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact__icon { font-size: 28px; margin-bottom: 6px; }
.contact__label { font-size: 14px; font-weight: 800; color: var(--violet); text-transform: uppercase; letter-spacing: .04em; }
.contact__value { font-weight: 800; font-size: 17px; word-break: break-word; }

.map { background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.map__links { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 6px 10px 14px; }
.map__links a { font-weight: 700; font-size: 15px; text-decoration: none; }
.map__links a:hover { text-decoration: underline; }
.map__frame { border-radius: 16px; overflow: hidden; min-height: 400px; background: var(--sky-soft); }
.map__frame iframe { display: block; width: 100% !important; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #CFCAE0; padding: 40px 0; margin-top: 40px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.logo--footer .logo__text strong { color: #fff; }
.logo--footer .logo__text small { color: #A8A2BE; }
.footer__copy { margin: 0; }
.footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__links a { color: #fff; text-decoration: none; font-weight: 700; }
.footer__links a:hover { color: var(--sun); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 16, 36, .92);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 100%; max-height: 88vh; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox__close, .lightbox__nav {
  position: absolute; border: 0; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, .14); border-radius: 50%;
  width: 52px; height: 52px; font-size: 32px; line-height: 1;
  display: grid; place-items: center; transition: background .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .28); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sun { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contacts__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .burger { display: flex; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    flex-direction: column; gap: 4px; padding: 24px 20px;
    background: var(--bg);
    opacity: 0; transform: translateY(-12px); visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav a { font-size: 22px; padding: 14px 18px; }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; }
  .header__actions { margin-left: auto; }

  .hero { padding: 28px 0 64px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { max-width: 460px; margin: 0 auto; width: 100%; }
  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .about__photos { max-width: 520px; }
  .doc { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --header-h: 64px; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 32px; }
  .lead { font-size: 18px; }
  .hero__buttons .btn { width: 100%; }
  .about { border-radius: 32px 32px 0 0; }
  .cards { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: 1fr; }
  .gallery__grid { columns: 2; column-gap: 10px; }
  .gallery__item { margin-bottom: 10px; border-radius: 14px; }
  .docs { margin: 0; border-radius: 32px; }
  .doc { padding: 22px; }
  .doc__actions { width: 100%; }
  .doc__actions .btn { flex: 1; }
  .logo__text strong { font-size: 20px; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}

.docs .eyebrow { background: #fff; }
