/* GROMOV — dark cinematic relationships book (unique layout) */
:root {
  --bg: #0b0c10;
  --bg-2: #12141c;
  --bg-3: #1a1d28;
  --line: rgba(245, 236, 220, 0.1);
  --line-strong: rgba(245, 236, 220, 0.18);
  --text: #f5ecdc;
  --muted: #9a9388;
  --gold: #c9a46a;
  --gold-2: #e0c48a;
  --danger: #e8a090;
  --max: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--gold);
  color: #111;
  padding: 0.6rem 1rem;
  font-weight: 700;
}

.skip:focus {
  top: 1rem;
}

.shell {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Top bar — minimal, not sticky multi-link clone */
.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  left: 0;
  right: 0;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.22em;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.brand span {
  color: var(--gold);
}

.topbar-link {
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: color 0.15s, border-color 0.15s;
}

.topbar-link:hover {
  color: var(--text);
  border-color: var(--gold);
}

/* Hero — full bleed split, not panfer/editorial light */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--bg);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(0.85) contrast(1.05);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 12, 16, 0.35) 0%, rgba(11, 12, 16, 0.55) 40%, rgba(11, 12, 16, 0.96) 100%),
    linear-gradient(90deg, rgba(11, 12, 16, 0.75) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 7rem 0 3.5rem;
  max-width: 36rem;
}

.kicker {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 1.1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-2);
}

.hero-lead {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 1.75rem;
  max-width: 32rem;
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.price-tag {
  font-size: 0.95rem;
  color: var(--muted);
}

.price-tag strong {
  color: var(--gold-2);
  font-size: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.35rem;
  border-radius: 4px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: #14110c;
}

.btn-gold:hover {
  background: var(--gold-2);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-2);
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Marquee strip */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.85rem 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.marquee-inner {
  display: inline-block;
  padding-left: 100%;
  animation: slide 28s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .marquee-inner {
    animation: none;
    padding-left: 1rem;
  }

  html {
    scroll-behavior: auto;
  }

  .btn:hover {
    transform: none;
  }
}

/* Thesis band */
.band {
  padding: 4.5rem 0;
}

.band-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.band-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
  font-weight: 700;
}

.band-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Bento — different from card grids elsewhere */
.bento {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 800px) {
  .bento {
    grid-template-columns: 1.3fr 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .bento .cell-lg {
    grid-row: span 2;
  }
}

.cell {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.35rem;
  min-height: 10rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.cell-lg {
  min-height: 22rem;
  padding: 0;
}

.cell-lg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.cell-lg .cell-body {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(11, 12, 16, 0.92));
  margin-top: auto;
}

.cell h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.cell p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cell-num {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.65rem;
}

/* Timeline chapters — vertical spine */
.timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 1px solid var(--line-strong);
  display: grid;
  gap: 1.35rem;
}

.t-item {
  position: relative;
  padding-left: 0.5rem;
}

.t-item::before {
  content: "";
  position: absolute;
  left: -1.7rem;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 164, 106, 0.2);
}

.t-item h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.t-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.t-n {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

/* Quote + media duo */
.duo {
  display: grid;
  gap: 1rem;
}

@media (min-width: 860px) {
  .duo {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
  }
}

.quote-box {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-box blockquote {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  font-weight: 500;
}

.quote-box cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.duo-media {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 260px;
}

.duo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

/* Who for — two columns stark */
.who {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 700px) {
  .who {
    grid-template-columns: 1fr 1fr;
  }
}

.who-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.4rem;
  background: var(--bg-2);
}

.who-card.yes {
  border-color: rgba(201, 164, 106, 0.35);
}

.who-card.no {
  border-color: rgba(232, 160, 144, 0.25);
}

.who-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.who-card.no h3 {
  color: var(--danger);
}

.who-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.who-card li {
  margin-bottom: 0.4rem;
}

.note {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 40rem;
}

/* Offers — horizontal dark bars */
.offers {
  display: grid;
  gap: 0.75rem;
}

.offer {
  display: grid;
  gap: 0.75rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-2);
}

@media (min-width: 720px) {
  .offer {
    grid-template-columns: 1.2fr 1fr auto;
  }
}

.offer.hot {
  border-color: rgba(201, 164, 106, 0.45);
  background: linear-gradient(90deg, rgba(201, 164, 106, 0.08), var(--bg-2) 50%);
}

.offer h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.offer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.offer-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-2);
}

/* Order — single panel, not multi-step wizard */
.order-wrap {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .order-wrap {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

.order-aside {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-2);
}

.order-aside img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.order-aside-body {
  padding: 1.25rem;
}

.order-aside-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.order-aside-body ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.order-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-2);
  padding: 1.5rem;
}

.order-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
}

.order-panel .hint {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.fields {
  display: grid;
  gap: 0.9rem;
}

label.f {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.f input,
.f select {
  min-height: 2.85rem;
  padding: 0.6rem 0.85rem;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
  font-size: 1rem;
}

.f input:focus,
.f select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.checks {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

.check input {
  margin-top: 0.2rem;
  accent-color: var(--gold);
  width: 1.05rem;
  height: 1.05rem;
}

.check a {
  color: var(--gold-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.err {
  display: none;
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.8rem;
  background: rgba(232, 160, 144, 0.12);
  border: 1px solid rgba(232, 160, 144, 0.35);
  color: var(--danger);
  border-radius: 4px;
  font-size: 0.9rem;
}

.err.show {
  display: block;
}

.ok-box {
  display: none;
  text-align: center;
  padding: 1rem 0.5rem;
}

.ok-box.show {
  display: block;
}

.ok-box h3 {
  margin: 0 0 0.65rem;
  font-size: 1.5rem;
  color: var(--gold-2);
}

.ok-box p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.pay-note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* Footer */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-foot strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.35rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 1rem 0;
}

.foot-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot-links a:hover {
  color: var(--gold-2);
}

.foot-copy {
  font-size: 0.8rem;
  opacity: 0.7;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1rem;
}

/* Legal pages */
.legal-top {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  background: var(--bg-2);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.legal-nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.legal-nav a[aria-current="page"] {
  color: var(--gold);
}

.legal-main {
  width: min(100% - 2rem, 720px);
  margin: 2rem auto 3.5rem;
}

.legal-main h1 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 0.35rem;
}

.legal-meta {
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.legal-main h2 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.6rem;
  color: var(--gold-2);
}

.legal-main p,
.legal-main li {
  color: var(--muted);
}

.legal-main a {
  color: var(--gold-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-main ol,
.legal-main ul {
  padding-left: 1.2rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(120%);
  background: var(--gold);
  color: #14110c;
  font-weight: 700;
  padding: 0.75rem 1.2rem;
  border-radius: 4px;
  z-index: 50;
  opacity: 0;
  transition: transform 0.25s, opacity 0.25s;
  pointer-events: none;
  max-width: min(90vw, 26rem);
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
