/* ==========================================================================
   VARIABLES & DESIGN SYSTEM (ТЕПЛЫЙ МИНИМАЛИЗМ)
   ========================================================================== */
:root {
  /* Цветовая палитра: тёплые льняные, глиняные и терракотовые тона */
  --bg-primary: #F8F5F0;        /* Теплый льняной фон */
  --bg-card: #FFFFFF;           /* Чистый белый для контрастных плашек */
  --bg-subtle: #EFE9DF;         /* Вторичный бежевый акцент */
  --bg-chat-in: #EDE8DE;        /* Сообщение входящее */
  --bg-chat-out: #E3D5C5;       /* Сообщение психолога */
  
  --text-main: #24211E;         /* Глубокий кофейно-черный */
  --text-muted: #736B63;        /* Приглушенный серо-коричневый */
  --accent-color: #A36953;      /* Теплая терракота */
  --accent-hover: #8C5542;      /* Темная терракота */
  --border-color: rgba(36, 33, 30, 0.08);

  /* Шрифты */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Отступы и скругления */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --container-width: 1140px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 760px;
}

.section {
  padding: 96px 0;
}

.text-center {
  text-align: center;
}

.section-head {
  margin-bottom: 56px;
}

.section-subtitle {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ==========================================================================
   BUTTONS & UI
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn--primary {
  background-color: var(--accent-color);
  color: #FFFFFF;
}

.btn--primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn--secondary {
  background-color: var(--bg-subtle);
  color: var(--text-main);
}

.btn--secondary:hover {
  background-color: #E5DCCE;
}

.btn--outline {
  border: 1px solid var(--text-main);
  color: var(--text-main);
}

.btn--outline:hover {
  background-color: var(--text-main);
  color: #FFFFFF;
}

.btn--tg {
  background-color: #2AABEE;
  color: #FFFFFF;
}

.btn--tg:hover {
  background-color: #229ED9;
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(248, 245, 240, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.header__logo span {
  color: var(--accent-color);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-main);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition);
}

.mobile-menu {
  position: fixed;
  top: 73px;
  left: 0;
  width: 100%;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px 24px;
  border-bottom: 1px solid var(--border-color);
  transform: translateY(-120%);
  transition: var(--transition);
  z-index: 99;
}

.mobile-menu.open {
  transform: translateY(0);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero__container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 64px;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero__title em {
  font-style: italic;
  color: var(--accent-color);
}

.hero__description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(36, 33, 30, 0.06);
}

.hero__img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.hero__tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-dot {
  width: 8px;
  height: 8px;
  background: #34A853;
  border-radius: 50%;
}

/* ==========================================================================
   VIDEO CARD
   ========================================================================== */
.video-card {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(36, 33, 30, 0.04);
  border: 1px solid var(--border-color);
}

.video-card__player-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card__play-btn {
  position: absolute;
  width: 72px;
  height: 72px;
  background-color: var(--accent-color);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(163, 105, 83, 0.4);
}

.video-card__play-btn:hover {
  transform: scale(1.1);
  background-color: var(--accent-hover);
}

.video-card.playing .video-card__play-btn {
  display: none;
}

.video-card__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 28px 32px;
  gap: 20px;
  background: var(--bg-card);
}

.meta-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--accent-color);
}

.meta-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   QUIZ
   ========================================================================== */
.quiz-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--border-color);
  box-shadow: 0 16px 32px rgba(36, 33, 30, 0.03);
  position: relative;
  overflow: hidden;
}

.quiz-box__progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--bg-subtle);
}

.quiz-box__progress-bar {
  height: 100%;
  width: 33.33%;
  background-color: var(--accent-color);
  transition: width 0.4s ease;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

.quiz-step__counter {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
}

.quiz-step__question {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 28px;
}

.quiz-step__options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option {
  width: 100%;
  text-align: left;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  font-size: 1rem;
  color: var(--text-main);
  transition: var(--transition);
}

.quiz-option:hover {
  border-color: var(--accent-color);
  background: var(--bg-card);
  transform: translateX(4px);
}

.quiz-result {
  display: none;
  text-align: center;
  animation: fadeIn 0.4s ease forwards;
}

.quiz-result.active {
  display: block;
}

.quiz-result__icon {
  width: 60px;
  height: 60px;
  background: #E8F5E9;
  color: #2E7D32;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 20px;
}

.quiz-result__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 12px;
}

.quiz-result__desc {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.quiz-result__summary {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.9rem;
  text-align: left;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ==========================================================================
   REVIEWS (MESSENGER FORMAT)
   ========================================================================== */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.chat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(36, 33, 30, 0.03);
}

.chat-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(248, 245, 240, 0.5);
}

.chat-card__avatar {
  width: 44px;
  height: 44px;
  background: var(--bg-subtle);
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.chat-card__name {
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
}

.chat-card__status {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chat-card__body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
  background: #FCFBF9;
}

.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  position: relative;
  line-height: 1.45;
}

.chat-msg--in {
  align-self: flex-start;
  background: var(--bg-chat-in);
  border-bottom-left-radius: 4px;
}

.chat-msg--out {
  align-self: flex-end;
  background: var(--bg-chat-out);
  border-bottom-right-radius: 4px;
}

.chat-msg__time {
  display: block;
  text-align: right;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ==========================================================================
   BOOKING & CALENDAR
   ========================================================================== */
.booking__card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  box-shadow: 0 20px 40px rgba(36, 33, 30, 0.04);
}

.booking__title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 400;
  margin: 12px 0 20px;
}

.booking__text {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.booking__direct-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.booking__note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Календарный блок */
.calendar-widget {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
}

.calendar-widget__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-widget__month {
  font-weight: 600;
  font-size: 1.1rem;
}

.calendar-widget__nav button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  font-size: 1.2rem;
  line-height: 1;
  transition: var(--transition);
}

.calendar-widget__nav button:hover {
  background: var(--bg-card);
}

.calendar-widget__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.calendar-widget__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 24px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.calendar-day.empty {
  visibility: hidden;
}

.calendar-day.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.calendar-day.available:hover {
  background: var(--bg-card);
  border-color: var(--accent-color);
}

.calendar-day.selected {
  background: var(--accent-color) !important;
  color: #FFFFFF !important;
}

.calendar-widget__slots {
  margin-bottom: 24px;
}

.slots-title {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.slot-pill {
  padding: 8px 0;
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: var(--transition);
}

.slot-pill:hover {
  border-color: var(--accent-color);
}

.slot-pill.selected {
  background: var(--text-main);
  color: #FFFFFF;
  border-color: var(--text-main);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
}

.footer__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a:hover {
  color: var(--text-main);
}

/* ==========================================================================
   ANIMATIONS & RESPONSIVE
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__description { margin: 0 auto 36px; }
  .hero__actions { justify-content: center; }
  .hero__img { height: 400px; }
  
  .reviews__grid {
    grid-template-columns: 1fr;
  }

  .booking__card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
}

@media (max-width: 768px) {
  .header__nav { display: none; }
  .burger { display: flex; }
  .video-card__meta { grid-template-columns: 1fr; text-align: center; }
  .quiz-box { padding: 32px 20px; }
  .footer__container { flex-direction: column; gap: 16px; text-align: center; }
}