/* ECHO — серебристая скульптура с цветами.
   Подключается после основного style.css. */

:root {
  --display: 'Golos Text', Arial, sans-serif;
}

body {
  background: #08090b;
}

/* Убираем старое оформление */

.top-header .header-caption,
.hero-beam,
.hero-screen > .badge {
  display: none;
}

.main-content {
  max-width: 1320px;
}

/* Первый экран */

.hero-screen {
  position: relative;
  isolation: isolate;
  min-height: 0;
  padding: 94px 0 36px;
  justify-content: flex-start;
}

.hero-screen > * {
  position: relative;
  z-index: 1;
}

/*
  Фон расположен независимо от текста и формы.
  Его высота не увеличивает высоту страницы.
*/

.hero-screen > .hero-scene {
  --scene-height: 780px;
  position: absolute;
  z-index: 0;

  top: 28px;
  left: 50%;
  transform: translateX(-50%);

  width: min(1400px, 100vw);
  height: var(--scene-height);

  overflow: hidden;
  pointer-events: none;

  -webkit-mask-image:
    linear-gradient(
      transparent,
      #000 8%,
      #000 69%,
      transparent 100%
    );

  mask-image:
    linear-gradient(
      transparent,
      #000 8%,
      #000 69%,
      transparent 100%
    );
}

.hero-scene-image {
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  width: max(100%, calc(var(--scene-height) * 1.5));
  height: auto;

  opacity: .8;
  mix-blend-mode: screen;
  filter: contrast(1.09);
}

/* В исходном PNG статуя и звёзды нарисованы вместе. */
.hero-stars {
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 15% 28%,
    transparent 30.5% 69.5%,
    #000 72% 85%,
    transparent
  );
}

.hero-sculpture {
  mask-image: linear-gradient(90deg, transparent 28%, #000 30.5% 69.5%, transparent 72%);
}

.cinema-caption {
  margin: 0;
  color: #c4c7ce;
  font-size: 12px;
  letter-spacing: .3em;
}

/* Место для названия поверх скульптуры */

.hero-art {
  position: relative;
  width: 100%;
  height: 440px;
  margin: 12px 0 10px;
}

/* ECHO */

.huge-logo {
  position: absolute;
  inset: auto 0 8px;
  z-index: 1;

  margin: 0;
  padding: 0;

  font:
    600 clamp(110px, 18vw, 230px)/1
    'Golos Text', Arial, sans-serif;

  letter-spacing: -.065em;
  text-indent: -.065em;
}

.huge-logo::before,
.huge-logo::after {
  display: none;
}

.huge-logo span,
.hero-title span {
  background-image:
    linear-gradient(
      110deg,
      transparent 30%,
      #fff9 49%,
      transparent 66%
    ),
    linear-gradient(
      178deg,
      #fff 10%,
      #d6d9df 43%,
      #9198a2 52%,
      #e8ebef 63%,
      #b2b6be 90%
    );

  background-size:
    270% 100%,
    100% 100%;

  background-clip: text;
  -webkit-background-clip: text;

  color: transparent;
  -webkit-text-fill-color: transparent;

  animation: echo-shine 13s ease-in-out infinite;
}

.huge-logo span {
  filter: drop-shadow(0 9px 18px #08090bd9);
}

@keyframes echo-shine {
  0%, 20% {
    background-position: 120% 0, 0 0;
  }

  80%, 100% {
    background-position: -120% 0, 0 0;
  }
}

/* Заголовок под названием */

.hero-title {
  font:
    500 clamp(26px, 3.5vw, 44px)/1.25
    'Golos Text', Arial, sans-serif;

  letter-spacing: -.045em;
}

.hero-title span {
  font: inherit;
  text-decoration: none;
  padding: 0;
  border: 0;
}

.hero-title span::before,
.hero-title span::after {
  display: none;
}

.huge-logo,
.hero-title,
.cinema-caption {
  user-select: none;
  -webkit-user-select: none;
}

.lead {
  margin: 18px 0 28px;
  font-size: 16px;
  color: #a7abb3;
}

/* Создание комнаты */

.composer {
  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      #191b1feb,
      #0d0e11ed
    );

  backdrop-filter: blur(16px);
  box-shadow: 0 18px 60px #0005;
}

.field {
  border-radius: 9px;
}

.btn {
  border-radius: 9px;
  box-shadow: none;
}

.btn:hover {
  transform: none;
}

.sources span {
  padding: 4px 10px;
  font-size: 12px;
  border: 0;
  border-radius: 0;
}

.sources span + span {
  border-left: 1px solid #ffffff25;
}

.hero-note,
.scroll-link {
  font-size: 13px;
}

.scroll-link {
  margin-top: 26px;
}

/* Присоединение по коду */

.join-strip {
  background: transparent;
  padding: 30px 0;
  border-block: 1px solid #ffffff24;
  border-radius: 0;
}

.join-strip h3 {
  font:
    500 23px/1.3
    'Golos Text', Arial, sans-serif;
}

.join-strip p,
.steps p,
.faq {
  font-size: 16px;
}

/* Нижние тексты */

.how {
  padding: 68px 0 48px;
}

.eyebrow,
.drawer-caption {
  font-size: 12px;
  letter-spacing: .14em;
}

.section-heading h2 {
  font-weight: 500;
}

.steps {
  gap: 35px;
}

.steps article {
  border-top: 1px solid #ffffff14;
  padding-top: 24px;
}

.steps article > span {
  color: #949ba8;
}

/* Меню */

.wordmark {
  font:
    600 26px/1
    'Golos Text', Arial, sans-serif;

  letter-spacing: -.055em;
}

.icon-btn {
  background: #14161ab3;
  box-shadow: none;
}

.nav-item.active {
  background: #ffffff0a;
}

.nav-item.active::after {
  box-shadow: none;
}

.drawer-footer {
  font-size: 16px;
}

/* Каталог */

.catalog-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding-bottom: 42px;
}

.catalog-header h1 {
  font:
    500 clamp(34px, 4vw, 52px)/1.2
    'Golos Text', Arial, sans-serif;

  letter-spacing: -.045em;
}

.catalog-header p {
  font-size: 16px;
}

.catalog-header .search {
  display: block;
  margin: 24px auto 0;
}

.catalog-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
}

.catalog-actions .btn {
  min-height: 44px;
  font-size: 14px;
  padding: 10px 18px;
}

.catalog-reset {
  color: #bcbcbc;
  font-size: 14px;
  padding: 10px 0;
}

.catalog-reset:hover {
  color: #fff;
}

.catalog-note {
  max-width: 580px;
  margin: 16px auto 0;
  color: #bbb;
}

.catalog-note:empty {
  display: none;
}

/* Карточки */

.movie-card {
  border: 0;
  border-radius: 0;
  background: none;
  overflow: visible;
}

.movie-card:hover {
  transform: none;
}

.movie-poster {
  border-radius: 6px;
  transition: filter .2s;
}

.movie-card:hover .movie-poster {
  filter: brightness(.88);
}

.movie-info {
  padding: 13px 0 18px;
}

.movie-title {
  font-size: 16px;
  font-weight: 500;
}

.movie-meta,
footer {
  font-size: 13px;
}

/* Свет и рябь поверх главной страницы. */
.home-pointer-effects {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.home-cursor-glow,
.home-click-wave {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.home-cursor-glow {
  width: 500px;
  height: 500px;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff09, #ffffff03 32%, transparent 68%);
  transition: opacity .3s;
}

.home-cursor-glow.is-visible { opacity: 1; }

.home-click-wave {
  width: min(390px, 80vw);
  aspect-ratio: 1;
  translate: -50% -50%;
  background:
    radial-gradient(circle closest-side, transparent 72%, #a7bad520 78%, #bccde759 84%,
      #e8f1ffc2 87%, #c0d1ed61 89%, transparent 97%),
    radial-gradient(circle closest-side, transparent 53%, #a7bad526 58%,
      #cfddf26b 63%, #aebfdb2a 66%, transparent 72%);
}

:root[data-echo-motion='off'] .home-pointer-effects { display: none; }

@media (hover: none), (pointer: coarse) {
  .home-pointer-effects { display: none; }
}

/* Телефоны */

@media (max-width: 760px) {
  .hero-screen {
    padding: 95px 0 36px;
  }

  .hero-art {
    height: 355px;
    margin: 8px 0 16px;
  }

  .hero-screen > .hero-scene {
    --scene-height: 630px;
    top: 45px;
  }

  .cinema-caption {
    font-size: 11px;
    letter-spacing: .22em;
  }

  .huge-logo {
    font-size: clamp(84px, 23vw, 150px);
    bottom: 0;
  }

  .hero-title {
    font-size: clamp(24px, 5.8vw, 34px);
  }

  .lead {
    font-size: 15px;
  }

  .hero-note {
    max-width: 30ch;
  }

  .composer {
    border-radius: 14px;
  }

  .join-strip {
    padding: 26px 0;
  }

  .join-row {
    flex-wrap: wrap;
  }

  .join-row .field {
    min-width: 105px;
  }

  .movie-title {
    font-size: 14px;
  }

  .catalog-header {
    padding-bottom: 30px;
  }

  .how {
    padding-top: 48px;
  }
}

