/* ===== Tokens ===== */
:root {
  --brand-red: #ed2e26;
  --brand-blue: #2d476c;
  --pink: #ed2e26;
  --pink-soft: #ffd9d7;
  --blue: #2d476c;
  --purple: #2d476c;
  --yellow: #ffc24b;
  --green: #4ecb8d;
  --ink: #2a2440;
  --ink-soft: #6b6580;
  --bg: #fffaf5;
  --white: #ffffff;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 18px 40px rgba(155, 140, 255, 0.18);
  --shadow-sm: 0 8px 20px rgba(42, 36, 64, 0.08);
  --container: 1140px;
  --font-head: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 15px 28px; font-size: 1.08rem; }
.btn--block { display: flex; width: 100%; }
.btn--primary {
  background: linear-gradient(135deg, var(--pink), #ff9472);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(255, 111, 145, 0.4);
}
.btn--primary:hover { box-shadow: 0 14px 30px rgba(255, 111, 145, 0.5); }
.btn--ghost {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn--phone {
  background: var(--white);
  color: var(--pink);
  box-shadow: var(--shadow-sm);
  font-size: 1.05rem;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 245, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(155, 140, 255, 0.12);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 96px;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding-block: 8px;
}
.logo__img {
  height: 80px;
  width: auto;
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--pink); }

.header__phone { white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--ink);
  transition: 0.2s;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px 24px;
  border-bottom: 1px solid rgba(155, 140, 255, 0.12);
  background: var(--bg);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
}
.mobile-nav .btn { margin-top: 4px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 80px;
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.5;
  z-index: 0;
}
.hero__blob--1 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--pink-soft), transparent 70%);
  top: -80px; right: -60px;
}
.hero__blob--2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, #cdeeff, transparent 70%);
  bottom: -100px; left: -80px;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: var(--white);
  color: var(--purple);
  font-weight: 700;
  font-size: 1.2rem;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.badge--light { background: rgba(255, 255, 255, 0.25); color: var(--white); }

.hero__title {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  margin-bottom: 18px;
}
.accent { color: var(--pink); }
.hero__lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 28px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--ink);
}
.hero__stats span { font-size: 0.9rem; color: var(--ink-soft); }

.hero__art {
  position: relative;
  height: 380px;
}
.hero__card {
  position: absolute;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.6rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.hero__card--a { top: 10px; left: 30px; background: var(--pink-soft); }
.hero__card--b { top: 60px; right: 20px; background: #cdeeff; animation-delay: 1.5s; }
.hero__card--c { bottom: 30px; left: 70px; background: #e2dcff; animation-delay: 3s; }
.hero__card--d { bottom: 70px; right: 60px; background: #ffe6c2; animation-delay: 4.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-16px) rotate(3deg); }
}

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}
.section__title { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 14px; }
.section__subtitle { color: var(--ink-soft); font-size: 1.1rem; }

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--c1);
}
.card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border-radius: 18px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.card__title { font-size: 1.25rem; margin-bottom: 10px; }
.card p { margin: 0; color: var(--ink-soft); }

/* ===== Подготовка к школе ===== */
.section--accent {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-red));
  color: var(--white);
}
.shkola__inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}
.section--accent .section__title { margin-bottom: 16px; }
.shkola__content p { font-size: 1.1rem; opacity: 0.95; }
.ticks {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  display: grid;
  gap: 12px;
}
.ticks li {
  position: relative;
  padding-left: 34px;
  font-weight: 600;
}
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--purple);
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
}

.price-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.price-card__tag {
  display: inline-block;
  background: var(--pink-soft);
  color: var(--pink);
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.price-card__count { font-family: var(--font-head); font-size: 1.4rem; }
.price-card__price { margin: 10px 0 6px; }
.price-card__now {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--pink);
}
.price-card__old {
  margin-left: 8px;
  color: var(--ink-soft);
  text-decoration: line-through;
  font-size: 1.2rem;
}
.price-card__note { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 20px; }

/* ===== Contacts ===== */
.contacts {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: stretch;
}
.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-item__icon {
  flex: none;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.contact-item h3 { font-size: 1.1rem; margin-bottom: 2px; }
.contact-item p { margin: 0; color: var(--ink-soft); }
.contact-item a { color: var(--pink); text-decoration: none; font-weight: 700; }
.contacts__info .btn { margin-top: auto; }

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

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 0;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.logo--footer .logo__img { height: 64px; border-radius: 14px; padding: 6px; }
.site-footer__addr { margin: 4px 0 0; }
.site-footer__copy { margin: 0; font-size: 0.9rem; opacity: 0.7; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav, .header__phone { display: none; }
  .nav-toggle { display: flex; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .shkola__inner { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
}
@media (min-width: 901px) {
  .mobile-nav { display: none !important; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 56px; }
}
