/* ===== Tokens ===== */
:root {
  --bg: #06070b;
  --bg-soft: #0a0d14;
  --panel: #0d1119;
  --line: rgba(159, 214, 247, .14);
  --ice: #9fd6f7;
  --ice-bright: #d9efff;
  --ice-dim: #5d8aa8;
  --text: #e9eef4;
  --muted: #8b95a3;
  --wa: #25d366;
  --font-display: "Navi", "Arial Black", sans-serif;
  --font-body: "ProximaNova", "Helvetica Neue", arial, sans-serif;
  --pad: clamp(20px, 5vw, 64px);
}

@font-face { font-family: "Navi"; src: url("/assets/fonts/Navi-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Navi"; src: url("/assets/fonts/Navi-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "ProximaNova"; src: url("/assets/fonts/ProximaNova-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "ProximaNova"; src: url("/assets/fonts/ProximaNova-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ===== Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
img, video { max-width: 100%; display: block; }
::selection { background: rgba(121, 198, 245, .3); color: var(--ice-bright); }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 4px; }

/* атмосфера: холодные пятна света + лёгкое зерно */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 50% -80px, rgba(64, 150, 220, .16), transparent 70%),
    radial-gradient(700px 500px at 110% 38%, rgba(64, 150, 220, .05), transparent 70%),
    radial-gradient(700px 500px at -10% 72%, rgba(64, 150, 220, .05), transparent 70%);
  z-index: 0;
}
body::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: .04;
  z-index: 0;
}
.hero, .chants, .cta { position: relative; z-index: 1; }

/* ===== Scroll progress ===== */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  background: linear-gradient(90deg, #5da9dd, #d9efff);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* ===== Hero ===== */
.hero {
  min-height: clamp(540px, 86vh, 860px);
  min-height: clamp(540px, 86svh, 860px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--pad) * 1.2) var(--pad) var(--pad);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .4;
  filter: saturate(.75) brightness(.72);
  z-index: 0;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 44%, transparent 0%, rgba(6, 7, 11, .5) 62%, rgba(6, 7, 11, .92) 100%),
    linear-gradient(180deg, rgba(6, 7, 11, .6) 0%, transparent 30%, transparent 55%, var(--bg) 100%);
}
.hero__glow { z-index: 2; }
.hero__corner, .hero__logo, .hero__title { position: relative; z-index: 3; }
.hero__corner {
  position: absolute !important;
  top: 18px;
  right: 22px;
  width: clamp(54px, 7vw, 86px);
  display: grid;
  justify-items: center;
  gap: 6px;
  opacity: .92;
  animation: fade-in .8s .55s ease both;
}
.hero__corner img { width: 100%; height: auto; }
.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(70vw, 640px);
  aspect-ratio: 1;
  transform: translate(-50%, -58%);
  background: radial-gradient(circle, rgba(110, 190, 255, .34) 0%, rgba(110, 190, 255, .10) 42%, transparent 68%);
  filter: blur(8px);
  animation: glow-pulse 5.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glow-pulse {
  0%, 100% { opacity: .68; transform: translate(-50%, -58%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -58%) scale(1.06); }
}
.hero__logo {
  width: min(78vw, 480px);
  height: auto;
  filter: drop-shadow(0 0 26px rgba(110, 190, 255, .42)) drop-shadow(0 0 90px rgba(80, 160, 235, .25));
  animation: hero-in .9s ease both, logo-breathe 5.2s ease-in-out .9s infinite;
}
@keyframes hero-in {
  from { opacity: 0; transform: scale(.93); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: .92; }
}
@keyframes logo-breathe {
  0%, 100% { filter: drop-shadow(0 0 26px rgba(110, 190, 255, .42)) drop-shadow(0 0 90px rgba(80, 160, 235, .25)); }
  50%      { filter: drop-shadow(0 0 38px rgba(130, 200, 255, .60)) drop-shadow(0 0 110px rgba(90, 170, 240, .34)); }
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 4.4vw, 42px);
  line-height: 1.22;
  max-width: 21ch;
  margin-top: clamp(22px, 4vh, 40px);
  color: var(--ice-bright);
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(6, 7, 11, .55);
  animation: title-in .8s .25s ease both;
}
@keyframes title-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== LED marquee ===== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 17, 25, .4);
  padding: 13px 0;
  position: relative;
  z-index: 1;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 44px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee__item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 2.1vw, 24px);
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(159, 214, 247, .45);
}
.marquee__item--solid { color: var(--ice); -webkit-text-stroke: 0; }
@supports not (-webkit-text-stroke: 1px black) {
  .marquee__item { color: rgba(159, 214, 247, .35); }
  .marquee__item--solid { color: var(--ice); }
}
.marquee img { height: 20px; width: auto; opacity: .5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Sticky chant nav ===== */
.chips {
  position: sticky;
  top: 10px;
  z-index: 40;
  display: flex;
  justify-content: center;
  margin: 18px auto 0;
  padding: 0 12px;
}
.chips__bar {
  display: flex;
  gap: 4px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 10, 16, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}
.chips__bar::-webkit-scrollbar { display: none; }
.chips a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .05em;
  color: var(--ice-dim);
  text-decoration: none;
  padding: 6px 13px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color .25s ease, background .25s ease;
}
.chips a:hover { color: var(--ice-bright); }
.chips a.is-active { color: #07121c; background: var(--ice); }

/* ===== Chants ===== */
.chants {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--pad);
  display: grid;
  gap: clamp(28px, 5vh, 56px);
}
.chant {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "head head" "lyrics media";
  grid-template-rows: auto 1fr;
  column-gap: clamp(28px, 4.5vw, 56px);
  row-gap: 22px;
  align-items: start;
  position: relative;
  border: 1px solid var(--line);
  background-color: rgba(13, 17, 25, .55);
  background-image:
    linear-gradient(rgba(125, 190, 240, .65), rgba(125, 190, 240, .65)),
    linear-gradient(rgba(125, 190, 240, .65), rgba(125, 190, 240, .65)),
    linear-gradient(rgba(125, 190, 240, .65), rgba(125, 190, 240, .65)),
    linear-gradient(rgba(125, 190, 240, .65), rgba(125, 190, 240, .65));
  background-repeat: no-repeat;
  background-size: 14px 2px, 2px 14px, 14px 2px, 2px 14px;
  background-position: 12px 12px, 12px 12px, calc(100% - 12px) calc(100% - 12px), calc(100% - 12px) calc(100% - 12px);
  border-radius: 20px;
  padding: clamp(22px, 3.5vw, 40px);
  scroll-margin-top: 92px;
}
.chant--flip { grid-template-areas: "head head" "media lyrics"; }
.chant[data-num]::before {
  content: attr(data-num);
  position: absolute;
  top: clamp(-64px, -7vw, -30px);
  left: -16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(110px, 15vw, 210px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(159, 214, 247, .11);
  pointer-events: none;
  z-index: -1;
}
.chant--flip[data-num]::before { left: auto; right: -16px; }
@supports not (-webkit-text-stroke: 1px black) {
  .chant[data-num]::before { color: rgba(159, 214, 247, .05); }
}
.chant::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 26px;
  width: 36%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(125, 190, 240, .85), rgba(125, 190, 240, 0));
}
.chant--flip::after {
  left: auto;
  right: 26px;
  background: linear-gradient(270deg, rgba(125, 190, 240, .85), rgba(125, 190, 240, 0));
}
.chant__dur {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ice-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 11px;
  align-self: center;
}
.chant__head {
  grid-area: head;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.chant__media { grid-area: media; align-self: center; }
.chant__lyrics { grid-area: lyrics; align-self: center; }
.chant__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(159, 214, 247, .55);
}
@supports not (-webkit-text-stroke: 1px black) {
  .chant__num { color: rgba(159, 214, 247, .35); }
}
.chant__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--ice);
  letter-spacing: .015em;
}
.chant__lyrics p {
  font-family: var(--font-display);
  font-weight: 400;
  margin-bottom: 4px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.45;
}
.chant__lyrics p.lyrics-shout {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ice-bright);
  font-size: clamp(19px, 2vw, 24px);
  letter-spacing: .04em;
  margin-top: 10px;
}
.lyrics-shout .x { color: var(--ice-dim); font-family: var(--font-body); font-weight: 400; font-size: .8em; }
.chant__lyrics p.lyrics-echo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(25px, 2.8vw, 36px);
  line-height: 1.18;
  letter-spacing: .05em;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(217, 239, 255, .85);
  margin-top: 12px;
}
.lyrics-echo .x {
  -webkit-text-stroke: 0;
  color: var(--ice-dim);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .5em;
}
@supports not (-webkit-text-stroke: 1px black) {
  .lyrics-echo { color: rgba(217, 239, 255, .85); }
}
.clap {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ice);
  background: rgba(121, 198, 245, .10);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 12px;
  margin-left: 8px;
  vertical-align: 2px;
  white-space: nowrap;
}

/* ===== Video card ===== */
.media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 rgba(110, 190, 255, 0);
  transition: box-shadow .35s ease, border-color .35s ease;
}
.media:hover { border-color: rgba(159, 214, 247, .35); box-shadow: 0 0 34px rgba(80, 160, 235, .16); }
.media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
/* зарезервировано: добавить на .media если появится вертикальное видео (9:16) */
.media--portrait video { aspect-ratio: 9 / 16; max-height: 540px; margin: 0 auto; width: auto; }
.media__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid rgba(217, 239, 255, .5);
  background: rgba(10, 16, 26, .55);
  color: var(--ice-bright);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
  box-shadow: 0 0 30px rgba(110, 190, 255, .25);
}
.media__play::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(159, 214, 247, .55);
  opacity: 0;
  pointer-events: none;
}
.media:hover .media__play::after { animation: ring 2.6s ease-out infinite; }
@keyframes ring {
  0%   { transform: scale(1); opacity: .8; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
.media__play:hover { transform: scale(1.08); background: rgba(20, 32, 50, .7); box-shadow: 0 0 44px rgba(110, 190, 255, .45); }
.media__play svg { margin-left: 4px; }
.media__play[hidden] { display: none; }

/* ===== Simple chants ===== */
.simple {
  position: relative;
  padding: clamp(28px, 5vh, 56px) 0 clamp(6px, 1vh, 12px);
  scroll-margin-top: 92px;
}
.simple::before {
  content: "";
  position: absolute;
  inset: -30px 0;
  background: url("/assets/img/logo-mark.png") center / auto clamp(160px, 24vw, 260px) no-repeat;
  opacity: .05;
  pointer-events: none;
}
.simple__pills { margin-top: clamp(20px, 3.5vh, 32px); }
.section-title {
  position: relative;
  scroll-margin-top: 92px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 52px);
  text-align: center;
  color: var(--ice-bright);
  letter-spacing: .03em;
  background: linear-gradient(180deg, #d9efff 20%, #6fb4e4 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.simple__pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.pill {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(121, 198, 245, .07), rgba(121, 198, 245, .02));
  border-radius: 20px;
  padding: clamp(22px, 3.5vw, 36px);
  text-align: center;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.pill:hover { border-color: rgba(159, 214, 247, .4); box-shadow: 0 0 30px rgba(80, 160, 235, .14); transform: translateY(-3px); }
.pill p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--ice);
  line-height: 1.3;
}
.pill .clap { vertical-align: 6px; }

/* ===== CTA footer ===== */
.cta {
  text-align: center;
  padding: clamp(64px, 12vh, 130px) var(--pad) clamp(48px, 7vh, 80px);
  border-top: 1px solid rgba(159, 214, 247, .08);
  margin-top: clamp(48px, 8vh, 90px);
}
.cta__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 2.1vw, 25px);
  max-width: 30ch;
  margin: 0 auto 28px;
  color: var(--ice-bright);
  text-wrap: balance;
}
.cta__btn {
  display: inline-grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--wa);
  color: #06120a;
  box-shadow: 0 0 38px rgba(37, 211, 102, .35);
  animation: wa-pulse 3.4s ease-in-out infinite;
  transition: transform .25s ease, box-shadow .25s ease;
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 0 30px rgba(37, 211, 102, .30); }
  50%      { box-shadow: 0 0 52px rgba(37, 211, 102, .50); }
}
.cta__btn:hover { transform: scale(1.07); box-shadow: 0 0 60px rgba(37, 211, 102, .6); }
.cta__logo { height: 26px; width: auto; margin: 44px auto 0; opacity: .9; }

/* ===== Scroll reveal (только при живом JS — иначе контент виден сразу) ===== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1); }
.js .reveal--left  { transform: translate(-36px, 28px); }
.js .reveal--right { transform: translate(36px, 28px); }
.js .reveal.is-in  { opacity: 1; transform: none; }

/* ===== Mobile ===== */
@media (max-width: 760px) {
  .chant, .chant--flip {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "media" "lyrics";
    row-gap: 16px;
    padding: 18px;
    border-radius: 16px;
  }
  .chant__head { padding-bottom: 12px; }
  .hero__corner { width: 52px; top: 12px; right: 14px; }
  .chant__num { font-size: 34px; }
  .chant[data-num]::before { font-size: 84px; top: -30px; left: -8px; }
  .chant--flip[data-num]::before { left: auto; right: -8px; }
  .chant__dur { font-size: 12px; padding: 1px 9px; }
  .media__play { width: 64px; height: 64px; }
  .chips { top: 8px; margin-top: 14px; }
  .js .reveal--left, .js .reveal--right { transform: translateY(28px); }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__glow, .hero__logo, .hero__title, .hero__corner, .cta__btn { animation: none; }
  .media__play::after, .media:hover .media__play::after { animation: none; opacity: 0; }
  .marquee__track { animation: none; }
  .hero__bg { display: none; }
  .js .reveal, .js .reveal--left, .js .reveal--right { opacity: 1; transform: none; transition: none; }
  .media__play, .cta__btn, .pill, .media, .chips a { transition: none; }
}
