/* Кейс 02 — Три дня дождя. Ночь, мокрый асфальт, красный свет сцены */
:root {
  --night: #0b0b0c;
  --wet: #1a1b1d;
  --steel: #8d9096;
  --white: #e9e8e4;
  --red: #e3241b;
  --g: clamp(16px, 2.2vw, 32px);
  --sans: "Deledda", system-ui, sans-serif;
  --mono: "Feature Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--night); color: var(--white); font-family: var(--sans); font-weight: 300; overflow-x: hidden; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
::selection { background: var(--red); color: var(--night); }

/* плёночное зерно */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .14; mix-blend-mode: screen;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.mono { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; line-height: 1.7; }
.mono b { font-weight: 700; }
.red { color: var(--red); }

/* ---------- верхняя полоса ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px var(--g); mix-blend-mode: difference; color: #fff;
}
.bar nav { display: flex; gap: 24px; }
.bar a:hover { color: var(--red); }

/* ---------- обложка с дождём ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; contain: paint; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.hero::before {   /* красные огни площадки сквозь туман */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(circle at 18% 22%, rgba(227, 36, 27, .55), transparent 9%),
    radial-gradient(circle at 81% 30%, rgba(227, 36, 27, .4), transparent 7%),
    linear-gradient(180deg, rgba(11, 11, 12, .2) 40%, var(--night) 100%);
  mix-blend-mode: screen;
}
.rain {
  position: absolute; inset: -20% -10%; z-index: 2; pointer-events: none; opacity: .45;
  background:
    repeating-linear-gradient(104deg, transparent 0 46px, rgba(233, 232, 228, .5) 46px 47px, transparent 47px 140px),
    repeating-linear-gradient(98deg, transparent 0 80px, rgba(233, 232, 228, .28) 80px 81px, transparent 81px 210px);
  background-size: 100% 260px, 100% 420px;
  animation: rain .55s linear infinite;
}
@keyframes rain { to { background-position: -60px 260px, -50px 420px; } }
.hero .labels { position: absolute; z-index: 3; left: var(--g); right: var(--g); top: 64px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- заголовок как принт тура ---------- */
.title { position: relative; z-index: 4; margin-top: -11vw; padding: 0 var(--g); }
.title h1 { font-weight: 900; text-transform: uppercase; line-height: .82; letter-spacing: -.035em; color: var(--red); }
.title h1 span { display: block; }
.title h1 .m { display: none; }
.title .tour { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 2vh; font-weight: 600; font-size: clamp(18px, 2.4vw, 40px); line-height: 1; text-transform: uppercase; letter-spacing: -.01em; }
.nums { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 5vh; border-top: 1px solid var(--steel); }
.nums li { padding: 12px 12px 0 0; }
.nums b { display: block; font-family: var(--sans); font-weight: 900; font-size: clamp(44px, 7vw, 132px); line-height: .9; letter-spacing: -.04em; text-transform: none; }

/* ---------- паспорт + задача ---------- */
.brief { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 6vh var(--g); padding: 14vh var(--g) 10vh; }
.passport { display: grid; gap: 12px; align-content: start; }
.passport p { border-top: 1px solid var(--wet); padding-top: 8px; display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 12px; }
.passport p span:first-child { color: var(--steel); }
.tsr { display: grid; gap: 5vh; }
.tsr h2 { font-weight: 900; font-size: clamp(14px, 1.2vw, 18px); text-transform: uppercase; letter-spacing: .14em; color: var(--red); margin-bottom: 10px; }
.tsr p { font-size: clamp(20px, 2.1vw, 34px); line-height: 1.22; max-width: 34ch; }
.tsr b { font-weight: 900; }
.note { color: var(--steel); text-transform: none; letter-spacing: .04em; font-size: 13px; }

/* ---------- три дня ---------- */
.day { position: relative; padding: 18vh var(--g) 8vh; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.day h2 { font-weight: 900; text-transform: uppercase; line-height: .8; letter-spacing: -.04em; }
.day h2 i { font-style: normal; color: transparent; -webkit-text-stroke: 2px var(--red); }
.day .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--steel); padding-top: 10px; }
.day .row .q { font-weight: 100; font-size: clamp(22px, 3vw, 48px); line-height: 1.05; text-transform: uppercase; max-width: 24ch; }

.flow { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--g); padding: 0 var(--g); }
figure { position: relative; cursor: zoom-in; }
figure img { background: var(--wet); transition: filter .4s; }
figure:hover img { filter: brightness(1.08) contrast(1.05); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--g); align-items: start; }
.pair.shift figure:last-child { margin-top: 16vh; }
.bleed { margin: 0 calc(var(--g) * -1); }

/* линейка: высокий кадр + список категорий */
.lineup { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--g); align-items: start; }
.lineup .side { position: sticky; top: 80px; display: grid; gap: 4vh; }
.lineup .big { font-weight: 900; font-size: clamp(64px, 11vw, 220px); line-height: .8; letter-spacing: -.05em; }
.lineup .big small { display: block; font-size: .2em; letter-spacing: 0; font-weight: 600; text-transform: uppercase; margin-top: .4em; }

/* список с точками — как даты на спине лонгслива */
.dots { list-style: none; display: grid; gap: 6px; }
.dots li { display: flex; align-items: baseline; gap: 8px; font-weight: 600; font-size: clamp(15px, 1.4vw, 22px); line-height: 1.15; }
.dots li i { font-family: var(--mono); font-style: normal; font-size: .62em; color: var(--red); letter-spacing: .08em; }
.dots li span { flex: 1; display: flex; align-items: baseline; gap: 6px; }
.dots li span::before { content: ""; flex: 1; border-bottom: 2px dotted rgba(233, 232, 228, .45); transform: translateY(-.25em); }

/* города тура */
.cities { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 4vh var(--g); padding: 0 var(--g); align-items: start; }
.cities .head { grid-column: 1 / -1; }
.cities .head .big { font-weight: 900; text-transform: uppercase; line-height: .8; letter-spacing: -.045em; }
.cities .head .big b { color: var(--red); font-weight: 900; }
.cities .head p:not(.big) { font-size: clamp(18px, 1.8vw, 28px); line-height: 1.25; max-width: 40ch; margin-top: 3vh; }
.cities .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px var(--g); }

/* лукбук */
.look { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); padding: 0 var(--g); align-items: start; }
.look figure:nth-child(4n + 2) { margin-top: 12vh; }
.look figure:nth-child(4n + 3) { margin-top: 4vh; }
.look figure:nth-child(4n) { margin-top: 16vh; }

/* цифры */
.scale { padding: 20vh var(--g) 6vh; display: grid; gap: 6vh; }
.scale h2 { font-weight: 900; font-size: clamp(14px, 1.2vw, 18px); text-transform: uppercase; letter-spacing: .14em; color: var(--red); }
.scale ul { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--steel); }
.scale li { padding: 14px 14px 0 0; display: grid; gap: 8px; align-content: start; }
.scale li b { font-weight: 900; font-size: clamp(48px, 7.4vw, 140px); line-height: .85; letter-spacing: -.05em; }
.scale li > span { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); }

.self { padding: 12vh var(--g) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--g); }
.self p:last-child { font-size: clamp(22px, 2.6vw, 44px); line-height: 1.15; }

/* ---------- подвал ---------- */
footer { padding: 22vh var(--g) var(--g); display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.next { display: grid; gap: 8px; }
.next .big { font-weight: 900; font-size: clamp(56px, 13vw, 260px); line-height: .82; letter-spacing: -.05em; text-transform: uppercase; transition: color .3s; }
.next:hover .big { color: var(--red); }
footer .links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--steel); padding-top: 10px; }
footer .links a { font-weight: 900; font-size: clamp(20px, 3vw, 48px); line-height: 1; text-transform: uppercase; letter-spacing: -.02em; }
footer .links a:hover { color: var(--red); }

/* ---------- лайтбокс ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(11, 11, 12, .96); display: none; place-items: center; padding: 48px var(--g); cursor: zoom-out; }
.lb.on { display: grid; }
.lb img { max-width: 100%; max-height: calc(100svh - 96px); width: auto; object-fit: contain; }
.lb .mono { position: absolute; top: 14px; left: var(--g); right: var(--g); display: flex; justify-content: space-between; gap: 16px; }
.lb button { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--white); font: 900 40px var(--sans); padding: 16px; cursor: pointer; }
.lb button:hover { color: var(--red); }
.lb [data-step="-1"] { left: 0; }
.lb [data-step="1"] { right: 0; }

/* ---------- телефон ---------- */
@media (max-width: 760px) {
  .bar nav, .bar > span { display: none; }
  .hero { height: 78svh; min-height: 460px; }
  .title { margin-top: -18vw; }
  .title h1 .d { display: none; }
  .title h1 .m { display: block; }
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brief, .lineup, .cities, .self { grid-template-columns: minmax(0, 1fr); }
  .lineup .side { position: static; }
  .cities .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .pair.shift figure:last-child { margin-top: 0; }
  .look { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .look figure:nth-child(n) { margin-top: 0; }
  .look figure:nth-child(even) { margin-top: 8vh; }
  .scale ul { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 24px; }
  .passport p { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .lb button { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rain { animation: none; }
}
