/* Главная страница: лицо проекта. Своя палитра и свои приёмы, не как у страниц разбора.
   Без скрипта и при «меньше движения» все блоки стоят друг под другом и читаются целиком. */

:root {
  --rose: #E5356F;
  --rose-soft: #F7C9D6;
  --blush: #F3E4E4;
  --pine: #0F4A3A;
  --pine-deep: #0A2F26;
  --sun: #F2B01E;
  --cream: #F7F1EA;
  --ink: #17171A;
  --paper: #FFFFFF;
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 500 18px/1.5 var(--font); overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100%, 1180px); margin-inline: auto; padding-inline: var(--gutter); }
.display { font-weight: 900; letter-spacing: -.035em; line-height: .95; text-transform: uppercase; }
.kicker { font: 600 .8rem/1.2 ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 56px; padding: 0 1.6em;
  border-radius: 999px; background: var(--ink); color: var(--paper);
  font-weight: 800; text-decoration: none;
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--pine); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--sun); }

/* --- 1. Первый экран: Мина, вокруг неё по кругу идут слова ----------------- */
.orbit {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background:
    radial-gradient(42% 30% at 22% 38%, color-mix(in srgb, var(--rose) 46%, transparent) 0, transparent 70%),
    linear-gradient(180deg, #EDE3E6 0, #E6DADE 60%, #F1E9E9 100%);
}
.orbit__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px var(--gutter) 0; position: relative; z-index: 5; }
.orbit__name { font-weight: 900; letter-spacing: -.02em; font-size: 1.15rem; text-decoration: none; }
.orbit__nav { display: flex; gap: 18px; font-weight: 700; font-size: .95rem; }
.orbit__nav a { text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.orbit__stage { position: relative; min-height: 62svh; perspective: 1100px; perspective-origin: 50% 45%; }
.orbit__space { position: absolute; inset: 0; transform-style: preserve-3d; }
.orbit__mina {
  position: absolute; left: 50%; bottom: 0;
  height: 100%; width: auto; max-width: none;
  transform: translateX(-50%) translateZ(0);
  filter: drop-shadow(0 30px 40px rgb(60 20 40 / .28));
}
.orbit__mina--flat { object-fit: cover; width: min(100%, 520px); border-radius: 32px 32px 0 0; filter: none; }
/* кольца слов: без скрипта — обычные строки под картинкой */
.rings { position: absolute; inset: auto 0 6% 0; display: grid; gap: 4px; text-align: center; transform: translateZ(1px); }
.ring { font-size: clamp(2rem, 10vw, 4.6rem); font-weight: 900; letter-spacing: -.02em; line-height: 1; text-transform: uppercase; color: var(--paper); white-space: nowrap; overflow: hidden; }
.ring:nth-child(even) { color: var(--pine); }
.js-on .rings { position: absolute; inset: 0; display: block; transform-style: preserve-3d; transform: none; }
.js-on .ring {
  position: absolute; left: 50%; top: var(--y, 60%);
  width: 0; height: 0; overflow: visible;
  transform-style: preserve-3d;
  transform: rotateZ(var(--tilt-z, -9deg)) rotateX(var(--tilt-x, -14deg));
}
.ring__spin { position: absolute; transform-style: preserve-3d; animation: orbit var(--turn, 26s) linear infinite; }
.ring__l {
  position: absolute; left: 0; top: 0;
  width: 1.2em; margin: -.5em 0 0 -.6em;
  text-align: center; line-height: 1;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.ring__l--far { opacity: .55; }
@keyframes orbit { to { transform: rotateY(-360deg); } }
.orbit__text { position: relative; z-index: 5; display: grid; gap: 14px; padding: 18px var(--gutter) 28px; }
.orbit__text h1 { font-size: clamp(1.9rem, 8.2vw, 4.4rem); max-width: 14em; }
.orbit__text h1 em { font-family: var(--serif); font-style: italic; font-weight: 600; text-transform: none; letter-spacing: -.02em; color: var(--rose); }
.orbit__lead { max-width: 30em; font-size: clamp(1rem, 4.2vw, 1.25rem); }
.orbit__go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* --- край-подтёк между блоками --------------------------------------------- */
.drip { position: relative; z-index: 3; height: 0; color: var(--from); pointer-events: none; }
.drip svg { position: absolute; left: 0; top: -1px; width: 100%; height: clamp(80px, 20vw, 130px); }
.drip path:first-child { fill: currentColor; }
.drip path:last-child { display: none; }

/* --- 2. Пролёт: клип идёт вперёд и назад вместе с прокруткой --------------- */
.fly { position: relative; background: var(--blush); }
.fly__pin { position: relative; min-height: 70svh; overflow: hidden; display: grid; place-items: center; }
.fly__video, .fly__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fly__grad { position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 50%, var(--rose-soft), var(--blush)); }
.fly__words { position: relative; z-index: 2; display: grid; gap: 10px; text-align: center; padding: var(--gutter); }
.fly__words p { font-size: clamp(2.4rem, 13vw, 8rem); color: var(--paper); text-shadow: 0 6px 30px rgb(60 20 40 / .35); }
.fly__words p:nth-child(2) { color: var(--pine); text-shadow: none; }
.js-on .fly { height: 320svh; }
.js-on .fly__pin { position: sticky; top: 0; height: 100svh; }
.js-on .fly__words p { opacity: calc(1 - var(--p, 0) * 3.2); transform: scale(calc(1 + var(--p, 0) * 1.8)); }
.js-on .fly__words p:nth-child(2) { opacity: calc((var(--p, 0) - .32) * 4 * (1 - (var(--p, 0) - .7) * 4)); transform: scale(calc(.7 + var(--p, 0) * .6)); }
.js-on .fly__flash { position: absolute; inset: 0; z-index: 3; background: var(--cream); opacity: calc((var(--p, 0) - .86) * 8); pointer-events: none; }

/* --- 3. Волны: фото стоит на месте, прорези поднимаются -------------------- */
.waves { position: relative; background: var(--pine); color: var(--paper); }
.waves__pin { position: relative; overflow: hidden; }
.waves__photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.waves__grad { aspect-ratio: 3 / 4; background: linear-gradient(160deg, var(--pine), var(--pine-deep)); }
.waves__veil { display: none; }
.waves__body { position: relative; z-index: 4; display: grid; gap: 22px; padding: 40px var(--gutter) 64px; }
.waves__body h2 { font-size: clamp(2rem, 9vw, 4.6rem); }
.waves__list { display: grid; gap: 16px; counter-reset: n; max-width: 34em; }
.waves__list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; font-size: clamp(1.05rem, 4.4vw, 1.3rem); }
.waves__list li::before {
  counter-increment: n; content: counter(n);
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--sun); color: var(--ink); font-weight: 900;
}
.js-on .waves { height: 300svh; }
.js-on .waves__pin { position: sticky; top: 0; height: 100svh; }
.js-on .waves__photo, .js-on .waves__grad { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: 50% 30%; }
.js-on .waves__veil {
  display: block; position: absolute; inset: 0; z-index: 2;
  background: var(--cream);
  -webkit-mask: var(--blobs) 50% calc(100% + var(--p, 0) * 190vh) / 100% auto repeat-y;
          mask: var(--blobs) 50% calc(100% + var(--p, 0) * 190vh) / 100% auto repeat-y;
}
.waves__ghost {
  position: absolute; inset: 0; z-index: 3; display: none;
  font-size: clamp(4rem, 23vw, 13rem); line-height: .86; font-weight: 900; text-transform: uppercase; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--pine) 70%, transparent);
  overflow: hidden; pointer-events: none; padding-left: 4vw;
}
.js-on .waves__ghost { display: block; transform: translateY(calc(var(--p, 0) * -18%)); }
.js-on .waves__body {
  position: absolute; inset: auto 0 0 0; padding-bottom: clamp(28px, 7vh, 72px);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--pine-deep) 88%, transparent) 38%);
  opacity: calc((var(--p, 0) - .6) * 6); transform: translateY(calc((1 - var(--p, 0)) * 60px));
}

/* --- Бегущие слова ---------------------------------------------------------- */
.ticker { background: var(--rose); color: var(--paper); padding: 22px 0; overflow: hidden; display: grid; gap: 6px; }
.ticker__row { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker__row--back { animation-direction: reverse; animation-duration: 46s; color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
.ticker__run { display: flex; flex: none; }
.ticker__run span { display: inline-flex; align-items: center; font-size: clamp(2rem, 9vw, 4.4rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; text-transform: uppercase; white-space: nowrap; }
.ticker__run span::after { content: ""; width: .32em; height: .32em; margin: 0 .5em; border-radius: 50%; background: var(--sun); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* --- Что разбираю: карточки листаются вбок ---------------------------------- */
.cats { background: var(--cream); padding: clamp(72px, 14vh, 150px) 0 clamp(90px, 16vh, 170px); }
.cats__head { display: grid; gap: 14px; margin-bottom: clamp(28px, 5vh, 56px); }
.cats__head h2 { font-size: clamp(2rem, 9.2vw, 6rem); }
.cats__head h2 span { color: var(--rose); }
.cats__lead { max-width: 30em; font-size: 1.1rem; }
.cats__list { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 18px; scrollbar-width: none; }
.cats__list::-webkit-scrollbar { display: none; }
.cat { flex: none; width: min(72vw, 320px); scroll-snap-align: center; display: grid; gap: 10px; align-content: start; }
.cat__media { aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--pine); }
.cat[data-tone="1"] .cat__media { background: var(--rose); border-radius: 28px 28px 140px 28px; }
.cat[data-tone="2"] .cat__media { background: var(--sun); border-radius: 140px 28px 28px 28px; }
.cat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat:hover .cat__media img { transform: scale(1.05); }
.cat__name { margin-top: 6px; font-size: 1.5rem; font-weight: 900; letter-spacing: -.03em; line-height: 1.05; text-transform: uppercase; }
.cat__text { font-size: 1rem; color: #3A3A40; }

/* --- Цифра из разбора: круг растёт вместе с прокруткой ----------------------- */
.number { position: relative; background: var(--pine); color: var(--ink); padding: clamp(140px, 22vh, 220px) 0 clamp(80px, 14vh, 150px); overflow: hidden; }
.number__grid { position: relative; display: grid; }
.number__ring { position: absolute; left: 50%; top: 50%; width: min(135vw, 760px); aspect-ratio: 1; border-radius: 50%; background: var(--sun); transform: translate(-50%, -50%); }
.js-on .number__ring { transform: translate(-50%, -50%) scale(calc(.5 + var(--p, 0) * .9)); }
.number__text { position: relative; display: grid; gap: 16px; justify-items: start; padding: 8vw 4vw; }
.number__value { font-size: clamp(4.4rem, 24vw, 12rem); letter-spacing: -.05em; }
.number__lead { max-width: 20em; font-size: 1.15rem; font-weight: 600; }
.number .btn:hover { background: var(--rose); }

/* --- 4. Разборы ------------------------------------------------------------- */
.topics { position: relative; background: var(--ink); color: var(--paper); padding: clamp(72px, 14vh, 160px) 0; }
.topics__head { display: grid; gap: 14px; margin-bottom: clamp(28px, 6vh, 64px); }
.topics__head h2 { font-size: clamp(2.4rem, 12vw, 7rem); }
.topics__head h2 span { color: var(--rose); }
.topics__list { display: grid; gap: 22px; }
.topic {
  position: relative; display: grid; gap: 18px; overflow: hidden;
  padding: 22px; border-radius: 30px; text-decoration: none;
  background: #232327;
  transition: transform .35s var(--ease);
}
.topic:hover { transform: translateY(-4px); }
/* узкое окно: фото видно целиком в полосе, вокруг — его же размытая тень */
.topic__media { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: #2D2D33; }
.topic__blur { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(22px) grayscale(1) brightness(.6); }
.topic__slit { position: absolute; inset: 0 34% 0 34%; overflow: hidden; outline: 2px solid var(--paper); outline-offset: -2px; transition: inset .5s var(--ease); }
.topic__slit img { position: absolute; top: 0; left: 50%; height: 100%; width: auto; max-width: none; aspect-ratio: 4 / 3; object-fit: cover; transform: translateX(-50%); }
.topic.is-in .topic__slit, .topic:hover .topic__slit { inset: 0 8% 0 8%; }
.topic__num { font: 600 .8rem/1 ui-monospace, Consolas, monospace; letter-spacing: .14em; color: var(--sun); }
.topic__title { font-size: clamp(1.5rem, 6.4vw, 2.6rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.04; }
.topic__lead { color: #C9C9CF; font-size: 1rem; max-width: 36em; }
.topic__go { display: inline-flex; align-items: center; gap: .5em; font-weight: 800; color: var(--sun); }

/* --- 5. Правило: портрет в окне-арке и крупные слова ----------------------- */
.clip { background: var(--cream); padding: clamp(72px, 14vh, 160px) 0; overflow: hidden; }
.clip__grid { display: grid; gap: 28px; align-items: center; }
.clip__photo { width: min(78%, 400px); aspect-ratio: 3 / 4; border-radius: 999px 999px 28px 28px; overflow: hidden; background: var(--rose-soft); }
.clip__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.clip__side { display: grid; gap: 16px; }
.clip__words { font-size: clamp(2.4rem, 13.4vw, 8rem); line-height: .86; font-weight: 900; letter-spacing: -.045em; text-transform: uppercase; }
.clip__words span { display: block; }
.clip__words span:last-child { color: var(--rose); }
.clip__note { display: grid; gap: 10px; max-width: 26em; padding-top: 14px; border-top: 4px solid var(--ink); font-size: 1.05rem; }

/* --- Вопросы ---------------------------------------------------------------- */
.faq { background: var(--blush); padding: clamp(72px, 14vh, 150px) 0; border-radius: 40px 40px 0 0; }
.faq__grid { display: grid; gap: 32px; }
.faq h2 { font-size: clamp(2.2rem, 11vw, 5.4rem); margin-top: 14px; }
.faq h2 span { color: var(--pine); }
.faq__list { display: grid; gap: 12px; }
.faq__item { background: var(--paper); border-radius: 24px; padding: 0 22px; }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 68px; padding: 12px 0; cursor: pointer; list-style: none; font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sun); font-weight: 900; font-size: 1.3rem; line-height: 1; transition: transform .3s var(--ease), background-color .3s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); background: var(--rose); color: var(--paper); }
.faq__item p { padding: 0 52px 22px 0; color: #3A3A40; }

/* --- 6. Где мы ------------------------------------------------------------- */
.social { background: var(--rose); color: var(--paper); padding: 150px 0 clamp(90px, 16vh, 180px); }
.social h2 { font-size: clamp(2.2rem, 11vw, 6rem); margin-bottom: 14px; }
.social__lead { max-width: 26em; margin-bottom: 28px; font-size: 1.1rem; }
.social__list { display: grid; gap: 14px; }
.social__link {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: 24px; text-decoration: none;
  background: color-mix(in srgb, var(--paper) 16%, transparent);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.social__link:hover { background: var(--paper); color: var(--ink); transform: translateX(6px); }
.social__icon { width: 64px; height: 64px; padding: 14px; border-radius: 20px; background: var(--paper); color: var(--rose); }
.social__name { font-size: 1.4rem; font-weight: 900; letter-spacing: -.02em; }
.social__handle { display: block; font-size: .95rem; font-weight: 500; opacity: .85; }

.hfoot { background: var(--pine-deep); color: #D7E3DE; padding: 48px 0 64px; font-size: .95rem; }
.hfoot .wrap { display: grid; gap: 12px; }
.hfoot strong { color: var(--paper); font-size: 1.15rem; }

/* --- появление -------------------------------------------------------------- */
.js-on [data-in] { opacity: 0; transform: translateY(36px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js-on [data-in].is-in { opacity: 1; transform: none; }

@media (min-width: 860px) {
  body { font-size: 20px; }
  .orbit { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; }
  .orbit__top { grid-column: 1 / -1; }
  .orbit__stage { grid-column: 2; grid-row: 2; min-height: 0; }
  .orbit__text { grid-column: 1; grid-row: 2; align-content: center; padding-bottom: 12vh; }
  .topics__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clip__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .social__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .waves__ghost { font-size: 15vw; }
  .clip__words { font-size: clamp(3rem, 6.2vw, 7rem); }
  .cats__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; overflow: visible; width: min(100%, 1180px); margin-inline: auto; }
  .cat { width: auto; }
  .faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
  .number__text { padding: 60px; }
  .faq h2 { font-size: clamp(2.2rem, 4.4vw, 4.4rem); }
  .clip__photo { width: min(100%, 420px); justify-self: center; }
  .social { padding-top: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring__spin { animation: none; }
  .ticker__row { animation: none; flex-wrap: wrap; width: auto; }
  .ticker__run[aria-hidden] { display: none; }
  .ticker__run { flex-wrap: wrap; }
}
