/* CosmoMatch · промо 06 — Ар-деко: золото, симметрия, медальон */

:root {
  --ground: #0D1424;
  --ink: #E8DCC0;
  --accent: #C9A227;
  --secondary: #7F8DFF;
  --glow: #F4E4C1;
  --line: rgba(201, 162, 39, 0.55);
  --line-soft: rgba(201, 162, 39, 0.28);
}

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

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

body {
  font-family: 'PT Serif', Georgia, serif;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.salon {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px 56px;
  position: relative;
}

.zigdefs { position: absolute; width: 0; height: 0; overflow: hidden; }
.zig-path { stroke: var(--accent); }

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

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 18px;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 0 -3px var(--line-soft);
}

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

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

.wordmark {
  font-family: 'Yeseva One', 'PT Serif', serif;
  font-size: 17px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.wordmark__rule {
  width: 1px;
  height: 20px;
  background: var(--accent);
  transform: skewX(-12deg);
}

.head__num {
  font-family: 'Yeseva One', 'PT Serif', serif;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

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

.hero {
  padding: 44px 0 30px;
  text-align: center;
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 30px;
}

.hero__frame {
  width: min(360px, 84vw);
  margin: 0 auto 30px;
  padding: 18px 10px;
  border: 1px solid var(--line);
  outline: 1px solid var(--line-soft);
  outline-offset: 5px;
}

.step-bar {
  display: flex;
  justify-content: center;
  gap: 5px;
  align-items: flex-end;
  height: 12px;
}

.step-bar i {
  width: 5px;
  background: var(--accent);
}

.step-bar i:nth-child(1), .step-bar i:nth-child(5) { height: 4px; }
.step-bar i:nth-child(2), .step-bar i:nth-child(4) { height: 8px; }
.step-bar i:nth-child(3) { height: 12px; }

.step-bar--bottom { align-items: flex-start; margin-top: 6px; }

.medallion__svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--accent);
}

.medallion__svg .draw,
.medallion__svg .rays,
.medallion__svg .medallion__base { stroke: var(--accent); }

.medallion__gem { fill: var(--glow); stroke: none; }

.rays {
  transform-box: fill-box;
  transform-origin: center;
  animation: ray-spin 96s linear infinite;
}

@keyframes ray-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.headline {
  font-family: 'Yeseva One', 'PT Serif', serif;
  font-weight: 400;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.14;
  letter-spacing: 0.02em;
  color: var(--glow);
  margin: 6px 0 18px;
}

.sub {
  max-width: 56ch;
  margin: 0 auto 28px;
  font-size: 17px;
  color: var(--ink);
}

.cta-wrap { margin-bottom: 6px; }

.cta {
  display: inline-block;
  font-family: 'Yeseva One', 'PT Serif', serif;
  font-size: 15px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ground);
  background: var(--accent);
  padding: 16px 44px;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cta:hover, .cta:focus-visible {
  background: var(--glow);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(244, 228, 193, 0.18);
}

/* ---------- зигзаг-разделители ---------- */

.divider {
  margin: 34px 0;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.divider.is-in { opacity: 1; transform: none; }

.divider--right { transform: translateX(28px); }
.divider--right.is-in { transform: none; }

/* ---------- карточки: две колонки с симметричными отступами ---------- */

.cards__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.card {
  position: relative;
  text-align: center;
  padding: 30px 26px 26px;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--ground), var(--ground)) padding-box;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}

.card:hover { transform: translateY(-4px); border-color: var(--accent); }

.card__t {
  font-family: 'Yeseva One', 'PT Serif', serif;
  font-weight: 400;
  font-size: 21px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.card__d { font-size: 16px; color: var(--ink); }

.card--wide { grid-column: 1 / -1; }

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

.quote-zone { padding: 44px 0 6px; }

.quote {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 820px;
  margin: 0 auto;
}

.quote p {
  font-family: 'Yeseva One', 'PT Serif', serif;
  font-weight: 400;
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.4;
  text-align: center;
  color: var(--glow);
}

.quote__wing {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
  position: relative;
}

.quote__wing--l { transform: scaleX(-1); }

.quote__wing::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -4px;
  width: 9px;
  height: 9px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ---------- финал ---------- */

.final {
  padding: 26px 0 10px;
  text-align: center;
}

.note {
  display: inline-block;
  font-size: 15px;
  color: var(--ink);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 26px;
}

/* ---------- подвал с веером ---------- */

.foot {
  margin-top: 30px;
  padding-top: 10px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.fan {
  color: var(--line);
  margin: 0 auto;
  width: min(300px, 70vw);
}

.fan svg { display: block; width: 100%; height: auto; }

.foot__text {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 6px 0 18px;
}

.promo-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  padding-bottom: 8px;
}

.promo-nav a {
  font-family: 'Yeseva One', 'PT Serif', serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  padding: 4px 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}

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

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

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ---------- монохром (для проверки 32px / one-color) ---------- */

.logo--mono .logo__mark { color: var(--ink); }

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

@media (max-width: 640px) {
  .salon { padding: 0 18px 40px; }
  .head { flex-direction: row; }
  .wordmark { font-size: 13px; letter-spacing: 0.18em; gap: 7px; }
  .logo__mark { width: 34px; height: 34px; }
  .cards__grid { grid-template-columns: 1fr; }
  .quote { flex-direction: column; gap: 14px; }
  .quote__wing { width: 60%; flex: none; }
  .quote__wing--l { order: -1; }
  .sub { font-size: 16px; }
}

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

@media (prefers-reduced-motion: reduce) {
  .rays { animation: none; }
  [data-reveal], .divider {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cta, .card, .promo-nav a { transition: none; }
  .cta:hover { transform: none; }
  .card:hover { transform: none; }
}
