@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 {
  --color-primary: #B85C30;
  --color-primary-dark: #95441E;
  --color-primary-light: #D4784E;
  --color-sage: #7A9E7E;
  --color-sage-light: #A8C4AB;
  --color-cream: #F7F1E8;
  --color-cream-dark: #EEE3CC;
  --color-dark: #2A1F12;
  --color-text: #3D2C1A;
  --color-muted: #7A6A58;
  --color-white: #FFFDF8;
  --color-border: #DDD3C0;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --max-width: 1160px;
  --section-padding: 88px 20px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(42,31,18,.08);
  --shadow-md: 0 4px 20px rgba(42,31,18,.12);
  --shadow-lg: 0 8px 40px rgba(42,31,18,.16);
}

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

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
[data-reveal-delay="4"] { transition-delay: .4s; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: var(--section-padding); }
.section--cream { background-color: var(--color-cream); }
.section--dark { background-color: var(--color-dark); color: var(--color-white); }
.section--sage { background-color: #EEF4EF; }

.section-label { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--color-primary); margin-bottom: 16px; }
.section-title { font-family: var(--font-heading); font-size: clamp(28px,4vw,44px); font-weight: 700; line-height: 1.2; color: var(--color-dark); margin-bottom: 20px; }
.section--dark .section-title { color: var(--color-white); }
.section-subtitle { font-size: 17px; color: var(--color-muted); max-width: 600px; line-height: 1.7; }
.section--dark .section-subtitle { color: rgba(255,255,255,.65); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 32px; font-family: var(--font-body); font-size: 15px; font-weight: 600; border-radius: 50px; cursor: pointer; transition: all .25s ease; border: none; text-decoration: none; letter-spacing: .02em; }
.btn--primary { background-color: var(--color-primary); color: #fff; }
.btn--primary:hover { background-color: var(--color-primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(184,92,48,.35); }
.btn--outline { background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); }
.btn--outline:hover { background-color: var(--color-primary); color: #fff; }
.btn--white { background: #fff; color: var(--color-primary); }
.btn--white:hover { background: var(--color-cream); transform: translateY(-2px); }

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 18px 0; transition: background .3s, box-shadow .3s; }
.site-header.scrolled { background: rgba(255,253,248,.96); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.logo { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: var(--color-dark); letter-spacing: -.01em; transition: color .3s; }
.logo span { color: var(--color-primary); }
.site-header:not(.scrolled) .logo { color: #fff; }
.site-header:not(.scrolled) .nav-links a { color: rgba(255,255,255,.85); }
.site-header:not(.scrolled) .nav-links a:hover { color: #fff; }
.site-header:not(.scrolled) .burger span { background: #fff; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--color-text); transition: color .2s; }
.nav-links a:hover { color: var(--color-primary); }
.nav-cta { background: var(--color-primary) !important; color: #fff !important; padding: 10px 22px; border-radius: 50px; font-size: 14px !important; transition: background .2s, transform .2s !important; }
.nav-cta:hover { background: var(--color-primary-dark) !important; transform: translateY(-1px); }
.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(--color-dark); border-radius: 2px; transition: all .3s; }

.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background-color: var(--color-dark); padding-top: 80px; }
.hero-bg { position: absolute; inset: 0; background-image: url('img/hero.png'); background-size: cover; background-position: center 30%; opacity: .35; }
.hero-gradient { position: absolute; inset: 0; background: linear-gradient(135deg,rgba(42,31,18,.85) 0%,rgba(42,31,18,.5) 60%,rgba(184,92,48,.2) 100%); }
.hero-inner { position: relative; z-index: 2; max-width: var(--max-width); margin: 0 auto; padding: 60px 20px; display: grid; grid-template-columns: 1fr 420px; gap: 60px; align-items: center; width: 100%; }
.hero-content { color: #fff; }
.hero-badge { display: inline-block; background: rgba(184,92,48,.25); border: 1px solid rgba(184,92,48,.5); color: #F4A97D; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 6px 16px; border-radius: 50px; margin-bottom: 24px; }
.hero-title { font-family: var(--font-heading); font-size: clamp(36px,5.5vw,62px); font-weight: 700; line-height: 1.12; margin-bottom: 24px; color: #fff; }
.hero-title em { color: #E08860; font-style: italic; }
.hero-desc { font-size: 17px; color: rgba(255,255,255,.75); margin-bottom: 36px; max-width: 480px; line-height: 1.75; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num { font-family: var(--font-heading); font-size: 30px; font-weight: 700; color: #E08860; line-height: 1; }
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 4px; }
.hero-form-card { background: var(--color-white); border-radius: var(--radius-lg); padding: 36px 32px; box-shadow: var(--shadow-lg); }
.hero-form-title { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--color-dark); margin-bottom: 8px; }
.hero-form-sub { font-size: 14px; color: var(--color-muted); margin-bottom: 24px; line-height: 1.6; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--color-text); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; font-family: var(--font-body); font-size: 15px; color: var(--color-text); background: var(--color-cream); border: 1.5px solid var(--color-border); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; outline: none; appearance: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(184,92,48,.12); background: #fff; }
.form-group input::placeholder { color: #B0A090; }
.form-consent { font-size: 12px; color: var(--color-muted); margin-top: 14px; line-height: 1.5; }
.form-consent a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.form-btn { width: 100%; margin-top: 4px; padding: 16px; font-size: 16px; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about-image img { width: 100%; height: 400px; object-fit: cover; }
.about-list { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.about-list li { display: flex; gap: 14px; align-items: flex-start; }
.about-list-icon { width: 36px; height: 36px; flex-shrink: 0; background: rgba(184,92,48,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.about-list-icon svg { width: 16px; height: 16px; color: var(--color-primary); }
.about-list-text strong { display: block; font-weight: 600; color: var(--color-dark); margin-bottom: 2px; font-size: 15px; }
.about-list-text span { font-size: 14px; color: var(--color-muted); }

.forwhom-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.forwhom-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 28px 24px; transition: transform .25s, box-shadow .25s; }
.forwhom-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.forwhom-icon { font-size: 32px; margin-bottom: 16px; }
.forwhom-card h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--color-dark); margin-bottom: 10px; }
.forwhom-card p { font-size: 14px; color: var(--color-muted); line-height: 1.65; }

.results-header { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.results-header .section-subtitle { margin: 0 auto; }
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.results-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); position: relative; }
.results-image img { width: 100%; height: 440px; object-fit: cover; }
.results-image-tag { position: absolute; bottom: 20px; left: 20px; background: var(--color-white); border-radius: 50px; padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--color-primary); box-shadow: var(--shadow-sm); }
.results-list { display: flex; flex-direction: column; gap: 20px; }
.result-item { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 22px 24px; display: flex; gap: 18px; align-items: flex-start; transition: border-color .2s; }
.result-item:hover { border-color: var(--color-primary-light); }
.result-num { font-family: var(--font-heading); font-size: 28px; font-weight: 700; color: var(--color-cream-dark); flex-shrink: 0; line-height: 1; margin-top: 2px; }
.result-item h3 { font-size: 16px; font-weight: 600; color: var(--color-dark); margin-bottom: 5px; }
.result-item p { font-size: 14px; color: var(--color-muted); line-height: 1.6; }

.process-header { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; position: relative; }
.process-grid::before { content: ''; position: absolute; top: 36px; left: calc(12.5% + 18px); right: calc(12.5% + 18px); height: 2px; background: var(--color-border); z-index: 0; }
.process-step { text-align: center; position: relative; z-index: 1; }
.process-step-num { width: 72px; height: 72px; background: var(--color-cream); border: 2px solid var(--color-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--color-primary); transition: background .25s, border-color .25s; }
.process-step:hover .process-step-num { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.process-step h3 { font-size: 16px; font-weight: 600; color: var(--color-dark); margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--color-muted); line-height: 1.6; }

.program-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.program-module { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 24px; transition: background .25s, border-color .25s; cursor: default; }
.program-module:hover { background: rgba(255,255,255,.08); border-color: rgba(184,92,48,.4); }
.module-num { font-size: 12px; font-weight: 600; letter-spacing: .1em; color: rgba(184,92,48,.8); text-transform: uppercase; margin-bottom: 10px; }
.program-module h3 { font-family: var(--font-heading); font-size: 17px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.program-module p { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.6; }

.gallery-header { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.gallery-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.gallery-wrap img { width: 100%; max-height: 500px; object-fit: cover; }
.gallery-caption { text-align: center; margin-top: 20px; font-size: 14px; color: var(--color-muted); font-style: italic; }

.faq-header { max-width: 600px; margin-bottom: 48px; }
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; font-weight: 600; font-size: 16px; color: var(--color-dark); user-select: none; transition: color .2s; }
.faq-question:hover { color: var(--color-primary); }
.faq-icon { width: 28px; height: 28px; flex-shrink: 0; border: 1.5px solid var(--color-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s, transform .3s; }
.faq-item.open .faq-icon { background: var(--color-primary); border-color: var(--color-primary); transform: rotate(45deg); }
.faq-icon svg { width: 14px; height: 14px; color: var(--color-muted); transition: color .2s; }
.faq-item.open .faq-icon svg { color: #fff; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-answer-inner { padding: 0 0 22px; font-size: 15px; color: var(--color-muted); line-height: 1.75; }
.faq-item.open .faq-answer { max-height: 400px; }

.cta-section { background: linear-gradient(135deg, var(--color-primary) 0%, #8B3A1A 100%); padding: 80px 20px; text-align: center; }
.cta-section .section-title { color: #fff; }
.cta-section .section-subtitle { color: rgba(255,255,255,.75); margin: 0 auto 36px; }
.cta-form-row { display: flex; gap: 12px; max-width: 500px; margin: 0 auto; flex-wrap: wrap; }
.cta-form-row input { flex: 1; min-width: 200px; padding: 15px 20px; border: none; border-radius: 50px; font-family: var(--font-body); font-size: 15px; outline: none; background: rgba(255,255,255,.15); color: #fff; backdrop-filter: blur(4px); border: 1.5px solid rgba(255,255,255,.3); }
.cta-form-row input::placeholder { color: rgba(255,255,255,.6); }
.cta-form-row input:focus { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.6); }
.cta-form-consent { margin-top: 16px; font-size: 12px; color: rgba(255,255,255,.55); }
.cta-form-consent a { color: rgba(255,255,255,.8); text-decoration: underline; text-underline-offset: 2px; }

.site-footer { background: var(--color-dark); color: rgba(255,255,255,.55); padding: 56px 20px 32px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo { color: #fff; font-size: 22px; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.35); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 14px; color: rgba(255,255,255,.5); transition: color .2s; }
.footer-col ul a:hover { color: #fff; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.08); margin-bottom: 28px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.footer-legal { font-size: 12px; line-height: 1.8; }
.footer-legal a { color: rgba(255,255,255,.4); transition: color .2s; }
.footer-legal a:hover { color: rgba(255,255,255,.8); }
.footer-legal a + a::before { content: ' · '; }
.footer-requisites { font-size: 11px; line-height: 1.8; color: rgba(255,255,255,.3); text-align: right; }

.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; background: rgba(28,20,10,.97); backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,.08); padding: 20px; display: none; }
.cookie-banner.visible { display: block; animation: slideUp .35s ease; }
@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cookie-text { flex: 1; font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.6; }
.cookie-text a { color: #E08860; text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-actions .btn { padding: 10px 22px; font-size: 14px; }

.success-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; background: var(--color-cream); }
.success-icon { width: 80px; height: 80px; background: var(--color-sage); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 28px; }
.success-icon svg { width: 40px; height: 40px; color: #fff; }
.success-page h1 { font-family: var(--font-heading); font-size: clamp(28px,5vw,44px); color: var(--color-dark); margin-bottom: 16px; }
.success-page p { font-size: 17px; color: var(--color-muted); max-width: 480px; margin: 0 auto 36px; line-height: 1.7; }

.legal-page { padding-top: 120px; padding-bottom: 80px; }
.legal-page h1 { font-family: var(--font-heading); font-size: clamp(28px,4vw,42px); color: var(--color-dark); margin-bottom: 12px; }
.legal-page .last-updated { font-size: 14px; color: var(--color-muted); margin-bottom: 48px; }
.legal-content { max-width: 760px; }
.legal-content h2 { font-family: var(--font-heading); font-size: 22px; color: var(--color-dark); margin: 36px 0 12px; }
.legal-content p, .legal-content li { font-size: 15px; color: var(--color-text); line-height: 1.8; margin-bottom: 12px; }
.legal-content ul { list-style: disc; padding-left: 24px; }
.legal-content a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 1024px) {
  :root { --section-padding: 72px 20px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-form-card { max-width: 480px; margin: 0 auto; }
  .hero-stats { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image { order: -1; }
  .results-grid { grid-template-columns: 1fr; }
  .results-image img { height: 340px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-grid::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --section-padding: 56px 20px; }
  .nav-links { display: none; position: fixed; top: 70px; left: 0; right: 0; background: var(--color-white); flex-direction: column; padding: 20px; gap: 20px; box-shadow: var(--shadow-md); border-top: 1px solid var(--color-border); z-index: 99; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 16px; padding: 8px 0; }
  .burger { display: flex; }
  .forwhom-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .footer-requisites { text-align: left; }
  .cta-form-row { flex-direction: column; }
  .cta-form-row input, .cta-form-row .btn { width: 100%; }
  .cookie-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-actions { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 24px; }
  .hero-form-card { padding: 28px 20px; }
}
