/* CosmoMatch · промо 02 — кинетическая типографика: стена текста, один электрический цвет */

:root {
  --ground: #0B0B0D;
  --ink: #F5F5F2;
  --accent: #7F8DFF;
  --secondary: #4ECDC4;
  --glow: #FFD166;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { overflow-x: hidden; }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: 'Golos Text', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---------- шапка ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(245, 245, 242, 0.18);
}

.logo { display: flex; align-items: center; gap: 14px; }

.logo__mark {
  width: 44px;
  height: 44px;
  color: var(--ink);
  flex: none;
}

.km--star { fill: var(--accent); }

.wordmark {
  font-family: 'Unbounded', 'Golos Text', Arial, sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.wordmark__m {
  display: inline-block;
  transform: translateY(-8%) scaleY(1.08);
  transform-origin: 50% 100%;
}

.top__num {
  font-family: 'Unbounded', 'Golos Text', Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--secondary);
  white-space: nowrap;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: calc(100svh - 81px);
  min-height: calc(100vh - 81px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vh clamp(16px, 4vw, 48px) 0;
  overflow: hidden;
}

.kicker {
  font-family: 'Unbounded', 'Golos Text', Arial, sans-serif;
  font-size: clamp(12px, 1.4vw, 14px);
  letter-spacing: 0.22em;
  color: var(--glow);
  margin-bottom: clamp(18px, 4vh, 40px);
}

.hero__type {
  font-family: 'Unbounded', 'Golos Text', Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 9.4vw, 8.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  width: 100%;
  font-weight: var(--hw, 400);
  -webkit-text-stroke: var(--sw, 0em) var(--ink);
}

.hero__type .letter { display: inline-block; }

/* буквы «подъезжают» по очереди */
.hero__type .letter {
  opacity: 0;
  transform: translateX(1.2em) skewX(-8deg);
}

.hero__type.on .letter {
  animation: arrive 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i) * 32ms);
}

@keyframes arrive {
  to { opacity: 1; transform: none; }
}

/* ---------- бегущая строка ---------- */

.marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid rgba(245, 245, 242, 0.18);
  border-bottom: 1px solid rgba(245, 245, 242, 0.18);
  overflow: hidden;
  padding: 14px 0;
  background: var(--ground);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: slide 22s linear infinite;
}

.marquee__line {
  white-space: nowrap;
  font-family: 'Unbounded', 'Golos Text', Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(13px, 1.6vw, 17px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.marquee__line:first-child { color: var(--accent); }

.marquee--rev .marquee__track { animation-direction: reverse; }

@keyframes slide {
  to { transform: translateX(-50%); }
}

/* ---------- sub ---------- */

.sub-wrap {
  padding: clamp(56px, 10vh, 110px) clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(245, 245, 242, 0.18);
}

.sub {
  max-width: 720px;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  line-height: 1.6;
}

.sub strong { color: var(--secondary); font-weight: 600; }

/* ---------- строки-карточки ---------- */

.rows { padding: 0 clamp(16px, 4vw, 48px); }

.row {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 4vw, 48px);
  padding: clamp(22px, 4vh, 40px) 0;
  border-bottom: 1px solid rgba(245, 245, 242, 0.18);
  transition: background-color 0.3s ease, padding-left 0.3s ease;
}

.row:hover { background: rgba(127, 141, 255, 0.08); padding-left: 12px; }

.row__index {
  font-family: 'Unbounded', 'Golos Text', Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 4.6vw, 3.4rem);
  line-height: 1;
  color: var(--accent);
  flex: none;
  width: 3.2em;
}

.row__t {
  font-family: 'Unbounded', 'Golos Text', Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(1.25rem, 3.4vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
}

.row__d {
  margin-top: 8px;
  color: rgba(245, 245, 242, 0.82);
  max-width: 54ch;
}

.rows__legend {
  padding: 18px 0 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: rgba(245, 245, 242, 0.55);
  white-space: nowrap;
  overflow-x: auto;
}

/* ---------- цитата ---------- */

.quote {
  padding: clamp(72px, 14vh, 160px) clamp(16px, 4vw, 48px);
}

.quote__text {
  font-family: 'Unbounded', 'Golos Text', Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(1.2rem, 4.4vw, 3.2rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 22ch;
}

.quote__text .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
}

.quote__text.on .letter {
  animation: rise 0.5s ease forwards;
  animation-delay: calc(var(--i) * 22ms);
}

.quote__text em { color: var(--glow); font-style: normal; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ---------- гигантская кнопка-плашка ---------- */

.cta-block {
  padding: 0 clamp(16px, 4vw, 48px) clamp(48px, 8vh, 90px);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  background: var(--accent);
  color: #0B0B0D;
  text-decoration: none;
  padding: clamp(22px, 4.5vw, 44px) clamp(20px, 4vw, 44px);
  font-family: 'Unbounded', 'Golos Text', Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(1.3rem, 4.6vw, 3.2rem);
  text-transform: uppercase;
  line-height: 1;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.cta:hover, .cta:focus-visible {
  background: var(--secondary);
  transform: translateY(-4px);
}

.cta__arrow { flex: none; }

.note {
  margin-top: 18px;
  color: rgba(245, 245, 242, 0.7);
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* ---------- футер ---------- */

.foot {
  border-top: 1px solid rgba(245, 245, 242, 0.18);
  padding: 28px clamp(16px, 4vw, 48px) 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.foot__brand {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 245, 242, 0.7);
}

.promo-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

.promo-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.promo-nav a:hover { color: var(--accent); }

.foot__mono { flex: none; }

.logo__mark--mini { width: 32px; height: 32px; color: var(--ink); }

.logo--mono { filter: grayscale(1) contrast(1.1); }

/* ---------- появление по скроллу ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].in { opacity: 1; transform: none; }

/* ---------- escape hatch ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__type .letter, .quote__text .letter { opacity: 1; transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; transform: none; }
}

@media (max-width: 560px) {
  .row { flex-direction: column; gap: 8px; }
  .row__index { width: auto; }
  .top { flex-wrap: wrap; }
}
