/* ===== CSS VARIABLES ===== */
:root {
  --primary: #4A7C59;
  --primary-light: #6B9F7B;
  --accent: #E8A849;
  --accent-light: #F5D08E;
  --bg-cream: #FDF8F0;
  --bg-white: #FFFFFF;
  --text-dark: #2D3436;
  --text-muted: #636E72;
  --text-light: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: 0.3s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Comfortaa', cursive;
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-muted {
  color: var(--text-muted);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Comfortaa', cursive;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
}

.btn--primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--accent {
  background: var(--accent);
  color: var(--text-dark);
  border-color: var(--accent);
}

.btn--accent:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: var(--text-light);
  transform: translateY(-2px);
}

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

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

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
  padding: 16px 0;
}

.header--scrolled {
  padding: 8px 0;
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo__text {
  font-family: 'Comfortaa', cursive;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}

.logo--light .logo__text {
  color: var(--text-light);
}

/* Navigation */
.nav__list {
  display: flex;
  gap: 24px;
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  position: relative;
  padding: 4px 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav__link:hover::after {
  width: 100%;
}

.header__cta {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

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

.burger--active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.burger--active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--transition);
}

.mobile-overlay--active {
  display: block;
  opacity: 1;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 140px 0 80px;
  background: var(--bg-cream);
  overflow: hidden;
}

.hero__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__leaf {
  position: absolute;
}

.hero__leaf--1 {
  top: 15%;
  left: 5%;
  animation: float 6s ease-in-out infinite;
}

.hero__leaf--2 {
  top: 25%;
  right: 8%;
  animation: float 8s ease-in-out infinite 1s;
}

.hero__leaf--3 {
  bottom: 20%;
  left: 10%;
  animation: float 7s ease-in-out infinite 2s;
}

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

.hero__inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero__content {
  flex: 1;
  max-width: 600px;
}

.hero__title {
  font-size: 2.8rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.hero__illustration {
  flex-shrink: 0;
}

.hero__illustration svg {
  max-width: 100%;
  height: auto;
  will-change: transform;
}

#raccoonSvg g {
  transition: none; /* handled by rAF for smoothness */
}

/* ===== SECTION TITLES ===== */
.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}

/* ===== ADVANTAGES ===== */
.advantages {
  padding: 80px 0;
  background: var(--bg-white);
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.advantage-card {
  background: var(--bg-white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.advantage-card__icon {
  margin-bottom: 16px;
}

.advantage-card__title {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.advantage-card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== TARIFFS ===== */
.tariffs {
  padding: 80px 0;
  background: var(--bg-cream);
}

.tariffs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.tariff-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.tariff-card--popular {
  border: 2px solid var(--primary);
  transform: scale(1.05);
}

.tariff-card--popular:hover {
  transform: scale(1.05) translateY(-4px);
}

.tariff-card--trial {
  border: 2px solid var(--accent);
}

.tariff-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--text-light);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Comfortaa', cursive;
  white-space: nowrap;
}

.tariff-card__badge--trial {
  background: var(--accent);
  color: var(--text-dark);
}

.tariff-card__header {
  margin-bottom: 16px;
}

.tariff-card__name {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.tariff-card__time {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tariff-card__price {
  font-family: 'Comfortaa', cursive;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.tariff-card__price span {
  font-size: 1rem;
  font-weight: 500;
}

.tariff-card__features {
  text-align: left;
  margin-bottom: 24px;
  flex-grow: 1;
}

.tariff-card__features li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.tariff-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13 4L6 11L3 8' stroke='%234A7C59' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

.tariffs__note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== DAILY SCHEDULE (TIMELINE) ===== */
.daily {
  padding: 80px 0;
  background: var(--bg-white);
}

.timeline {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  padding-left: 120px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 110px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-light), var(--accent-light));
}

.timeline__item {
  position: relative;
  padding: 16px 0 16px 30px;
}

.timeline__time {
  position: absolute;
  left: -120px;
  top: 18px;
  width: 80px;
  text-align: right;
  font-family: 'Comfortaa', cursive;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}

.timeline__dot {
  position: absolute;
  left: -8px;
  top: 22px;
  width: 14px;
  height: 14px;
  background: var(--bg-white);
  border: 3px solid var(--primary);
  border-radius: 50%;
}

.timeline__item:nth-child(even) .timeline__dot {
  border-color: var(--accent);
}

.timeline__content {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-cream);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.timeline__content:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.timeline__content span {
  font-size: 1rem;
  font-weight: 600;
}

/* ===== CLASSES (SCHEDULE) ===== */
.classes {
  padding: 80px 0;
  background: var(--bg-cream);
}

.classes__tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.classes__tab {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Comfortaa', cursive;
  font-weight: 600;
  font-size: 1rem;
  background: var(--bg-white);
  color: var(--text-muted);
  transition: all var(--transition);
  border: 2px solid transparent;
}

.classes__tab:hover {
  color: var(--primary);
  border-color: var(--primary-light);
}

.classes__tab--active {
  background: var(--primary);
  color: var(--text-light);
}

.classes__panel {
  display: none;
}

.classes__panel--active {
  display: block;
}

.classes__card {
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.classes__card-icon {
  margin-bottom: 16px;
}

.classes__card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.classes__card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== TEAM ===== */
.team {
  padding: 80px 0;
  background: var(--bg-white);
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.team-card {
  background: var(--bg-white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}

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

.team-card__avatar {
  margin-bottom: 16px;
}

.team-card__name {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.team-card__bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.team__note {
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* ===== REVIEWS SLIDER ===== */
.reviews {
  padding: 80px 0;
  background: var(--bg-cream);
}

.slider {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.slider__track {
  display: flex;
  transition: transform 0.5s ease;
}

.slider__slide {
  min-width: 100%;
  padding: 0 10px;
}

.review-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.review-card__stars {
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.review-card__text {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Comfortaa', cursive;
  font-weight: 700;
  font-size: 1.2rem;
}

.review-card__name {
  font-weight: 700;
  font-size: 0.95rem;
}

.review-card__child {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.slider__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all var(--transition);
}

.slider__btn:hover {
  background: var(--primary);
  color: var(--text-light);
}

.slider__dots {
  display: flex;
  gap: 8px;
}

.slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-light);
  opacity: 0.3;
  cursor: pointer;
  transition: all var(--transition);
}

.slider__dot--active {
  opacity: 1;
  background: var(--primary);
  transform: scale(1.2);
}

/* ===== FAQ ===== */
.faq {
  padding: 80px 0;
  background: var(--bg-white);
}

.faq__list {
  max-width: 750px;
  margin: 0 auto;
}

.faq__item {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--transition);
}

.faq__item:hover {
  border-color: var(--primary-light);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  gap: 16px;
}

.faq__arrow {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--primary);
}

.faq__item--open .faq__arrow {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq__answer p {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== SIGNUP FORM ===== */
.signup {
  padding: 80px 0;
  background: var(--bg-cream);
}

.signup__inner {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
}

.signup__title {
  font-family: 'Comfortaa', cursive;
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 32px;
  color: var(--text-dark);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  transition: border-color var(--transition);
  background: var(--bg-white);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group input::placeholder {
  color: #b0b0b0;
}

.form-error {
  display: none;
  font-size: 0.8rem;
  color: #e74c3c;
  margin-top: 4px;
}

.form-group--error input,
.form-group--error select {
  border-color: #e74c3c;
}

.form-group--error .form-error {
  display: block;
}

/* Radio buttons */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95rem;
}

.radio input {
  display: none;
}

.radio__mark {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0,0,0,0.2);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: all var(--transition);
}

.radio input:checked + .radio__mark {
  border-color: var(--primary);
}

.radio input:checked + .radio__mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
}

.signup__contacts {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.signup__contact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: color var(--transition);
}

.signup__contact:hover {
  color: var(--primary);
}

/* ===== CONTACTS ===== */
.contacts {
  padding: 80px 0;
  background: var(--bg-white);
}

.contacts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.contact-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-cream);
  transition: all var(--transition);
}

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

.contact-card__icon {
  margin-bottom: 16px;
}

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

.contact-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.contact-card__link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-card__link:hover {
  color: var(--primary-light);
}

.contact-card__phone {
  font-family: 'Comfortaa', cursive;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}

.contact-card__phone:hover {
  color: var(--primary-light);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text-dark);
  color: var(--text-light);
  padding: 60px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__desc {
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.6;
  margin-top: 12px;
}

.footer__nav h4,
.footer__contacts h4 {
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__nav a {
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.footer__nav a:hover {
  opacity: 1;
}

.footer__contacts p {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 6px;
}

.footer__contacts a {
  opacity: 0.9;
}

.footer__contacts a:hover {
  opacity: 1;
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: all var(--transition);
}

.footer__social-link:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer__bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.5;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
}

.scroll-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--primary-light);
  transform: translateY(-4px);
}

/* ===== WAVE DIVIDERS ===== */
.wave-divider {
  line-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 50px;
}

/* ===== GALLERY ===== */
.gallery {
  padding: 80px 0;
  background: var(--bg-cream);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
  display: block;
}

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

/* Gallery lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox--active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: background 0.2s;
  z-index: 2;
}

.lightbox__nav:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox__nav--prev {
  left: 20px;
}

.lightbox__nav--next {
  right: 20px;
}

.lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-family: 'Comfortaa', cursive;
  font-size: 1rem;
  font-weight: 600;
  z-index: 2;
}

/* Team avatar photo */
.team-card__avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-light);
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */

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

  .tariff-card--popular {
    transform: none;
  }

  .tariff-card--popular:hover {
    transform: translateY(-4px);
  }

  .hero__illustration svg {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 768px) {
  /* Header mobile */
  .nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    z-index: 999;
    padding: 80px 30px 30px;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
  }

  .nav--open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 20px;
  }

  .nav__link {
    font-size: 1.1rem;
  }

  .header__cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 120px 0 60px;
  }

  .hero__inner {
    flex-direction: column;
    text-align: center;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__trust {
    justify-content: center;
  }

  .hero__illustration svg {
    width: 260px;
    height: 260px;
  }

  .wave-divider svg {
    height: 30px;
  }

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

  /* Grids */
  .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tariffs__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto 24px;
  }

  .team__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto 32px;
  }

  .contacts__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Timeline */
  .timeline {
    padding-left: 80px;
  }

  .timeline::before {
    left: 70px;
  }

  .timeline__time {
    left: -80px;
    width: 60px;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .signup__inner {
    padding: 32px 24px;
  }

  .signup__title {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.6rem;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .hero__trust {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .classes__tabs {
    flex-wrap: wrap;
  }

  .classes__tab {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  .slider__controls {
    gap: 10px;
  }

  .review-card {
    padding: 24px 16px;
  }
}
