:root {
  --cream: #FAF8F5;
  --warm-beige: #F0EBE3;
  --brown: #2D2A27;
  --brown-light: #5C5550;
  --terracotta: #C8866B;
  --terracotta-dark: #B5704F;
  --sage: #7A9E7E;
  --sage-light: #A8C4AB;
  --white: #FFFFFF;
  --border: #E2D9CF;
  --shadow: 0 2px 16px rgba(45, 42, 39, 0.08);
  --shadow-lg: 0 8px 32px rgba(45, 42, 39, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font-head: 'Nunito', sans-serif;
  --font-body: 'Lora', serif;
  --container: 1140px;
  --transition: 0.25s ease;
}

*, *::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(--brown);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--terracotta); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--terracotta-dark); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  padding: 14px 32px;
  transition: all var(--transition);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(200, 134, 107, 0.35);
}
.btn--primary:hover {
  background: var(--terracotta-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 134, 107, 0.45);
}
.btn--ghost {
  background: transparent;
  color: var(--brown);
  border: 2px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}
.btn--nav {
  background: var(--terracotta);
  color: var(--white);
  padding: 10px 24px;
  font-size: 0.9rem;
}
.btn--nav:hover {
  background: var(--terracotta-dark);
  color: var(--white);
}
.btn--lg { padding: 18px 44px; font-size: 1.05rem; }
.btn--full { width: 100%; }

.label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brown);
  color: var(--white);
  z-index: 999;
  padding: 16px 0;
  transform: translateY(0);
  transition: transform 0.3s ease;
}
.cookie-banner.is-hidden {
  transform: translateY(100%);
}
.cookie-banner__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner p { font-family: var(--font-head); font-size: 0.9rem; line-height: 1.5; color: rgba(255,255,255,0.85); }
.cookie-banner a { color: var(--terracotta); }
.cookie-banner__btn {
  background: var(--terracotta);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50px;
  padding: 10px 24px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition);
}
.cookie-banner__btn:hover { background: var(--terracotta-dark); }

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
  padding: 0;
}
.header.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}
.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--brown);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo--light { color: rgba(255,255,255,0.8); }
.logo--light:hover { color: var(--white); }
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.nav__link {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brown-light);
  text-decoration: none;
  transition: color var(--transition);
}
.nav__link:hover { color: var(--terracotta); }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 16px 0 24px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav__link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--brown);
  padding: 14px 24px;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.mobile-nav__link:hover { color: var(--terracotta); background: var(--warm-beige); }
.mobile-nav__link--cta {
  color: var(--terracotta);
  font-weight: 700;
  border-bottom: none;
  margin-top: 8px;
}

.hero {
  padding-top: calc(72px + 60px);
  padding-bottom: 80px;
  background: var(--cream);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__content { max-width: 560px; }
.hero__badge {
  display: inline-block;
  background: var(--warm-beige);
  border: 1px solid var(--border);
  color: var(--brown-light);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.hero__title {
  margin-bottom: 20px;
  color: var(--brown);
}
.hero__sub {
  font-size: 1.1rem;
  color: var(--brown-light);
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero__trust {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero__trust li {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brown-light);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero__trust li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--sage);
  border-radius: 50%;
}
.hero__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__image img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}
.hero__image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,134,107,0.1), transparent);
  z-index: 1;
  pointer-events: none;
}

.section {
  padding: 80px 0;
}
.section--warm {
  background: var(--warm-beige);
}
.section--accent {
  background: var(--brown);
  color: var(--white);
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.section-title {
  margin-bottom: 16px;
}
.section-sub {
  color: var(--brown-light);
  font-size: 1.05rem;
}
.section--accent .section-sub { color: rgba(255,255,255,0.65); }

.cards-grid {
  display: grid;
  gap: 24px;
}
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--sage-light);
  color: var(--white);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.card__title {
  margin-bottom: 10px;
  color: var(--brown);
}
.card__text {
  color: var(--brown-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 64px;
  margin-bottom: 56px;
}
.how-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.how-item__num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  min-width: 52px;
}
.how-item__title {
  margin-bottom: 8px;
  color: var(--brown);
}
.how-item__text {
  color: var(--brown-light);
  font-size: 0.95rem;
  line-height: 1.7;
}
.how-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.how-image img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.program-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
}
.program-block__title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--warm-beige);
}
.program-list li {
  font-size: 0.95rem;
  color: var(--brown-light);
  line-height: 1.6;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.program-list li:last-child { border-bottom: none; }
.program-list li::before {
  content: '—';
  color: var(--sage);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.results-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.results-image img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.instructor-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 72px;
  align-items: start;
}
.instructor__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 96px;
}
.instructor__photo img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: top;
}
.instructor__name {
  margin-bottom: 20px;
  color: var(--brown);
}
.instructor__bio {
  color: var(--brown-light);
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.8;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
}
.review__stars {
  color: #E9A84A;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.review__text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--brown-light);
  font-style: italic;
  margin-bottom: 20px;
}
.review__author { border-top: 1px solid var(--border); padding-top: 16px; }
.review__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brown);
}
.review__city {
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: var(--brown-light);
  margin-top: 2px;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item__q {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--brown);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}
.faq-item__q:hover { color: var(--terracotta); }
.faq-item__arrow {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  margin-top: -4px;
}
.faq-item__q[aria-expanded="true"] .faq-item__arrow {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item__a.is-open {
  max-height: 400px;
  padding-bottom: 24px;
}
.faq-item__a p {
  color: var(--brown-light);
  font-size: 0.975rem;
  line-height: 1.75;
}

.form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
.form-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}
.form-sub {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  line-height: 1.7;
}
.lead-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 8px;
}
.form-group input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.975rem;
  color: var(--brown);
  background: var(--cream);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(200, 134, 107, 0.15);
}
.form-group input::placeholder { color: #B8AFA8; }
.form-group input.is-invalid { border-color: #C0392B; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  margin-top: 2px;
  accent-color: var(--terracotta);
}
.form-check label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--brown-light);
  line-height: 1.5;
  cursor: pointer;
}
.form-check label a { color: var(--terracotta); }
.form-error {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: #C0392B;
  margin-bottom: 12px;
  min-height: 20px;
}

.footer {
  background: #231F1C;
  color: rgba(255,255,255,0.6);
  padding: 56px 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
.footer__brand .logo {
  margin-bottom: 10px;
  display: inline-block;
}
.footer__tagline {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}
.footer__company {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 6px;
}
.footer__details {
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 20px;
}
.footer__links a {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--terracotta); }
.footer__copy {
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

.legal-page {
  padding: calc(72px + 60px) 0 80px;
  min-height: 70vh;
}
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 8px;
}
.legal-date {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--brown-light);
  margin-bottom: 48px;
}
.legal-content h2 {
  font-size: 1.25rem;
  margin: 36px 0 12px;
  color: var(--brown);
}
.legal-content p {
  color: var(--brown-light);
  margin-bottom: 14px;
  line-height: 1.8;
}
.legal-content ul {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.legal-content ul li {
  color: var(--brown-light);
  padding: 6px 0 6px 20px;
  position: relative;
  line-height: 1.7;
}
.legal-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--sage);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-top: 48px;
}
.back-link:hover { color: var(--terracotta-dark); }

.success-page {
  min-height: calc(100vh - 72px - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(72px + 60px) 0 80px;
}
.success-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--sage-light);
  color: var(--white);
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 900;
  margin: 0 auto 28px;
}
.success-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--brown);
}
.success-text {
  color: var(--brown-light);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 16px;
}
.success-text:last-of-type { margin-bottom: 32px; }

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.7s ease forwards;
}
.fade-in--delayed {
  animation-delay: 0.2s;
}
@keyframes fadeIn {
  to { opacity: 1; transform: none; }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1024px) {
  .hero__grid { gap: 40px; }
  .hero__image img { height: 380px; }
  .instructor-grid {
    grid-template-columns: 320px 1fr;
    gap: 48px;
  }
  .instructor__photo img { height: 420px; }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__content { max-width: 100%; }
  .hero { padding-top: calc(72px + 40px); }
  .hero__image img { height: 320px; }
  .how-grid { grid-template-columns: 1fr; gap: 32px; }
  .instructor-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .instructor__photo { position: static; }
  .instructor__photo img { height: 360px; object-position: center top; }
  .reviews-grid { grid-template-columns: 1fr; }
  .form-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .cards-grid--2 { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }
  .lead-form { padding: 28px 24px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .cookie-banner__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .success-card { padding: 40px 24px; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
}
