:root {
  --bg: #FAF7F2;
  --surface: #FFFCF8;
  --peach: #F4DECB;
  --peach-soft: #FBEEE0;
  --mint: #D7E9DA;
  --mint-soft: #E9F3EB;
  --lavender: #E0D7EC;
  --lavender-soft: #F0EBF7;
  --rose: #F2D7DC;
  --ink: #3F3A36;
  --ink-soft: #6F6660;
  --accent: #C7A088;
  --accent-dark: #A8836B;
  --shadow: 0 6px 24px rgba(108, 88, 70, 0.08);
  --shadow-lg: 0 12px 36px rgba(108, 88, 70, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: 'Georgia', 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}
h1 { font-size: 2.4rem; margin: 0 0 16px; }
h2 { font-size: 1.9rem; margin: 0 0 24px; }
h3 { font-size: 1.25rem; margin: 0 0 10px; }
p { margin: 0 0 12px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--peach-soft) 0%, var(--rose) 50%, var(--lavender) 100%);
  padding: 88px 0 72px;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 36px;
  max-width: 680px;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.meta-item {
  background: var(--surface);
  padding: 18px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.meta-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.meta-value { display: block; font-weight: 600; color: var(--ink); }

/* Sections */
.section { padding: 72px 0; }
.section-program { background: var(--surface); }
.section-injuries { background: var(--mint-soft); }
.section-legal { background: var(--peach-soft); }
.section-instructors { background: var(--surface); }
.section-pricing { background: linear-gradient(135deg, var(--lavender-soft) 0%, var(--mint-soft) 100%); }

/* Program */
.program-list {
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}
.program-list li {
  background: var(--peach-soft);
  padding: 14px 20px;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
}
.program-list li strong {
  color: var(--accent-dark);
  margin-right: 8px;
  font-family: 'Inter', sans-serif;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card h3 { color: var(--accent-dark); }

/* Legal */
.legal-list {
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
}
.legal-list li {
  background: var(--surface);
  padding: 14px 18px;
  border-radius: 12px;
  border-left: 4px solid var(--lavender);
}

/* Hero image (the only bright element) */
.hero-image { margin: 0; padding: 0; }
.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
}

/* Instructors */
.instructors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.instructor {
  background: var(--peach-soft);
  padding: 28px;
  border-radius: var(--radius);
  text-align: center;
}
.instructor-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--peach) 0%, var(--rose) 100%);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 auto 16px;
  font-family: 'Georgia', serif;
}
.instructor-title { color: var(--accent-dark); font-weight: 600; margin-bottom: 12px; }

/* Pricing */
.tariffs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.tariff {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}
.tariff h3 { color: var(--accent-dark); }
.tariff .price {
  font-size: 2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 8px 0 16px;
  font-family: 'Georgia', serif;
}
.tariff ul { padding-left: 20px; margin: 0; }
.tariff li { margin-bottom: 6px; }
.tariff-popular {
  background: linear-gradient(165deg, var(--peach-soft) 0%, var(--surface) 100%);
  border: 2px solid var(--peach);
  transform: translateY(-4px);
}
.badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

/* CTA */
.cta { text-align: center; }
.btn-primary {
  font: inherit;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 16px 40px;
  font-size: 1.05rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 8px 20px rgba(199, 160, 136, 0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
  box-shadow: 0 12px 28px rgba(199, 160, 136, 0.4);
}
.btn-primary:active { transform: translateY(0); }

/* Footer */
.site-footer {
  background: var(--surface);
  padding: 32px 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal.is-open { display: flex; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(63, 58, 54, 0.45);
  backdrop-filter: blur(2px);
}
.modal-window {
  position: relative;
  background: var(--surface);
  padding: 40px 36px 32px;
  border-radius: var(--radius);
  width: min(440px, calc(100% - 32px));
  box-shadow: 0 20px 60px rgba(63, 58, 54, 0.25);
  z-index: 1;
  animation: modalIn 0.2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.modal-close:hover { color: var(--ink); }
.modal-window h2 { margin-bottom: 8px; font-size: 1.5rem; }
.modal-window form { display: grid; gap: 14px; margin-top: 20px; }
.modal-window label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.modal-window input {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--peach);
  background: var(--peach-soft);
  border-radius: 12px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.modal-window input:focus { border-color: var(--accent); background: #fff; }
.form-status { margin: 0; font-size: 0.92rem; min-height: 1.2em; }
.form-status.is-success { color: #4a7a55; }
.form-status.is-error { color: #a65555; }

@media (max-width: 600px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 48px; }
  .tariff-popular { transform: none; }
}
