/* ============================================================
   Tokens
   Blue is reserved for Telegram actions only — anywhere a visitor
   sees blue, tapping it takes them to the channel.
   ============================================================ */
:root {
  --bg: #12080a;          /* wine-black */
  --surface: #1c0c0f;
  --line: #34181d;
  --red: #e11d2e;         /* sampled from the hero backdrop */
  --ivory: #f4ece4;
  --muted: #a8938f;

  --tg: #2aabee;          /* Telegram blue — CTAs only */
  --tg-press: #1c93d4;
  --tg-ink: #04121c;

  --tg-dark: #17212b;     /* Telegram dark-theme chrome */
  --tg-bubble: #182533;
  --tg-meta: #7f91a4;

  --f-display: "Archivo", "Arial Narrow", sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 20px;
  --maxw: 1160px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .85em; }

:focus-visible { outline: 2px solid var(--tg); outline-offset: 3px; border-radius: 6px; }

/* ============================================================
   Type
   ============================================================ */
.display {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 62;
  font-weight: 900;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: -.005em;
  font-size: clamp(3.4rem, 15vw, 7.75rem);
}
.accent { color: var(--red); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .9375rem; color: var(--ivory);
  margin-bottom: 14px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--red); }
.h2 {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 72;
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: .98;
  text-transform: uppercase;
  margin-bottom: 14px;
  max-width: 18ch;
}
.h3 {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 80;
  font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.sub { color: var(--muted); max-width: 52ch; }
.fine { font-size: .8125rem; color: var(--muted); margin-top: 16px; }
.lead { font-size: 1.125rem; color: #e2d6cd; max-width: 40ch; }
.lead strong { color: var(--ivory); font-weight: 600; }

/* ============================================================
   Buttons
   ============================================================ */
.btn-tg {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--tg);
  color: var(--tg-ink);
  font: 600 1rem/1 var(--f-body);
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 999px;
  transition: background-color .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-tg:hover { background: #47b9f2; }
.btn-tg:active { background: var(--tg-press); transform: scale(.98); }
.btn-lg { font-size: 1.0625rem; padding: 18px 26px; width: 100%; max-width: 420px; }
.btn-sm { font-size: .875rem; padding: 9px 14px; gap: 7px; }
.tg-icon { width: 1.25em; height: 1.25em; flex: none; }

.btn-ghost {
  display: inline-block; text-align: center;
  padding: 14px 22px;
  border: 1.5px solid var(--ivory);
  border-radius: 999px;
  font-weight: 600; text-decoration: none;
  transition: background-color .15s, color .15s;
  white-space: nowrap;
}
.btn-ghost:hover { background: var(--ivory); color: var(--bg); }

.cta-row { margin-top: 32px; display: flex; justify-content: center; }

/* ============================================================
   Layout
   ============================================================ */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.section { padding: 80px 0; border-top: 1px solid var(--line); }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter);
  padding-top: max(12px, env(safe-area-inset-top));
  background: linear-gradient(to bottom, rgba(18,8,10,.85), rgba(18,8,10,0));
  transition: background-color .2s;
}
.topbar.solid { background: rgba(18,8,10,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.wordmark {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 62;
  font-weight: 900; font-size: 1.5rem;
  text-transform: uppercase; text-decoration: none; letter-spacing: .01em;
}

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-photo {
  position: relative;
  height: min(62vh, 520px);
  overflow: hidden;
  background: #8b0410;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 18%;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(18,8,10,0) 45%, var(--bg) 100%);
}
.hero-copy {
  position: relative;
  margin-top: -120px;
  padding: 0 var(--gutter) 56px;
}
.hero-copy .display { margin-bottom: 20px; }

/* ---------- Channel card (signature) ---------- */
.channel-card {
  background: var(--tg-dark);
  border-radius: 20px;
  padding: 16px;
  max-width: 420px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04);
  margin-top: 28px;
}
.cc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cc-avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; object-fit: cover; }
.cc-name { font-weight: 600; margin: 0; line-height: 1.2; }
.cc-meta { margin: 0; font-size: .8125rem; color: var(--tg-meta); }
.cc-bubble {
  position: relative;
  background: var(--tg-bubble);
  border-radius: 14px 14px 14px 4px;
  padding: 10px 52px 10px 13px;
  font-size: .9375rem; line-height: 1.45;
  color: #e8eef4;
}
.cc-time { position: absolute; right: 10px; bottom: 7px; font-size: .6875rem; color: var(--tg-meta); }
.cc-typing {
  display: inline-flex; gap: 4px;
  background: var(--tg-bubble);
  border-radius: 14px 14px 14px 4px;
  padding: 11px 13px; margin: 8px 0 0;
}
.cc-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--tg-meta);
  animation: typing 1.2s infinite ease-in-out;
}
.cc-typing span:nth-child(2) { animation-delay: .15s; }
.cc-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.channel-card .btn-lg { margin-top: 16px; max-width: none; }
.cc-micro { margin: 10px 0 0; text-align: center; font-size: .75rem; color: var(--tg-meta); }

/* ---------- Video ---------- */
.video-section .wrap { text-align: center; }
.video-section .h2, .video-section .sub { margin-left: auto; margin-right: auto; }
.video {
  position: relative; margin-top: 32px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface) center / cover no-repeat;
  border: 1px solid var(--line);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,.35), rgba(0,0,0,0)); border: 0; cursor: pointer;
  display: none;
}
.video.has-video .video-play { display: block; }
.video.has-video .video-empty { display: none; }
.video-play-icon {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 76px; height: 54px; border-radius: 16px; background: var(--red);
  transition: transform .15s;
}
.video-play-icon::after {
  content: ""; position: absolute; left: 31px; top: 16px;
  border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff;
}
.video-play:hover .video-play-icon { transform: scale(1.06); }
.video-empty {
  position: absolute; inset: 0; margin: 0; display: grid; place-items: center; padding: 20px;
  color: var(--muted); font-size: .875rem;
  border: 1.5px dashed var(--line); border-radius: var(--radius);
}

/* ---------- Inside list ---------- */
.inside-list { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--line); }
.inside-list li {
  display: grid; gap: 6px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.inside-list h3 {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 62;
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.25rem, 10vw, 4.5rem); line-height: .95;
  transition: color .2s;
}
.inside-list li:hover h3 { color: var(--red); }
.inside-list p { margin: 0; color: var(--muted); max-width: 44ch; }

/* ---------- Story ---------- */
.story-grid { display: grid; gap: 32px; }
.story-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.story-copy p { color: #e2d6cd; max-width: 46ch; }
.story-copy .sign { font-style: italic; color: var(--muted); margin-bottom: 24px; }
.story-copy .sign::before { content: "— "; }

.versus { list-style: none; margin: 28px 0; padding: 0; border-top: 1px solid var(--line); }
.versus li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.versus s { color: var(--muted); text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.versus span { font-weight: 600; }
.versus span::before { content: "→ "; color: var(--red); }

/* ---------- Gallery ---------- */
.gallery { columns: 2; column-gap: 10px; margin-top: 28px; }
.gallery > * { break-inside: avoid; margin-bottom: 10px; }
.shot {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; background: var(--surface); cursor: zoom-in;
}
.shot img { width: 100%; height: auto; }
.shot-empty {
  display: grid; place-items: center; text-align: center;
  aspect-ratio: 9 / 14; padding: 12px;
  border: 1.5px dashed var(--line); border-radius: 10px;
  font-size: .75rem; color: var(--muted);
}

/* ---------- Broker ---------- */
.broker-box {
  display: grid; gap: 24px; align-items: center;
}
.broker-box > div p:not(.fine) { color: #e2d6cd; max-width: 52ch; }

/* ---------- FAQ ---------- */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 20px 36px 20px 0; position: relative;
  font-weight: 600; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%;
  font: 400 1.5rem/1 var(--f-body); color: var(--muted); transition: rotate .2s;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; max-width: 60ch; }

/* ---------- Final CTA ---------- */
.final { background: radial-gradient(120% 80% at 50% 100%, #3a0a11 0%, var(--bg) 70%); }
.final-grid { display: grid; gap: 8px; }
.final-title { font-size: clamp(3rem, 12vw, 5.75rem); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 120px; font-size: .8125rem; color: var(--muted); }
.footer-mark {
  font-family: var(--f-display); font-variation-settings: "wdth" 62; font-weight: 900;
  font-size: 1.75rem; text-transform: uppercase; color: var(--ivory); margin-bottom: 12px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 28px; }
.footer-links a { color: var(--ivory); text-underline-offset: 3px; }
.disclaimer { max-width: 80ch; line-height: 1.6; }
.disclaimer strong { color: var(--ivory); }
.copy { margin-top: 24px; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px var(--gutter) max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(18,8,10,.96) 60%, rgba(18,8,10,0));
  display: flex; justify-content: center;
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.show { transform: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh;
}
.lightbox::backdrop { background: rgba(8,3,4,.88); }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; }
.lightbox-close {
  position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--ivory); color: var(--bg); font-size: 1.75rem; line-height: 1; cursor: pointer;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Larger screens
   ============================================================ */
@media (max-width: 639px) {
  .hero .cc-typing { display: none; }
  .hero .channel-card { margin-top: 22px; }
}

@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .gallery { columns: 3; }
}

@media (min-width: 960px) {
  .section { padding: 112px 0; }

  .hero {
    display: grid; grid-template-columns: 1.15fr .85fr;
    min-height: min(100vh, 960px);
    align-items: center;
  }
  .hero-photo {
    order: 2; height: 100%; min-height: min(100vh, 960px); align-self: stretch;
    background: transparent;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%);
            mask-image: linear-gradient(to right, transparent 0%, #000 22%);
  }
  .hero-photo::after { background: linear-gradient(to bottom, rgba(18,8,10,0) 75%, var(--bg) 100%); }
  .hero-copy {
    order: 1; margin-top: 0;
    padding: 96px var(--gutter) 56px max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  }
  .hero-copy .display { font-size: clamp(4rem, 6.2vw, 6.5rem); margin-bottom: 18px; }
  .hero-copy .lead { max-width: 48ch; }
  .hero-copy .channel-card { margin-top: 22px; }

  .inside-list li { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 32px; }
  .story-grid { grid-template-columns: .8fr 1fr; gap: 72px; align-items: center; }
  .gallery { column-gap: 14px; }
  .gallery > * { margin-bottom: 14px; }
  .broker-box { grid-template-columns: 1fr auto; gap: 48px; }
  .final-grid { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 48px; }
  .final .channel-card { margin-top: 0; justify-self: end; width: 100%; }

  .sticky-cta { display: none; }
  .footer { padding-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Legal pages
   ============================================================ */
.back-link { font-size: .875rem; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--ivory); }
.legal { padding-top: 120px; padding-bottom: 64px; }
.legal h1 { max-width: none; margin-bottom: 28px; }
.legal h2 { font-size: 1.125rem; font-weight: 600; margin: 36px 0 10px; }
.legal p { color: #d8ccc4; }
.legal a { color: var(--tg); }
.legal-page .footer { padding-bottom: 48px; }
.legal .updated { font-size: .875rem; color: var(--muted); }
