/* ─────────────────────────────────────────
   Draply — Стили сайта
   Шрифты: Playfair Display (заголовки) + Inter (текст)
───────────────────────────────────────── */

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

/* ── Переменные ───────────────────────── */
:root {
  --bg:         #FAF7F3;
  --bg-alt:     #F0E8DC;
  --bg-dark:    #1E150A;
  --text:       #1E150A;
  --text-mid:   #5E4836;
  --text-light: #9A7F6B;
  --accent:     #A85C38;
  --accent-hov: #8E4A2C;
  --accent-lt:  #F5E4D8;
  --border:     #E0D4C8;
  --white:      #FFFFFF;
  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 4px rgba(30,21,10,.07);
  --shadow:     0 4px 24px rgba(30,21,10,.10);
  --shadow-lg:  0 12px 48px rgba(30,21,10,.14);
  --transition: .25s ease;
  --max-w:      1160px;
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'Inter', system-ui, sans-serif;
}

/* ── Reset ────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }

/* ── Утилиты ─────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: var(--white); }
.text-center { text-align: center; }

.tag {
  display: inline-block;
  background: var(--accent-lt);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.tag-light { background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

.lead {
  font-size: 1.125rem;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 640px;
}

/* ── Кнопки ──────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-hov); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(168,92,56,.35); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-lt); }
.btn-white {
  background: var(--white);
  color: var(--accent);
}
.btn-white:hover { background: var(--accent-lt); }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }

/* ── Хедер ───────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,247,243,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
.logo-dot { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a {
  font-size: .9rem;
  color: var(--text-mid);
  font-weight: 500;
  transition: color var(--transition);
}
.site-nav a:hover { color: var(--accent); }
.nav-cta { display: flex; align-items: center; }
.burger {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Герой ───────────────────────────── */
.hero {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  overflow: hidden;
}
.hero-content {
  padding: 80px 64px 80px 80px;
  max-width: 620px;
}
.hero h1 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 3.5vw, 3rem);
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero .lead { margin-bottom: 36px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.proof-item {
  display: flex;
  flex-direction: column;
}
.proof-item strong {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
}
.proof-item span { font-size: .8rem; color: var(--text-light); margin-top: 2px; }

.hero-image {
  height: 90vh;
  overflow: hidden;
  position: relative;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 100%);
}

/* ── Боли / Проблемы ─────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.problem-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow var(--transition);
}
.problem-card:hover { box-shadow: var(--shadow); }
.problem-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--accent-lt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.problem-card p {
  font-size: .95rem;
  color: var(--text-mid);
  margin-top: 4px;
}

/* ── Кому подходит ───────────────────── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.audience-card {
  border-radius: var(--radius);
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.audience-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
}
.audience-card h3 { margin-bottom: 12px; }
.audience-card p { color: var(--text-mid); font-size: .95rem; }
.audience-num {
  font-family: var(--font-head);
  font-size: 3rem;
  color: var(--accent-lt);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}

/* ── Программа ───────────────────────── */
.program-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 56px;
}
.program-header img {
  border-radius: var(--radius-lg);
  height: 420px;
  object-fit: cover;
  width: 100%;
}
.modules-list { display: flex; flex-direction: column; gap: 16px; }
.module-item {
  display: flex;
  gap: 20px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  align-items: flex-start;
  transition: var(--transition);
}
.module-item:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.module-num {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 700;
  min-width: 36px;
  line-height: 1;
  padding-top: 2px;
}
.module-item h4 { margin-bottom: 4px; }
.module-item p { font-size: .875rem; color: var(--text-light); }
.module-bonus {
  background: var(--accent-lt);
  border-color: var(--accent);
}

/* ── Результаты ─────────────────────── */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.result-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.result-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform .5s ease;
}
.result-card:hover img { transform: scale(1.03); }
.result-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(30,21,10,.75);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: .875rem;
  font-weight: 500;
}

/* ── Как это работает ────────────────── */
.steps-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  position: relative;
}
.steps-wrap::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(16.67% + 16px);
  right: calc(16.67% + 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-lt) 100%);
}
.step-card { text-align: center; padding: 0 16px; }
.step-num {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 24px rgba(168,92,56,.3);
}
.step-card h3 { margin-bottom: 10px; }
.step-card p { color: var(--text-mid); font-size: .95rem; }

/* ── Преподаватель ───────────────────── */
.instructor-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 72px;
  align-items: center;
}
.instructor-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.instructor-photo img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}
.instructor-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}
.instructor-content h2 { margin-bottom: 8px; }
.instructor-title {
  color: var(--accent);
  font-size: .95rem;
  font-weight: 500;
  margin-bottom: 24px;
  display: block;
}
.instructor-content p { color: var(--text-mid); margin-bottom: 16px; }
.instructor-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}
.instructor-fact {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-lt);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--accent-hov);
}
.instructor-fact .icon { font-size: 1rem; }

/* ── Форма заявки ────────────────────── */
.form-section {
  background: var(--bg-dark);
  color: var(--white);
}
.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.form-left h2 { color: var(--white); margin-bottom: 16px; }
.form-left h2 em { color: var(--accent); font-style: italic; }
.form-left p { color: rgba(255,255,255,.7); max-width: 440px; line-height: 1.7; }
.form-perks { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.perk-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  color: rgba(255,255,255,.75);
}
.perk-row::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.lead-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
}
.lead-form h3 { color: var(--text); margin-bottom: 6px; }
.lead-form .form-sub { color: var(--text-light); font-size: .9rem; margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 8px;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--accent); background: var(--white); }
.form-group input.error { border-color: #c0392b; }
.field-error { color: #c0392b; font-size: .8rem; margin-top: 5px; display: none; }
.field-error.show { display: block; }
.form-submit .btn { width: 100%; justify-content: center; }
.form-note {
  text-align: center;
  font-size: .78rem;
  color: var(--text-light);
  margin-top: 14px;
}
.form-note a { color: var(--accent); text-decoration: underline; }

/* ── FAQ ─────────────────────────────── */
.faq-list { margin-top: 48px; max-width: 800px; margin-left: auto; margin-right: auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  gap: 16px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: var(--accent-lt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform var(--transition), background var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--accent); color: var(--white); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
  padding: 0;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 20px; }
.faq-answer p { color: var(--text-mid); font-size: .95rem; line-height: 1.7; }

/* ── Футер ───────────────────────────── */
.site-footer {
  background: #140D06;
  color: rgba(255,255,255,.6);
  padding: 56px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 32px;
}
.footer-brand .logo { color: rgba(255,255,255,.9); }
.footer-brand p {
  font-size: .875rem;
  margin-top: 14px;
  line-height: 1.65;
  max-width: 280px;
}
.footer-col h4 {
  color: rgba(255,255,255,.9);
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: .875rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-company { font-size: .8rem; line-height: 1.7; }
.footer-copy { font-size: .8rem; }

/* ── Cookie Banner ───────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: var(--bg-dark);
  color: rgba(255,255,255,.85);
  border-radius: var(--radius);
  padding: 20px 28px;
  max-width: 620px;
  width: calc(100% - 48px);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  transition: opacity .35s ease, transform .35s ease;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}
.cookie-banner p { font-size: .875rem; flex: 1; min-width: 200px; }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }

/* ── Страница успеха ─────────────────── */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--bg);
}
.success-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.success-icon {
  width: 80px;
  height: 80px;
  background: var(--accent-lt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 28px;
}
.success-card h1 { font-size: 1.8rem; margin-bottom: 14px; }
.success-card p { color: var(--text-mid); margin-bottom: 32px; }

/* ── Юридические страницы ────────────── */
.legal-page { padding: 64px 0 80px; }
.legal-header { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.legal-header h1 { margin-bottom: 8px; }
.legal-date { font-size: .875rem; color: var(--text-light); }
.legal-content h2 { font-size: 1.2rem; margin: 36px 0 12px; }
.legal-content h3 { font-size: 1rem; margin: 24px 0 8px; color: var(--text-mid); }
.legal-content p { color: var(--text-mid); margin-bottom: 14px; font-size: .95rem; line-height: 1.75; }
.legal-content ul { margin: 0 0 14px 20px; }
.legal-content ul li { list-style: disc; color: var(--text-mid); font-size: .95rem; margin-bottom: 6px; line-height: 1.65; }
.legal-back { margin-top: 48px; }

/* ── Адаптив ─────────────────────────── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 64px 32px 48px; max-width: 100%; }
  .hero-image { height: 420px; }
  .hero-image::after { background: linear-gradient(180deg, var(--bg) 0%, transparent 40%); }
  .instructor-grid { grid-template-columns: 1fr; gap: 40px; }
  .instructor-photo img { height: 360px; }
  .form-wrap { grid-template-columns: 1fr; gap: 48px; }
  .program-header { grid-template-columns: 1fr; }
  .program-header img { height: 280px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .burger { display: flex; }
  .hero-content { padding: 48px 0 40px; }
  .results-grid { grid-template-columns: 1fr; }
  .result-card img { height: 280px; }
  .steps-wrap { grid-template-columns: 1fr; }
  .steps-wrap::before { display: none; }
  .lead-form { padding: 32px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
  .success-card { padding: 48px 28px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .problem-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .hero-proof { gap: 20px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}
