:root {
  color-scheme: dark;
  --bg: #000;
  --paper: #f2eadc;
  --muted: rgba(242, 234, 220, .62);
  --faint: rgba(242, 234, 220, .18);
  --panel: rgba(0, 0, 0, .72);
  --line: rgba(242, 234, 220, .28);
  --sand-shadow: 0 0 18px rgba(242, 234, 220, .22), 0 0 42px rgba(242, 234, 220, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; background: #000; }
body.is-locked { overflow: hidden; height: 100vh; height: 100svh; touch-action: none; }
body { color: var(--paper); }
a { color: inherit; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-shell {
  position: relative;
  min-height: 100svh;
  background: #000;
  overflow: hidden;
}

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(34px, 6svh, 70px) 14px clamp(42px, 7svh, 78px);
}

.video-frame {
  position: relative;
  width: min(94vw, 86svh, 940px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.sand-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
  filter: contrast(1.03) saturate(.92);
}

body.is-playing-scene .hotspot,
body.is-playing-scene .topic-card {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Тематическая сцена: видео всегда на своём месте.
   Когда играет — currentTime двигается; после окончания — paused на последнем кадре. */
.theme-body #topicVideo {
  position: absolute;
  inset: 0;
}

.top-nav,
.back-scene,
.site-footer,
.cookie-note,
.hotspot,
.topic-card {
  opacity: 0;
  pointer-events: none;
  transition: opacity .9s ease, transform .9s ease;
}

/* На блоге и в SEO страницах (нет JS который добавляет is-ready) nav и footer
   должны быть видимы сразу. */
body.blog-page .top-nav,
body.blog-page .site-footer,
body.blog-cat-page .top-nav,
body.blog-cat-page .site-footer,
body.blog-post .top-nav,
body.blog-post .site-footer,
body.seo-post .top-nav,
body.seo-post .site-footer,
body.static-page .top-nav,
body.static-page .site-footer {
  opacity: 1 !important;
  pointer-events: auto !important;
}
body.blog-page .top-nav,
body.blog-cat-page .top-nav,
body.blog-post .top-nav,
body.seo-post .top-nav,
body.static-page .top-nav { transform: translateX(-50%) translateY(0) !important; }

body.is-ready .top-nav,
body.is-ready .back-scene,
body.is-ready .site-footer,
body.is-ready .hotspot,
body.is-ready .topic-card.is-open,
body.is-ready .cookie-note.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Тематические страницы: меню, футер, кнопка Назад и cookie — всегда видны.
   Видео — в одном месте; поверх него появляются только hotspot-кнопки и карточка темы. */
.theme-body .top-nav,
.theme-body .back-scene,
.theme-body .site-footer,
.theme-body .cookie-note {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.top-nav {
  position: fixed;
  z-index: 20;
  top: max(18px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  display: flex;
  gap: clamp(10px, 2vw, 28px);
  align-items: center;
  padding: 10px 16px;
  border: 1px solid rgba(242, 234, 220, .13);
  border-radius: 999px;
  background: rgba(0, 0, 0, .42);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}
body.is-ready .top-nav { transform: translateX(-50%) translateY(0); }
.top-nav a {
  text-decoration: none;
  color: rgba(242, 234, 220, .74);
  font-size: clamp(12px, 1.35vw, 14px);
  letter-spacing: .055em;
  text-transform: uppercase;
  transition: color .22s ease, text-shadow .22s ease;
}
.top-nav a:hover,
.top-nav a:focus-visible { color: #fff; text-shadow: var(--sand-shadow); outline: none; }

.back-scene {
  position: fixed;
  z-index: 35;
  top: calc(max(18px, env(safe-area-inset-top)) + 49px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  padding: 10px 18px;
  border: 1px solid rgba(255, 236, 190, .28);
  border-radius: 999px;
  background: rgba(0, 0, 0, .46);
  backdrop-filter: blur(10px);
  color: rgba(255, 236, 190, .82);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  pointer-events: auto;
}
body.theme-body .back-scene {
  top: calc(max(18px, env(safe-area-inset-top)) + 58px);
  bottom: auto;
  transform: translateX(-50%);
  opacity: 1;
  z-index: 35;
}
body.is-ready .back-scene { transform: translateX(-50%) translateY(0); }
body.theme-body .back-scene { transform: translateX(-50%); }
.back-scene:hover,
.back-scene:focus-visible { color: #fff; border-color: rgba(255,236,190,.52); box-shadow: var(--sand-shadow); outline: none; }

/* На тематических страницах .hero центрируется так же, как на главной (place-items: center в .hero).
   Кнопка «Назад» и меню — position: fixed, не двигают центровку видео. */

.site-footer {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  margin-top: 48px;
  border-top: 1px solid rgba(242, 234, 220, .13);
  color: rgba(242, 234, 220, .58);
  font-size: 12px;
  letter-spacing: .035em;
}

/* На главной странице скролл никогда не нужен — весь контент умещается в 100svh.
   Footer приклеен к низу экрана (position: fixed), но при intro он спрятан через opacity:0. */
body.site-home,
body.theme-body {
  overflow: hidden;
  height: 100vh;
  height: 100svh;
  touch-action: none;
}
body.site-home .site-shell,
body.theme-body .site-shell {
  height: 100vh;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
}
body.site-home .site-footer,
body.theme-body .site-footer {
  position: fixed;
  left: max(18px, env(safe-area-inset-left));
  right: max(18px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  margin-top: 0;
  border-top: none;
  background: transparent;
}
body.is-ready .site-footer { /* теперь не нужно transform */ }
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; border-bottom: 1px solid rgba(242, 234, 220, .22); }
.site-footer a:hover { color: #fff; }

.cookie-note {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(420px, calc(100vw - 32px));
  transform: translateX(-50%) translateY(12px);
  padding: 10px 12px;
  border: 1px solid rgba(242, 234, 220, .16);
  border-radius: 16px;
  background: rgba(0, 0, 0, .66);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 40px rgba(0,0,0,.55);
  color: rgba(242, 234, 220, .72);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}
body.is-ready .cookie-note.is-visible { transform: translateX(-50%) translateY(0); }
body.theme-body .cookie-note { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 58px); }
.cookie-note p { margin: 0 0 8px; }
.cookie-note__actions { display: inline-flex; gap: 8px; align-items: center; }
.cookie-note a,
.cookie-note button {
  border: 1px solid rgba(242, 234, 220, .18);
  border-radius: 999px;
  padding: 5px 11px;
  color: rgba(242, 234, 220, .78);
  background: rgba(242, 234, 220, .035);
  text-decoration: none;
  cursor: pointer;
}
.cookie-note button:hover,
.cookie-note a:hover { color: #fff; border-color: rgba(242, 234, 220, .42); }

.hotspot-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
}
.hotspot {
  position: absolute;
  width: var(--size, 11.8%);
  aspect-ratio: 1 / 1;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%) scale(.94);
  border: 2px solid rgba(255, 236, 190, .86);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 238, 198, .34) 0 8%, transparent 28%),
    radial-gradient(circle, rgba(255, 217, 139, .18), rgba(242, 234, 220, .095) 52%, rgba(255,255,255,.035) 68%, transparent 76%);
  box-shadow:
    inset 0 0 34px rgba(255,236,190,.20),
    0 0 18px rgba(255,236,190,.34),
    0 0 42px rgba(255,213,128,.16),
    0 0 0 0 rgba(255,236,190,.44);
  cursor: pointer;
}
body.is-ready .hotspot { transform: translate(-50%, -50%) scale(1); animation: pulse 2.85s ease-in-out infinite; }
.hotspot::before,
.hotspot::after {
  content: "";
  position: absolute;
  inset: 11%;
  border-radius: inherit;
  border: 1px solid rgba(242, 234, 220, .12);
}
.hotspot::after {
  inset: -8%;
  border-color: rgba(255, 236, 190, .22);
  opacity: 0;
  transform: scale(.88);
}
body.is-ready .hotspot::after {
  animation: ripple 2.85s ease-out infinite;
}
.hotspot:hover,
.hotspot:focus-visible,
.hotspot.is-active {
  outline: none;
  border-color: rgba(255,255,255,.58);
  background: radial-gradient(circle, rgba(255,255,255,.16), rgba(255,255,255,.03) 61%, transparent 70%);
  box-shadow: var(--sand-shadow);
}
.hotspot:hover::after,
.hotspot:focus-visible::after,
.hotspot.is-active::after { opacity: 1; transform: scale(1); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,236,190,.40), inset 0 0 30px rgba(255,236,190,.16), 0 0 22px rgba(255,236,190,.28), 0 0 44px rgba(255,213,128,.13); }
  50% { box-shadow: 0 0 0 18px rgba(255,236,190,0), inset 0 0 48px rgba(255,236,190,.28), 0 0 38px rgba(255,236,190,.38), 0 0 70px rgba(255,213,128,.18); }
}

@keyframes ripple {
  0%, 54% { opacity: 0; transform: scale(.90); }
  67% { opacity: .52; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.42); }
}

.topic-card {
  position: absolute;
  z-index: 25;
  left: var(--card-x, 50%);
  top: var(--card-y, 50%);
  width: min(520px, 90vw);
  max-height: min(86vh, 720px);
  padding: 22px 22px 18px;
  border: 1px solid transparent;
  border-radius: 22px;
  background:
    linear-gradient(rgba(0, 0, 0, .78), rgba(0, 0, 0, .78)) padding-box,
    linear-gradient(120deg,
      rgba(242, 234, 220, .10) 0%,
      rgba(255, 222, 156, .55) 22%,
      rgba(255, 238, 198, .80) 38%,
      rgba(242, 234, 220, .25) 58%,
      rgba(255, 222, 156, .55) 78%,
      rgba(242, 234, 220, .10) 100%) border-box;
  background-size: 100% 100%, 220% 220%;
  background-position: 0 0, 0% 50%;
  animation: sand-border 8s linear infinite;
  backdrop-filter: blur(14px);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, .72),
    0 0 42px rgba(242, 234, 220, .06),
    inset 0 0 0 1px rgba(255, 236, 190, .06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.96);
  transition: opacity .35s ease, transform .4s cubic-bezier(.2, .9, .3, 1);
}
/* Зернистая текстура (песок) */
.topic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: .14;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.96  0 0 0 0 0.92  0 0 0 0 0.78  0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
  animation: sand-shift 14s linear infinite;
}
/* Верхнее тёплое свечение, дыхание */
.topic-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 236, 190, .22), transparent 60%);
  opacity: .55;
  animation: sand-glow 6s ease-in-out infinite;
}
.topic-card > * { position: relative; z-index: 1; }

/* Пробегающий блик при открытии */
body.is-ready .topic-card.is-open::after {
  background:
    linear-gradient(120deg, transparent 30%, rgba(255, 236, 190, .25) 48%, transparent 65%),
    radial-gradient(ellipse at 50% 0%, rgba(255, 236, 190, .18), transparent 60%);
  background-size: 220% 220%, 100% 100%;
  animation: card-shine 2.6s ease-out 1, sand-glow 6s ease-in-out infinite 2.6s;
}

@keyframes sand-border {
  0%   { background-position: 0 0,   0% 50%; }
  50%  { background-position: 0 0, 100% 50%; }
  100% { background-position: 0 0,   0% 50%; }
}
@keyframes sand-glow {
  0%, 100% { opacity: .35; transform: translateY(0); }
  50%      { opacity: .65; transform: translateY(2px); }
}
@keyframes sand-shift {
  0%   { background-position:   0px   0px; }
  100% { background-position: 160px 160px; }
}
@keyframes card-shine {
  0%   { background-position: -120% 0, 0 0; }
  100% { background-position:  220% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .topic-card { animation: none; }
  .topic-card::before,
  .topic-card::after { animation: none; }
}

body.is-ready .topic-card.is-open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.topic-card h1 {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.12;
  font-weight: 560;
  letter-spacing: -.01em;
  color: var(--paper);
  text-shadow: 0 1px 22px rgba(255, 222, 156, .08);
}
.topic-card__eyebrow {
  margin: 0 0 10px;
  color: rgba(255, 222, 156, .85);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topic-card__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 222, 156, .85);
  box-shadow: 0 0 8px rgba(255, 222, 156, .55);
  animation: card-dot 2.4s ease-in-out infinite;
}
@keyframes card-dot {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.25); }
}
.topic-card__text {
  margin: 0;
  color: rgba(242, 234, 220, .82);
  line-height: 1.62;
  font-size: 15px;
  letter-spacing: .005em;
  overflow-y: auto;
  flex: 1 1 auto;
  padding-right: 4px;
}
.topic-card__text p {
  margin: 0 0 12px;
}
.topic-card__text p:last-child { margin-bottom: 0; }
.topic-card__help {
  margin: 20px 0 0;
  padding: 14px 16px 14px 18px;
  border-left: 2px solid rgba(255, 222, 156, .55);
  background: linear-gradient(90deg, rgba(255, 222, 156, .07), transparent 75%);
  border-radius: 0 10px 10px 0;
}
.topic-card__help-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 540;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 222, 156, .95);
  text-shadow: 0 0 18px rgba(255, 222, 156, .25);
}
.topic-card__help-text {
  margin: 0;
  color: rgba(242, 234, 220, .88);
  font-size: 14px;
  line-height: 1.58;
  font-style: italic;
}
/* Мягкое появление параграфов при открытии карточки — только opacity, без сдвигов (layout стабилен). */
body.is-ready .topic-card.is-open .topic-card__text p {
  animation: card-text-in .55s ease forwards;
}
body.is-ready .topic-card.is-open .topic-card__text p:nth-child(1) { animation-delay: .10s; opacity: 0; }
body.is-ready .topic-card.is-open .topic-card__text p:nth-child(2) { animation-delay: .20s; opacity: 0; }
body.is-ready .topic-card.is-open .topic-card__text p:nth-child(3) { animation-delay: .30s; opacity: 0; }
body.is-ready .topic-card.is-open .topic-card__text p:nth-child(n+4) { animation-delay: .40s; opacity: 0; }
body.is-ready .topic-card.is-open .topic-card__help {
  animation: card-text-in .55s ease .50s forwards;
  opacity: 0;
}
@keyframes card-text-in {
  to { opacity: 1; }
}
.topic-card__actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex: 0 0 auto;
}
.topic-card button {
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(242, 234, 220, .22);
  border-radius: 999px;
  padding: 11px 18px;
  background: rgba(242, 234, 220, .04);
  color: rgba(242, 234, 220, .88);
  font-size: 13.5px;
  letter-spacing: .03em;
  transition: color .2s ease, border-color .2s ease, box-shadow .25s ease, transform .15s ease, background .25s ease;
}
.topic-card button:hover {
  color: #fff;
  border-color: rgba(255, 236, 190, .55);
  box-shadow: 0 6px 24px rgba(255, 222, 156, .12);
  transform: translateY(-1px);
}
.topic-card button:active { transform: translateY(0); }
.topic-card__more {
  color: #fff;
  border-color: rgba(255, 236, 190, .55) !important;
  background: linear-gradient(135deg, rgba(255, 222, 156, .22), rgba(255, 236, 190, .08));
  text-shadow: 0 0 18px rgba(255, 222, 156, .35);
}
.topic-card__more:hover {
  background: linear-gradient(135deg, rgba(255, 222, 156, .38), rgba(255, 236, 190, .18));
  box-shadow: 0 8px 28px rgba(255, 222, 156, .22);
}

/* Модалка с формой обратной связи */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(6px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.contact-modal.is-open { opacity: 1; pointer-events: auto; }
.contact-modal__card {
  position: relative;
  overflow: hidden;
  width: min(480px, 92vw);
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 22px 22px 18px;
  border: 1px solid transparent;
  border-radius: 22px;
  background:
    linear-gradient(rgba(0, 0, 0, .86), rgba(0, 0, 0, .86)) padding-box,
    linear-gradient(120deg,
      rgba(242, 234, 220, .10) 0%,
      rgba(255, 222, 156, .55) 22%,
      rgba(255, 238, 198, .80) 38%,
      rgba(242, 234, 220, .25) 58%,
      rgba(255, 222, 156, .55) 78%,
      rgba(242, 234, 220, .10) 100%) border-box;
  background-size: 100% 100%, 220% 220%;
  background-position: 0 0, 0% 50%;
  animation: sand-border 8s linear infinite;
  box-shadow: 0 24px 80px rgba(0,0,0,.72), 0 0 42px rgba(242,234,220,.06);
}
.contact-modal__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: .10;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.96  0 0 0 0 0.92  0 0 0 0 0.78  0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}
.contact-modal__card > * { position: relative; z-index: 1; }
.contact-modal__x {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(242, 234, 220, .22);
  border-radius: 50%;
  background: rgba(242, 234, 220, .04);
  color: rgba(242, 234, 220, .82);
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
  transition: border-color .2s ease, color .2s ease, transform .2s ease, background .2s ease;
}
.contact-modal__x:hover { color: #fff; border-color: rgba(255,236,190,.55); transform: rotate(90deg); background: rgba(255,236,190,.06); }
.contact-modal__title {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 540;
}
.contact-modal__sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: rgba(242, 234, 220, .68);
  line-height: 1.5;
}
.contact-modal__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact-modal__field { display: block; }
.contact-modal__field--full { grid-column: 1 / -1; }
.contact-modal__field span {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(242, 234, 220, .55);
}
.contact-modal__field span em {
  color: rgba(255, 196, 132, .85);
  font-style: normal;
  margin-left: 2px;
}
.contact-modal__field input,
.contact-modal__field textarea,
.contact-modal__field select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid rgba(242, 234, 220, .18);
  border-radius: 12px;
  background: rgba(242, 234, 220, .04);
  color: var(--paper);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.contact-modal__field input:focus,
.contact-modal__field textarea:focus,
.contact-modal__field select:focus {
  border-color: rgba(255,236,190,.65);
  background: rgba(242, 234, 220, .07);
}
.contact-modal__field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.contact-modal__field textarea { min-height: 80px; resize: vertical; }
.contact-modal__field input.has-error,
.contact-modal__field textarea.has-error,
.contact-modal__field select.has-error,
.contact-modal__consent.has-error {
  border-color: rgba(255, 140, 140, .65) !important;
  animation: shake .35s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}
.contact-modal__captcha {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 13px;
  color: rgba(242, 234, 220, .75);
}
.contact-modal__captcha-label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(242, 234, 220, .55);
}
.contact-modal__captcha-question {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(242, 234, 220, .22);
  border-radius: 10px;
  background: rgba(242, 234, 220, .04);
  font-variant-numeric: tabular-nums;
  min-width: 64px;
  text-align: center;
}
.contact-modal__captcha-eq { color: rgba(242, 234, 220, .55); }
.contact-modal__captcha-input {
  width: 70px;
  padding: 7px 10px;
  border: 1px solid rgba(242, 234, 220, .22);
  border-radius: 10px;
  background: rgba(242, 234, 220, .04);
  color: var(--paper);
  font: inherit;
  font-size: 16px;
  outline: none;
  text-align: center;
}
.contact-modal__captcha-input:focus { border-color: rgba(255,236,190,.55); }
.contact-modal__captcha-input.has-error { border-color: rgba(255, 140, 140, .65); }
.contact-modal__captcha-refresh {
  cursor: pointer;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(242, 234, 220, .22);
  border-radius: 50%;
  background: rgba(242, 234, 220, .04);
  color: rgba(242, 234, 220, .82);
  font-size: 16px;
  padding: 0;
  display: grid;
  place-items: center;
  transition: transform .3s ease, color .2s ease;
}
.contact-modal__captcha-refresh:hover { color: #fff; transform: rotate(180deg); }
.contact-modal__consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(242, 234, 220, .68);
  padding: 10px 12px;
  border: 1px dashed rgba(242, 234, 220, .14);
  border-radius: 12px;
}
.contact-modal__consent.has-error { border-color: rgba(255, 140, 140, .55); border-style: solid; }
.contact-modal__consent input { margin: 2px 0 0; accent-color: rgba(255,236,190,.7); }
.contact-modal__submit {
  grid-column: 1 / -1;
  margin-top: 6px;
  cursor: pointer;
  border: 1px solid rgba(255, 236, 190, .55);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 520;
  letter-spacing: .04em;
  background: linear-gradient(135deg, rgba(255, 222, 156, .22), rgba(255, 236, 190, .12));
  color: var(--paper);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.contact-modal__submit:hover {
  background: linear-gradient(135deg, rgba(255, 222, 156, .38), rgba(255, 236, 190, .22));
  box-shadow: 0 8px 28px rgba(255, 222, 156, .15);
  transform: translateY(-1px);
}
.contact-modal__submit:disabled {
  cursor: wait;
  opacity: .68;
  transform: none;
}
.contact-modal__submit:active { transform: translateY(0); }
.contact-modal__status {
  grid-column: 1 / -1;
  display: none;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 140, 140, .34);
  border-radius: 14px;
  background: rgba(255, 140, 140, .055);
  color: rgba(242, 234, 220, .84);
  font-size: 14px;
  line-height: 1.45;
}
.contact-modal__status.is-visible { display: block; }
.contact-modal__success {
  display: none;
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(190, 230, 180, .35);
  border-radius: 14px;
  background: rgba(190, 230, 180, .06);
  color: rgba(200, 240, 190, .95);
  font-size: 14px;
  line-height: 1.5;
}
.contact-modal__success strong,
.contact-modal__success span {
  display: block;
}
.contact-modal__success strong {
  margin-bottom: 7px;
  color: #fff8ec;
  font-size: 17px;
}
.contact-modal__done {
  margin-top: 14px;
  min-height: 42px;
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 222, 156, .28);
  background: rgba(0,0,0,.2);
  color: rgba(255, 236, 190, .88);
  font: 700 12px/1.1 var(--font-main);
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
}
.contact-modal.is-sent .contact-modal__form { display: none; }
.contact-modal.is-sent .contact-modal__title,
.contact-modal.is-sent .contact-modal__sub { display: none; }
.contact-modal.is-sent .contact-modal__success { display: block; }
.contact-modal.is-sent .contact-modal__card::after { display: none; }

@media (max-width: 520px) {
  .contact-modal__form { grid-template-columns: 1fr; }
  .contact-modal {
    align-items: start;
    place-items: start center;
    padding: 12px 12px calc(150px + env(safe-area-inset-bottom));
  }
  .contact-modal__card {
    width: min(100%, 440px);
    max-height: calc(100svh - 24px);
    padding: 18px 16px 16px;
  }
  .contact-modal__captcha {
    flex-wrap: wrap;
    align-items: center;
  }
  .contact-modal__captcha-label { width: 100%; }
  .contact-modal__consent { font-size: 11.5px; }
  .contact-modal__submit { min-height: 46px; }
}

.manual-play {
  position: absolute;
  z-index: 40;
  border: 1px solid rgba(242,234,220,.28);
  border-radius: 999px;
  padding: 11px 18px;
  background: rgba(0,0,0,.66);
  color: var(--paper);
  cursor: pointer;
}

.content-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 80px 18px 70px;
  background: #000;
}
.content-card {
  width: min(880px, 100%);
  border: 1px solid rgba(242,234,220,.18);
  border-radius: 28px;
  padding: clamp(24px, 5vw, 48px);
  background: rgba(255,255,255,.025);
  color: rgba(242,234,220,.78);
  line-height: 1.7;
}
.content-card h1 { color: #fff; margin-top: 0; line-height: 1.1; }
.content-card a { color: #fff; }
.back-home { display: inline-block; margin-top: 18px; color: rgba(242,234,220,.72); }

/* Форма заявки на странице «Связаться» */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0 24px;
}
.contact-form__field { display: block; }
.contact-form__field--full { grid-column: 1 / -1; }
.contact-form__field span {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(242, 234, 220, .55);
}
.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid rgba(242, 234, 220, .18);
  border-radius: 12px;
  background: rgba(242, 234, 220, .04);
  color: var(--paper);
  font: inherit;
  outline: none;
  transition: border-color .2s ease;
}
.contact-form__field input:focus,
.contact-form__field textarea:focus { border-color: rgba(255,236,190,.65); }
.contact-form__field textarea { min-height: 90px; resize: vertical; }
.contact-form__submit {
  grid-column: 1 / -1;
  cursor: pointer;
  border: 1px solid rgba(255, 236, 190, .55);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14px;
  background: linear-gradient(135deg, rgba(255, 222, 156, .22), rgba(255, 236, 190, .12));
  color: var(--paper);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.contact-form__submit:hover {
  background: linear-gradient(135deg, rgba(255, 222, 156, .38), rgba(255, 236, 190, .22));
  box-shadow: 0 8px 28px rgba(255, 222, 156, .15);
  transform: translateY(-1px);
}
@media (max-width: 520px) {
  .contact-form { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hero { padding-top: 58px; padding-bottom: 74px; }
  .video-frame { width: min(100vw, 82svh); }
  .top-nav { top: 10px; max-width: calc(100vw - 18px); padding: 8px 10px; gap: 10px; overflow-x: auto; scrollbar-width: none; }
  .top-nav a { font-size: 11px; }
  .site-footer { font-size: 10px; bottom: 8px; }
  .cookie-note { bottom: 38px; font-size: 11px; }
  .topic-card { top: 50% !important; left: 50% !important; width: min(350px, calc(100vw - 28px)); }
  .hotspot { width: calc(var(--size, 11.8%) * 1.06); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
