@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --bg: #fdfaf6;
  --bg-muted: #f5f0e8;
  --bg-secondary: #ede8df;
  --bg-card: #ffffff;
  --bg-accent: #f7ede2;
  --fg: #2c3531;
  --fg-muted: #6b7a74;
  --primary: #b86b43;
  --primary-dark: #9d5a37;
  --primary-light: #e8c4aa;
  --border: #e2d9cc;
  --border-light: #ede8df;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 3px rgba(44,53,49,0.08);
  --shadow: 0 4px 16px rgba(44,53,49,0.10);
  --shadow-lg: 0 8px 32px rgba(44,53,49,0.12);
  --container: 1280px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

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

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

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

ul {
  list-style: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  height: 56px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 12px rgba(184,107,67,0.28);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 18px rgba(184,107,67,0.38);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-muted);
  transform: translateY(-1px);
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,250,246,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg);
  transition: color var(--transition);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color var(--transition);
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 42px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

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

.nav-mobile a {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  transition: color var(--transition);
}

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

.section-hero {
  padding: 64px 0 96px;
  overflow: hidden;
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 560px;
}

.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
  color: var(--fg);
  font-weight: 500;
}

.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
}

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

.hero-img-inner {
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

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

.hero-img-deco {
  position: absolute;
  inset: -16px;
  border: 1px solid rgba(184,107,67,0.2);
  border-radius: var(--radius-xl);
  z-index: -1;
  transform: rotate(3deg) translate(8px, 8px);
  pointer-events: none;
}

.section-for-whom {
  padding: 80px 0;
  background: var(--bg-muted);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 42px);
  color: var(--fg);
  font-weight: 500;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-top: 12px;
}

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

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.card-num {
  width: 48px;
  height: 48px;
  background: rgba(184,107,67,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--primary);
}

.card h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--fg);
}

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

.section-how {
  padding: 80px 0;
  background: var(--bg);
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.how-img {
  position: relative;
}

.how-img-inner {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.how-img-glow {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 192px;
  height: 192px;
  background: var(--bg-accent);
  border-radius: 50%;
  z-index: -1;
  filter: blur(40px);
  opacity: 0.6;
}

.how-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.how-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.how-step-line {
  width: 4px;
  border-radius: 4px;
  align-self: stretch;
  flex-shrink: 0;
}

.how-step:nth-child(1) .how-step-line { background: var(--primary); }
.how-step:nth-child(2) .how-step-line { background: rgba(184,107,67,0.55); }
.how-step:nth-child(3) .how-step-line { background: rgba(184,107,67,0.3); }

.how-step h4 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--fg);
}

.how-step p {
  color: var(--fg-muted);
  line-height: 1.65;
  font-size: 15px;
}

.section-results {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

.result-card {
  background: rgba(237,232,223,0.5);
  border: 1px solid rgba(44,53,49,0.08);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.result-card h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--fg);
}

.result-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

.section-teacher {
  padding: 80px 0;
  background: var(--bg);
}

.teacher-box {
  background: var(--bg-accent);
  border-radius: var(--radius-xl);
  padding: 64px;
  display: flex;
  gap: 64px;
  align-items: center;
}

.teacher-img-wrap {
  flex: 0 0 38%;
}

.teacher-img-inner {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.teacher-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.teacher-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.teacher-name {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  color: var(--fg);
  margin-top: 4px;
}

.teacher-quote {
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg);
  font-style: italic;
}

.teacher-bio {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
}

.section-program {
  padding: 80px 0;
  background: rgba(245,240,232,0.4);
}

.program-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 56px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.program-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.program-step-num {
  width: 48px;
  height: 48px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--fg);
  box-shadow: var(--shadow-sm);
  margin-top: 4px;
}

.program-step h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--fg);
}

.program-step p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
}

.section-testimonials {
  padding: 80px 0;
  background: var(--bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.testimonial-card {
  background: rgba(245,240,232,0.5);
  border-radius: var(--radius);
  padding: 32px;
}

.stars {
  color: var(--primary);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--fg);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-author {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}

.testimonial-role {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 3px;
}

.section-faq {
  padding: 80px 0;
  background: var(--bg-accent);
}

.faq-list {
  max-width: 680px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

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

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
  cursor: pointer;
  gap: 16px;
  transition: color var(--transition);
}

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

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-icon::before {
  width: 12px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item.is-open .faq-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

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

.faq-answer-inner {
  padding-bottom: 20px;
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.75;
}

.faq-item.is-open .faq-answer {
  max-height: 320px;
}

.section-form {
  padding: 96px 0;
  background: var(--bg);
  border-top: 1px solid var(--border-light);
}

.form-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 72px 80px;
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 48px;
}

.form-header .section-title {
  margin-bottom: 12px;
}

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

.form-fields {
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
}

.form-input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  color: var(--fg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: #b0a99e;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(184,107,67,0.12);
}

.form-input.is-error {
  border-color: #c0392b;
}

.form-error {
  font-size: 13px;
  color: #c0392b;
  display: none;
}

.form-error.is-visible {
  display: block;
}

.form-submit {
  margin-top: 8px;
  width: 100%;
}

.form-consent {
  text-align: center;
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 16px;
  line-height: 1.6;
}

.form-consent a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

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

footer {
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
  display: block;
}

.footer-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 260px;
}

.footer-col-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 16px;
}

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

.footer-links a {
  font-size: 14px;
  color: var(--fg-muted);
  transition: color var(--transition);
}

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

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

.footer-requisites span,
.footer-requisites a {
  font-size: 14px;
  color: var(--fg-muted);
  transition: color var(--transition);
}

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

.footer-requisites a {
  margin-top: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--fg-muted);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 16px 24px;
  display: none;
  animation: slideUp 0.4s ease;
}

.cookie-banner.is-visible {
  display: block;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-inner {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-lg);
}

.cookie-text {
  flex: 1;
  font-size: 14px;
  color: var(--fg);
  line-height: 1.6;
}

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

.cookie-accept {
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.cookie-accept:hover {
  background: var(--primary-dark);
}

.page-legal {
  padding: 64px 0 80px;
  background: var(--bg);
}

.legal-content {
  max-width: 680px;
  margin: 0 auto;
}

.legal-content h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 28px;
  line-height: 1.2;
}

.legal-content .lead {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
}

.legal-content h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--fg);
  margin-top: 40px;
  margin-bottom: 12px;
}

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

.legal-content ul {
  padding-left: 20px;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.legal-content ul li {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
}

.legal-content strong {
  color: var(--fg);
  font-weight: 500;
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-success {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  background: var(--bg);
}

.success-box {
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(184,107,67,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.success-icon svg {
  color: var(--primary);
}

.success-h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 16px;
}

.success-text {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

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

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

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-img-inner {
    aspect-ratio: 4/3;
    max-width: 600px;
  }

  .hero-img-deco {
    display: none;
  }

  .how-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .how-img {
    order: 1;
  }

  .how-content {
    order: 2;
  }

  .teacher-box {
    flex-direction: column;
    padding: 40px;
    gap: 32px;
  }

  .teacher-img-wrap {
    flex: none;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

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

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

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

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

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

@media (max-width: 768px) {
  .section-hero {
    padding: 40px 0 64px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

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

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

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

  .cookie-accept {
    width: 100%;
    text-align: center;
    padding: 12px 24px;
  }

  .teacher-box {
    padding: 32px 20px;
  }

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

  .cards-grid {
    margin-top: 36px;
  }

  .program-steps {
    margin-top: 36px;
  }

  .testimonials-grid {
    margin-top: 36px;
  }
}
