/* =========================================================
   ЧУ «Гвоздичка» — v2
   Дизайн-система
   ========================================================= */

:root {
  /* Палитра: гвоздика (тёплый кармин) + свежая зелень + крем */
  --rose-50: #fff1f5;
  --rose-100: #ffe1ea;
  --rose-200: #ffc3d5;
  --rose-400: #f2679a;
  --rose-500: #e0447a;
  --rose-600: #c42d63;
  --rose-700: #9b1f4b;

  --leaf-50: #eefaf5;
  --leaf-100: #d6f3e7;
  --leaf-500: #2fa588;
  --leaf-600: #1f8a70;

  --amber-100: #fff0d6;
  --amber-400: #ffb547;
  --amber-500: #f79009;

  --sky-100: #e2f2ff;
  --sky-500: #3aa0e8;

  --ink: #2a1f2b;
  --ink-2: #4d3f50;
  --muted: #7b6c7f;
  --line: #f0e4ea;
  --line-2: #e7d9e1;

  --cream: #fffaf7;
  --cream-2: #fff4ef;
  --surface: #ffffff;

  --shadow-sm: 0 2px 8px rgba(90, 40, 60, 0.05);
  --shadow: 0 10px 30px -12px rgba(90, 40, 60, 0.18);
  --shadow-lg: 0 28px 70px -28px rgba(90, 40, 60, 0.34);

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

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

  --container: 1200px;
  --header-h: 74px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-2);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--rose-400);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--rose-200);
  color: var(--ink);
}

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

.section {
  padding: clamp(56px, 8vw, 108px) 0;
  position: relative;
}

.section--tint {
  background: linear-gradient(180deg, var(--cream-2), var(--cream));
}

.section--rose {
  background:
    radial-gradient(60% 90% at 15% 0%, #fff0f5 0%, transparent 60%),
    linear-gradient(180deg, #fff7f9, var(--cream));
}

.grid {
  display: grid;
  gap: 20px;
}

/* ---------- Заголовки секций ---------- */
.sec-head {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.sec-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose-600);
  background: var(--rose-50);
  border: 1px solid var(--rose-100);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose-500);
}

.sec-title {
  font-size: clamp(1.75rem, 3.6vw, 2.9rem);
}

.sec-sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 15px 26px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 0.18s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.btn svg {
  width: 19px;
  height: 19px;
  flex: none;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), #ff7a63);
  box-shadow: 0 14px 30px -12px rgba(224, 68, 122, 0.75);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -14px rgba(224, 68, 122, 0.85);
}

.btn--ghost {
  color: var(--ink);
  background: #fff;
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--rose-200);
  color: var(--rose-600);
}

.btn--leaf {
  color: #fff;
  background: linear-gradient(135deg, var(--leaf-500), #45c0a0);
  box-shadow: 0 14px 30px -14px rgba(47, 165, 136, 0.8);
}

.btn--leaf:hover {
  transform: translateY(-2px);
}

.btn--sm {
  padding: 11px 18px;
  font-size: 0.92rem;
}

.btn--block {
  width: 100%;
}

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 250, 247, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(90, 40, 60, 0.5);
}

.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--rose-500), #ff8a5b);
  box-shadow: 0 10px 22px -10px rgba(224, 68, 122, 0.9);
  flex: none;
}

.brand__mark svg {
  width: 26px;
  height: 26px;
  color: #fff;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.14rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.brand__sub {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.nav a {
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink-2);
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.nav a:hover,
.nav a.is-active {
  background: var(--rose-50);
  color: var(--rose-600);
}

.header__side {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.header__phone svg {
  width: 18px;
  height: 18px;
  color: var(--rose-500);
}

.header__phone:hover {
  color: var(--rose-600);
}

/* Переключатель языка */
.lang {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px;
  flex: none;
  box-shadow: var(--shadow-sm);
}

.lang button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 7px 12px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--muted);
  transition: 0.2s ease;
}

.lang button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), #ff7a63);
  box-shadow: 0 6px 14px -6px rgba(224, 68, 122, 0.9);
}

/* Бургер */
.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: #fff;
  place-items: center;
  flex: none;
  box-shadow: var(--shadow-sm);
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: 0.25s ease;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.25s ease;
}

.burger span::before {
  top: -6px;
}

.burger span::after {
  top: 6px;
}

body.nav-open .burger span {
  background: transparent;
}

body.nav-open .burger span::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .burger span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(32px, 5vw, 66px) 0 clamp(48px, 6vw, 80px);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  width: 460px;
  height: 460px;
  background: rgba(255, 193, 214, 0.55);
  top: -160px;
  left: -120px;
}

.hero::after {
  width: 420px;
  height: 420px;
  background: rgba(214, 243, 231, 0.75);
  bottom: -180px;
  right: -100px;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--leaf-100);
  color: var(--leaf-600);
  border-radius: 999px;
  padding: 8px 16px 8px 10px;
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.hero__tag i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf-500);
  box-shadow: 0 0 0 4px rgba(47, 165, 136, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 8px rgba(47, 165, 136, 0);
  }
}

.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(2.1rem, 5.2vw, 3.9rem);
  letter-spacing: -0.035em;
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--rose-500), #ff8a5b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__slogan {
  margin-top: 22px;
  font-family: var(--font-head);
  font-size: clamp(1.02rem, 1.7vw, 1.24rem);
  font-weight: 700;
  color: var(--ink);
  padding-left: 18px;
  border-left: 4px solid var(--rose-200);
  line-height: 1.45;
}

.hero__lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  max-width: 560px;
}

.hero__cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__facts {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 520px;
}

.fact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.fact__num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--rose-600);
  line-height: 1.1;
}

.fact__label {
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

/* Фото-блок героя */
.hero__media {
  position: relative;
}

.hero__photo {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.4;
  background: var(--rose-50);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__badge {
  position: absolute;
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 13px 17px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
}

.hero__badge svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.hero__badge b {
  font-family: var(--font-head);
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.2;
}

.hero__badge span {
  font-size: 0.78rem;
  color: var(--muted);
}

.hero__badge--1 {
  left: -14px;
  bottom: 60px;
  animation: float 6s ease-in-out infinite;
}

.hero__badge--2 {
  right: -10px;
  top: 40px;
  animation: float 6s ease-in-out infinite 1.6s;
}

@keyframes float {
  50% {
    transform: translateY(-11px);
  }
}

/* ---------- Полоса-маркиз ---------- */
.marquee {
  background: linear-gradient(135deg, var(--rose-500), #ff7a63);
  color: #fff;
  padding: 13px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  gap: 46px;
  animation: slide 34s linear infinite;
  will-change: transform;
}

.marquee__track span {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 46px;
}

.marquee__track span::after {
  content: "✿";
  opacity: 0.65;
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Карточки-преимущества ---------- */
.cards {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--rose-100);
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--rose-50);
  color: var(--rose-600);
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

.card__icon--leaf {
  background: var(--leaf-50);
  color: var(--leaf-600);
}

.card__icon--amber {
  background: var(--amber-100);
  color: #b5730a;
}

.card__icon--sky {
  background: var(--sky-100);
  color: #1f6fa8;
}

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- О садике / директор ---------- */
.about {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.about__text > * + * {
  margin-top: 16px;
}

.about__text p {
  color: var(--ink-2);
}

.checklist {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.98rem;
}

.checklist li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--leaf-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f8a70' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

.director {
  background: linear-gradient(160deg, #fff, var(--rose-50));
  border: 1px solid var(--rose-100);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.director__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border-radius: var(--r-lg);
  margin-bottom: 20px;
}

.director__quote {
  font-family: var(--font-head);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
  position: relative;
  padding-top: 26px;
}

.director__quote::before {
  content: "“";
  position: absolute;
  top: -14px;
  left: -4px;
  font-size: 4.2rem;
  line-height: 1;
  color: var(--rose-200);
  font-family: Georgia, serif;
}

.director__name {
  margin-top: 18px;
  font-family: var(--font-head);
  font-weight: 900;
  color: var(--ink);
}

.director__role {
  font-size: 0.9rem;
  color: var(--muted);
}

.director__meta {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--rose-200);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.director__meta b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--rose-600);
}

.director__meta span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Табы ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.tab {
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 999px;
  padding: 11px 20px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.94rem;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  transition: 0.2s ease;
}

.tab:hover {
  border-color: var(--rose-200);
  color: var(--rose-600);
}

.tab.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--rose-500), #ff7a63);
  box-shadow: 0 12px 26px -12px rgba(224, 68, 122, 0.8);
}

.tabpanel[hidden] {
  display: none;
}

.tabpanel {
  animation: fadeUp 0.4s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Панель возрастной группы */
.agegrid {
  display: grid;
  gap: 20px;
}

.agecard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.agecard__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--rose-50);
  color: var(--rose-600);
  border: 1px solid var(--rose-100);
}

.pill--leaf {
  background: var(--leaf-50);
  color: var(--leaf-600);
  border-color: var(--leaf-100);
}

.pill--amber {
  background: var(--amber-100);
  color: #a86a08;
  border-color: #ffe0ad;
}

.subjects {
  display: grid;
  gap: 10px;
}

.subject {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 12px 16px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.96rem;
}

.subject span:last-child {
  flex: none;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--rose-600);
  font-size: 0.88rem;
}

.subject--total {
  background: linear-gradient(135deg, var(--rose-500), #ff7a63);
  border-color: transparent;
  color: #fff;
}

.subject--total span:last-child {
  color: #fff;
}

.note {
  margin-top: 16px;
  font-size: 0.86rem;
  color: var(--muted);
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.note svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 3px;
  color: var(--rose-400);
}

/* ---------- Кружки ---------- */
.clubs {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.club {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.club:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.club__emoji {
  font-size: 1.9rem;
  line-height: 1;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}

.club h3 {
  font-size: 1.08rem;
  margin-bottom: 7px;
}

.club p {
  font-size: 0.93rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.club__age {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--leaf-600);
  background: var(--leaf-50);
  border-radius: 999px;
  padding: 5px 12px;
  display: inline-block;
}

/* ---------- Инфраструктура ---------- */
.rooms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.room {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 0.94rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: 0.2s ease;
}

.room:hover {
  border-color: var(--rose-200);
  transform: translateY(-2px);
}

.room svg {
  width: 17px;
  height: 17px;
  color: var(--rose-500);
  flex: none;
}

/* ---------- Режим дня ---------- */
.daily {
  display: grid;
  gap: 20px;
}

.timeline {
  position: relative;
  padding-left: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--rose-200),
    var(--leaf-100),
    var(--rose-200)
  );
}

.timeline li {
  position: relative;
  padding: 0 0 22px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--rose-400);
  box-shadow: 0 0 0 4px var(--cream);
}

.timeline time {
  font-family: var(--font-head);
  font-weight: 900;
  color: var(--rose-600);
  font-size: 0.95rem;
  display: block;
}

.timeline strong {
  font-family: var(--font-head);
  color: var(--ink);
  font-size: 1.02rem;
  display: block;
  margin-top: 2px;
}

.timeline p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Питание */
.meals {
  display: grid;
  gap: 14px;
  align-content: start;
}

.meal {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.meal__emoji {
  font-size: 1.5rem;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--amber-100);
  flex: none;
}

.meal b {
  font-family: var(--font-head);
  display: block;
  color: var(--ink);
}

.meal span {
  font-size: 0.87rem;
  color: var(--muted);
}

/* ---------- Как поступить ---------- */
.steps {
  counter-reset: step;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px 26px;
  box-shadow: var(--shadow-sm);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px;
  left: 26px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), #ff7a63);
  box-shadow: 0 12px 24px -10px rgba(224, 68, 122, 0.9);
}

.step h3 {
  margin: 14px 0 8px;
  font-size: 1.08rem;
}

.step p {
  font-size: 0.94rem;
  color: var(--muted);
}

.step a {
  color: var(--rose-600);
  font-weight: 700;
  border-bottom: 1px solid var(--rose-200);
}

/* ---------- Педагоги ---------- */
.team {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.person {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.person:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.person__photo {
  position: relative;
  aspect-ratio: 3 / 3.7;
  overflow: hidden;
  background: var(--rose-50);
}

.person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* по вертикали кадрируется индивидуально: inline object-position из data.js
     (focus) выравнивает лица всех педагогов на одной высоте карточки */
  object-position: center 34%;
  transition: transform 0.5s ease;
}

.person:hover .person__photo img {
  transform: scale(1.05);
}

.person__role {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--rose-600);
  text-align: center;
}

.person__body {
  padding: 16px 18px 20px;
}

.person__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.25;
}

.person__tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.person__tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
}

.person__tag--cat {
  color: var(--leaf-600);
  background: var(--leaf-50);
  border-color: var(--leaf-100);
}

/* На широких экранах коллектив показываем целиком — педагогов немного,
   и сетка укладывается в три ряда. Кнопку «Показать всех» скрываем. */
.team-more {
  display: none;
  margin-top: 26px;
  text-align: center;
}

@media (max-width: 899px) {
  .team-more {
    display: block;
  }

  /* до нажатия кнопки видны только первые 8 карточек */
  .team:not(.is-expanded) .person:nth-child(n + 9) {
    display: none;
  }
}

/* ---------- Галерея ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery figure {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  background: var(--rose-50);
  box-shadow: var(--shadow-sm);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 55%,
    rgba(42, 31, 43, 0.55) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery figure:hover img {
  transform: scale(1.06);
}

.gallery figure:hover::after {
  opacity: 1;
}

.gallery figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.92rem;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.3s ease;
}

.gallery figure:hover figcaption {
  opacity: 1;
  transform: none;
}

.gallery figure:nth-child(1) {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

.gallery figure {
  aspect-ratio: 4 / 3;
}

/* Лайтбокс */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(30, 20, 30, 0.92);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: 0.28s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 82vh;
  border-radius: var(--r-lg);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox__cap {
  margin-top: 16px;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  text-align: center;
}

.lightbox__btn {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
  transition: 0.2s ease;
}

.lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__btn svg {
  width: 22px;
  height: 22px;
}

.lightbox__close {
  top: 22px;
  right: 22px;
}

.lightbox__prev {
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 860px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq details[open] {
  border-color: var(--rose-200);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 58px 20px 22px;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--ink);
  position: relative;
  font-size: 1.02rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: var(--rose-50)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c42d63' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")
    center / 14px no-repeat;
  transition: transform 0.25s ease;
}

.faq details[open] summary::after {
  transform: rotate(135deg);
}

.faq .faq__body {
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Контакты / форма ---------- */
.contact {
  display: grid;
  gap: 24px;
}

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3.5vw, 38px);
  box-shadow: var(--shadow);
}

.form h3 {
  font-size: 1.4rem;
}

.form p.form__sub {
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.95rem;
}

.field {
  margin-top: 16px;
}

.field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ink-2);
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 14px 16px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--rose-400);
  box-shadow: 0 0 0 4px var(--rose-50);
}

.field input:user-invalid {
  border-color: #e05555;
}

.form .btn {
  margin-top: 22px;
}

.form__hint {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.form__ok {
  margin-top: 16px;
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--leaf-50);
  border: 1px solid var(--leaf-100);
  color: var(--leaf-600);
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.94rem;
}

.form__ok.is-visible {
  display: flex;
}

.form__ok.is-error {
  background: #fff2f2;
  border-color: #ffd6d6;
  color: #c53030;
}

.form__ok svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.contact__info {
  display: grid;
  gap: 14px;
  align-content: start;
}

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.info-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.info-card__head svg {
  width: 22px;
  height: 22px;
  color: var(--rose-500);
  flex: none;
}

.info-card__head b {
  font-family: var(--font-head);
  color: var(--ink);
  font-size: 1.02rem;
}

.info-card a,
.info-card p {
  display: block;
  color: var(--ink-2);
  font-size: 0.98rem;
}

.info-card a:hover {
  color: var(--rose-600);
}

.info-card a + a {
  margin-top: 5px;
}

.map {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-top: 24px;
}

.map iframe {
  width: 100%;
  height: 400px;
  border: 0;
  filter: saturate(0.92);
}

/* ---------- CTA-баннер ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(34px, 5vw, 62px);
  color: #fff;
  background:
    radial-gradient(90% 130% at 100% 0%, #ff8a5b 0%, transparent 58%),
    linear-gradient(140deg, var(--rose-600), var(--rose-500));
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  max-width: 720px;
  margin-inline: auto;
}

.cta-banner p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px;
  margin-inline: auto;
}

.cta-banner__row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cta-banner .btn--ghost {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
  box-shadow: none;
}

.cta-banner .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.26);
  color: #fff;
}

.cta-banner .btn--primary {
  background: #fff;
  color: var(--rose-600);
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.45);
}

/* ---------- Подвал ---------- */
.footer {
  background: #241a26;
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(44px, 6vw, 72px) 0 32px;
  margin-top: clamp(56px, 8vw, 100px);
}

.footer__grid {
  display: grid;
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer .brand__name {
  color: #fff;
}

.footer .brand__sub {
  color: rgba(255, 255, 255, 0.55);
}

.footer h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer li + li {
  margin-top: 8px;
}

.footer a {
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #fff;
}

.footer__slogan {
  margin-top: 16px;
  font-size: 0.95rem;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.6);
}

.footer__bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.45);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.socials a {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: 0.2s ease;
}

.socials a:hover {
  background: var(--rose-500);
  border-color: transparent;
  transform: translateY(-2px);
}

.socials svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

/* ---------- Плавающие элементы ---------- */
.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.fab a {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.fab a:hover {
  transform: scale(1.07);
}

.fab svg {
  width: 27px;
  height: 27px;
  color: #fff;
}

.fab__wa {
  background: #25d366;
}

.fab__top {
  background: #fff;
  border: 1px solid var(--line-2);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.2s ease;
}

.fab__top svg {
  color: var(--ink);
  width: 22px;
  height: 22px;
}

.fab__top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Анимация появления ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1319px) {
  .header__phone {
    display: none;
  }
}

@media (max-width: 1023px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 16px 20px 26px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 40px -22px rgba(90, 40, 60, 0.5);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  body.nav-open .nav {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .burger {
    display: grid;
    order: 3;
  }

  .header__phone {
    display: none;
  }

  .header__side {
    margin-left: auto;
  }

  .director {
    position: static;
  }
}

@media (min-width: 700px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery figure:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
  }

  /* последний кадр растягиваем, чтобы нижний ряд не был рваным */
  .gallery figure:last-child {
    grid-column: span 2;
    aspect-ratio: 8 / 3;
  }

  .daily {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .contact {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  }
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .hero__facts {
    grid-template-columns: repeat(4, 1fr);
    max-width: none;
  }

  .fact {
    padding: 16px;
  }

  .about {
    grid-template-columns: 1.35fr 0.65fr;
  }

  .agegrid {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .container {
    width: calc(100% - 32px);
  }

  .hero__badge {
    display: none;
  }

  .hero__facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn {
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  .hero__cta .btn {
    flex: 1 1 100%;
  }

  .card,
  .club,
  .agecard,
  .step {
    padding: 22px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery figure:nth-child(1) {
    grid-column: span 2;
  }

  .lightbox__prev {
    left: 8px;
  }

  .lightbox__next {
    right: 8px;
  }

  .fab a {
    width: 52px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .header,
  .fab,
  .marquee,
  .lightbox,
  .cta-banner {
    display: none !important;
  }
}
