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

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

:root {
  --cream:      #faf7f2;
  --sand:       #f0ead6;
  --sand-dark:  #e2d9c0;
  --green-deep: #2a4f3c;
  --green-mid:  #3d6e53;
  --green-soft: #5a8f6e;
  --green-pale: #c8ddd1;
  --terra:      #c07840;
  --terra-light:#dfa06a;
  --text-dark:  #1b2820;
  --text-mid:   #3f5449;
  --text-soft:  #6e8075;
  --text-muted: #9aac9e;
  --white:      #ffffff;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --shadow-sm:  0 1px 4px rgba(30,50,35,0.08);
  --shadow-md:  0 4px 16px rgba(30,50,35,0.10);
  --shadow-lg:  0 8px 32px rgba(30,50,35,0.12);

  --transition: 0.22s ease;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.22;
  color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { color: var(--text-mid); }

.lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.75;
  color: var(--text-mid);
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 14px 32px;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--green-deep);
  color: var(--white);
}
.btn-primary:hover {
  background-color: var(--green-mid);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--green-deep);
  color: var(--green-deep);
}
.btn-secondary:hover {
  background-color: var(--green-deep);
  color: var(--white);
}

.btn-terra {
  background-color: var(--terra);
  color: var(--white);
}
.btn-terra:hover {
  background-color: #a96434;
  box-shadow: var(--shadow-md);
}

.btn:active { transform: translateY(1px); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand-dark);
  padding: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: -0.01em;
}

.logo span {
  color: var(--terra);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--green-deep);
}

.nav-cta {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--green-deep) !important;
  background: var(--green-pale);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition) !important;
}

.nav-cta:hover {
  background: var(--sand-dark) !important;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hero {
  padding: 0;
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  background: var(--cream);
}

.hero-content {
  padding: 80px 60px 80px 0;
  padding-left: max(32px, calc((100vw - 1100px) / 2));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--green-mid);
  background: var(--green-pale);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: italic;
  color: var(--terra);
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  color: var(--text-mid);
  margin-bottom: 40px;
  max-width: 480px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--sand-dark);
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.hero-image-wrap {
  position: relative;
  height: 100%;
  min-height: 600px;
  overflow: hidden;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--cream) 0%, transparent 30%);
  z-index: 1;
}

.for-whom {
  background: var(--sand);
}

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 14px;
}

.section-header {
  max-width: 560px;
  margin-bottom: 56px;
}

.section-header h2 {
  margin-bottom: 14px;
}

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

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.card-icon {
  font-size: 2rem;
  margin-bottom: 18px;
  display: block;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

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

.how-it-works {
  background: var(--cream);
}

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

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.step {
  display: flex;
  gap: 20px;
}

.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.step-body p {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.how-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.course-format {
  background: var(--green-deep);
  color: var(--white);
}

.course-format h2,
.course-format h3 {
  color: var(--white);
}

.course-format .section-label {
  color: var(--terra-light);
}

.course-format .section-header p {
  color: rgba(255,255,255,0.72);
}

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

.format-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: background-color var(--transition);
}

.format-card:hover {
  background: rgba(255,255,255,0.13);
}

.format-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
  display: block;
}

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

.format-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

.format-cta-wrap {
  text-align: center;
  padding-top: 12px;
}

.format-cta-wrap p {
  margin-top: 14px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.teacher {
  background: var(--sand);
}

.teacher-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 72px;
  align-items: center;
}

.teacher-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3/4;
}

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

.teacher-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.teacher-title {
  font-size: 0.88rem;
  color: var(--terra);
  font-weight: 500;
  margin-bottom: 24px;
}

.teacher-bio {
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 32px;
}

.teacher-facts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.teacher-fact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-mid);
}

.teacher-fact::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--green-pale);
  color: var(--green-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.faq {
  background: var(--cream);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--sand-dark);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 24px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background-color var(--transition);
}

.faq-question:hover {
  background: var(--sand);
}

.faq-question.open {
  background: var(--sand);
  color: var(--green-deep);
}

.faq-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  transition: transform var(--transition);
}

.faq-question.open .faq-arrow {
  transform: rotate(180deg);
  color: var(--green-mid);
}

.faq-answer {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.7;
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.open {
  max-height: 500px;
  padding: 0 24px 22px;
}

.lead-form-section {
  background: var(--sand);
}

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

.form-text h2 {
  margin-bottom: 16px;
}

.form-text p {
  font-size: 0.97rem;
  color: var(--text-soft);
  line-height: 1.72;
  margin-bottom: 28px;
}

.form-promises {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-promise {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-mid);
}

.form-promise .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-soft);
  flex-shrink: 0;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  font-size: 1.3rem;
  margin-bottom: 28px;
  color: var(--text-dark);
}

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--cream);
  border: 1.5px solid var(--sand-dark);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green-soft);
  box-shadow: 0 0 0 3px rgba(90,143,110,0.15);
}

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

.form-privacy {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.5;
}

.form-privacy a {
  color: var(--green-mid);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-submit-btn {
  width: 100%;
  margin-top: 6px;
  padding: 15px;
  font-size: 1rem;
}

.form-group input.error,
.form-group textarea.error {
  border-color: #d9534f;
}

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

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

.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  max-width: 260px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: rgba(255,255,255,0.9);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-company {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  text-align: right;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--text-dark);
  color: rgba(255,255,255,0.85);
  padding: 18px 0;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}

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

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cookie-text {
  font-size: 0.88rem;
  line-height: 1.55;
  flex: 1;
}

.cookie-text a {
  color: var(--green-pale);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn-accept {
  padding: 9px 22px;
  background: var(--green-soft);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition);
}

.cookie-btn-accept:hover {
  background: var(--green-mid);
}

.cookie-btn-dismiss {
  padding: 9px 16px;
  background: transparent;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.cookie-btn-dismiss:hover {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.4);
}

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

.legal-page h1 {
  margin-bottom: 8px;
}

.legal-page .updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 14px;
  line-height: 1.72;
}

.legal-content ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 14px;
}

.legal-content ul li {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 6px;
  line-height: 1.65;
}

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

.success-inner {
  max-width: 520px;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-size: 2rem;
}

.success-inner h1 {
  margin-bottom: 16px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.success-inner p {
  font-size: 1rem;
  color: var(--text-soft);
  margin-bottom: 36px;
  line-height: 1.72;
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-content {
    padding: 64px 0 48px;
    order: 2;
  }

  .hero-image-wrap {
    min-height: 400px;
    order: 1;
  }

  .hero-image-wrap::before {
    background: linear-gradient(to bottom, transparent 60%, var(--cream));
  }

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

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

  .how-image { order: -1; }

  .teacher-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .teacher-photo {
    max-width: 320px;
    aspect-ratio: 4/3;
  }

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

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

  .form-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--sand-dark);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open { display: flex; }

  .burger { display: flex; }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

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

  .contact-form {
    padding: 32px 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .footer-copy { text-align: center; }

  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .teacher-photo {
    max-width: 100%;
    aspect-ratio: 3/2;
  }
}
