/* =========================================================
   Прототип 2 — «Магические страницы»
   Кинематографичный полноэкранный snap-scroll
   ========================================================= */

:root {
  /* Палитра, извлечённая из обложки */
  --ink:        #2b1410;
  --wine-deep:  #462627;
  --wine:       #822625;
  --brick:      #b94722;
  --amber:      #c47731;
  --ochre:      #cca063;
  --honey:      #f1c06f;
  --gold:       #f3db91;
  --paper:      #f5ebd5;
  --paper-soft: #f8f1de;
  --moss:       #6b9c8e;
  --coral:      #d04b3b;

  /* Тёмная тема прототипа 2 */
  --bg:         #150906;
  --bg-2:       #1f0d0a;
  --plate:      rgba(20, 8, 6, 0.62);
  --plate-edge: rgba(243, 219, 145, 0.18);
  --text:       #f3e4c2;
  --text-soft:  #d9c79d;
  --text-mute:  rgba(243, 228, 194, 0.66);
  --accent:     var(--gold);
  --accent-2:   var(--honey);

  /* Динамическое изображение секции (подставляет JS) */
  --section-image-url: url("../photo_2026-05-18_20-55-15.jpg");
  --section-image-focus: center bottom;

  --maxw: 980px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html { scroll-behavior: smooth; }
body { min-height: 100vh; }

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

/* -------- Snap-deck -------- */
.deck {
  height: 100vh;
  height: 100dvh;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.deck::-webkit-scrollbar { display: none; }

/* -------- Slide -------- */
.slide {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  background: var(--bg);
}

.slide__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--section-image-url);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: var(--section-image-focus);
  transform: scale(1.08);
  transition: transform 1.6s var(--ease), filter 1.6s var(--ease);
  filter: saturate(.85) brightness(.78);
  will-change: transform;
}
.slide.is-active .slide__bg {
  transform: scale(1.0);
  filter: saturate(1) brightness(.9);
}

/* Виньетка вокруг изображения */
.slide__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0.25) 55%,
      rgba(0,0,0,0.78) 100%),
    linear-gradient(180deg,
      rgba(21, 9, 6, 0.45) 0%,
      rgba(21, 9, 6, 0.15) 35%,
      rgba(21, 9, 6, 0.55) 100%);
}

/* -------- Cover-слайд -------- */
.slide--cover .slide__bg {
  filter: saturate(.85) brightness(.62);
  transform: scale(1.05);
  animation: cover-zoom 22s var(--ease) infinite alternate;
}
@keyframes cover-zoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.18); }
}

.slide__content {
  position: relative;
  z-index: 3;
  max-width: var(--maxw);
  width: 100%;
  padding: clamp(20px, 4vw, 56px);
  text-align: center;
}

.slide__content--cover {
  text-align: center;
  padding-bottom: clamp(60px, 12vh, 120px);
}

.cover-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
  opacity: 0.85;
}

.cover-authors {
  font-family: 'Marcellus', serif;
  font-size: clamp(15px, 1.4vw, 18px);
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin: 0 0 clamp(24px, 5vh, 40px);
}

.cover-title {
  margin: 0 0 clamp(14px, 2vh, 22px);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(36px, 6.4vw, 88px);
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-shadow:
    0 2px 0 rgba(0,0,0,0.4),
    0 0 22px rgba(243, 192, 111, 0.35),
    0 0 60px rgba(243, 192, 111, 0.18);
  animation: title-glow 4.5s ease-in-out infinite alternate;
}
.cover-title__line { display: inline-block; }
@keyframes title-glow {
  from { text-shadow: 0 2px 0 rgba(0,0,0,0.4), 0 0 18px rgba(243, 192, 111, 0.25), 0 0 50px rgba(243, 192, 111, 0.12); }
  to   { text-shadow: 0 2px 0 rgba(0,0,0,0.4), 0 0 30px rgba(243, 192, 111, 0.5),  0 0 90px rgba(243, 192, 111, 0.28); }
}

.cover-subtitle {
  margin: 0 0 clamp(28px, 5vh, 48px);
  font-family: 'Marcellus', serif;
  font-weight: 400;
  font-size: clamp(16px, 1.8vw, 22px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre);
}

.cover-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: 1px solid var(--plate-edge);
  border-radius: 999px;
  font-family: 'Marcellus', serif;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  background: rgba(20, 8, 6, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.cover-cta::after {
  content: "↓";
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: transform 0.3s var(--ease);
}
.cover-cta:hover {
  background: rgba(243, 192, 111, 0.12);
  border-color: var(--gold);
  color: var(--paper);
  transform: translateY(-1px);
}
.cover-cta:hover::after { transform: translateY(3px); }

/* Подсказка прокрутки */
.slide__scroll-hint {
  position: absolute;
  bottom: clamp(20px, 5vh, 40px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-mute);
  animation: hint-pulse 2.4s ease-in-out infinite;
}
.slide__scroll-hint svg { color: var(--gold); opacity: 0.7; }
@keyframes hint-pulse {
  0%,100% { opacity: 0.55; transform: translate(-50%, 0); }
  50%     { opacity: 1;    transform: translate(-50%, 6px); }
}

/* -------- Sparks (искры на обложке) -------- */
.slide__sparks {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.slide__sparks span {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold), 0 0 18px rgba(243, 192, 111, 0.6);
  opacity: 0;
  animation: spark-float 7s ease-in-out infinite;
}
.slide__sparks span:nth-child(1) { left:  8%; top: 78%; animation-delay: 0s;   }
.slide__sparks span:nth-child(2) { left: 22%; top: 64%; animation-delay: 1.1s; }
.slide__sparks span:nth-child(3) { left: 35%; top: 86%; animation-delay: 2.3s; }
.slide__sparks span:nth-child(4) { left: 48%; top: 70%; animation-delay: 3.4s; }
.slide__sparks span:nth-child(5) { left: 62%; top: 82%; animation-delay: 0.6s; }
.slide__sparks span:nth-child(6) { left: 76%; top: 68%; animation-delay: 1.8s; }
.slide__sparks span:nth-child(7) { left: 88%; top: 84%; animation-delay: 3.0s; }
.slide__sparks span:nth-child(8) { left: 92%; top: 60%; animation-delay: 4.2s; width: 3px; height: 3px; }
@keyframes spark-float {
  0%   { opacity: 0; transform: translateY(0) scale(0.6); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-160px) scale(1.2); }
}

/* -------- Story-слайды -------- */
.slide--story .slide__content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.plate {
  position: relative;
  max-width: 720px;
  width: 100%;
  padding: clamp(28px, 4.5vw, 48px) clamp(24px, 4vw, 56px);
  background: var(--plate);
  border: 1px solid var(--plate-edge);
  border-radius: 4px;
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,0.55),
    0 0 0 1px rgba(243, 219, 145, 0.06) inset;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.slide.is-active .plate {
  opacity: 1;
  transform: translateY(0);
}

/* Уголки-завитки на пластине */
.plate::before, .plate::after {
  content: "";
  position: absolute;
  width: 28px; height: 28px;
  border: 1px solid var(--gold);
  opacity: 0.55;
}
.plate::before {
  top: -1px; left: -1px;
  border-right: none; border-bottom: none;
}
.plate::after {
  bottom: -1px; right: -1px;
  border-left: none; border-top: none;
}

.plate__chapter {
  display: inline-block;
  font-family: 'Marcellus', serif;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 12px;
  border: 1px solid var(--plate-edge);
  border-radius: 999px;
  margin-bottom: clamp(16px, 2vh, 22px);
}

.plate__chapter-title {
  margin: 0 0 clamp(14px, 2vh, 18px);
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 40px);
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.plate__text {
  margin: 0;
  font-family: 'Marcellus', serif;
  font-size: clamp(16px, 1.45vw, 36px);
  line-height: 1.75;
  color: var(--text);
  letter-spacing: 0.005em;
}

/* Номер секции в углу */
.plate__num {
  position: absolute;
  top: -22px;
  right: 12px;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--text-mute);
}

/* -------- Финал-слайд -------- */
.slide--finale .slide__bg {
  filter: saturate(.7) brightness(.55);
}
.slide--finale .slide__vignette {
  background:
    radial-gradient(ellipse at center,
      rgba(0,0,0,0.1) 0%,
      rgba(0,0,0,0.55) 50%,
      rgba(0,0,0,0.9) 100%);
}
.finale {
  text-align: center;
}
.finale__ornament {
  display: inline-block;
  margin-bottom: 28px;
  font-family: 'Marcellus', serif;
  font-size: 28px;
  color: var(--gold);
  letter-spacing: 0.6em;
  opacity: 0.8;
}
.finale__text {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 24px;
  text-shadow: 0 0 22px rgba(243, 192, 111, 0.4);
}
.finale__authors {
  font-family: 'Marcellus', serif;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--text-soft);
  margin: 0 0 36px;
}
.finale__top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border: 1px solid var(--plate-edge);
  border-radius: 999px;
  background: rgba(20, 8, 6, 0.4);
  font-family: 'Marcellus', serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.finale__top:hover {
  background: rgba(243, 192, 111, 0.12);
  border-color: var(--gold);
  color: var(--paper);
}

/* =========================================================
   Чат-слайд — «Магический диалог»
   ========================================================= */

.slide--chat {
  /* Допускаем перерастание вьюпорта: длинная беседа прокручивается внутри slide */
  height: auto;
  min-height: 100vh;
  scroll-snap-stop: normal;
  padding: clamp(72px, 12vh, 120px) clamp(16px, 3vw, 32px) clamp(72px, 10vh, 100px);
  display: block; /* плита размещается по центру вручную */
}

.slide--chat .slide__content {
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  max-width: 880px;
  margin: 0 auto;
}

.chat-plate {
  position: relative;
  width: 100%;
  background: var(--plate);
  border: 1px solid var(--plate-edge);
  border-radius: 4px;
  padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 56px);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  box-shadow:
    0 40px 100px -24px rgba(0,0,0,0.65),
    0 0 0 1px rgba(243, 219, 145, 0.08) inset;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.slide.is-active .chat-plate {
  opacity: 1;
  transform: translateY(0);
}

/* Уголки-завитки */
.chat-plate::before, .chat-plate::after {
  content: "";
  position: absolute;
  width: 36px; height: 36px;
  border: 1px solid var(--gold);
  opacity: 0.55;
  pointer-events: none;
}
.chat-plate::before {
  top: -1px; left: -1px;
  border-right: none; border-bottom: none;
}
.chat-plate::after {
  bottom: -1px; right: -1px;
  border-left: none; border-top: none;
}

/* Заголовок */
.chat-plate__header {
  text-align: center;
  margin: 0 0 clamp(28px, 4vh, 40px);
}
.chat-plate__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Marcellus', serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  opacity: 0.85;
}
.chat-plate__eyebrow::before,
.chat-plate__eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.chat-plate__title {
  margin: 0 0 10px;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--gold);
  text-shadow: 0 0 24px rgba(243, 192, 111, 0.25);
}
.chat-plate__subtitle {
  margin: 0;
  font-family: 'Marcellus', serif;
  font-size: clamp(13px, 1.2vw, 15px);
  letter-spacing: 0.04em;
  color: var(--text-soft);
  opacity: 0.85;
  font-style: italic;
}

/* Стрим сообщений */
.chat-plate__stream {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cmsg {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.slide.is-active .cmsg {
  opacity: 1;
  transform: none;
}
/* Каскадная задержка появления */
.slide.is-active .cmsg:nth-child(1)  { transition-delay: 0.15s; }
.slide.is-active .cmsg:nth-child(2)  { transition-delay: 0.30s; }
.slide.is-active .cmsg:nth-child(3)  { transition-delay: 0.45s; }
.slide.is-active .cmsg:nth-child(4)  { transition-delay: 0.55s; }
.slide.is-active .cmsg:nth-child(5)  { transition-delay: 0.65s; }
.slide.is-active .cmsg:nth-child(6)  { transition-delay: 0.75s; }
.slide.is-active .cmsg:nth-child(n+7) { transition-delay: 0.85s; }

.cmsg--boy {
  grid-template-columns: minmax(0, 1fr) 36px;
}

/* Аватар */
.cmsg__avatar {
  grid-row: 1 / span 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  border: 1px solid var(--plate-edge);
  box-shadow: 0 0 12px rgba(243, 192, 111, 0.15);
}
.cmsg--ai .cmsg__avatar {
  grid-column: 1;
  background: rgba(243, 192, 111, 0.12);
  color: var(--gold);
  text-shadow: 0 0 8px rgba(243, 192, 111, 0.6);
}
.cmsg--boy .cmsg__avatar {
  grid-column: 2;
  background: rgba(196, 119, 49, 0.18);
  color: var(--honey);
}

/* Имя */
.cmsg__name {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 4px;
}
.cmsg--ai .cmsg__name { grid-column: 2; }
.cmsg--boy .cmsg__name {
  grid-column: 1;
  text-align: right;
  color: var(--honey);
  opacity: 0.85;
}

/* Пузырь */
.cmsg__bubble {
  position: relative;
  font-family: 'Marcellus', serif;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.65;
  padding: 12px 18px;
  border-radius: 14px;
  word-wrap: break-word;
  hyphens: auto;
  letter-spacing: 0.005em;
}
.cmsg--ai .cmsg__bubble {
  grid-column: 2;
  background: rgba(20, 8, 6, 0.55);
  border: 1px solid rgba(243, 219, 145, 0.22);
  color: var(--text);
  border-top-left-radius: 4px;
  box-shadow:
    0 8px 24px -10px rgba(0,0,0,0.4),
    0 0 24px -8px rgba(243, 192, 111, 0.18);
}
.cmsg--boy .cmsg__bubble {
  grid-column: 1;
  background: linear-gradient(180deg,
    rgba(196, 119, 49, 0.22),
    rgba(130, 38, 37, 0.32));
  border: 1px solid rgba(196, 119, 49, 0.45);
  color: var(--text);
  border-top-right-radius: 4px;
  text-align: left;
  box-shadow:
    0 8px 24px -10px rgba(0,0,0,0.4),
    0 0 24px -10px rgba(196, 119, 49, 0.45);
}

/* «Хвостик» */
.cmsg--ai .cmsg__bubble::before {
  content: "";
  position: absolute;
  top: 8px; left: -6px;
  width: 12px; height: 12px;
  background: rgba(20, 8, 6, 0.55);
  border-left: 1px solid rgba(243, 219, 145, 0.22);
  border-bottom: 1px solid rgba(243, 219, 145, 0.22);
  transform: rotate(45deg);
  border-radius: 2px;
}
.cmsg--boy .cmsg__bubble::before {
  content: "";
  position: absolute;
  top: 8px; right: -6px;
  width: 12px; height: 12px;
  background: linear-gradient(135deg,
    rgba(196, 119, 49, 0.22),
    rgba(130, 38, 37, 0.32));
  border-right: 1px solid rgba(196, 119, 49, 0.45);
  border-top: 1px solid rgba(196, 119, 49, 0.45);
  transform: rotate(45deg);
  border-radius: 2px;
}

/* Орнамент-разделитель */
.chat-plate__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: clamp(28px, 4vh, 40px) 0 clamp(16px, 2vh, 22px);
  color: var(--gold);
  opacity: 0.7;
}
.chat-plate__ornament span {
  height: 1px; width: 60px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
}
.chat-plate__ornament svg {
  width: 16px; height: 16px;
  filter: drop-shadow(0 0 6px rgba(243, 192, 111, 0.5));
}

/* Декоративный «инпут» */
.chat-plate__input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(20, 8, 6, 0.45);
  border: 1px dashed rgba(243, 219, 145, 0.3);
  border-radius: 999px;
  cursor: not-allowed;
}
.chat-plate__input-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(243, 192, 111, 0.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 13px;
}
.chat-plate__input-text {
  flex: 1;
  font-family: 'Marcellus', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--text-mute);
}
.chat-plate__input-hint {
  font-family: 'Marcellus', serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(243, 192, 111, 0.12);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(243, 219, 145, 0.25);
  opacity: 0.9;
}

/* -------- Language switcher -------- */
.lang {
  position: fixed;
  top: clamp(14px, 2.5vh, 22px);
  right: clamp(14px, 2.5vw, 26px);
  z-index: 50;
  display: flex;
  gap: 6px;
  padding: 6px;
  background: rgba(20, 8, 6, 0.55);
  border: 1px solid var(--plate-edge);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lang__btn {
  border: none;
  background: transparent;
  color: var(--text-mute);
  font-family: 'Marcellus', serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s var(--ease);
}
.lang__btn:hover { color: var(--text); }
.lang__btn.is-active {
  background: rgba(243, 192, 111, 0.18);
  color: var(--gold);
}
.lang__flag {
  font-size: 13px;
  line-height: 1;
}

/* -------- Side dot navigation -------- */
.dots {
  position: fixed;
  top: 50%;
  left: clamp(10px, 2vw, 22px);
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 8px;
  background: rgba(20, 8, 6, 0.4);
  border: 1px solid var(--plate-edge);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--text-mute);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s var(--ease);
}
.dot:hover {
  border-color: var(--gold);
  transform: scale(1.2);
}
.dot.is-active {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 10px rgba(243, 192, 111, 0.6);
  transform: scale(1.15);
}
/* Особый стиль для точки чата */
.dot--chat {
  width: 12px; height: 12px;
  border-radius: 3px;
  transform: rotate(45deg);
}
.dot--chat:hover {
  transform: rotate(45deg) scale(1.2);
}
.dot--chat.is-active {
  transform: rotate(45deg) scale(1.15);
}
.dot__label {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  font-family: 'Marcellus', serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(20, 8, 6, 0.85);
  border: 1px solid var(--plate-edge);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s var(--ease);
}
.dot:hover .dot__label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.dot--chat:hover .dot__label {
  transform: rotate(-45deg) translateY(-50%) translateX(0);
}

/* -------- Адаптив -------- */
@media (max-width: 720px) {
  .dots {
    left: auto;
    right: clamp(10px, 2vw, 18px);
    top: auto;
    bottom: clamp(14px, 2.5vh, 22px);
    transform: none;
    flex-direction: row;
    padding: 8px 12px;
  }
  .dot:hover .dot__label { display: none; }

  .lang {
    top: clamp(10px, 2vh, 16px);
    right: clamp(10px, 2vw, 16px);
  }
  .lang__btn { padding: 5px 10px; font-size: 11px; }

  .plate { padding: 26px 22px; }
  .plate::before, .plate::after { width: 20px; height: 20px; }

  .cover-title { font-size: clamp(32px, 11vw, 56px); }
  .cover-subtitle { font-size: clamp(13px, 3.6vw, 16px); }

  .slide--cover .slide__content--cover {
    padding-bottom: clamp(80px, 16vh, 140px);
  }

  /* Чат на мобиле — плотнее */
  .slide--chat {
    padding: 80px 12px 90px;
  }
  .chat-plate {
    padding: 26px 18px;
  }
  .chat-plate::before, .chat-plate::after { width: 22px; height: 22px; }

  .cmsg {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
  }
  .cmsg--boy {
    grid-template-columns: minmax(0, 1fr) 28px;
  }
  .cmsg__avatar {
    width: 28px; height: 28px;
    font-size: 12px;
  }
  .cmsg__bubble {
    font-size: 14.5px;
    padding: 10px 14px;
    line-height: 1.55;
  }
  .chat-plate__input-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .slide--cover .slide__bg { animation: none; }
}
