/* ============================================================
   Longevity Club 100+ — Landing page
   Design tokens from README (program overview)
   ============================================================ */

:root {
  --bg: #F1ECE1;
  --bg-2: #EAE3D3;
  --ink: #1E2420;
  --ink-2: #4A5148;
  --line: #C9BFA9;
  --line-2: #B8AC93;
  --p-cell: #8A5A3B;
  --p-energy: #B8823A;
  --p-move: #3E6B4E;
  --p-balance: #4A5E7A;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --wrap: 1080px;
  --gutter: 24px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(40px, 8vw, 88px); line-height: 0.98; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 5.2vw, 56px); margin-bottom: 28px; }
h2 sup, .nav-brand sup, .footer-colophon sup { font-size: 0.5em; }

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--p-cell);
  margin-bottom: 18px;
}

.prose p { max-width: 720px; margin-bottom: 18px; color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }
.prose a.text-link {
  color: var(--p-cell);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a.text-link:hover,
.prose a.text-link:focus-visible {
  color: var(--ink);
}

.ingress {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 640px;
  margin-bottom: 40px;
}

.summary-line {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.35;
  color: var(--ink);
  max-width: 720px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 16px 34px;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover, .btn:focus-visible {
  background: transparent;
  color: var(--ink);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- Header / banner / nav ---------- */
/* Баннер на всю ширину экрана, как hero — картинка целиком, без обрезки. */
.brand-banner {
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.brand-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover, .nav-links a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.nav-links .nav-cta {
  color: var(--p-cell);
  border-bottom-color: var(--p-cell);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-media img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%; /* лица группы остаются в кадре при обрезке */
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 36, 32, 0.72) 0%,
    rgba(30, 36, 32, 0.28) 45%,
    rgba(30, 36, 32, 0.05) 100%
  );
}
.hero-inner {
  position: relative;
  max-width: var(--wrap);
  width: 100%;
  margin: 0 auto;
  padding: 120px var(--gutter) 72px;
  color: #F5F1E8;
}
.hero-inner .kicker { color: #E4C98F; }
.hero-inner h1 {
  color: #F5F1E8;
  max-width: 13ch;
  margin-bottom: 24px;
}
.hero-sub {
  max-width: 520px;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(245, 241, 232, 0.88);
  margin-bottom: 36px;
}
.hero-inner .btn {
  background: #F5F1E8;
  border-color: #F5F1E8;
  color: var(--ink);
}
.hero-inner .btn:hover, .hero-inner .btn:focus-visible {
  background: transparent;
  color: #F5F1E8;
}
.hero-note {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.72);
  max-width: 480px;
}

/* ---------- Sections ---------- */
.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}
.section-alt { background: var(--bg-2); }

/* ---------- Blockquote ---------- */
blockquote {
  margin-top: 48px;
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
  max-width: 720px;
}
blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
  color: var(--p-move);
}

/* ---------- Link list (samband / ingår) ---------- */
.link-list {
  list-style: none;
  max-width: 720px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.link-list li {
  padding: 16px 0 16px 34px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  color: var(--ink);
  position: relative;
}
.link-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 26px;
  width: 8px;
  height: 8px;
  background: var(--p-move);
}

/* ---------- Hinder cards ---------- */
.hinder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 40px;
}
.hinder-card {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--line);
  padding: 24px 26px;
}
.hinder-card h3 {
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hinder-card p:last-child { color: var(--ink-2); font-size: 15.5px; }
.hinder-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.hinder-label--solution {
  color: var(--p-move);
  padding-top: 16px;
  border-top: 1px dashed var(--line-2);
}

/* ---------- Disclaimer ---------- */
.disclaimer {
  margin-top: 44px;
  max-width: 720px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--line);
  border-left: 3px solid var(--p-cell);
  padding: 24px 26px;
}
.disclaimer p:last-child { font-size: 15px; color: var(--ink-2); }
.disclaimer-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--p-cell);
  margin-bottom: 10px;
}

/* Картинка на всю ширину колонки; высота стабильная, чтобы параллакс не дёргал вёрстку */
.forskning-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.forskning-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 1280 / 720;
}
.forskning-media img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------- Pillars section ---------- */
.pillars-section {
  position: relative;
  overflow: hidden;
}
.pillars-bg {
  position: absolute;
  inset: 0;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.pillars-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.10;
}
.pillars-section .wrap { position: relative; }

.pillars-photo {
  position: relative;
  margin: 0 0 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  /* Новое фото 1280×853 — рамка той же формы, без лишней обрезки */
  aspect-ratio: 1280 / 853;
}
.pillars-photo img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.pillar-card {
  position: relative;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
  border-top: 3px solid var(--pillar);
  padding: 24px 26px;
}
.pillar-card h3 {
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 14px;
  padding-right: 34px;
}
.pillar-card h3 em { font-style: italic; font-weight: 500; color: var(--pillar); }
.pillar-card p { font-size: 15px; color: var(--ink-2); }
.pillar-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--pillar);
  margin-right: 12px;
}
.pillar-code {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-2);
}

/* ---------- Theme grid ---------- */
.theme-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 40px;
}
.theme-card {
  position: relative;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-left: 3px solid var(--pillar);
  padding: 18px 20px 18px 22px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.theme-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
}
.theme-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--pillar);
  flex: none;
}
.theme-card h3 {
  font-size: 19px;
  line-height: 1.2;
  text-wrap: pretty;
}
.theme-card--upcoming {
  background: transparent;
  border: 1px dashed var(--line-2);
  border-left: 3px solid var(--pillar);
}
.theme-card--upcoming .theme-num { color: var(--ink-2); }
.theme-card--upcoming h3 {
  font-style: italic;
  font-weight: 400;
  color: var(--ink-2);
}

/* ---------- Club plan figure ---------- */
.club-plan {
  margin-top: 16px;
  max-width: 640px;
}
.club-plan img {
  border: 1px solid var(--line);
  width: 100%;
  height: auto;
}
.club-plan figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-top: 14px;
}

/* ---------- Cadence strip ---------- */
.cadence {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
  margin-top: 40px;
}
.cadence-cell {
  padding: 28px 26px;
  border-bottom: 1px solid var(--line);
}
.cadence-cell:last-child { border-bottom: 0; }
.cadence-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-size: 17px;
  line-height: 1;
  margin-bottom: 18px;
  color: var(--ink);
}
.cadence-cell h3 { font-size: 21px; margin-bottom: 8px; }
.cadence-cell p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- Split (gemenskap) ---------- */
#gemenskap {
  position: relative;
  overflow: hidden;
}
.gemenskap-bg {
  position: absolute;
  inset: 0;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.gemenskap-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.10;
}
#gemenskap .wrap { position: relative; }

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.formula {
  margin-top: 36px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--p-move);
  background: rgba(255, 255, 255, 0.35);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 21px;
  line-height: 1.35;
  color: var(--ink);
}
.split-media {
  position: relative;
  height: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  /* Новое webinar.jpg 1280×683 — не старая рамка 1536×1024 */
  aspect-ratio: 1280 / 683;
}
.split-media img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------- Price block ---------- */
.price-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  margin: 8px 0 48px;
}
.price-main, .price-regular, .price-trial {
  padding: 32px 30px;
  border-bottom: 1px solid var(--line);
}
.price-trial { border-bottom: 0; }
.price-amount {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(52px, 8vw, 76px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--p-cell);
  margin-bottom: 10px;
}
.price-amount--small {
  font-size: clamp(34px, 5vw, 48px);
  color: var(--ink-2);
}
.price-note { font-size: 15px; color: var(--ink-2); max-width: 420px; }
.price-trial p { font-size: 15.5px; color: var(--ink-2); max-width: 560px; }
.price-trial strong { font-weight: 600; color: var(--ink); }

.includes-title {
  font-size: 26px;
  margin-bottom: 4px;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  max-width: 760px;
  border-top: 1px solid var(--line);
}
.step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 64px;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--p-move);
  flex: none;
  width: 64px;
}
.step h3 { font-size: 26px; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 16px; max-width: 560px; }

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.final-cta-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.final-cta-bg img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.final-cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30, 36, 32, 0.68) 0%,
    rgba(30, 36, 32, 0.55) 100%
  );
}
.final-cta-inner {
  position: relative;
  padding-top: 120px;
  padding-bottom: 120px;
  text-align: left;
}
.final-cta-inner h2 {
  color: #F5F1E8;
  max-width: 16ch;
}
.final-cta-text {
  font-size: 19px;
  color: rgba(245, 241, 232, 0.9);
  max-width: 520px;
  margin-bottom: 32px;
}
.final-cta-lead {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(245, 241, 232, 0.75);
  margin-bottom: 22px;
}
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.final-cta-phone {
  margin-top: 22px;
  font-size: 16px;
  color: rgba(245, 241, 232, 0.82);
}
.final-cta .btn {
  background: #F5F1E8;
  border-color: #F5F1E8;
  color: var(--ink);
}
.final-cta .btn:hover, .final-cta .btn:focus-visible {
  background: transparent;
  color: #F5F1E8;
}
.final-cta .btn-outline {
  background: transparent;
  color: #F5F1E8;
}
.final-cta .btn-outline:hover, .final-cta .btn-outline:focus-visible {
  background: #F5F1E8;
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 48px 0 56px;
  background: var(--bg);
}
.site-footer p {
  font-size: 13.5px;
  color: var(--ink-2);
  max-width: 640px;
  margin-bottom: 20px;
}
.footer-colophon {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: none;
}

/* Слой параллакса: двигаем DIV, не IMG — Chrome с object-fit иначе не показывает сдвиг */
.parallax-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Рамки фото не двигаем через reveal — иначе transform родителя глушит параллакс */
.forskning-media.reveal,
.pillars-photo.reveal,
.split-media.reveal {
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .parallax-layer { transform: none !important; }
}

/* Запас слоя, только когда JS включил параллакс и экран широкий */
@media (min-width: 768px) {
  html.parallax-on .parallax-layer {
    top: -20%;
    height: 140%;
  }
}

/* ---------- Mobil: целые фото, без обрезки по бокам ---------- */
@media (max-width: 767px) {
  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-media {
    position: relative;
    inset: auto;
  }
  .hero-media img {
    position: relative;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
  }
  .parallax-layer {
    position: static;
    height: auto;
    top: auto;
  }
  .hero-inner {
    position: relative;
    padding: 36px var(--gutter) 44px;
    background: #1E2420;
  }

  .forskning-media {
    aspect-ratio: auto;
    overflow: visible;
  }
  .forskning-media img {
    position: static;
    height: auto;
    object-fit: contain;
  }

  .pillars-photo {
    aspect-ratio: auto;
    overflow: visible;
  }
  .pillars-photo img {
    position: static;
    height: auto;
    object-fit: contain;
  }

  .split-media {
    height: auto;
    aspect-ratio: auto;
    overflow: visible;
  }
  .split-media img {
    position: static;
    height: auto;
    object-fit: contain;
  }

  .section { padding: 56px 0; }
  .nav-links a { letter-spacing: 0.08em; }
}

/* ---------- Responsive: tablet & desktop ---------- */
@media (min-width: 640px) {
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
  .cadence { grid-template-columns: repeat(2, 1fr); }
  .cadence-cell { border-right: 1px solid var(--line); }
  .cadence-cell:nth-child(2n) { border-right: 0; }
  .cadence-cell:nth-child(3) { border-bottom: 0; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  :root { --gutter: 40px; }
  .section { padding: 120px 0; }
  .hinder-grid { grid-template-columns: repeat(3, 1fr); }
  .theme-grid { grid-template-columns: repeat(3, 1fr); }
  .cadence { grid-template-columns: repeat(4, 1fr); }
  .cadence-cell { border-bottom: 0; }
  .cadence-cell:nth-child(2n) { border-right: 1px solid var(--line); }
  .cadence-cell:last-child { border-right: 0; }
  .split { grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
  .price-block { grid-template-columns: 1.2fr 1fr; }
  .price-main { border-right: 1px solid var(--line); }
  .price-regular { border-bottom: 1px solid var(--line); }
  .price-trial { grid-column: 1 / -1; border-top: 0; }
}

@media (min-width: 1240px) {
  .theme-grid { grid-template-columns: repeat(4, 1fr); }
}
