/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
  --green: #4A9E6F;
  --green-light: #EBF5EE;
  --green-dark: #357A52;
  --yellow: #F5A623;
  --yellow-light: #FFF9EC;
  --pink: #E86DA4;
  --pink-light: #FEF0F7;
  --dark: #2D3748;
  --text: #4A5568;
  --gray: #718096;
  --border: #E2E8F0;
  --white: #FFFFFF;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.13);
  --transition: 0.25s ease;
  --container: 1200px;
}

/* ===== СБРОС ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ===== УТИЛИТЫ ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 90px 0;
}

.section-alt {
  background: var(--green-light);
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  color: var(--dark);
  text-align: center;
  margin-bottom: 0.6rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: var(--green);
  border-radius: 2px;
  margin: 0.5rem auto 0;
}

.section-sub {
  text-align: center;
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(74, 158, 111, 0.35);
}

.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 6px 22px rgba(74, 158, 111, 0.45);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--green);
  color: var(--green);
  background: transparent;
}

.btn-outline:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 16px 38px;
  font-size: 1.05rem;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--green);
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ===== ХЕДЕР ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 47px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.3px;
}

.logo-sub {
  font-size: 0.68rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

.nav-link {
  padding: 7px 14px;
  border-radius: 20px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.93rem;
  transition: all var(--transition);
}

.nav-link:hover {
  color: var(--green);
  background: var(--green-light);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  width: 40px;
  height: 40px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== ГЕРОЙ ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #EBF5EE 0%, #FFF9EC 55%, #FEF0F7 100%);
  padding-top: 72px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 158, 111, 0.1) 0%, transparent 70%);
  top: -180px;
  right: -180px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 109, 164, 0.08) 0%, transparent 70%);
  bottom: -120px;
  left: -80px;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 70px 24px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--dark);
  margin-bottom: 1.2rem;
}

.hero-title .accent {
  color: var(--green);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--gray);
  margin-bottom: 2.2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.83rem;
  color: var(--text);
  font-weight: 500;
  box-shadow: var(--shadow);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-carousel-svg {
  width: min(360px, 100%);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.12));
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-18px); }
}

/* ===== О НАС ===== */
#about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2.5rem;
}

.about-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

.about-facts {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
  flex-wrap: wrap;
}

.about-fact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.fact-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}

.fact-label {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.4;
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.55;
}

/* ===== ЗАНЯТИЯ ===== */
#activities {
  background: var(--white);
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.activity-card {
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card-pink { background: var(--pink-light); }
.card-yellow { background: var(--yellow-light); }
.card-green { background: var(--green-light); }

.activity-icon {
  font-size: 2.4rem;
  margin-bottom: 0.9rem;
  display: block;
}

.activity-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.activity-card p {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
}

/* ===== РЕЖИМ ДНЯ ===== */
.schedule-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.schedule-type {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green);
}

.schedule-type-time {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 0.3rem;
}

.schedule-type-name {
  font-size: 0.95rem;
  color: var(--gray);
  font-weight: 500;
}

.schedule-table {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.schedule-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-item:nth-child(even) {
  background: var(--green-light);
}

.schedule-item:hover {
  background: #d9ede3;
}

.schedule-time {
  font-weight: 700;
  color: var(--green);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.schedule-desc {
  font-size: 0.95rem;
  color: var(--text);
}

/* ===== ПЛАТНЫЕ УСЛУГИ ===== */
#services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--green);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.service-icon {
  font-size: 2.8rem;
  display: block;
  margin-bottom: 0.75rem;
}

.service-age {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ===== ПЕДАГОГИ ===== */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.staff-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

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

.staff-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  border: 3px solid var(--green);
  flex-shrink: 0;
}

.staff-card h3 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
}

.staff-role {
  font-size: 0.83rem;
  color: var(--green);
  font-weight: 600;
}

.staff-edu {
  font-size: 0.83rem;
  color: var(--gray);
}

.staff-exp {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
}

.staff-diploma-btn {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--green);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: color var(--transition);
}

.staff-diploma-btn:hover {
  color: var(--green-dark);
}

/* ===== ГАЛЕРЕЯ ===== */
#gallery {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  background: var(--green-light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(74, 158, 111, 0);
  transition: background 0.3s ease;
  border-radius: var(--radius-sm);
}

.gallery-item:hover::after {
  background: rgba(74, 158, 111, 0.15);
}

/* ===== ДОКУМЕНТЫ ===== */
#documents {
  background: var(--green-light);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.doc-item {
  cursor: pointer;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  aspect-ratio: 3 / 4;
  background: var(--white);
}

.doc-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.doc-item:hover img {
  transform: scale(1.03);
}

/* ===== КОНТАКТЫ ===== */
#contacts {
  background: var(--white);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
  margin-top: 2.5rem;
}

.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  border: 2px solid rgba(74, 158, 111, 0.2);
}

.contact-label {
  font-size: 0.75rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 3px;
  font-weight: 600;
}

.contact-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.5;
}

.contact-value small {
  font-weight: 400;
  color: var(--gray);
  font-size: 0.875rem;
}

.contact-value a {
  color: var(--green);
  font-weight: 700;
}

.contact-value a:hover {
  text-decoration: underline;
}

.cta-box {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-top: 0.5rem;
}

.cta-box h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cta-box p {
  opacity: 0.85;
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
  line-height: 1.5;
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  height: 460px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ===== ФУТЕР ===== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.footer-name {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-addr {
  font-size: 0.875rem;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ===== ЛАЙТБОКС ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.93);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.lightbox-close {
  position: fixed;
  top: 14px;
  right: 18px;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity var(--transition);
  z-index: 9001;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  line-height: 1;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  cursor: pointer;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  opacity: 0.65;
  z-index: 9001;
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
  opacity: 1;
}

.lightbox-counter {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  z-index: 9001;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 960px) {
  .nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-top: 1px solid var(--border);
    align-items: stretch;
    gap: 0.4rem;
    z-index: 999;
  }

  .nav.open {
    display: flex;
  }

  .nav .nav-link {
    padding: 11px 16px;
    border-radius: var(--radius-sm);
  }

  .nav .btn {
    text-align: center;
    margin-top: 0.4rem;
  }

  .burger {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 50px 24px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-carousel-svg {
    width: min(260px, 80%);
  }

  .hero-badges,
  .hero-actions {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-img {
    order: -1;
  }

  .about-img img {
    height: 300px;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

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

  .schedule-item {
    grid-template-columns: 130px 1fr;
  }
}

@media (max-width: 640px) {
  section {
    padding: 60px 0;
  }

  .hero-inner {
    padding: 40px 20px;
  }

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

  .about-facts {
    gap: 1.5rem;
  }

  .schedule-types {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .schedule-item {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .schedule-time {
    font-size: 0.8rem;
  }

  .contacts-grid {
    gap: 2rem;
  }

  .docs-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
}