/* =========================================================
   ЛЕНДИНГ КУРСА «ИИ ДЛЯ МАСТЕРА» — ОСНОВНЫЕ СТИЛИ
   Правки для телефона лежат в responsive.css
   ========================================================= */

/* ---------- Переменные бренда ---------- */
:root {
  --dark:        #715446;  /* основной тёмный: обложка, финал */
  --accent:      #FFDE59;  /* акцент: кнопки, подсветка */
  --accent-2:    #84623C;  /* второй акцент: детали, точки */
  --card-bg:     #F4F1ED;  /* светлый фон карточек */
  --warm-bg:     #FFF7DC;  /* тёплый светлый фон плашек */
  --text:        #3A302A;  /* основной текст */
  --muted:       #777870;  /* приглушённый серый */
  --white:       #FFFFFF;

  --radius:      20px;
  --radius-sm:   12px;
  --shadow:      0 6px 24px rgba(58, 48, 42, .07);
  --shadow-hover:0 10px 32px rgba(58, 48, 42, .12);

  --font-head:   "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;      /* плавный скролл по якорям */
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .5em;
}

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

ul { list-style: none; margin: 0; padding: 0; }

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

/* ---------- Раскладка ---------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section--light {
  background: var(--card-bg);
}

.section__title {
  font-size: 40px;
  color: var(--dark);
  max-width: 20ch;
  margin-bottom: 40px;
}

.overline {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.overline--light {
  color: rgba(255, 255, 255, .65);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  padding: 17px 38px;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn--accent {
  background: var(--accent);
  color: var(--text);
  box-shadow: 0 6px 20px rgba(255, 222, 89, .3);
}

.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255, 222, 89, .42);
}

.btn--accent:active { transform: translateY(0); }

.btn--full { width: 100%; }

/* ---------- Декоративные круги ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);   /* сильное размытие — это мягкие пятна света, а не круги */
}

.blob--yellow { background: rgba(255, 222, 89, .16); }
.blob--brown  { background: rgba(132, 98, 60,  .55); }

.blob--cover-1 { width: 520px; height: 520px; top: -170px; right: -150px; }
.blob--cover-2 { width: 360px; height: 360px; bottom: -160px; left: -110px; }

.blob--final-1 { width: 400px; height: 400px; bottom: -180px; right: -120px; }
.blob--final-2 { width: 260px; height: 260px; top: -110px; left: -80px; }

/* =========================================================
   1. ОБЛОЖКА
   ========================================================= */
.cover {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
  padding: 120px 0 110px;
  text-align: center;
}

.cover__inner {
  position: relative;   /* поверх кругов */
  z-index: 1;
  max-width: 820px;
}

.cover__title {
  font-size: 60px;
  color: var(--white);
  margin-bottom: 24px;
}

.cover__subtitle {
  font-size: 19px;
  color: rgba(255, 255, 255, .85);
  max-width: 620px;
  margin: 0 auto 40px;
}

/* Ссылка обратно на основной сайт — маленькая, чтобы не отвлекать */
.backlink {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 24px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  transition: color .2s ease;
}

.backlink:hover { color: var(--white); }

@media (max-width: 640px) {
  .backlink { top: 16px; left: 20px; font-size: 13px; }
}

/* =========================================================
   2. БОЛЬ — три колонки
   ========================================================= */
.pains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pain {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.pain__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
}

.pain p { color: var(--text); }

/* =========================================================
   3. АВТОР
   ========================================================= */
.author {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: start;
}

.author__photo { margin: 0; }

/* Фото квадратное (640×640) — показываем целиком, без обрезки */
.author__img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--card-bg);   /* тёплая подложка, пока картинка грузится */
}

/* =========================================================
   4. ПРОГРАММА — шесть карточек
   ========================================================= */
.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.module {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.module:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.module__num {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: .05em;
}

.module__title {
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 10px;
}

.module p {
  font-size: 16px;
  color: var(--muted);
}

/* =========================================================
   5. ФОРМАТ
   ========================================================= */
.format {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: start;
}

.checklist {
  background: var(--warm-bg);
  border-radius: var(--radius);
  padding: 32px;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 16px;
  font-weight: 500;
}

.checklist li:last-child { margin-bottom: 0; }

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(132, 98, 60, .18);
}

/* =========================================================
   6. ЧЕГО ЗДЕСЬ НЕТ
   ========================================================= */
.disclaimer {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 19px;
  line-height: 1.7;
  color: var(--muted);
}

/* =========================================================
   7. ЦЕНА И ЗАЯВКА
   ========================================================= */
.offer {
  background: var(--warm-bg);
  border-radius: 28px;
  padding: 56px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.offer .section__title { margin-bottom: 24px; }

.offer__price {
  font-size: 22px;
  line-height: 1.5;
}

.offer__price strong {
  font-family: var(--font-head);
  font-size: 34px;
  color: var(--dark);
}

.offer__price-old {
  color: var(--muted);
}

.offer__includes {
  color: var(--muted);
  margin-bottom: 32px;
}

/* Кнопка заявки (вместо формы) */
.apply { margin-top: 8px; }

.apply__alt {
  margin: 18px 0 0;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}

.apply__alt a {
  color: var(--accent-2);
  font-weight: 500;
}

/* Форма (запасной вариант, сейчас не используется) */
.form { margin-top: 8px; }

.form__field {
  display: block;
  margin-bottom: 20px;
}

.form__label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.form input {
  width: 100%;
  padding: 15px 18px;
  border: 1.5px solid rgba(132, 98, 60, .25);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form input::placeholder { color: #B3ADA6; }

.form input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(255, 222, 89, .4);
}

.form__note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* =========================================================
   8. ФИНАЛЬНЫЙ БЛОК
   ========================================================= */
.final {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
  padding: 96px 0;
  text-align: center;
}

.final__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.final__title {
  font-size: 38px;
  color: var(--white);
}

.final__text {
  font-size: 19px;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 36px;
}

/* =========================================================
   Появление блоков при скролле (включает js/main.js)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Уважаем настройку «уменьшить движение» в системе */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .module { transition: none; }
}
