

@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:           #FAF7F2;
  --bg-alt:       #F0E9DE;
  --bg-dark:      #2A1A0E;
  --primary:      #7B4A2D;
  --primary-dark: #5C3420;
  --accent:       #C08B5C;
  --accent-light: #E4C99E;
  --text:         #2A1A0E;
  --text-muted:   #7A6354;
  --border:       #D9CCBA;
  --white:        #FFFCF8;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --radius-sm: 4px;
  --radius:    10px;
  --radius-lg: 18px;

  --shadow: 0 2px 16px rgba(42, 26, 14, 0.08);
  --shadow-md: 0 4px 32px rgba(42, 26, 14, 0.12);

  --max-w: 1120px;
  --section-py: 80px;
}

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

html { scroll-behavior: smooth; }

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

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

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

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { max-width: 68ch; }

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

section { padding: var(--section-py) 0; }

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

.section-heading {
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 52px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(42, 26, 14, 0.1); }

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

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.logo span { color: var(--accent); }

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

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--primary); }

.nav-cta { padding: 10px 22px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.25s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 8px 0 16px;
}
.mobile-nav a {
  display: block;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--bg-alt);
  transition: background 0.15s;
}
.mobile-nav a:hover { background: var(--bg-alt); }
.mobile-nav .btn {
  margin: 12px 24px 0;
  justify-content: center;
}
.mobile-nav.open { display: flex; }

.hero {
  padding: 0;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.45;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 80px 0;
}

.hero-content .section-label { color: var(--accent-light); }

.hero-content h1 {
  color: var(--white);
  margin-bottom: 20px;
  font-style: italic;
}

.hero-content p {
  color: rgba(255, 252, 248, 0.8);
  font-size: 1.1rem;
  margin-bottom: 36px;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.about { background: var(--bg-alt); }

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

.about-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-image-wrap img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.for-whom { background: var(--bg); }

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

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

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

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.card h3 { margin-bottom: 10px; font-size: 1.05rem; }

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: none;
}

.results { background: var(--bg-alt); }

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

.results-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.result-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.result-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-serif);
  margin-top: 2px;
}

.result-text h4 { margin-bottom: 4px; }
.result-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: none;
}

.results-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.results-image-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.format { background: var(--bg); }

.format-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.format-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: flex-start;
}

.format-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.format-card h3 { margin-bottom: 6px; font-size: 1rem; }
.format-card p { color: var(--text-muted); font-size: 0.9rem; max-width: none; }

.program { background: var(--bg-dark); }

.program .section-label { color: var(--accent-light); }
.program .section-heading { color: var(--white); }
.program .section-sub { color: rgba(255,252,248,0.6); }

.modules {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  overflow: hidden;
}

.module {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background 0.15s;
}
.module:last-child { border-bottom: none; }
.module:hover { background: rgba(255,255,255,0.04); }

.module-num {
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  padding: 24px 0;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.module-body {
  padding: 24px 32px;
}

.module-body h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 6px;
}

.module-body p {
  color: rgba(255,252,248,0.55);
  font-size: 0.88rem;
  max-width: none;
}

.materials { background: var(--bg-alt); }

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

.materials-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  order: -1;
}

.materials-image-wrap img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.materials-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.material-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.material-item::before {
  content: '✦';
  color: var(--accent);
  font-size: 0.75rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.material-item strong { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 3px; }
.material-item p { color: var(--text-muted); font-size: 0.85rem; max-width: none; }

.faq { background: var(--bg); }

.faq-list {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  background: var(--white);
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.15s;
}
.faq-question:hover { background: var(--bg-alt); }

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  transition: transform 0.25s, background 0.15s;
}

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

.faq-answer {
  display: none;
  padding: 0 28px 20px;
  background: var(--white);
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  display: block;
}

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

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

.form-intro .section-label { color: var(--accent-light); }
.form-intro h2 { color: var(--white); margin-bottom: 16px; }
.form-intro p { color: rgba(255,252,248,0.75); font-size: 1rem; max-width: 44ch; }

.form-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-box h3 {
  font-size: 1.2rem;
  margin-bottom: 24px;
  font-family: var(--font-serif);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(123, 74, 45, 0.12);
}

.field textarea { resize: vertical; min-height: 80px; }

.form-consent {
  margin: 16px 0 20px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.form-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-consent label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

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

.form-submit { width: 100%; justify-content: center; padding: 15px 32px; font-size: 0.95rem; }

.site-footer {
  background: var(--bg-dark);
  color: rgba(255,252,248,0.65);
  padding: 60px 0 32px;
}

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

.footer-brand .logo { color: var(--white); margin-bottom: 12px; display: block; }
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 38ch;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,252,248,0.35);
  margin-bottom: 16px;
}

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

.footer-col ul a {
  font-size: 0.875rem;
  color: rgba(255,252,248,0.6);
  transition: color 0.15s;
}
.footer-col ul a:hover { color: var(--white); }

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

.footer-legal {
  font-size: 0.78rem;
  color: rgba(255,252,248,0.35);
  line-height: 1.7;
}

.footer-legal strong { color: rgba(255,252,248,0.5); }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #2A1A0E;
  color: rgba(255,252,248,0.85);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.1);
  transform: translateY(0);
  transition: transform 0.35s ease;
}
.cookie-banner.hidden { transform: translateY(110%); }

.cookie-text { font-size: 0.85rem; max-width: 70ch; }
.cookie-text a { color: var(--accent-light); text-decoration: underline; }

.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions .btn { padding: 9px 20px; font-size: 0.8rem; }

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

.legal-page h1 { margin-bottom: 12px; }
.legal-page .legal-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 48px;
}

.legal-body h2 {
  font-size: 1.15rem;
  margin: 36px 0 12px;
}

.legal-body p, .legal-body li {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.legal-body ul { list-style: disc; padding-left: 24px; }

.legal-requisites {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 36px;
}

.legal-requisites h3 { margin-bottom: 12px; font-size: 1rem; }
.legal-requisites p { font-size: 0.9rem; margin-bottom: 6px; }

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

.success-box {
  max-width: 520px;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-size: 2rem;
}

.success-box h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.success-box p {
  color: var(--text-muted);
  margin: 0 auto 32px;
  max-width: 44ch;
  text-align: center;
}

@media (max-width: 900px) {
  :root { --section-py: 60px; }

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

  .about-grid,
  .results-grid,
  .materials-inner,
  .form-wrapper { grid-template-columns: 1fr; gap: 40px; }

  .materials-image-wrap { order: 0; }

  .about-image-wrap img,
  .results-image-wrap img,
  .materials-image-wrap img { height: 280px; }

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

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

  .footer-bottom { flex-direction: column; gap: 8px; }

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

  .hero { min-height: 85vh; }
}

@media (max-width: 600px) {
  :root { --section-py: 48px; }

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

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }

  .module-body { padding: 20px 20px; }

  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }

  .form-wrapper { gap: 32px; }
}
