:root {
  --bg: #FAF6F0;
  --surface: #FFFFFF;
  --primary: #3C5F3E;
  --primary-dark: #2A4130;
  --primary-light: #EEF4EE;
  --accent: #C05C2B;
  --accent-light: #F5EDE3;
  --text: #1C1C1C;
  --text-muted: #6B6B6B;
  --border: #E5DDD3;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --max-w: 1160px;
  --section-py: 96px;
}

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

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

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

.section { padding: var(--section-py) 0; }
.section--alt { background: var(--surface); }
.section--dark { background: var(--primary-dark); color: #fff; }
.section--accent { background: var(--accent-light); }

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 20px;
}

.section-title--white { color: #fff; }

.section-lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
}

.section-lead--white { color: rgba(255,255,255,0.8); }

.section-header { margin-bottom: 56px; }
.section-header--center { text-align: center; }
.section-header--center .section-lead { margin: 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #A84E24; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-white {
  background: #fff;
  color: var(--accent);
}
.btn-white:hover { background: var(--accent-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-lg { font-size: 17px; padding: 17px 40px; border-radius: 10px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark svg { color: #fff; }

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

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.nav a:hover { color: var(--text); background: var(--border); }

.header-cta { flex-shrink: 0; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  gap: 4px;
}

.mobile-nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-nav .btn { margin-top: 16px; width: 100%; }

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

.hero {
  padding: 80px 0 72px;
  overflow: hidden;
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--primary-dark);
  margin-bottom: 24px;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hero-trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-trust-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1;
}

.hero-trust-label {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-trust-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

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

.hero-image {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}

.hero-badge {
  position: absolute;
  bottom: -16px;
  left: -24px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-badge-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.hero-badge-text { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.4; }
.hero-badge-sub { font-size: 12px; color: var(--text-muted); font-weight: 400; }

.for-whom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.for-whom-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.for-whom-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.for-whom-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.for-whom-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.for-whom-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

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

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

.format-step {
  display: flex;
  gap: 20px;
}

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.step-content {}
.step-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.step-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.format-image {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
}

.format-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.format-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.feature-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption { opacity: 1; }

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.module-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 28px;
}

.module-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

.module-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.module-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.module-list li {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.module-list li::before {
  content: '—';
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
}

.teacher-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 72px;
  align-items: center;
}

.teacher-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-lg);
}

.teacher-name {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.teacher-role {
  font-size: 15px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 24px;
}

.teacher-bio {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
}

.teacher-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.teacher-fact {
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.teacher-fact-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.teacher-fact-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  color: #F5A623;
  font-size: 16px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.testimonial-name { font-size: 14px; font-weight: 700; color: var(--text); }
.testimonial-detail { font-size: 13px; color: var(--text-muted); }

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

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

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

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.2s ease, background 0.2s ease;
  line-height: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: #fff;
}

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

.faq-answer-inner {
  padding: 0 24px 22px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
}

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

.lead-form-section { background: var(--surface); }

.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.form-side {}

.form-side .section-lead { color: var(--text-muted); max-width: 100%; }

.form-guarantees {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
}

.form-guarantee {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.guarantee-icon {
  flex-shrink: 0;
  font-size: 18px;
  margin-top: 1px;
}

.contact-form {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease;
  -webkit-appearance: none;
}

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

.form-group input.error,
.form-group select.error {
  border-color: #c0392b;
}

.form-error {
  font-size: 12px;
  color: #c0392b;
  margin-top: 5px;
  display: none;
}

.form-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.5;
}

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

.cta-band {
  background: var(--primary);
  padding: 72px 0;
  text-align: center;
}

.cta-band-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.25;
}

.cta-band-lead {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 32px;
}

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

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

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

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

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color 0.15s ease;
}

.footer-links a:hover { color: #fff; }

.footer-requisites {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color 0.15s ease;
}

.footer-legal-links a:hover { color: rgba(255,255,255,0.8); }

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: var(--primary-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 20px 24px;
  max-width: 560px;
  width: calc(100% - 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.1);
}

.cookie-text {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.cookie-text a {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-accept {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 18px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.cookie-accept:hover { background: #A84E24; }

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

.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 24px;
}

.legal-page h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.legal-page h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--primary-dark);
}

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

.legal-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page ul li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 6px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 32px;
}

.legal-back:hover { color: var(--primary-dark); }

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

.success-wrap { max-width: 480px; }

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 28px;
}

.success-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

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

@media (max-width: 1024px) {
  :root { --section-py: 72px; }
  .hero-inner { gap: 40px; }
  .format-grid { gap: 40px; }
  .teacher-inner { grid-template-columns: 300px 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  :root { --section-py: 56px; }

  .nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }

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

  .hero-badge { bottom: -12px; left: 0; right: 0; margin: 0 auto; max-width: 280px; }

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

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

  .gallery-grid .gallery-item:last-child {
    grid-column: 1 / -1;
  }

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

  .teacher-photo { max-width: 280px; aspect-ratio: 1/1; margin: 0 auto; }

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

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

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

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

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

  .cookie-actions { width: 100%; }
  .cookie-accept { flex: 1; text-align: center; }

  .hero-trust { flex-wrap: wrap; }

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

  .teacher-facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .gallery-item:last-child { grid-column: auto; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .curriculum-grid { grid-template-columns: 1fr; }
}
