/* --- Переменные --- */
:root {
  --color-bg: #faf9f6;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #5c5c5c;
  --color-accent: #6B7E3D;
  --color-accent-hover: #58682E;
  --color-accent-active: #4E5C27;
  --color-border: #e8e6e1;
  --font: 'Outfit', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --header-height: 72px;
}

/* --- Сброс и база --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Шапка --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--color-surface);
  border-bottom: 3px solid var(--color-accent);
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: block;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--color-accent);
  white-space: nowrap;
}
.logo__img {
  display: block;
  height: 60px;
  width: auto;
  object-fit: contain;
}
.footer__logo .logo__img {
  height: 60px;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* --- Главный блок (hero) --- */
.main {
  min-height: calc(100vh - var(--header-height) - 200px);
}

.hero {
  padding: 80px 0 100px;
  text-align: center;
}

.hero__title {
  margin: 0 0 20px;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero__subtitle {
  margin: 0 0 40px;
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.lead-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 440px;
  margin: 0 auto;
}

.lead-form__input {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  font-family: var(--font);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  transition: border-color 0.2s;
}

.lead-form__input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.lead-form__btn {
  padding: 14px 28px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}

.lead-form__btn:hover {
  background: var(--color-accent-hover);
}

/* --- Секция «Что получите» --- */
.section {
  padding: 60px 0 80px;
}

.section__title {
  margin: 0 0 40px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
}

.offer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.card {
  padding: 28px;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-accent);
  background: rgba(107, 126, 61, 0.12);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.card__title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 600;
}

.card__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* --- Подвал --- */
.footer {
  padding: 48px 0 24px;
  background: #2d3520;
  color: #e8e6e1;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__logo {
  color: #fff;
}

.footer__nav {
  display: flex;
  gap: 24px;
}

.footer__link {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.footer__link:hover {
  color: #fff;
}

.footer__bottom {
  padding-top: 24px;
}

.footer__copy {
  margin: 0 0 0.25em;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer__copy:last-child { margin-bottom: 0; }

/* --- Воронка: прогресс и контент --- */
.funnel-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.funnel-progress__current { color: var(--color-accent); font-weight: 600; }
.funnel-progress__dots {
  display: flex;
  gap: 6px;
}
.funnel-progress__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background 0.2s;
}
.funnel-progress__dot_active { background: var(--color-accent); }

.page-content {
  padding: 48px 0 64px;
}
.page-content .container { max-width: 720px; }
.prose {
  font-size: 1.05rem;
  line-height: 1.7;
}
.prose h1 {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1em;
  letter-spacing: -0.02em;
}
.prose h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.6rem);
  font-weight: 700;
  margin: 1.5em 0 0.5em;
}
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--color-text); }
.prose .lead { font-size: 1.15rem; color: var(--color-text-muted); }

.list-check, .list-cross, .list-diamond {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5em;
}
.list-check li, .list-cross li, .list-diamond li {
  position: relative;
  padding-left: 1.75em;
  margin-bottom: 0.5em;
}
.list-check li::before { content: '✔'; position: absolute; left: 0; color: #7C9A5A; font-weight: bold; }
.list-cross li::before { content: '✖'; position: absolute; left: 0; color: var(--color-text-muted); }
.list-diamond li::before { content: '◆'; position: absolute; left: 0; color: var(--color-accent); font-size: 0.75em; }

.cta-block {
  text-align: center;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.cta-block__btn {
  display: inline-block;
  padding: 16px 36px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(107, 126, 61, 0.3);
}
.cta-block__btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}
.cta-block__btn:active {
  background: var(--color-accent-active);
  transform: translateY(0);
}
.cta-block__back {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.cta-block__back:hover {
  color: var(--color-accent);
}

.highlight { color: var(--color-accent); font-weight: 600; }
.underline { text-decoration: underline; text-underline-offset: 2px; }

/* Появление при скролле (умеренная анимация) */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.reveal_visible { opacity: 1; transform: translateY(0); }

/* Блоки (страница 4) */
.blocks { margin: 1.5em 0; }
.block {
  padding: 1.25em 0;
  border-bottom: 1px solid var(--color-border);
}
.block:last-child { border-bottom: none; }
.block__title {
  margin: 0 0 0.35em;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-accent);
}
.block p { margin: 0; font-size: 1rem; }

/* Контейнер пошире для страницы 5 */
.container_wide { max-width: 720px; }

/* Интенсив — дни */
.intensive-days { margin: 2em 0; }
.intensive-day {
  margin-bottom: 2em;
  padding: 1.25em;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}
.intensive-day h2 { margin-top: 0; }

/* Форма лида (страница 5) */
.funnel-form-wrap {
  margin-top: 2.5em;
}
.funnel-form-title { margin-top: 0; }
.funnel-form-note { font-size: 0.95rem; color: var(--color-text-muted); }
.funnel-form {
  margin-top: 1.5em;
  padding: 2em;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.25em;
}
.funnel-form__label {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  font-weight: 500;
  font-size: 0.95rem;
}
.funnel-form__hint { font-size: 0.85rem; color: var(--color-text-muted); }
.funnel-form__hint_error { color: var(--color-accent); }
.funnel-form__input, .funnel-form__textarea {
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  transition: border-color 0.2s;
}
.funnel-form__input:focus, .funnel-form__textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.funnel-form__textarea { resize: vertical; min-height: 80px; }
.funnel-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 400;
}
.funnel-form__consent a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.funnel-form__consent a:hover { color: var(--color-accent-hover); }
.funnel-form__consent a:active { color: var(--color-accent-active); }
.funnel-form__checkbox {
  flex-shrink: 0;
  margin-top: 0.2em;
  accent-color: var(--color-accent);
}
.funnel-form__btn { align-self: center; margin-top: 0.5em; }
.funnel-form__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.funnel-form__btn:disabled:hover {
  background: var(--color-accent);
  transform: none;
}

.funnel-form-footer {
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid var(--color-border);
  font-size: 1rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
}

.funnel-form-thanks {
  margin-top: 0;
  padding: 2.5em 2em 2.25em;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.funnel-form-thanks__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-accent);
  border-radius: 50%;
  line-height: 1;
}
.funnel-form-thanks__title {
  margin: 0 0 0.6em;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.funnel-form-thanks__text {
  margin: 0 auto 1.5em;
  max-width: 32em;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text);
  text-align: center;
}
.funnel-form-thanks__cta {
  margin-top: 1.5em;
  padding-top: 1.5em;
  border-top: 1px solid var(--color-border);
}
.funnel-form-thanks__channel {
  margin: 0 0 1em;
  font-size: 0.98rem;
  color: var(--color-text-muted);
}
.funnel-form-thanks__btn {
  display: inline-block;
  margin-top: 0;
}
.funnel-form-thanks p { margin: 0; }

/* VK Video — встраивание */
.video-section { margin: 2.5em 0; }
.video-section__title { margin: 0 0 0.25em; font-size: 1.35rem; }
.video-section__lead { margin: 0 0 1.5em; font-size: 0.95rem; color: var(--color-text-muted); }
.video-embed__label { margin: 0 0 0.5em; font-size: 1.05rem; font-weight: 600; }
.video-embed__wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-surface);
}
.video-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.video-embed_in-day { margin-top: 1.25em; }
.video-embed-note {
  margin: 0 0 0.4rem;
  padding-top: 1.75rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-text-muted);
}

/* Блок эксперта с фото (страница 4) */
.expert-block {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin: 1.5em 0;
  flex-wrap: wrap;
}
.expert-block__photo {
  flex-shrink: 0;
  width: 280px;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}
.expert-block__text { flex: 1; min-width: 260px; }
.expert-block__text p:first-child { margin-top: 0; }

/* Страница политики */
.privacy-page h2 { font-size: 1.2rem; margin-top: 1.5em; }
.privacy-page h3 { font-size: 1.1rem; margin-top: 1.25em; }
.privacy-footer { margin-top: 2em; }

/* --- Адаптив --- */
@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .logo__img {
    height: 48px;
  }
  .footer__logo .logo__img {
    height: 48px;
  }

  .hero {
    padding: 50px 0 70px;
  }

  .lead-form {
    flex-direction: column;
  }

  .lead-form__input {
    min-width: 100%;
  }

  .cta-block__btn,
  .lead-form__btn,
  .funnel-form__btn {
    min-height: 44px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .funnel-form {
    padding: 1.5em 1.25em;
  }

  .intensive-day {
    padding: 1em;
  }

  .footer__top {
    flex-direction: column;
    align-items: flex-start;
  }
}
