@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Nunito+Sans:opsz,wght@6..12,300;6..12,400;6..12,600&display=swap');

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

:root {
  --bg:         #f7f3ed;
  --bg-card:    #faf8f5;
  --bg-muted:   #ede8e0;
  --text:       #2c1f14;
  --text-muted: #6b5a4e;
  --primary:    #8b5e3c;
  --primary-dk: #7a5034;
  --primary-fg: #faf8f5;
  --secondary:  #b8c4b0;
  --border:     #ddd5c8;
  --font-serif: 'Lora', Georgia, serif;
  --font-sans:  'Nunito Sans', system-ui, sans-serif;
  --max:        1200px;
  --section:    96px;
  --radius:     0px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  font-weight: 300;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.25;
}

.btn {
  display: inline-block;
  padding: 16px 36px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}
.btn-primary:hover { background: var(--primary-dk); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 237, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.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;
  object-position: center;
  opacity: 0.38;
  mix-blend-mode: multiply;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(247,243,237,0.5) 0%, rgba(247,243,237,0.82) 60%, rgba(247,243,237,1) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding-top: 80px;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--text);
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-weight: 300;
  max-width: 520px;
}

section { padding: var(--section) 0; }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--primary);
  text-align: center;
  margin-bottom: 60px;
}

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

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

.bg-card   { background: var(--bg-card); }
.bg-muted  { background: var(--bg-muted); }

.who-list { list-style: none; padding: 0; }
.who-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
}
.who-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 10px;
}

.img-wrap {
  position: relative;
}
.img-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.img-accent {
  position: absolute;
  bottom: -24px;
  left: -24px;
  width: 100px;
  height: 100px;
  background: var(--secondary);
  z-index: -1;
}

.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.benefit-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(139,94,60,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 20px;
}
.benefit-item h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.benefit-item p {
  color: var(--text-muted);
  font-size: 16px;
}

.program-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}
.program-intro img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.module {
  padding: 28px 32px;
  background: var(--bg-card);
  border-left: 2px solid var(--primary);
  margin-bottom: 20px;
}
.module:nth-child(2) { border-color: rgba(139,94,60,0.6); }
.module:nth-child(3) { border-color: rgba(139,94,60,0.4); }
.module:nth-child(4) { border-color: rgba(139,94,60,0.2); }
.module h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.module p { color: var(--text-muted); font-size: 16px; }

.teacher-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--primary); margin-bottom: 16px; }
.teacher-text h3 { font-size: 18px; font-weight: 400; margin-bottom: 24px; }
.teacher-text p { color: var(--text-muted); margin-bottom: 18px; font-size: 17px; }

.teacher-img {
  position: relative;
}
.teacher-img img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.teacher-overlay {
  position: absolute;
  inset: 0;
  background: rgba(139,94,60,0.08);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-grid img:hover { transform: scale(1.04); }
.gallery-item { overflow: hidden; }

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  background: none;
  border: none;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  gap: 24px;
}
.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.3s;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--primary);
  transition: opacity 0.3s, transform 0.3s;
}
.faq-icon::before { width: 14px; height: 2px; top: 9px; left: 3px; }
.faq-icon::after  { width: 2px; height: 14px; top: 3px; left: 9px; }
.faq-item.open .faq-icon::after { opacity: 0; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 22px; }

#form-section {
  background: var(--primary);
  color: var(--primary-fg);
  position: relative;
  overflow: hidden;
}
.form-wrapper {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.form-wrapper h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
  color: var(--primary-fg);
}
.form-wrapper p {
  color: rgba(250,248,245,0.8);
  margin-bottom: 40px;
  font-size: 17px;
}
.lead-form {
  background: var(--bg);
  padding: 40px 48px;
  text-align: left;
}
.form-group {
  margin-bottom: 28px;
}
.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.form-group input {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid rgba(44,31,20,0.25);
  background: transparent;
  padding: 10px 0;
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--primary); }
.form-group input::placeholder { color: rgba(107,90,78,0.5); }
.submit-btn {
  width: 100%;
  padding: 18px;
  font-size: 17px;
  margin-top: 8px;
}

.error-msg {
  font-size: 13px;
  color: #c0392b;
  margin-top: 6px;
  display: none;
}
.form-group.has-error .error-msg { display: block; }
.form-group.has-error input { border-color: #c0392b; }

footer {
  background: rgba(237,232,224,0.6);
  border-top: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 20px;
}
.footer-company {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 28px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 -4px 24px rgba(44,31,20,0.08);
  transform: translateY(0);
  transition: transform 0.3s ease;
}
.cookie-banner.hidden { transform: translateY(100%); display: none; }
.cookie-text { font-size: 14px; color: var(--text-muted); }
.cookie-text a { color: var(--primary); text-decoration: underline; }
.cookie-accept {
  flex-shrink: 0;
  padding: 10px 24px;
  font-size: 14px;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.legal-content h1 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 32px;
}
.legal-content h3 {
  font-size: 1.1rem;
  margin: 36px 0 12px;
}
.legal-content p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.8; }
.legal-content ul { padding-left: 24px; margin-bottom: 16px; }
.legal-content ul li { color: var(--text-muted); margin-bottom: 8px; list-style: disc; line-height: 1.75; }

.success-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
}
.success-box { max-width: 480px; }
.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
}
.success-icon svg { width: 36px; height: 36px; stroke: var(--primary); }
.success-box h1 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
}
.success-box p { color: var(--text-muted); margin-bottom: 40px; font-size: 17px; }

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s 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; }

@media (max-width: 900px) {
  :root { --section: 64px; }
  .grid-2, .program-intro { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .teacher-img { order: -1; }
  .teacher-img img { aspect-ratio: 4/3; }
  .img-accent { display: none; }
}

@media (max-width: 600px) {
  :root { --section: 48px; }
  .grid-3 { grid-template-columns: 1fr; gap: 36px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .lead-form { padding: 28px 24px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .hero-content h1 { font-size: 2rem; }
}
