@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@400;500;600&display=swap');

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

:root {
  --bg: #FDFAF7;
  --bg-alt: #F3EBE2;
  --primary: #B87056;
  --primary-dark: #9A5A42;
  --text: #2A1F1A;
  --text-muted: #7D6860;
  --border: #E2D5CC;
  --white: #FFFFFF;
  --radius: 4px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --max-w: 1100px;
}

html {
  scroll-behavior: smooth;
}

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

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

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

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 250, 247, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
}

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

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

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

.nav .nav-cta {
  background: var(--primary);
  color: var(--white);
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

.nav .nav-cta:hover {
  background: var(--primary-dark);
  color: var(--white);
}

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

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Hero ── */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  overflow: hidden;
}

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

.hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 36px;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}

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

.hero-img-wrap {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: 0 24px 60px rgba(42, 31, 26, 0.12);
}

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

/* ── Section labels ── */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

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

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ── For whom ── */
.for-whom {
  background: var(--bg-alt);
}

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

.whom-card {
  background: var(--white);
  border-radius: 6px;
  padding: 32px 28px;
  border: 1px solid var(--border);
}

.whom-card-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  color: var(--primary);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 16px;
}

.whom-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

/* ── Program ── */
.program-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 0;
}

.program-header {
  position: sticky;
  top: 100px;
}

.program-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}

.program-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.program-item:first-child {
  padding-top: 0;
}

.program-item-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.06em;
  padding-top: 2px;
  min-width: 28px;
}

.program-item-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}

.program-item-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Format ── */
.format {
  background: var(--bg-alt);
}

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

.format-img {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 20px 48px rgba(42, 31, 26, 0.1);
}

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

.format-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.format-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.format-point-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.format-point-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.format-point-body strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
}

.format-point-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Results ── */
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.result-card {
  background: var(--bg-alt);
  border-radius: 6px;
  padding: 28px 24px;
  border-left: 3px solid var(--primary);
}

.result-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}

/* ── FAQ ── */
.faq {
  background: var(--bg-alt);
}

.faq-list {
  max-width: 720px;
  margin: 48px auto 0;
}

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

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

.faq-question .faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1;
}

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

.faq-answer {
  display: none;
  padding-bottom: 22px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ── Lead form ── */
.lead-form-section {
  background: var(--text);
}

.lead-form-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.lead-form-inner .section-label {
  color: rgba(255,255,255,0.5);
}

.lead-form-inner .section-title {
  color: var(--white);
}

.lead-form-inner .section-desc {
  color: rgba(255,255,255,0.6);
  margin: 0 auto 40px;
}

.lead-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}

.form-field input,
.form-field textarea {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: 15px;
  color: var(--white);
  font-family: var(--font-body);
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

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

.form-field input.error,
.form-field textarea.error {
  border-color: #E07070;
}

.form-field .field-error {
  font-size: 12px;
  color: #E07070;
  display: none;
}

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

.form-submit {
  margin-top: 6px;
}

.form-submit .btn-primary {
  width: 100%;
  text-align: center;
  font-size: 16px;
  padding: 15px 24px;
}

.form-note {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  text-align: center;
  margin-top: 10px;
}

.form-note a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Footer ── */
.site-footer {
  background: #1E1411;
  color: rgba(255,255,255,0.6);
  padding: 56px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 13px;
  line-height: 1.6;
  max-width: 280px;
}

.footer-legal-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

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

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

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

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-requisites {
  font-size: 12px;
  line-height: 1.9;
  color: rgba(255,255,255,0.3);
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  text-align: right;
}

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #2A1F1A;
  color: rgba(255,255,255,0.8);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  transform: translateY(0);
  transition: transform 0.3s;
}

.cookie-banner.hidden {
  transform: translateY(110%);
}

.cookie-text {
  font-size: 13px;
  line-height: 1.6;
  max-width: 680px;
}

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

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

.btn-cookie-accept {
  background: var(--primary);
  color: white;
  border: none;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-body);
}

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

.btn-cookie-decline {
  background: transparent;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 9px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s;
  font-family: var(--font-body);
}

.btn-cookie-decline:hover {
  color: rgba(255,255,255,0.8);
}

/* ── Legal Pages ── */
.legal-page {
  padding-top: 100px;
  padding-bottom: 80px;
  min-height: 100vh;
}

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

.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.2;
}

.legal-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
}

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

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 14px;
}

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

/* ── Success Page ── */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

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

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

.success-icon svg {
  width: 28px;
  height: 28px;
  stroke: white;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-inner h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 14px;
}

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

.btn-back {
  display: inline-block;
  border: 1.5px solid var(--border);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.2s, color 0.2s;
}

.btn-back:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-img-wrap {
    order: -1;
  }

  .hero-sub {
    max-width: 100%;
  }

  .for-whom-grid {
    grid-template-columns: 1fr;
  }

  .program-inner {
    grid-template-columns: 1fr;
  }

  .program-header {
    position: static;
  }

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

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

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

  .footer-bottom {
    flex-direction: column;
  }

  .footer-copyright {
    text-align: left;
  }

  .nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

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

  .nav .nav-cta {
    background: none;
    color: var(--primary);
    padding: 12px 0;
    border-radius: 0;
  }

  .burger {
    display: flex;
  }

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

  .cookie-actions {
    width: 100%;
  }

  .btn-cookie-accept,
  .btn-cookie-decline {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 600px) {
  section {
    padding: 56px 0;
  }

  .hero {
    padding-top: 88px;
  }
}
