@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Plus+Jakarta+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%);
  --fg: hsl(24, 10%, 10%);
  --primary: hsl(35, 92%, 33%);
  --primary-light: hsl(35, 92%, 45%);
  --card: hsl(40, 33%, 98%);
  --border: hsl(36, 20%, 85%);
  --muted: hsl(24, 10%, 40%);
  --section-alt: hsl(40, 33%, 98%);
  --dark-bg: hsl(24, 10%, 10%);
  --dark-fg: hsl(40, 33%, 96%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

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

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

button {
  cursor: pointer;
  font-family: inherit;
}

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

.container-narrow {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  text-align: center;
}

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

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

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

.btn-outline {
  background-color: transparent;
  color: var(--dark-fg);
  border: 1px solid rgba(245, 240, 232, 0.4);
}

.btn-outline:hover {
  background-color: rgba(245, 240, 232, 0.1);
}

.btn-full {
  width: 100%;
  display: block;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background-color 0.3s, padding 0.3s, box-shadow 0.3s;
}

header.scrolled {
  background-color: rgba(248, 246, 241, 0.95);
  backdrop-filter: blur(8px);
  padding: 14px 0;
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav a, nav button {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  background: none;
  border: none;
  padding: 0;
  transition: color 0.2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

nav a:hover, nav button:hover {
  color: var(--primary);
}

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  mix-blend-mode: multiply;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  background-color: rgba(248, 246, 241, 0.96);
  backdrop-filter: blur(4px);
  padding: 48px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  color: rgba(28, 26, 24, 0.78);
  margin-bottom: 36px;
  max-width: 480px;
}

.section {
  padding: 96px 0;
}

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

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 24px;
}

.section-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
}

.text-center {
  text-align: center;
}

.mb-16 {
  margin-bottom: 64px;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

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

.benefit {
  border-left: 2px solid rgba(158, 96, 5, 0.25);
  padding-left: 24px;
}

.benefit-number {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  color: rgba(158, 96, 5, 0.45);
  margin-bottom: 12px;
  display: block;
  line-height: 1;
}

.benefit h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.benefit p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

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

.program-img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.accordion {
  width: 100%;
}

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

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
  gap: 16px;
}

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

.accordion-trigger .chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--muted);
}

.accordion-trigger.open .chevron {
  transform: rotate(180deg);
}

.accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.accordion-body.open {
  max-height: 300px;
}

.accordion-body-inner {
  padding: 0 0 20px 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}

.instructor-wrap {
  position: relative;
}

.instructor-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(158, 96, 5, 0.1);
  transform: translate(16px, 16px);
  z-index: -1;
}

.instructor-img {
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.instructor-text p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 20px;
  font-size: 15px;
}

.instructor-text p.lead {
  font-size: 17px;
  color: var(--fg);
}

.blockquote {
  border-left: 4px solid var(--primary);
  padding: 8px 0 8px 24px;
  margin-top: 8px;
}

.blockquote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 20px;
  color: rgba(28, 26, 24, 0.78);
  margin-bottom: 0 !important;
}

.form-section {
  background-color: var(--dark-bg);
  color: var(--dark-fg);
  padding: 96px 0;
}

.form-section .section-title {
  color: var(--dark-fg);
}

.form-section .section-lead {
  color: rgba(248, 246, 241, 0.78);
}

.form-box {
  background-color: rgba(248, 246, 241, 0.08);
  border: 1px solid rgba(248, 246, 241, 0.18);
  padding: 48px;
  max-width: 520px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--dark-fg);
}

.form-group input {
  width: 100%;
  padding: 13px 14px;
  background-color: transparent;
  border: 1px solid rgba(248, 246, 241, 0.28);
  color: var(--dark-fg);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input::placeholder {
  color: rgba(248, 246, 241, 0.35);
}

.form-group input:focus {
  border-color: var(--primary);
}

.form-error {
  font-size: 13px;
  color: hsl(0, 70%, 65%);
  margin-top: 6px;
  display: none;
}

.form-group.error .form-error {
  display: block;
}

.form-group.error input {
  border-color: hsl(0, 70%, 65%);
}

.form-note {
  font-size: 12px;
  color: rgba(248, 246, 241, 0.45);
  text-align: center;
  margin-top: 16px;
}

.form-note a {
  text-decoration: underline;
  color: rgba(248, 246, 241, 0.65);
}

footer {
  background-color: var(--dark-bg);
  color: var(--dark-fg);
  padding: 64px 0 32px;
}

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

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--dark-fg);
  display: block;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  color: rgba(248, 246, 241, 0.7);
  line-height: 1.6;
}

.footer-heading {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(248, 246, 241, 0.7);
  transition: color 0.2s;
}

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

.footer-requisites {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-requisites p {
  font-size: 14px;
  color: rgba(248, 246, 241, 0.7);
}

.footer-bottom {
  border-top: 1px solid rgba(248, 246, 241, 0.15);
  padding-top: 28px;
  text-align: center;
  font-size: 13px;
  color: rgba(248, 246, 241, 0.45);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}

.cookie-inner {
  background-color: var(--dark-bg);
  color: var(--dark-fg);
  padding: 20px 28px;
  max-width: 700px;
  width: 100%;
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 24px;
  border: 1px solid rgba(248, 246, 241, 0.1);
}

.cookie-text {
  flex: 1;
  font-size: 14px;
  color: rgba(248, 246, 241, 0.88);
  line-height: 1.55;
}

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

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-buttons .btn {
  padding: 10px 20px;
  font-size: 14px;
}

.legal-page {
  padding: 120px 0 80px;
}

.legal-page h1 {
  font-size: 40px;
  margin-bottom: 8px;
}

.legal-page .update-date {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 14px;
}

.legal-content p {
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.75;
  font-size: 15px;
}

.legal-content ul {
  color: var(--muted);
  margin-bottom: 14px;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.75;
}

.legal-content li {
  margin-bottom: 6px;
}

.success-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px;
}

.success-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  padding: 56px 48px;
  text-align: center;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}

.success-icon {
  width: 72px;
  height: 72px;
  background-color: rgba(158, 96, 5, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.success-icon svg {
  width: 36px;
  height: 36px;
  color: var(--primary);
}

.success-card h1 {
  font-size: 30px;
  margin-bottom: 16px;
}

.success-card p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
  font-size: 15px;
}

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

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
  padding: 4px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  background-color: var(--bg);
  border-top: 1px solid var(--border);
  padding: 8px 0;
}

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

.mobile-nav a, .mobile-nav button {
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  background: none;
  border: none;
  text-align: left;
  font-family: 'Plus Jakarta Sans', sans-serif;
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.mobile-nav a:last-child, .mobile-nav button:last-child {
  border-bottom: none;
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .two-col-reverse .col-text {
    order: -1;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 600px) {
  .hero-content {
    padding: 28px 24px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .section {
    padding: 64px 0;
  }

  .form-box {
    padding: 28px 20px;
  }

  .success-card {
    padding: 36px 24px;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }

  .cookie-buttons {
    width: 100%;
  }

  .cookie-buttons .btn {
    flex: 1;
  }

  .legal-page {
    padding: 100px 0 60px;
  }

  .legal-page h1 {
    font-size: 28px;
  }
}
