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

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

:root {
  --bg: hsl(40, 33%, 96%);
  --bg-card: hsl(40, 33%, 98%);
  --fg: hsl(20, 20%, 20%);
  --border: hsl(35, 25%, 85%);
  --primary: hsl(12, 35%, 55%);
  --primary-fg: hsl(40, 33%, 96%);
  --secondary: hsl(20, 40%, 85%);
  --secondary-fg: hsl(20, 20%, 20%);
  --muted: hsl(35, 25%, 90%);
  --muted-fg: hsl(25, 15%, 45%);
  --destructive: hsl(0, 84%, 60%);
  --radius: 0.5rem;
  --font-sans: 'Nunito Sans', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --max-w: 1200px;
  --px: 1.5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.2;
}

.container {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--px);
  padding-right: var(--px);
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary);
  color: var(--primary-fg);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  text-align: center;
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: hsl(12, 35%, 48%);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: center;
}

.btn-outline:hover {
  background-color: var(--muted);
}

.btn-dark {
  display: inline-block;
  background-color: var(--fg);
  color: var(--bg);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: center;
  width: 100%;
}

.btn-dark:hover {
  background-color: hsl(20, 20%, 28%);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: hsla(40, 33%, 96%, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  transition: color 0.2s;
}

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

nav.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

nav.desktop-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: hsl(20, 20%, 40%);
  transition: color 0.2s;
}

nav.desktop-nav a:hover {
  color: var(--primary);
}

.nav-cta {
  background-color: var(--primary);
  color: var(--primary-fg);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.625rem 1.5rem;
  border-radius: 2rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.nav-cta:hover {
  background-color: hsl(12, 35%, 48%);
}

.nav-cta:active {
  transform: scale(0.97);
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--fg);
}

.burger svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 5rem;
  left: 0;
  width: 100%;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

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

.mobile-nav a, .mobile-nav button {
  font-size: 1rem;
  font-weight: 500;
  color: hsl(20, 20%, 35%);
  padding: 0.5rem 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
}

.mobile-nav .mobile-cta {
  background-color: var(--primary);
  color: var(--primary-fg);
  padding: 0.875rem 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
  font-weight: 600;
  margin-top: 0.5rem;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  width: 100%;
}

section {
  padding: 6rem 0;
}

.section-alt {
  background-color: var(--bg-card);
  border-top: 1px solid hsla(35, 25%, 85%, 0.6);
  border-bottom: 1px solid hsla(35, 25%, 85%, 0.6);
}

.section-header {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--muted-fg);
  font-size: 1rem;
  line-height: 1.7;
}

.hero {
  padding-top: 10rem;
  padding-bottom: 6rem;
  background-color: var(--bg);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background-color: hsla(20, 40%, 85%, 0.4);
  color: var(--fg);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 2rem;
  border: 1px solid var(--secondary);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

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

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted-fg);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 30rem;
}

.hero-image-wrap {
  position: relative;
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: -1.5rem;
  background-color: hsla(20, 40%, 85%, 0.35);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
}

.hero-image {
  position: relative;
  z-index: 1;
  border-radius: 1.5rem;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 24px 64px rgba(0,0,0,0.14);
}

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

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.benefit-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: box-shadow 0.25s;
}

.benefit-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.benefit-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.benefit-icon svg {
  width: 1.4rem;
  height: 1.4rem;
  stroke: var(--fg);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.benefit-card p {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.65;
}

.program-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.program-image {
  border-radius: 1.5rem;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}

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

.program-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 2.5rem;
}

.modules {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.module {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.module-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.module h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--fg);
}

.module p {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.65;
}

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

.gallery-item {
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  cursor: pointer;
}

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

.gallery-item:hover img {
  transform: scale(1.04);
}

.author-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 3rem;
  display: flex;
  gap: 3rem;
  align-items: center;
  max-width: 56rem;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}

.author-photo {
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border: 4px solid var(--bg);
}

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

.author-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.author-content h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1rem;
}

.author-content p {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.faq-section {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  background-color: var(--bg-card);
}

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

.faq-item:last-child {
  border-bottom: none;
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.375rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--fg);
  transition: background-color 0.15s;
}

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

.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  font-size: 0.9rem;
  color: var(--muted-fg);
  line-height: 1.75;
}

.faq-item.open .faq-answer {
  max-height: 20rem;
  padding: 0 1.5rem 1.375rem;
}

.form-section {
  background-color: var(--primary);
  position: relative;
  overflow: hidden;
}

.form-section::before,
.form-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.form-section::before {
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.06);
  top: -40%;
  right: -10%;
  filter: blur(60px);
}

.form-section::after {
  width: 400px;
  height: 400px;
  background: rgba(0,0,0,0.09);
  bottom: -30%;
  left: -8%;
  filter: blur(60px);
}

.form-card {
  background-color: var(--bg-card);
  color: var(--fg);
  border-radius: 2rem;
  padding: 3rem;
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
  max-width: 42rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.form-card-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.form-card-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.form-card-header p {
  font-size: 0.9rem;
  color: var(--muted-fg);
  line-height: 1.65;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.375rem;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.form-control::placeholder {
  color: var(--muted-fg);
  opacity: 0.7;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(12, 35%, 55%, 0.15);
}

.form-control.error {
  border-color: var(--destructive);
}

.field-error {
  font-size: 0.8rem;
  color: var(--destructive);
  margin-top: 0.3rem;
}

.form-note {
  font-size: 0.78rem;
  color: var(--muted-fg);
  text-align: center;
  margin-top: 1rem;
}

.form-note a {
  text-decoration: underline;
  transition: color 0.15s;
}

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

textarea.form-control {
  resize: none;
}

.btn-submit {
  width: 100%;
  background-color: var(--primary);
  color: var(--primary-fg);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background-color: hsl(12, 35%, 48%);
}

.btn-submit:active {
  transform: scale(0.98);
}

footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fg);
  display: block;
  margin-bottom: 0.875rem;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.65;
  max-width: 18rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-details p {
  font-size: 0.8rem;
  color: var(--muted-fg);
}

.footer-bottom {
  border-top: 1px solid hsla(35, 25%, 85%, 0.6);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted-fg);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.06);
  z-index: 200;
  padding: 1.25rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.cookie-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-text {
  font-size: 0.875rem;
  color: var(--fg);
  line-height: 1.55;
  max-width: 44rem;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

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

.fade-up.in-view {
  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; }

.legal-main {
  padding-top: 8rem;
  padding-bottom: 5rem;
  max-width: 48rem;
  margin: 0 auto;
  padding-left: var(--px);
  padding-right: var(--px);
}

.legal-main h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 2rem;
}

.legal-body {
  font-size: 0.9rem;
  color: hsl(20, 15%, 35%);
  line-height: 1.8;
}

.legal-body h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  margin: 2rem 0 0.75rem;
}

.legal-body p {
  margin-bottom: 0.75rem;
}

.legal-body ul {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-body li {
  margin-bottom: 0.4rem;
}

.success-main {
  padding-top: 8rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
}

.success-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 3rem;
  max-width: 26rem;
  width: 100%;
  text-align: center;
  box-shadow: 0 16px 64px rgba(0,0,0,0.1);
}

.success-icon {
  width: 4.5rem;
  height: 4.5rem;
  background-color: hsla(12, 35%, 55%, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-icon svg {
  width: 2.2rem;
  height: 2.2rem;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-card h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.875rem;
}

.success-card p {
  font-size: 0.9rem;
  color: var(--muted-fg);
  line-height: 1.7;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --px: 1.25rem;
  }

  section {
    padding: 4rem 0;
  }

  nav.desktop-nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-image {
    aspect-ratio: 4 / 3;
  }

  .hero-image-wrap::before {
    display: none;
  }

  .benefits-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .program-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .program-image {
    aspect-ratio: 4 / 3;
  }

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

  .gallery-grid .gallery-item:last-child {
    display: none;
  }

  .author-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    gap: 1.5rem;
  }

  .author-photo {
    width: 10rem;
    height: 10rem;
  }

  .form-card {
    padding: 2rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn-outline,
  .cookie-actions .btn-primary {
    flex: 1;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 480px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }

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

  .gallery-grid .gallery-item:last-child {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }
}
