@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Manrope:wght@300;400;500;600&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #2d4a3e;
  --green-light: #3d6354;
  --cream: #f7f2eb;
  --cream-dark: #ede6d8;
  --gold: #b8892a;
  --gold-light: #d4a94a;
  --text: #2a2a2a;
  --text-muted: #6b6b6b;
  --text-faint: #999;
  --border: #e0d8cc;
  --card: #faf6f0;
  --white: #ffffff;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

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

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

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

.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 235, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.5px;
}

.logo:hover {
  opacity: 0.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(45, 74, 62, 0.25);
}

.btn--primary:hover {
  background: var(--green-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(45, 74, 62, 0.3);
}

.btn--gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(184, 137, 42, 0.25);
}

.btn--gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--green);
  border: 1.5px solid rgba(45, 74, 62, 0.25);
}

.btn--outline:hover {
  background: rgba(45, 74, 62, 0.05);
}

.btn--lg {
  padding: 14px 36px;
  font-size: 15px;
}

.btn--full {
  width: 100%;
  height: 52px;
  font-size: 15px;
}

.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--tint {
  background: rgba(45, 74, 62, 0.04);
}

.section--dark {
  background: var(--green);
  color: var(--white);
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--green);
  margin-bottom: 16px;
}

.section-head p {
  font-size: 17px;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 580px;
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(247,242,235,0.97) 0%, rgba(247,242,235,0.82) 50%, rgba(247,242,235,0.25) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: 80px 0;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(184, 137, 42, 0.3);
  background: rgba(184, 137, 42, 0.08);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(36px, 5vw, 60px);
  color: var(--green);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero__title em {
  color: var(--gold);
  font-style: italic;
}

.hero__sub {
  font-size: 18px;
  color: rgba(42, 42, 42, 0.75);
  font-weight: 300;
  margin-bottom: 40px;
  line-height: 1.7;
}

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

.gallery-card {
  cursor: pointer;
}

.gallery-card__img {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  border: 1px solid var(--border);
  position: relative;
}

.gallery-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(45, 74, 62, 0.18);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.gallery-card:hover .gallery-card__img::after {
  opacity: 1;
}

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

.gallery-card:hover .gallery-card__img img {
  transform: scale(1.05);
}

.gallery-card h3 {
  font-size: 20px;
  color: var(--green);
  margin-bottom: 6px;
}

.gallery-card p {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 300;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.audience-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.audience-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(184, 137, 42, 0.35);
}

.audience-card__icon {
  color: var(--gold);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.audience-card h3 {
  font-size: 17px;
  color: var(--green);
  margin-bottom: 8px;
  font-weight: 600;
}

.audience-card p {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.how-img {
  aspect-ratio: 1;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.how-steps {
  position: relative;
}

.how-steps h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  color: var(--green);
  margin-bottom: 40px;
}

.steps-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.steps-list::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(184, 137, 42, 0.25);
}

.step {
  position: relative;
  padding-left: 40px;
}

.step__num {
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  background: var(--card);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--gold);
  font-family: 'Manrope', sans-serif;
}

.step h4 {
  font-size: 18px;
  color: var(--green);
  margin-bottom: 6px;
}

.step p {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--green);
  transition: color var(--transition);
}

.faq-trigger:hover {
  color: var(--gold);
}

.faq-trigger svg {
  flex-shrink: 0;
  transition: transform 0.35s ease;
  color: var(--gold);
}

.faq-item.open .faq-trigger svg {
  transform: rotate(45deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-body p {
  padding-bottom: 22px;
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.75;
}

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

.review-card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.review-card:hover {
  box-shadow: var(--shadow-md);
}

.review-card__quote {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
}

.review-card__text {
  font-size: 14px;
  color: rgba(42, 42, 42, 0.8);
  font-weight: 300;
  line-height: 1.75;
  flex: 1;
  margin-bottom: 28px;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(45, 74, 62, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--green);
  flex-shrink: 0;
}

.review-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}

.review-card__city {
  font-size: 12px;
  color: var(--text-faint);
}

.enroll {
  background: var(--green);
  padding: 96px 0;
}

.enroll__head {
  text-align: center;
  margin-bottom: 48px;
}

.enroll__head h2 {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--cream);
  margin-bottom: 16px;
}

.enroll__head p {
  font-size: 17px;
  color: rgba(247, 242, 235, 0.75);
  font-weight: 300;
}

.form-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--cream);
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
}

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: rgba(237, 230, 216, 0.5);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--gold);
}

.form-input.error {
  border-color: #c0392b;
}

.form-error {
  font-size: 12px;
  color: #c0392b;
  margin-top: 6px;
  display: none;
}

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

.form-note {
  font-size: 12px;
  text-align: center;
  color: var(--text-faint);
  margin-top: 16px;
}

.form-note a {
  text-decoration: underline;
  color: var(--text-muted);
}

.form-note a:hover {
  color: var(--gold);
}

footer {
  background: var(--text);
  color: var(--cream);
  padding: 64px 0 40px;
}

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

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 13px;
  color: rgba(247, 242, 235, 0.6);
  font-weight: 300;
  line-height: 1.7;
  max-width: 240px;
}

.footer-col h4 {
  font-size: 17px;
  color: rgba(247, 242, 235, 0.85);
  margin-bottom: 14px;
}

.footer-col a,
.footer-col p {
  font-size: 13px;
  color: rgba(247, 242, 235, 0.55);
  display: block;
  margin-bottom: 8px;
  font-weight: 300;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(247, 242, 235, 0.1);
  padding-top: 28px;
  font-size: 12px;
  color: rgba(247, 242, 235, 0.35);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--green);
  color: var(--cream);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 200;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner p {
  font-size: 14px;
  color: rgba(247, 242, 235, 0.9);
  font-weight: 300;
}

.cookie-banner a {
  color: var(--gold-light);
  text-decoration: underline;
}

.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

.legal-page {
  padding: 80px 0;
}

.legal-page h1 {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--green);
  margin-bottom: 8px;
}

.legal-page .date {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 22px;
  color: var(--green);
  margin-top: 48px;
  margin-bottom: 16px;
}

.legal-page p {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-page ul {
  margin-left: 20px;
  margin-bottom: 16px;
}

.legal-page li {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-page strong {
  color: var(--text);
  font-weight: 500;
}

.legal-page a {
  color: var(--gold);
  text-decoration: underline;
}

.requisites-box {
  background: rgba(237, 230, 216, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 8px;
}

.requisites-box p {
  margin-bottom: 4px;
}

.success-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}

.success-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(184, 137, 42, 0.1);
  border: 1px solid rgba(184, 137, 42, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
}

.success-page h1 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--green);
  margin-bottom: 20px;
}

.success-page p {
  font-size: 17px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto 40px;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }

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

  .how-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

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

  .hero {
    min-height: 80vh;
  }

  .hero__overlay {
    background: linear-gradient(to bottom, rgba(247,242,235,0.95) 60%, rgba(247,242,235,0.5) 100%);
  }

  .enroll {
    padding: 64px 0;
  }

  .form-card {
    padding: 28px 20px;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
