/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #4A7C59;
  --green-dark: #3a6346;
  --green-light: #e8f0eb;
  --terra: #C97B4A;
  --terra-light: #f5ece3;
  --bg: #FAF8F4;
  --bg-alt: #F2EDE5;
  --dark: #2A2A2A;
  --text: #3D3D3D;
  --text-muted: #7A7A7A;
  --border: #DDD5C8;
  --white: #ffffff;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 2px 16px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 28px rgba(0,0,0,0.10);
  --font: 'Golos Text', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --max-w: 1100px;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 72px 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--dark);
  font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.15rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p { margin-bottom: 0.9em; }
p:last-child { margin-bottom: 0; }

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

.btn-large {
  font-size: 1.1rem;
  padding: 17px 44px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.01em;
}

.logo span {
  color: var(--green);
}

.header-cta {
  font-size: 0.9rem;
  padding: 9px 22px;
}

/* ===== HERO ===== */
.hero {
  padding: 0;
  background: var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 540px;
  gap: 48px;
  padding: 64px 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-content {
  max-width: 520px;
}

.hero h1 {
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero-detail {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-detail strong {
  color: var(--text);
}

.hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}

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

/* ===== FOR WHOM ===== */
.for-whom {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 10px;
}

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

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

.for-whom-card .icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.for-whom-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.for-whom-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== RESULTS ===== */
.results {
  background: var(--bg);
}

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

.results-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}

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

.results-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.results-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.results-list .check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 1px;
}

.results-list .check-text strong {
  display: block;
  font-size: 0.97rem;
  margin-bottom: 3px;
}

.results-list .check-text span {
  font-size: 0.87rem;
  color: var(--text-muted);
}

/* ===== PROGRAM ===== */
.program {
  background: var(--bg-alt);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 36px;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child {
  border-bottom: none;
}

.step-num {
  counter-increment: step;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 2px;
}

.step-body h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.step-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== FORMAT ===== */
.format {
  background: var(--green);
  color: var(--white);
}

.format .label {
  color: rgba(255,255,255,0.75);
}

.format h2 {
  color: var(--white);
}

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

.format-item {
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  border: 1px solid rgba(255,255,255,0.18);
}

.format-item .icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.format-item h3 {
  font-size: 0.97rem;
  color: var(--white);
  margin-bottom: 6px;
}

.format-item p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}

/* ===== AUTHOR ===== */
.author {
  background: var(--bg);
}

.author-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: center;
}

.author-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 3/4;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.author-img-placeholder {
  font-size: 4rem;
  opacity: 0.35;
}

.author-text h2 {
  margin-bottom: 6px;
}

.author-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.author-title {
  font-size: 0.9rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 20px;
}

.author-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== LEAD FORM ===== */
.lead-form {
  background: var(--terra-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.form-box {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow);
}

.form-box .section-head {
  margin-bottom: 32px;
}

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

.form-group label {
  display: block;
  font-size: 0.87rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.97rem;
  color: var(--dark);
  background: var(--bg);
  transition: border-color 0.15s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--green);
}

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

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

.form-note a {
  color: var(--text-muted);
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  margin-top: 8px;
  font-size: 1.05rem;
  padding: 15px;
}

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

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

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

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

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

.faq-q .arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 1.1rem;
  transition: transform 0.2s;
  line-height: 1;
}

.faq-item.open .faq-q .arrow {
  transform: rotate(45deg);
}

.faq-a {
  display: none;
  padding: 0 4px 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

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

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  padding: 44px 0 28px;
  font-size: 0.87rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 8px;
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.footer-legal a {
  color: rgba(255,255,255,0.55);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.2);
  font-size: 0.83rem;
}

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

.footer-bottom {
  max-width: var(--max-w);
  margin: 24px auto 0;
  padding: 20px 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 680px;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  z-index: 1000;
  font-size: 0.88rem;
}

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

.cookie-text {
  flex: 1;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
}

.cookie-text a {
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
}

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

.btn-cookie-accept {
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 20px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-cookie-close {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.88rem;
  padding: 9px 14px;
  cursor: pointer;
  white-space: nowrap;
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 20px 80px;
}

.legal-page h1 {
  margin-bottom: 8px;
  font-size: 1.9rem;
}

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

.legal-page h2 {
  font-size: 1.2rem;
  margin-top: 36px;
  margin-bottom: 10px;
}

.legal-page p, .legal-page li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0.7em;
}

.legal-page ul, .legal-page ol {
  padding-left: 22px;
  margin-bottom: 1em;
}

.legal-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 32px;
}

/* ===== SUCCESS PAGE ===== */
.success-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

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

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

.success-box h1 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.success-box p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 48px 20px;
  }

  .hero-img {
    max-width: 480px;
    margin: 0 auto;
  }

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

  .for-whom-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

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

  .results-img {
    max-width: 480px;
  }

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

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

  .author-img {
    max-width: 260px;
    aspect-ratio: 1;
    margin: 0 auto;
  }

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

  .footer-legal {
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 20px;
  }
}

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

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

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

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

  .cookie-actions {
    width: 100%;
  }

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