/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: #3a2e28;
  background: #fdf8f3;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== VARIABLES ===== */
:root {
  --clay:       #C4845A;
  --clay-dark:  #a86840;
  --clay-light: #f0d5c0;
  --clay-pale:  #fdf0e6;
  --earth:      #3a2e28;
  --earth-mid:  #6b5a50;
  --earth-light:#9c8578;
  --cream:      #fdf8f3;
  --cream-dark: #f5ede0;
  --white:      #ffffff;
  --shadow-sm:  0 2px 8px rgba(58,46,40,.08);
  --shadow-md:  0 6px 24px rgba(58,46,40,.12);
  --shadow-lg:  0 16px 48px rgba(58,46,40,.16);
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --transition: .3s ease;
}

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.2; color: var(--earth); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }

/* ===== LAYOUT ===== */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--tinted { background: var(--cream-dark); }

.section__header { text-align: center; margin-bottom: 56px; }
.section__eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 12px;
}
.section__title { margin-bottom: 16px; }
.section__sub { color: var(--earth-mid); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--clay);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(196,132,90,.35);
}
.btn--primary:hover { background: var(--clay-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196,132,90,.45); }
.btn--outline {
  background: transparent;
  color: var(--clay);
  border: 2px solid var(--clay);
}
.btn--outline:hover { background: var(--clay); color: var(--white); transform: translateY(-2px); }
.btn--full { width: 100%; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(253,248,243,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196,132,90,.15);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo__text {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--earth);
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  padding: 8px 14px;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--earth-mid);
  transition: all var(--transition);
}
.nav__link:hover { color: var(--clay); background: var(--clay-pale); }
.nav__link--cta {
  background: var(--clay);
  color: var(--white) !important;
  padding: 10px 22px;
  margin-left: 8px;
}
.nav__link--cta:hover { background: var(--clay-dark); }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--earth);
  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 ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__bg { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(58,46,40,.72) 0%, rgba(58,46,40,.35) 60%, rgba(196,132,90,.2) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 80px 24px;
  color: var(--white);
}
.hero__eyebrow {
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--clay-light);
  margin-bottom: 20px;
}
.hero__title {
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.hero__sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.88);
  margin-bottom: 40px;
  max-width: 520px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero__actions .btn--outline { border-color: rgba(255,255,255,.7); color: var(--white); }
.hero__actions .btn--outline:hover { background: rgba(255,255,255,.15); border-color: var(--white); }
.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__stat strong {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--clay-light);
  line-height: 1;
}
.hero__stat span { font-size: .8rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .08em; }

/* ===== ABOUT ===== */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about__image-wrap { position: relative; }
.about__img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about__badge {
  position: absolute;
  bottom: 28px;
  right: -20px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--earth);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
}
.about__text .section__eyebrow { display: block; text-align: left; }
.about__text .section__title { text-align: left; margin-bottom: 24px; }
.about__desc { color: var(--earth-mid); margin-bottom: 16px; font-size: 1.02rem; }
.about__features { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.about__features li { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--clay-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__features li > div strong { display: block; font-weight: 600; color: var(--earth); margin-bottom: 2px; }
.about__features li > div p { font-size: .9rem; color: var(--earth-mid); }

/* ===== SCHEDULE ===== */
.schedule__tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--earth-mid);
  border: 2px solid transparent;
  background: var(--white);
  transition: all var(--transition);
}
.tab-btn:hover { border-color: var(--clay); color: var(--clay); }
.tab-btn--active { background: var(--clay); color: var(--white); border-color: var(--clay); }
.schedule__panel--hidden { display: none; }
.schedule__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.schedule-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.schedule-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.schedule-card__day {
  background: var(--clay);
  color: var(--white);
  padding: 10px 20px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.schedule-card__body { padding: 20px; }
.schedule-card__title { font-size: 1rem; margin-bottom: 10px; }
.schedule-card__time { font-size: .9rem; color: var(--earth-mid); margin-bottom: 6px; }
.schedule-card__info { font-size: .85rem; color: var(--earth-light); margin-bottom: 14px; }
.schedule-card__badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
}
.schedule-card__badge--free { background: #e8f5e9; color: #2e7d32; }
.schedule-card__badge--few { background: #fff8e1; color: #f57f17; }
.schedule-card__badge--full { background: #fce4ec; color: #c62828; }

.corporate-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}
.corporate-block__text h3 { font-size: 1.6rem; margin-bottom: 16px; }
.corporate-block__text p { color: var(--earth-mid); margin-bottom: 20px; }
.corporate-block__text ul { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.corporate-block__text li { color: var(--earth-mid); font-size: .95rem; }
.corporate-block__img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius-md); }

/* ===== PRICES ===== */
.prices__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  align-items: start;
}
.price-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: all var(--transition);
  position: relative;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--clay-light); }
.price-card--featured {
  border-color: var(--clay);
  box-shadow: var(--shadow-md);
  background: linear-gradient(160deg, var(--white) 0%, var(--clay-pale) 100%);
}
.price-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clay);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 50px;
  white-space: nowrap;
}
.price-card__icon { font-size: 2rem; margin-bottom: 16px; }
.price-card__title { font-size: 1.15rem; margin-bottom: 10px; }
.price-card__desc { font-size: .88rem; color: var(--earth-mid); margin-bottom: 20px; min-height: 48px; }
.price-card__price { margin-bottom: 24px; }
.price-card__amount { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 700; color: var(--clay); }
.price-card__price { font-size: 1rem; color: var(--earth-mid); }
.price-card__list { margin-bottom: 28px; display: flex; flex-direction: column; gap: 8px; }
.price-card__list li {
  font-size: .9rem;
  color: var(--earth-mid);
  padding-left: 20px;
  position: relative;
}
.price-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--clay);
  font-weight: 700;
}
.prices__note { text-align: center; margin-top: 32px; font-size: .85rem; color: var(--earth-light); }

/* ===== TEACHERS ===== */
.teachers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.teacher-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.teacher-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.teacher-card__photo-wrap { overflow: hidden; height: 260px; }
.teacher-card__photo { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.teacher-card:hover .teacher-card__photo { transform: scale(1.05); }
.teacher-card__body { padding: 24px; }
.teacher-card__name { font-size: 1.2rem; margin-bottom: 4px; }
.teacher-card__role { font-size: .85rem; color: var(--clay); font-weight: 500; margin-bottom: 12px; }
.teacher-card__bio { font-size: .88rem; color: var(--earth-mid); margin-bottom: 16px; line-height: 1.55; }
.teacher-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.teacher-card__tags span {
  background: var(--clay-pale);
  color: var(--clay-dark);
  font-size: .75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 50px;
}

/* ===== GALLERY ===== */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gallery__item {
  overflow: hidden;
  border-radius: var(--radius-md);
  position: relative;
  cursor: pointer;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(58,46,40,.75));
  color: var(--white);
  font-size: .8rem;
  padding: 24px 14px 12px;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery__item:hover figcaption { opacity: 1; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }

/* ===== TESTIMONIALS ===== */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--clay);
  transition: all var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-card__stars { color: #f4a623; font-size: 1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card p { font-size: .95rem; color: var(--earth-mid); font-style: italic; margin-bottom: 20px; line-height: 1.65; }
.testimonial-card cite { font-size: .85rem; font-weight: 600; color: var(--earth); font-style: normal; }

/* ===== CONTACT ===== */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.contact__info .section__eyebrow { display: block; text-align: left; }
.contact__info .section__title { text-align: left; margin-bottom: 20px; }
.contact__desc { color: var(--earth-mid); margin-bottom: 36px; font-size: 1.02rem; }
.contact__details { display: flex; flex-direction: column; gap: 16px; }
.contact__details li { display: flex; align-items: flex-start; gap: 12px; font-size: .95rem; color: var(--earth-mid); }
.contact__details li svg { flex-shrink: 0; margin-top: 2px; }
.contact__details a:hover { color: var(--clay); }

.contact__form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.contact__form-title { font-size: 1.4rem; margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--earth); margin-bottom: 8px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .95rem;
  color: var(--earth);
  background: var(--cream);
  transition: border-color var(--transition);
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--clay); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-note { font-size: .78rem; color: var(--earth-light); text-align: center; margin-top: 12px; }

/* ===== FOOTER ===== */
.footer { background: var(--earth); color: rgba(255,255,255,.75); padding-top: 64px; }
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer__brand .logo__text { color: var(--white); }
.footer__brand p { font-size: .9rem; margin-top: 16px; line-height: 1.6; max-width: 280px; }
.footer__nav h4,
.footer__contact h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 16px;
}
.footer__nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a { font-size: .9rem; transition: color var(--transition); }
.footer__nav a:hover { color: var(--clay-light); }
.footer__contact p { font-size: .9rem; margin-bottom: 8px; }
.footer__contact a:hover { color: var(--clay-light); }
.footer__social { display: flex; gap: 12px; margin-top: 20px; }
.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.75);
  transition: all var(--transition);
}
.footer__social a:hover { background: var(--clay); color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
}
.footer__bottom p { font-size: .82rem; text-align: center; }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--clay);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--clay-dark); transform: translateY(-3px); }

/* ===== RESPONSIVE: 768 ===== */
@media (max-width: 1024px) {
  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .about__img { height: 380px; }
  .about__badge { right: 16px; }
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .corporate-block { grid-template-columns: 1fr; gap: 28px; padding: 32px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide { grid-column: span 2; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .burger { display: flex; }
  .nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--clay-light);
    padding: 24px;
    transform: translateY(-110%);
    opacity: 0;
    transition: all var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
  }
  .nav.open { transform: translateY(0); opacity: 1; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__link { padding: 12px 16px; border-radius: var(--radius-sm); }
  .nav__link--cta { text-align: center; margin-left: 0; margin-top: 8px; }
  .hero__content { padding: 60px 0; }
  .hero__stats { gap: 24px; }
  .prices__grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .teachers__grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .contact__form-wrap { padding: 28px 20px; }
  .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .schedule__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: span 1; }
  .gallery__item--tall { grid-row: span 1; }
  .corporate-block { padding: 24px 16px; }
  .section__header { margin-bottom: 36px; }
}