@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700;800&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

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

:root {
  --sage: #7a9e7e;
  --sage-light: #a8c3ab;
  --sage-pale: #e8f0e9;
  --cream: #f7f2ea;
  --cream-dark: #ede5d4;
  --forest: #2c3e35;
  --forest-mid: #4a6358;
  --terracotta: #c87755;
  --terracotta-hover: #b5663f;
  --text: #2c3e35;
  --text-mid: #5a7065;
  --text-light: #8aaa95;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(44, 62, 53, 0.10);
  --shadow-sm: 0 2px 10px rgba(44, 62, 53, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lora', Georgia, serif;
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

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

a {
  color: var(--sage);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--forest);
}

h1, h2, h3, h4 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--forest);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); }

.section-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

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

.btn-primary:hover {
  background-color: var(--terracotta-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200, 119, 85, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--forest);
  border: 2px solid var(--forest-mid);
}

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

.btn-lg {
  padding: 18px 48px;
  font-size: 1rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(247, 242, 234, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(122, 158, 126, 0.15);
  padding: 14px 0;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Raleway', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--forest);
  letter-spacing: -0.01em;
}

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

.nav-cta {
  font-family: 'Raleway', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 24px;
}

.hero {
  padding: 72px 0 80px;
  background: linear-gradient(135deg, var(--cream) 0%, #edf5ee 100%);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(168, 195, 171, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-text h1 {
  margin-bottom: 20px;
}

.hero-text h1 em {
  font-style: italic;
  color: var(--sage);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 32px;
  max-width: 440px;
}

.hero-trust {
  margin-top: 28px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-trust-item {
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--forest-mid);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-trust-item::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--sage);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16/10;
}

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

.pain {
  background-color: var(--white);
}

.pain-intro {
  max-width: 640px;
  margin-bottom: 48px;
}

.pain-intro p {
  color: var(--text-mid);
  margin-top: 12px;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.pain-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px 24px;
  border-left: 4px solid var(--sage-light);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.pain-card-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.pain-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.pain-card p {
  font-size: 0.875rem;
  color: var(--text-mid);
}

.for-whom {
  background: linear-gradient(to bottom, var(--cream) 0%, #edf5ee 100%);
}

.for-whom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}

.for-whom-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.for-whom-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.for-whom-list li .check {
  width: 22px;
  height: 22px;
  background: var(--sage);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.for-whom-list li .check::after {
  content: '✓';
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  font-family: sans-serif;
}

.for-whom-list li .text strong {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  margin-bottom: 3px;
}

.for-whom-list li .text span {
  font-size: 0.875rem;
  color: var(--text-mid);
}

.for-whom-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.for-whom-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program {
  background-color: var(--white);
}

.program-header {
  max-width: 640px;
  margin-bottom: 48px;
}

.program-header p {
  color: var(--text-mid);
  margin-top: 12px;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.program-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px 22px;
  position: relative;
}

.program-num {
  font-family: 'Raleway', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}

.program-card h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.program-card p {
  font-size: 0.85rem;
  color: var(--text-mid);
}

.program-footer {
  background: var(--sage-pale);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  align-items: center;
}

.program-stat {
  text-align: center;
}

.program-stat strong {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--forest);
}

.program-stat span {
  font-size: 0.85rem;
  color: var(--text-mid);
}

.safety {
  background: var(--cream);
}

.safety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}

.safety-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.safety-point-icon {
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.safety-point-text strong {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.safety-point-text p {
  font-size: 0.875rem;
  color: var(--text-mid);
}

.safety-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.format {
  background: linear-gradient(135deg, var(--forest) 0%, #3d5a4a 100%);
  color: var(--white);
}

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

.format .section-label {
  color: var(--sage-light);
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.format-card {
  background: rgba(255,255,255, 0.07);
  border: 1px solid rgba(255,255,255, 0.12);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: background 0.2s;
}

.format-card:hover {
  background: rgba(255,255,255, 0.12);
}

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

.format-card h3 {
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 8px;
}

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

.faq {
  background-color: var(--white);
}

.faq-header {
  max-width: 640px;
  margin-bottom: 40px;
}

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

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

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  background: var(--cream);
  border: none;
  padding: 22px 28px;
  text-align: left;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--forest);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--cream-dark);
}

.faq-question.active {
  background: var(--white);
}

.faq-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid var(--sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--sage);
}

.faq-question.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  background: var(--white);
  padding: 0 28px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
}

.faq-answer.open {
  padding: 4px 28px 22px;
  max-height: 300px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.75;
}

.lead-form-section {
  background: linear-gradient(135deg, #edf5ee 0%, var(--cream) 100%);
}

.lead-form-section h2 {
  margin-bottom: 12px;
}

.lead-form-section > .container-narrow > p {
  color: var(--text-mid);
  margin-bottom: 36px;
}

.lead-form {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 48px;
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest-mid);
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  color: var(--forest);
  background: var(--cream);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--sage);
  background: var(--white);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  margin-top: 8px;
  text-align: center;
}

.form-submit .btn {
  width: 100%;
  text-align: center;
  font-size: 1rem;
  padding: 17px;
}

.form-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.5;
}

.form-note a {
  color: var(--text-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

footer {
  background: var(--forest);
  color: rgba(255,255,255, 0.65);
  padding: 48px 0 32px;
}

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

.footer-brand .logo {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 12px;
  display: block;
}

.footer-brand p {
  font-size: 0.8rem;
  line-height: 1.65;
  max-width: 300px;
}

.footer-col h4 {
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255, 0.4);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a {
  color: rgba(255,255,255, 0.6);
  font-size: 0.85rem;
  font-family: 'Raleway', sans-serif;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  font-family: 'Raleway', sans-serif;
  font-size: 0.77rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-requisites {
  line-height: 1.7;
  max-width: 480px;
}

.footer-copy {
  color: rgba(255,255,255, 0.35);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--forest);
  color: rgba(255,255,255, 0.85);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-text {
  font-size: 0.85rem;
  line-height: 1.55;
  flex: 1;
  min-width: 240px;
}

.cookie-text a {
  color: var(--sage-light);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.cookie-accept {
  background: var(--sage);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}

.cookie-accept:hover {
  background: var(--sage-light);
}

.cookie-close {
  background: transparent;
  border: 1px solid rgba(255,255,255, 0.3);
  color: rgba(255,255,255, 0.6);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.cookie-close:hover {
  border-color: rgba(255,255,255, 0.6);
  color: white;
}

.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #edf5ee 0%, var(--cream) 100%);
  padding: 48px 24px;
}

.success-card {
  background: var(--white);
  border-radius: 20px;
  padding: 60px 48px;
  max-width: 560px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
}

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

.success-card h1 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.success-card p {
  color: var(--text-mid);
  margin-bottom: 32px;
}

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

.legal-page h1 {
  margin-bottom: 8px;
}

.legal-date {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 40px;
  font-family: 'Raleway', sans-serif;
}

.legal-content h2 {
  font-size: 1.15rem;
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-content p {
  color: var(--text-mid);
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.legal-content ul {
  color: var(--text-mid);
  font-size: 0.9rem;
  padding-left: 24px;
  margin-bottom: 14px;
}

.legal-content ul li {
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .hero-grid,
  .for-whom-grid,
  .safety-grid {
    grid-template-columns: 1fr;
  }

  .hero-image,
  .for-whom-image,
  .safety-image {
    order: -1;
    max-height: 300px;
  }

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

  .lead-form {
    padding: 32px 28px;
  }
}

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

  .hero {
    padding: 48px 0 56px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

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

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

  .program-footer {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .program-footer .program-stat {
    text-align: left;
  }
}
