/* CosmoMatch · промо 09 — Суми-инк: тушь, бумага, пустота */

:root {
  --ground: #EFEDE6;
  --ink: #1A1A1A;
  --accent: #B4341F;
  --secondary: #5A6B75;
  --glow: #D8D2C4;
}

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

html, body { background: var(--ground); }

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

.paper {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px 80px;
}

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

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0 10px;
}

.logo { display: flex; align-items: center; gap: 16px; min-width: 0; }

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

.logo__star { fill: var(--ink); }

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 12px;
  white-space: nowrap;
}

.wordmark__script {
  font-family: 'Marck Script', cursive;
  font-size: 27px;
  line-height: 1;
  color: var(--ink);
}

.wordmark__caps {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-variant: small-caps;
  font-size: 17px;
  letter-spacing: 0.34em;
  color: var(--secondary);
}

.head__num {
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--secondary);
}

/* ---------- hero: пустое поле, текст с большим маргином, знак справа-внизу ---------- */

.hero {
  padding-top: 20vh;
  padding-bottom: 30px;
}

.hero__text {
  max-width: 48ch;
  margin-left: 14%;
}

.kicker {
  font-size: 13px;
  font-weight: 600;
  font-variant: small-caps;
  letter-spacing: 0.4em;
  color: var(--secondary);
  margin-bottom: 26px;
}

.headline {
  font-weight: 300;
  font-size: clamp(42px, 6.4vw, 84px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin-bottom: 26px;
}

.sub {
  font-size: 19px;
  font-weight: 300;
  color: #3c3c3c;
  max-width: 44ch;
  margin-bottom: 34px;
}

.cta {
  display: inline-block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 4px 2px 10px;
  border-bottom: 2px solid var(--accent);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.cta:hover, .cta:focus-visible { color: var(--accent); padding-left: 12px; }

.hero__mark {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 26px;
  margin-top: 8vh;
  padding-right: 4%;
}

.enso {
  width: min(320px, 58vw);
  height: auto;
  color: var(--ink);
  display: block;
}

.enso__star {
  fill: var(--ink);
  opacity: 1;
  transition: opacity 0.8s ease 0.2s;
}

.enso__star--waiting { opacity: 0; }

.stamp {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: var(--accent);
  color: #F7F4EC;
  border-radius: 4px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.08em;
  transform: rotate(-4deg);
}

.stamp--waiting { opacity: 0; }

.stamp--thud {
  animation: stamp-thud 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
}

@keyframes stamp-thud {
  0% { opacity: 0; transform: rotate(-4deg) scale(1.55); }
  62% { opacity: 1; transform: rotate(-4deg) scale(0.94); }
  100% { opacity: 1; transform: rotate(-4deg) scale(1); }
}

/* ---------- три строки без рамок ---------- */

.lines { padding: 70px 0 30px; }

.line-item {
  margin-left: 14%;
  max-width: 52ch;
  padding: 34px 0;
  border-top: 1px solid var(--glow);
}

.line-item__t {
  font-weight: 600;
  font-variant: small-caps;
  font-size: 22px;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}

.line-item__d {
  font-size: 18px;
  font-weight: 300;
  color: #3c3c3c;
}

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

.quote-zone { padding: 90px 0; }

.quote {
  margin-left: 14%;
  max-width: 34ch;
}

.quote p {
  font-weight: 300;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.25;
}

.quote::before {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 34px;
}

/* ---------- финал и футер ---------- */

.final { padding: 10px 0 70px; }

.note {
  margin-left: 14%;
  max-width: 40ch;
  font-size: 18px;
  font-weight: 300;
  color: var(--secondary);
}

.foot {
  margin-left: 14%;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  border-top: 1px solid var(--glow);
  padding-top: 30px;
}

.stamp--foot { width: 42px; height: 42px; font-size: 16px; }

.foot__text {
  font-size: 14px;
  letter-spacing: 0.3em;
  font-variant: small-caps;
  font-weight: 600;
  color: var(--secondary);
}

.promo-nav { display: flex; gap: 26px; flex-wrap: wrap; margin-left: auto; }

.promo-nav a {
  font-size: 15px;
  font-weight: 600;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.promo-nav a:hover, .promo-nav a:focus-visible { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- появление blur→0 ---------- */

.pre {
  opacity: 0;
  filter: blur(10px);
}

.pre.is-in {
  opacity: 1;
  filter: blur(0);
  transition: opacity 0.9s ease, filter 0.9s ease;
}

/* ---------- адаптив ---------- */

@media (max-width: 640px) {
  .paper { padding: 0 22px 60px; }
  .hero { padding-top: 12vh; }
  .hero__text, .line-item, .quote, .note, .foot { margin-left: 0; }
  .hero__mark { padding-right: 0; gap: 18px; }
  .sub { font-size: 17px; }
  .promo-nav { margin-left: 0; }
}

/* ---------- reduce-motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .pre { opacity: 1; filter: none; transition: none; }
  .enso__star--waiting { opacity: 1; }
  .stamp--waiting { opacity: 1; }
  .stamp--thud { animation: none; }
  .cta, .promo-nav a { transition: none; }
}
