:root {
  --cream: #F7F2EC;
  --cream-dark: #EDE7DC;
  --brick: #7C3626;
  --brick-light: #9B4535;
  --green: #2B4438;
  --amber: #B8732D;
  --text: #1A1A1A;
  --text-muted: #6B6560;
  --divider: #DDD5C8;
  --white: #FFFFFF;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
}

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

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

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

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

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

button {
  font-family: var(--font-body);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--divider);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

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

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

.header-cta {
  background: var(--brick);
  color: white;
  padding: 0.55rem 1.3rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.header-cta:hover { background: var(--brick-light); }

.hero {
  padding: 5rem 0 4.5rem;
}

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

.hero-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--amber);
  margin-bottom: 1.1rem;
}

.hero-content h1 {
  color: var(--green);
  margin-bottom: 1.2rem;
}

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

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  line-height: 1.75;
  max-width: 480px;
}

.btn-primary {
  display: inline-block;
  background: var(--brick);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.1s ease;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}

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

.hero-img {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

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

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--cream-dark);
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--amber);
  margin-bottom: 0.8rem;
}

.section-title {
  color: var(--green);
  margin-bottom: 0.9rem;
}

.section-intro {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 620px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 3rem;
}

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

.audience-card {
  background: white;
  border: 1px solid var(--divider);
  border-radius: 8px;
  padding: 2rem 1.75rem;
}

.audience-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.audience-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
  color: var(--green);
}

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

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

.skill-item {
  background: white;
  border-left: 3px solid var(--brick);
  padding: 1.2rem 1.4rem;
  border-radius: 0 6px 6px 0;
}

.skill-item p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}

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

.program-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--divider);
  align-items: start;
}

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

.program-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--divider);
  font-weight: 700;
  line-height: 1;
  padding-top: 0.15rem;
}

.program-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.program-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.format-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.5rem 1.6rem;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--divider);
}

.format-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 0.1rem;
}

.format-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: var(--green);
}

.format-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.gallery-img {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

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

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

.gallery-img--wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 7;
}

.lead-section {
  background: var(--green);
  color: white;
  padding: 5.5rem 0;
}

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

.lead-text .section-label {
  color: rgba(255, 255, 255, 0.55);
}

.lead-title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.lead-sub {
  opacity: 0.75;
  font-size: 0.95rem;
  line-height: 1.75;
}

.lead-form {
  background: white;
  border-radius: 10px;
  padding: 2rem 2rem 1.75rem;
}

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

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--divider);
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text);
  background: white;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-group input::placeholder {
  color: #B5ADA6;
}

.form-group input:focus {
  outline: none;
  border-color: var(--brick);
}

.form-submit {
  width: 100%;
  background: var(--brick);
  color: white;
  padding: 0.9rem;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 0.25rem;
  letter-spacing: 0.01em;
}

.form-submit:hover { background: var(--brick-light); }

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.9rem;
  line-height: 1.5;
}

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

.faq-list {
  display: flex;
  flex-direction: column;
  max-width: 780px;
}

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

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.3rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.975rem;
  color: var(--text);
  text-align: left;
  gap: 1rem;
  line-height: 1.4;
}

.faq-question:hover { color: var(--brick); }

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
  color: var(--text-muted);
}

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

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 0 1.4rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.93rem;
}

.site-footer {
  background: #1A1A1A;
  color: rgba(255, 255, 255, 0.6);
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  display: block;
  font-size: 1.35rem;
  color: white;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.7;
}

.footer-links h4 {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: white; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.footer-bottom a {
  text-decoration: underline;
  transition: color 0.2s;
}

.footer-bottom a:hover { color: white; }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--divider);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 999;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  flex-wrap: wrap;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--brick);
  text-decoration: underline;
}

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

.btn-cookie-accept {
  background: var(--brick);
  color: white;
  padding: 0.5rem 1.3rem;
  border: none;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s;
}

.btn-cookie-accept:hover { background: var(--brick-light); }

.btn-cookie-reject {
  background: transparent;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--divider);
  border-radius: 4px;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.2s, color 0.2s;
}

.btn-cookie-reject:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.success-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  text-align: center;
}

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

.success-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1;
}

.success-inner h1 {
  color: var(--green);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.success-inner p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.75;
  font-size: 1rem;
}

.page-header {
  background: var(--cream-dark);
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 3.5rem;
}

.page-header h1 {
  color: var(--green);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0.6rem;
}

.page-header .updated {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.legal-content {
  max-width: 780px;
  padding-bottom: 5rem;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 2.5rem 0 0.75rem;
  color: var(--green);
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.93rem;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.6rem;
  margin-bottom: 1rem;
}

.legal-content li {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-size: 0.93rem;
  line-height: 1.65;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--brick);
  margin-bottom: 2rem;
  transition: opacity 0.2s;
}

.legal-back:hover { opacity: 0.75; }

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-img {
    order: -1;
    max-height: 320px;
  }

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

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

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

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

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

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

@media (max-width: 640px) {
  .hero {
    padding: 3rem 0 3.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .lead-section {
    padding: 3.5rem 0;
  }

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

  .program-item {
    grid-template-columns: 2.8rem 1fr;
    gap: 1rem;
  }

  .program-num {
    font-size: 1.7rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
