:root {
  --violet-900: #2a0f5c;
  --violet-800: #3b1a78;
  --violet-700: #5b2a9e;
  --violet-500: #7c4ddb;
  --violet-300: #b9a2f2;
  --violet-100: #f3ecff;
  --pink: #f7b6d9;
  --orange: #ff7a3d;
  --yellow: #ffd54a;
  --blue: #5ec8f2;
  --ink: #241a3a;
  --muted: #6b6185;
  --bg: #fdfbff;
  --white: #fff;
  --radius: 22px;
  --shadow: 0 14px 40px rgba(59, 26, 120, .14);
  --font-head: "Comfortaa", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px;
  border: 0; border-radius: 999px;
  font: 800 16px/1 var(--font-body);
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), #ff4f8b);
  box-shadow: 0 10px 24px rgba(255, 90, 90, .35);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 90, 90, .45); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.btn--ghost {
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.6);
}
.btn--ghost:hover { background: rgba(255,255,255,.22); box-shadow: inset 0 0 0 2px #fff; }
.btn--small { padding: 11px 20px; font-size: 15px; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(91, 42, 158, .08);
}
.header__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__text {
  font: 700 22px/1 var(--font-head); color: var(--violet-700); letter-spacing: .04em;
  display: flex; flex-direction: column;
}
.logo__text small { font: 600 11px/1.4 var(--font-body); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 700; color: var(--ink); opacity: .8; }
.nav a:hover { opacity: 1; color: var(--violet-700); }
.header__phone { font-weight: 800; text-decoration: none; color: var(--violet-700); white-space: nowrap; }

.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 3px; margin: 5px 0; border-radius: 2px; background: var(--violet-700); transition: .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- sky background (stars) ---------- */
.sky {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 8% 18%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 22% 64%, #fff 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 37% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 48% 42%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 63% 22%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 74% 70%, #fff 50%, transparent 51%),
    radial-gradient(3px 3px at 86% 14%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 93% 48%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 14% 86%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 56% 80%, #fff 50%, transparent 51%);
  animation: twinkle 5s ease-in-out infinite alternate;
}
.sky--soft { opacity: .5; }
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 20%, rgba(94, 200, 242, .35), transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(247, 182, 217, .35), transparent 45%),
    linear-gradient(160deg, #2b55c9 0%, var(--violet-700) 45%, #8f3fb8 100%);
  padding: 72px 0 160px;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.15); font-weight: 700; font-size: 14px; letter-spacing: .03em;
}
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); margin-bottom: 14px; text-shadow: 0 4px 24px rgba(0,0,0,.2); }
.accent { color: var(--yellow); white-space: nowrap; }
.acronym { margin: 0 0 18px; font-size: 18px; opacity: .95; }
.acronym b { color: var(--yellow); font-size: 1.25em; }
.lead { font-size: 19px; max-width: 34em; opacity: .92; margin: 0 0 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__facts { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__facts li {
  display: flex; flex-direction: column; min-width: 130px; padding: 14px 18px;
  border-radius: 18px; background: rgba(255,255,255,.12); backdrop-filter: blur(4px);
}
.hero__facts b { font: 700 24px/1.2 var(--font-head); color: var(--yellow); }
.hero__facts span { font-size: 14px; opacity: .85; }

.hero__art { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: center; width: 100%; }
.bubble {
  position: absolute; inset: 10%;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--violet-100) 60%, var(--violet-300));
  box-shadow: 0 30px 80px rgba(20, 0, 60, .45), inset 0 -12px 30px rgba(91, 42, 158, .25);
  animation: bob 6s ease-in-out infinite;
}
.bubble img { width: 62%; height: auto; }
.float {
  position: absolute; display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 18px;
  font: 700 30px/1 var(--font-head);
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
  animation: bob 5s ease-in-out infinite;
}
.float--a { top: 2%; left: 4%; background: #8bd450; color: #2f6b10; transform: rotate(-12deg); animation-delay: -1s; }
.float--b { bottom: 6%; left: 0; background: var(--pink); color: #a3215f; animation-delay: -2s; }
.float--c { top: 6%; right: 2%; background: var(--yellow); color: #8a5a00; animation-delay: -3s; }
.float--d { bottom: 0; right: 10%; background: var(--blue); color: #fff; border-radius: 50%; animation-delay: -4s; }
.float--e { top: 46%; right: -4%; width: auto; padding: 0 14px; height: 48px; font-size: 20px; background: #fff; color: var(--violet-700); }
@keyframes bob { 50% { translate: 0 -12px; } }

.clouds {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 120px; z-index: 1;
  background:
    radial-gradient(70px 55px at 6% 100%, var(--bg) 98%, transparent),
    radial-gradient(110px 80px at 18% 100%, var(--bg) 98%, transparent),
    radial-gradient(90px 60px at 31% 100%, var(--bg) 98%, transparent),
    radial-gradient(140px 90px at 46% 100%, var(--bg) 98%, transparent),
    radial-gradient(90px 65px at 61% 100%, var(--bg) 98%, transparent),
    radial-gradient(130px 85px at 76% 100%, var(--bg) 98%, transparent),
    radial-gradient(100px 70px at 92% 100%, var(--bg) 98%, transparent),
    linear-gradient(transparent 70%, var(--bg) 70%);
}

/* ---------- sections ---------- */
.section { position: relative; padding: 88px 0; }
.section__title { font-size: clamp(28px, 3.6vw, 42px); text-align: center; color: var(--violet-800); }
.section__title--left { text-align: left; }
.section__sub { text-align: center; color: var(--muted); margin: -4px 0 44px; font-size: 18px; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.card { grid-column: span 2; }
.card:nth-child(4) { grid-column: 2 / span 2; }
.card:nth-child(5) { grid-column: 4 / span 2; }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 26px 26px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid rgba(124, 77, 219, .1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(59, 26, 120, .2); }
.card--accent { background: linear-gradient(160deg, #fff, var(--violet-100)); border-color: var(--violet-300); }
.card--accent::before {
  content: "Хит"; position: absolute; top: 18px; right: 18px;
  padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 800;
  background: var(--yellow); color: #7a4c00;
}
.card__icon {
  display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 16px;
  border-radius: 18px; font-size: 30px;
  background: linear-gradient(135deg, var(--violet-100), #ffe9f4);
}
.card h3 { font-size: 21px; color: var(--violet-800); }
.card p { color: var(--muted); margin: 0 0 18px; flex: 1; }
.prices { list-style: none; margin: 0 0 18px; padding: 0; }
.prices li {
  display: flex; align-items: baseline; gap: 6px;
  padding: 10px 0; border-top: 1px dashed rgba(124, 77, 219, .25);
}
.prices span { flex: 1; color: var(--muted); font-size: 15px; }
.prices b { font: 700 22px/1 var(--font-head); color: var(--violet-700); white-space: nowrap; }
.prices small { color: var(--muted); font-size: 13px; white-space: nowrap; }
.card__link { font-weight: 800; color: var(--orange); text-decoration: none; }
.card__link:hover { text-decoration: underline; }

/* ---------- why ---------- */
.section--dark {
  color: var(--white);
  background: linear-gradient(160deg, var(--violet-900), var(--violet-700) 60%, #8f3fb8);
  overflow: hidden;
}
.section--dark .section__title { color: var(--white); margin-bottom: 44px; position: relative; }
.why { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why__item {
  padding: 28px 24px; border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
}
.why__num { font: 700 38px/1 var(--font-head); color: var(--yellow); margin-bottom: 14px; }
.why__item h3 { font-size: 20px; }
.why__item p { margin: 0; opacity: .85; font-size: 16px; }

/* ---------- booking ---------- */
.booking { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.booking__info p { color: var(--muted); font-size: 18px; }
.messengers { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.msg {
  padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 800; color: #fff;
  transition: transform .15s ease;
}
.msg:hover { transform: translateY(-2px); }
.msg--phone { background: var(--violet-700); }
.msg--wa { background: #25d366; }
.msg--tg { background: #2aabee; }

.form {
  display: grid; gap: 16px;
  padding: 34px; border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow);
  border: 1px solid rgba(124, 77, 219, .12);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 700; font-size: 14px; color: var(--violet-800); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px;
  font: inherit; font-size: 16px; color: var(--ink);
  border: 2px solid #e6dcfa; border-radius: 14px; background: #fcfaff;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--violet-500); box-shadow: 0 0 0 4px rgba(124, 77, 219, .15);
}
.field .is-invalid, .field input.is-invalid { border-color: #e5484d; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--violet-700); }
.form__error { margin: 0; padding: 10px 14px; border-radius: 12px; background: #fff0f0; color: #c62828; font-weight: 700; font-size: 15px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form__actions .btn--ghost { color: var(--violet-700); box-shadow: inset 0 0 0 2px var(--violet-300); background: transparent; }
.form__actions .btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--violet-500); background: var(--violet-100); }
.form__note { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- contacts ---------- */
.section--tint { background: linear-gradient(180deg, var(--bg), var(--violet-100)); }
.contacts { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: stretch; }
.contacts__card { padding: 34px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.contacts__list { margin: 0 0 26px; }
.contacts__list dt { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--violet-500); margin-top: 16px; }
.contacts__list dd { margin: 4px 0 0; font-size: 18px; font-weight: 700; }
.contacts__list a { color: var(--violet-700); }
.map { min-height: 380px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--violet-100); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- footer ---------- */
.footer { padding: 28px 0; background: var(--violet-900); color: rgba(255,255,255,.75); font-size: 15px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.footer a { color: #fff; font-weight: 700; text-decoration: none; }

/* floating CTA (mobile only) */
.fab { display: none; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .header__phone { display: none; }
  .why { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card, .card:nth-child(4), .card:nth-child(5) { grid-column: auto; }
  .card:nth-child(5) { grid-column: 1 / -1; }
  .hero__inner, .booking, .contacts { grid-template-columns: 1fr; }
  .hero__art { max-width: 300px; order: -1; }
  .hero { padding-top: 40px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .burger { display: block; }
  .header__cta { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: #fff; box-shadow: 0 20px 30px rgba(59, 26, 120, .15);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav.is-open { max-height: 320px; }
  .nav a { padding: 16px 20px; border-top: 1px solid var(--violet-100); }
  .hero { padding-bottom: 130px; }
  .hero__art { max-width: 240px; }
  .float { width: 48px; height: 48px; font-size: 22px; border-radius: 14px; }
  .float--e { height: 38px; font-size: 15px; }
  .section { padding: 64px 0; }
  .cards { grid-template-columns: 1fr; }
  .card:nth-child(5) { grid-column: auto; }
  .why { grid-template-columns: 1fr; }
  .form, .contacts__card { padding: 24px 20px; }
  .form__row { grid-template-columns: 1fr; }
  .form__actions .btn { flex: 1 1 100%; }

  .fab {
    display: inline-flex; position: fixed; z-index: 60; right: 16px; bottom: 16px;
    padding: 14px 22px; border-radius: 999px;
    font-weight: 800; color: #fff; text-decoration: none;
    background: linear-gradient(135deg, var(--orange), #ff4f8b);
    box-shadow: 0 10px 24px rgba(255, 90, 90, .45);
    transition: opacity .2s, transform .2s;
  }
  .fab.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
}

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

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; padding: 48px 0; }
.notfound__inner { position: relative; z-index: 1; text-align: center; display: grid; justify-items: center; gap: 8px; }
.notfound__inner img { margin-bottom: 12px; }
.notfound .hero__actions { justify-content: center; }
