/* vrayusa.com - стили. Палитра и шрифты: social/visual-identity.md; композиция героя: спека 2026-10-07. */
:root {
  --bg: #0A0908;
  --panel: #141210;
  --red: #F50101;      /* фирменный красный = как в captions (решение 08.10) */
  --red-hover: #FF2B2B;
  --light: #E6E2DC;
  --muted: #A8A49E;
  --line: rgba(230, 226, 220, .08);
  --pad: clamp(20px, 7vw, 120px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color-scheme: dark; }
body {
  background: var(--bg); color: var(--light);
  font: 400 17px/1.6 Montserrat, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; }

/* статичное зерно поверх всего: фактура и защита от полос в тёмных градиентах */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .06;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- шапка ---------- */
.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--pad);
}
.logo { font: 400 18px/1 "Russo One", sans-serif; letter-spacing: .32em; color: #fff; }
.logo span { color: var(--red); font-size: 11px; letter-spacing: .28em; margin-left: 10px; vertical-align: middle; }
.right { display: flex; align-items: center; gap: 18px; }
.soc { display: flex; gap: 4px; padding-right: 18px; border-right: 1px solid var(--line); }
.soc a { width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); transition: color .15s; }
.soc a:hover { color: var(--light); }
.soc svg { width: 19px; height: 19px; }
.lang { display: flex; gap: 2px; font: 700 13px Montserrat, sans-serif; letter-spacing: .1em; }
.lang a { min-width: 44px; height: 44px; display: grid; place-items: center; color: var(--muted); }
.lang a:hover { color: var(--light); }
.lang a[aria-current="page"] { color: var(--red); }

/* ---------- герой ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
/* на компьютере горизонтальное фото (2752x1536) на всю ширину за текстом: слева лес и туман под текст, байк и
   райдер справа. Кадр по вертикали: шлем и фара в кадре и в широком невысоком окне (замечание 09.10 про узкую полосу) */
.photo { position: absolute; top: 0; right: 0; height: 100%; width: min(100%, 2752px); }
.photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 100% 22%;
  animation: ignition 1.1s ease-out both;
}
/* видео-петля тумана (18.10): тот же кадр, что фото; проявляется, когда пошло воспроизведение */
.photo .loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 22%;
  opacity: 0; transition: opacity 1.2s ease; }
.photo .loop.on { opacity: 1; }
/* слой 1: градиент слева под текст; заходит на 3px левее фото, чтобы не было шва */
.photo::before {
  content: ""; position: absolute; inset: 0 0 0 -3px; z-index: 1;
  /* плавная кривая без «углов»: на стыках линейных отрезков глаз видит вертикальные полосы (замечание 08.10) */
  background: linear-gradient(90deg, var(--bg) 0%, rgba(10, 9, 8, .92) 8%, rgba(10, 9, 8, .8) 16%,
    rgba(10, 9, 8, .62) 26%, rgba(10, 9, 8, .42) 36%, rgba(10, 9, 8, .24) 46%,
    rgba(10, 9, 8, .1) 56%, rgba(10, 9, 8, .03) 64%, rgba(10, 9, 8, 0) 70%);
}
/* слой 2: затемнение сверху под шапку, снизу в фон, виньетка с «окном» на фару и шлем */
.photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(10, 9, 8, .6) 0, rgba(10, 9, 8, 0) 140px),
    linear-gradient(to top, var(--bg) 0%, rgba(10, 9, 8, 0) 22%),
    radial-gradient(ellipse 60% 75% at 86% 40%, rgba(10, 9, 8, 0) 45%, rgba(10, 9, 8, .2) 75%, rgba(10, 9, 8, .45) 100%);
}
/* «зажигание фары»: два коротких мигания и свет на полную */
@keyframes ignition {
  0% { filter: brightness(.55); }
  25% { filter: brightness(.95); }
  33% { filter: brightness(.6); }
  45% { filter: brightness(1); }
  52% { filter: brightness(.7); }
  100% { filter: brightness(1); }
}
.copy {
  position: relative; z-index: 2; padding: 200px 40px 40px var(--pad);
  max-width: calc(560px + var(--pad));
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.label { font: 700 12px Montserrat, sans-serif; letter-spacing: .24em; color: var(--muted); text-transform: uppercase; }
.label .hl { color: var(--red); }
.release { display: flex; align-items: flex-end; gap: 26px; margin: 22px 0; }
.release img { width: 120px; height: 120px; object-fit: cover; flex: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
/* обёртка обложки героя появляется, только когда есть отрывок ▶ (20.10); выглядит так же, как без неё */
.art { position: relative; display: block; flex: none; }
.art img { display: block; }
/* интервал 1, а не .9: у Д и У хвосты ниже строки и задевали следующую («Еду на легке», 09.10) */
.title { position: relative; font: 700 clamp(56px, 9vw, 120px)/1 Oswald, sans-serif; text-transform: uppercase; color: #fff; letter-spacing: .01em;
  animation: rise .7s .9s ease-out both; } /* поднимается только название; кнопка видна сразу */
/* тёплое облако за названием - центр на самом названии, а не на блоке: с короткими словами
   («Еду / на / легке») облако блока оставалось справа от текста (09.10). Размер в em - растёт с шрифтом;
   облако гаснет до нуля внутри своего блока - без вертикального шва (08.10) */
.title::before {
  content: ""; position: absolute; z-index: -1; left: 60%; top: 50%; width: 10em; height: 4.4em;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(ellipse 4.3em 1.7em at 50% 50%, rgba(246, 225, 202, .07), rgba(246, 225, 202, 0));
}
.title small { display: block; font: 400 clamp(28px, 3.4vw, 44px)/1.1 "Poiret One", sans-serif; text-transform: none; margin-top: 8px; }
.status { color: var(--light); margin-bottom: 30px; max-width: 420px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 34px; background: var(--red); color: #fff;
  font: 700 19px Montserrat, sans-serif; letter-spacing: .12em; text-transform: uppercase;
  transition: transform .15s, background .15s;
}
.cta:hover { background: var(--red-hover); transform: translateY(-1px); }
.cta.is-soon { background: #2A2623; color: var(--muted); cursor: default; transform: none; }
.alt {
  display: inline-flex; align-items: center; height: 56px; padding: 0 26px;
  border: 1px solid rgba(230, 226, 220, .35); color: var(--light);
  font: 700 14px Montserrat, sans-serif; letter-spacing: .1em; text-transform: uppercase;
}
.alt:hover { border-color: var(--light); }

/* ---------- секции ---------- */
.block { padding: 140px var(--pad); border-top: 1px solid var(--line); }
.h {
  font: 600 44px/1 Oswald, sans-serif; text-transform: uppercase; color: #fff;
  border-left: 3px solid var(--red); padding-left: 16px; margin-bottom: 48px;
}

/* синглы */
/* каталог «список + панель» (решение 15.10, макет принят 18.10): слева песни, справа панель; клип вторым планом */
.cat .tabs { display: flex; gap: 10px; margin: 0 0 22px; }
.cat .tabs button { font: 600 13px Montserrat, sans-serif; letter-spacing: .12em; color: var(--light); background: transparent;
  border: 1px solid rgba(255, 255, 255, .18); padding: 9px 18px; border-radius: 999px; cursor: pointer; }
.cat .tabs button.on { background: var(--red); border-color: var(--red); color: #fff; }
.cwrap { display: grid; grid-template-columns: 340px 1fr; gap: 34px; align-items: start; }
.clist { list-style: none; margin: 0; padding: 0; position: sticky; top: 90px; display: flex; flex-direction: column; gap: 6px; }
.clist a { display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; align-items: center; padding: 10px 12px;
  border-left: 3px solid transparent; color: var(--light); transition: background .2s, border-color .2s; }
.clist a:hover { background: rgba(255, 255, 255, .04); }
.clist a.on { border-left-color: var(--red); background: rgba(255, 255, 255, .06); }
.clist img { grid-row: 1 / 3; width: 56px; height: 56px; object-fit: cover; }
.clist .nm { font: 600 16px/1.2 Oswald, sans-serif; text-transform: uppercase; color: #fff; }
.clist .nm small, .pd h3 small { font-family: "Poiret One", sans-serif; font-weight: 400; text-transform: none; }
.clist .mt { font-size: 12px; color: var(--muted); }
.badge { font: 700 10px Montserrat, sans-serif; letter-spacing: .14em; color: var(--red); text-transform: uppercase; margin-left: 8px; font-style: normal; vertical-align: middle; }
.panel { display: none; grid-template-columns: minmax(0, 360px) 1fr; gap: 30px; align-items: start; }
.panel.on { display: grid; animation: paneIn .35s ease-out; }
@keyframes paneIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pc { width: 100%; aspect-ratio: 1; object-fit: cover; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); display: block; }
/* 3D-наклон обложки за мышкой (19.10); на телефоне и при «меньше движения» JS его не включает */
.cover3d { perspective: 900px; }
.cover3d .tilt { position: relative; transition: transform .25s ease-out; transform-style: preserve-3d; }
.cover3d .glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%); }
.cover3d:hover .glare { opacity: 1; }
/* кнопка отрывка припева (20.10): вся обложка - область касания (в герое 120 и 72 px, больше 48), по центру круглая
   подложка с иконкой. Без JS не показываем: ▶, который не сработает, не нужен; класс snip-on на <html> ставит app.js */
.snip { --d: 76px; display: none; position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; margin: 0; border: 0;
  background: none; color: #fff; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.snip-on .snip { display: block; }
.art .snip { --d: 48px; }
.snip::before { content: ""; position: absolute; left: 50%; top: 50%; width: var(--d); height: var(--d);
  margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2); border-radius: 50%; background: rgba(0, 0, 0, .62); }
@media (hover: hover) { .snip:hover::before { background: rgba(0, 0, 0, .78); } }
.snip:active::before { transform: scale(.94); }
/* иконка: ▶ из рамок (размеры в долях --d), две полосы паузы или кольцо загрузки */
.snip::after { content: ""; position: absolute; left: 50%; top: 50%; box-sizing: border-box; width: 0; height: 0;
  margin-left: calc(var(--d) * .04); transform: translate(-50%, -50%);
  border-style: solid; border-width: calc(var(--d) * .1975) 0 calc(var(--d) * .1975) calc(var(--d) * .33);
  border-color: transparent transparent transparent #fff; }
.snip.playing::after { width: calc(var(--d) * .29); height: calc(var(--d) * .37); margin-left: 0;
  border-width: 0 calc(var(--d) * .092); border-color: #fff; }
.snip.loading::after { width: calc(var(--d) * .395); height: calc(var(--d) * .395); margin-left: 0;
  border: calc(var(--d) * .053) solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%;
  animation: snipspin .8s linear infinite; }
@keyframes snipspin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
.snip .bar { position: absolute; left: 0; bottom: 0; height: 5px; width: 0; background: var(--red); } /* прогресс отрывка, ширину ставит app.js */
.art .snip .bar { height: 3px; }
.pm { font: 700 12px Montserrat, sans-serif; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.pd h3 { font: 700 clamp(32px, 3.4vw, 52px)/1 Oswald, sans-serif; text-transform: uppercase; color: #fff; margin: 6px 0 14px; }
.pd h3 small { display: block; font-size: 26px; line-height: 1.2; margin-top: 6px; }
.pd .about { color: var(--light); line-height: 1.6; max-width: 460px; margin-bottom: 22px; } /* о чём песня (15-16.10) */
.pa { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ghost { font: 600 13px Montserrat, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: transparent;
  border: 1px solid rgba(255, 255, 255, .3); padding: 0 20px; height: 56px; cursor: pointer; }
.ghost:hover { border-color: #fff; }
.player iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; margin-top: 18px; }
.next { display: inline-block; margin-top: 26px; color: var(--light); border-bottom: 1px solid rgba(255, 255, 255, .25); padding-bottom: 3px; font-size: 14px; }
.next:hover { color: #fff; border-color: var(--red); }
/* блоки появляются при прокрутке (класс ставит JS) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
/* плашка «Сейчас: <релиз> · Слушать» (решение 18.10) */
.nowbar { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 140%); display: flex; align-items: center; gap: 14px;
  background: rgba(18, 16, 15, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .1);
  padding: 8px 8px 8px 10px; z-index: 50; transition: transform .35s ease; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.nowbar.show { transform: translate(-50%, 0); }
.nowbar img { width: 40px; height: 40px; object-fit: cover; }
.nowbar span { font-size: 13px; color: var(--light); white-space: nowrap; }
.nowbar b { color: #fff; font: 600 14px Oswald, sans-serif; text-transform: uppercase; letter-spacing: .02em; }
.nowbar a { background: var(--red); color: #fff; font: 700 12px Montserrat, sans-serif; letter-spacing: .14em; text-transform: uppercase; padding: 12px 16px; }

/* клипы: настоящий плеер YouTube 16:9 */
.clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.clip .frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.clip iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.clip figcaption { font: 600 18px/1.25 Oswald, sans-serif; text-transform: uppercase; color: #fff; margin-top: 12px; }
.all-videos { display: inline-block; margin-top: 36px; color: var(--muted); border-bottom: 1px solid rgba(230, 226, 220, .25); padding-bottom: 2px; }
.all-videos:hover { color: var(--light); }

/* цитаты */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.q { margin: 0; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font: 300 18px/1.45 Montserrat, sans-serif; color: var(--light); }
.q p { margin: 0; }
.q p::before { content: "«"; } .q p::after { content: "»"; }
.q[lang="en"] p::before { content: "“"; } .q[lang="en"] p::after { content: "”"; }
.q cite { display: block; margin-top: 4px; font: 400 13px/1.4 Montserrat, sans-serif; font-style: normal; color: var(--muted); }
.q cite .song { color: var(--muted); }
.q cite a.song { border-bottom: 1px solid rgba(230, 226, 220, .25); }
.q cite a.song:hover { color: var(--red); border-bottom-color: var(--red); }

/* подписка */
.subs a {
  display: flex; justify-content: space-between; align-items: center; min-height: 64px; gap: 16px;
  border-bottom: 1px solid var(--line); font: 600 22px Oswald, sans-serif; text-transform: uppercase; color: #fff;
}
.subs a:hover { color: var(--red); }
.subs a em { font: 400 14px Montserrat, sans-serif; font-style: normal; color: var(--muted); text-transform: none; text-align: right; }

/* подвал */
.foot { padding: 48px var(--pad); color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.foot a:hover { color: var(--light); }

/* ---------- телефон ---------- */
@media (max-width: 767px) {
  .logo { font-size: 15px; }
  .logo span { display: none; }
  .soc { display: none; }
  .hero { align-items: flex-end; min-height: max(100svh, 560px); }
  .photo { width: 100%; }
  .photo img { object-position: 100% 35%; }
  .photo::before { inset: 0; background: linear-gradient(to top, var(--bg) 0%, rgba(10, 9, 8, .9) 35%, rgba(10, 9, 8, .5) 48%, rgba(10, 9, 8, 0) 60%); }
  .photo::after { background: linear-gradient(to bottom, rgba(10, 9, 8, .6) 0, rgba(10, 9, 8, 0) 120px); }
  .copy { padding: 0 20px max(24px, calc(env(safe-area-inset-bottom) + 16px)); max-width: none; width: 100%; }
  .title::before { display: none; }
  .release { gap: 16px; margin: 14px 0 10px; }
  .release img { width: 72px; height: 72px; }
  .title { font-size: clamp(48px, 15vw, 72px); }
  .title small { font-size: 28px; margin-top: 6px; }
  .status { font-size: 15px; margin-bottom: 18px; }
  .actions { gap: 10px; }
  .cta, .alt { width: 100%; justify-content: center; }
  .alt { height: 48px; }
  .block { padding: 80px 20px; }
  .h { font-size: 30px; margin-bottom: 32px; }
  .cwrap { display: block; }
  .clist { position: static; flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin-bottom: 20px; padding-bottom: 6px; }
  .clist li { flex: 0 0 auto; scroll-snap-align: start; }
  .clist a { display: block; padding: 0; border-left: 0; border-bottom: 3px solid transparent; width: 92px; background: none; }
  .clist a.on { border-bottom-color: var(--red); background: none; }
  .clist img { width: 92px; height: 92px; }
  .clist .nm, .clist .mt { display: none; }
  .panel.on { display: block; }
  .pc { margin-bottom: 18px; }
  .pa .cta, .pa .ghost { width: 100%; }
  .nowbar { left: 12px; right: 12px; bottom: 12px; transform: translateY(140%); }
  .nowbar.show { transform: none; }
  .nowbar span { flex: 1; white-space: normal; }
  .clips { grid-template-columns: 1fr; gap: 28px; }
  .quotes { grid-template-columns: 1fr; gap: 0; }
  .q { font-size: 16px; padding: 12px 0; }
  .foot { flex-direction: column; padding: 32px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .photo img, .title, .panel.on, .snip.loading::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .nowbar { transition: none; }
}
