/* ============================================================
   СЕБЕЯ — бренд авторских психологических путеводителей
   Палитра из логотипа: нежно-голубоватый фон, чернильные
   буквы, медная петля
   ============================================================ */

:root {
  --bg: #F2F7FA;
  --bg-soft: #E7EEF4;
  --text: #3E4756;
  --primary: #A5623A;
  --primary-dark: #8A4E2C;
  --secondary: #556070;
  --muted: #7E8A99;
  --line: #D9E2EA;
  --white: #FFFFFF;
  --shadow: 0 10px 30px rgba(62, 71, 86, 0.10);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  background-color: var(--bg);
  background-image: url("../img/bg.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.25; }

img { max-width: 100%; display: block; }

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  font-size: 17px;
  font-weight: bold;
  padding: 15px 32px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(165, 98, 58, 0.30);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-ghost:hover { background: rgba(165, 98, 58, 0.08); color: var(--primary-dark); }

.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 247, 250, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo img {
  height: 34px;
  width: auto;
  display: block;
}

.main-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.main-nav a:hover { color: var(--primary); }

.header-cta {
  background: var(--primary);
  color: var(--white);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: bold;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.15s, transform 0.15s;
}
.header-cta:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-1px); }

/* Кнопка-гамбургер (видна только на телефоне) */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 2px solid var(--primary);
  border-radius: 12px;
  background: transparent;
  color: var(--primary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

/* ---------- Hero ---------- */

.hero { padding: 70px 0 80px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: bold;
  margin-bottom: 22px;
}

.hero h1 { font-size: 44px; margin-bottom: 20px; }
.hero h1 em { color: var(--primary); font-style: normal; }

.lead { font-size: 19px; color: var(--muted); margin-bottom: 30px; max-width: 520px; }

.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }

.hero-note { font-size: 14px; color: var(--muted); }

.hero-image { position: relative; }
.hero-image img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Секции ---------- */

.section { padding: 70px 0; }
.section-alt { background: var(--bg-soft); }

.section-title {
  font-size: 34px;
  text-align: center;
  margin-bottom: 16px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 46px;
}

/* ---------- Блок «знакомо?» ---------- */

.pains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pain {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.pain h3 { font-size: 20px; margin-bottom: 10px; }
.pain p { color: var(--muted); font-size: 15px; }
.pain .num {
  display: inline-flex;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(165, 98, 58, 0.14);
  color: var(--primary);
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 14px;
  font-family: Georgia, serif;
}

/* ---------- Что внутри ---------- */

.parts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.part {
  display: flex;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  align-items: flex-start;
}
.part-icon {
  flex: none;
  width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.part-icon img { width: 100%; height: auto; display: block; }

/* ---------- Декоративные полосы и разделители ---------- */

.decor-band {
  display: flex;
  justify-content: center;
  padding: 0 20px 26px;
}
.decor-band img {
  width: min(430px, 86vw);
  height: auto;
}

.section-divider {
  display: flex;
  justify-content: center;
  padding-top: 46px;
}
.section-divider img {
  width: min(680px, 92%);
  height: auto;
  opacity: 0.9;
}
.part h3 { font-size: 19px; margin-bottom: 6px; }
.part p { color: var(--muted); font-size: 15px; }

/* ---------- Преимущества ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature .icon {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
}
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--muted); }

/* ---------- Карточки товаров (PDF / печатная) ---------- */

.plan-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; align-items: stretch; }

.plan {
  position: relative;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-align: center;
}
.plan.best { border: 3px solid var(--primary); }

.plan-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan .plan-name { font-size: 14px; font-weight: bold; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.plan .plan-price { font-family: Georgia, serif; font-size: 42px; margin: 12px 0 4px; }
.plan .plan-old { color: var(--muted); text-decoration: line-through; font-size: 16px; margin-bottom: 4px; }
.plan .plan-save { font-size: 14px; color: var(--primary); font-weight: bold; margin-bottom: 18px; }
.plan ul { list-style: none; text-align: left; margin-bottom: 24px; flex: 1; }
.plan li { padding: 7px 0; font-size: 15px; }
.plan li::before { content: "✓"; color: var(--primary); font-weight: bold; margin-right: 10px; }
.plan li.deny::before { content: "—"; color: var(--muted); }

.plan .btn { width: 100%; }

/* ---------- Сравнение с психологом ---------- */

.compare-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; align-items: stretch; }

.compare-note {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  max-width: 720px;
  margin: 30px auto 0;
}

.compare-gain {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.gain-item {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px 30px;
  text-align: center;
}
.gain-item .gain-num { font-family: Georgia, serif; font-size: 30px; font-weight: bold; color: var(--primary); }
.gain-item .gain-label { font-size: 14px; color: var(--muted); }

/* ---------- Как получишь ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px; left: 26px;
  background: var(--primary);
  color: var(--white);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-family: Georgia, serif;
  font-size: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; margin-top: 8px; }
.step p { font-size: 15px; color: var(--muted); }

/* ---------- Отзывы ---------- */

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: center; }

/* Карточки реальных отзывов (скрины, как на чекаутах) */
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.review-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}
.review {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review .stars { color: #E8A93C; letter-spacing: 3px; font-size: 18px; }
.review p { font-size: 15px; flex: 1; }
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  font-weight: bold;
}
.review-author img {
  width: 44px;
  height: auto;
  display: block;
}

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  padding: 0 26px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: bold;
  font-size: 17px;
  padding: 20px 0;
  position: relative;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--primary);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--muted); font-size: 15px; }

/* ---------- Финальный CTA ---------- */

.final-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
  border-radius: 28px;
  margin: 70px 20px;
}
.final-cta h2 { font-size: 36px; margin-bottom: 14px; }
.final-cta p { opacity: 0.9; max-width: 560px; margin: 0 auto 30px; }
.final-cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.final-cta .btn { background: var(--white); color: var(--primary-dark); }
.final-cta .btn:hover { background: var(--bg-soft); transform: translateY(-2px); }
.final-cta .btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.final-cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }

/* ---------- Подвал (тёмный, три колонки) ---------- */

.site-footer {
  background: var(--text);
  padding: 56px 0 44px;
  color: rgba(242, 247, 250, 0.65);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.footer-logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  color: var(--white);
  margin-bottom: 4px;
}
.footer-tagline {
  margin: 0 0 20px;
  color: rgba(242, 247, 250, 0.55);
  font-size: 15px;
}
.footer-copy { font-size: 13px; color: rgba(242, 247, 250, 0.45); margin: 0; }

.footer-col h4 {
  color: rgba(242, 247, 250, 0.5);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: rgba(242, 247, 250, 0.85); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--white); }

.footer-mail {
  display: block;
  font-size: 21px;
  font-weight: bold;
  color: var(--white);
  text-decoration: none;
  word-break: break-all;
  margin-bottom: 10px;
}
.footer-mail:hover { text-decoration: underline; color: var(--white); }
.footer-note { font-size: 13px; color: rgba(242, 247, 250, 0.55); margin: 0; line-height: 1.55; }

/* Старая структура подвала (страница «Контакты») на тёмном фоне */
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-inner .footer-links { flex-direction: row; gap: 22px; }

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- Пролистайте тетрадь (карточки презентации) ---------- */

.preview-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 10px 4px 22px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.preview-row::-webkit-scrollbar { height: 8px; }
.preview-row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.preview-card {
  flex: 0 0 auto;
  width: 460px;
  max-width: 88vw;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  scroll-snap-align: center;
  background: var(--white);
}

.preview-actions {
  text-align: center;
  margin-top: 26px;
}

/* Точки-«страницы» под пролистыванием: активная — медная, будущие — бледные */
.preview-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.preview-dots .dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #C6D2DC;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.preview-dots .dot.seen { background: #9FAFBD; }
.preview-dots .dot.active { background: var(--primary); transform: scale(1.2); }

/* ---------- Уведомления ---------- */

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--white);
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Адаптивность ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 34px; }
  .pains-grid, .features-grid, .reviews-grid, .steps, .plan-cards, .compare-grid { grid-template-columns: 1fr 1fr; }
  .parts { grid-template-columns: 1fr; }

  /* Декоративная вертикальная иллюстрация после hero — только для широких экранов:
     на телефоне занимает пол-экрана пустотой, поэтому скрываем */
  .decor-band { display: none; }
}

@media (max-width: 560px) {
  .pains-grid, .features-grid, .reviews-grid, .steps, .plan-cards, .compare-grid { grid-template-columns: 1fr; }
  .compare-gain { gap: 14px; }

  /* Шапка на телефоне: гамбургер вместо меню */
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 8px 24px 18px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 60;
  }
  .main-nav.open a { font-size: 17px; }

  .site-header .container { padding: 0 24px; }
  .header-inner { padding: 10px 0; }
  .logo img { height: 24px; }

  /* На телефоне кнопку «Выбрать формат» убираем — гамбургер встаёт у правого края */
  .header-cta { display: none; }

  /* Первый экран телефона: кнопки и край обложки видны без прокрутки */
  .hero { padding: 26px 0 34px; }
  .hero h1 { font-size: 24px; margin-bottom: 10px; }
  .lead { font-size: 14px; line-height: 1.55; margin-bottom: 16px; }
  .hero-actions { gap: 10px; margin-bottom: 10px; }
  .hero-actions .btn { flex: 1 1 auto; padding: 13px 14px; font-size: 14.5px; }
  .hero-note { font-size: 12px; margin-bottom: 0; }
  .hero-image img { margin-top: 2px; }

  /* Плашка-подпись: текст по центру, компактно */
  .eyebrow { display: block; text-align: center; font-size: 11px; padding: 5px 12px; letter-spacing: 1.4px; margin-bottom: 12px; }
}

/* ---------- Видео-история: месяц с тетрадью ---------- */

.section-story {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  padding: 76px 0;
}
.section-story .section-title { max-width: 720px; margin-left: auto; margin-right: auto; }
.section-story .section-sub { max-width: 620px; margin-left: auto; margin-right: auto; }

.story-player {
  position: relative;
  max-width: 860px;
  margin: 30px auto 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.story-player video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: #2B333F;
}

.story-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(62, 71, 86, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.story-play svg { width: 36px; height: 36px; fill: var(--primary); margin-left: 7px; }
.story-play:hover { transform: scale(1.08); background: var(--white); }
.story-player.playing .story-play { display: none; }

.story-quotes {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.story-quote {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  max-width: 250px;
}

@media (max-width: 640px) {
  .section-story { padding: 56px 0; }
  .story-play { width: 68px; height: 68px; }
  .story-play svg { width: 28px; height: 28px; margin-left: 5px; }
  .story-quote { max-width: 100%; font-size: 15px; }
  .story-quotes { gap: 12px; }
}
