/* ============================================
   ASFALT BUDGET INSTITUTE — стилизация
   Swiss editorial × futuristic fintech minimal
   ============================================ */

:root {
  --graphite: #0E0F12;
  --graphite-soft: #1A1C22;
  --graphite-line: #2A2D36;
  --warm-white: #F5F2EC;
  --warm-white-2: #ECE7DC;
  --silver: #B9B8B3;
  --silver-dim: #797873;
  --soft-blue: #88A6F0;
  --soft-blue-deep: #6C8FE3;
  --deep-navy: #11203A;
  --accent: #88A6F0;
  --accent-strong: #4F75D6;
  --success: #9FD1B2;
  --warn: #E8C277;
  --max: 1440px;

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-grotesk: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --shadow-soft: 0 30px 80px -40px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 10px 30px -15px rgba(0, 0, 0, 0.25);
  --radius-l: 28px;
  --radius-m: 18px;
  --radius-s: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--graphite);
  line-height: 1.55;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- LOADING SCREEN ---------- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--graphite);
  color: var(--warm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  font-family: var(--font-grotesk);
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader__inner { text-align: center; }
.loader__logo {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 96px);
  font-weight: 300;
  letter-spacing: -0.04em;
  font-style: italic;
}
.loader__bar {
  margin-top: 24px;
  height: 1px;
  width: 240px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}
.loader__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--soft-blue);
  transform-origin: left center;
  animation: loadbar 1.4s ease-out forwards;
}
@keyframes loadbar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.loader__caption {
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--silver);
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  padding: 22px 36px;
  background: rgba(245, 242, 236, 0.0);
  transition: background 0.35s ease, padding 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(245, 242, 236, 0.86);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  padding: 14px 36px;
  border-color: rgba(14, 15, 18, 0.08);
}
.header__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--soft-blue) 0%, var(--deep-navy) 70%);
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 60%, rgba(255,255,255,0.18), transparent 50%);
}
.brand__name { line-height: 1; }
.brand__name b { font-weight: 600; font-style: italic; }
.brand__sub {
  display: block;
  font-size: 10px;
  font-family: var(--font-grotesk);
  letter-spacing: 0.3em;
  color: var(--silver-dim);
  text-transform: uppercase;
  margin-top: 4px;
}
.nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-family: var(--font-grotesk);
  font-size: 13.5px;
  letter-spacing: 0.02em;
}
.nav a {
  position: relative;
  padding: 6px 2px;
  color: var(--graphite);
  opacity: 0.78;
  transition: opacity 0.2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: var(--graphite);
  transition: width 0.3s ease;
}
.nav a:hover, .nav a.is-active { opacity: 1; }
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
.header__cta {
  font-family: var(--font-grotesk);
  font-size: 13px;
  padding: 12px 22px;
  background: var(--graphite);
  color: var(--warm-white);
  border-radius: 999px;
  border: 1px solid var(--graphite);
  transition: transform 0.25s ease, background 0.25s ease;
  letter-spacing: 0.02em;
}
.header__cta:hover { transform: translateY(-2px); background: var(--deep-navy); }
.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--graphite);
  border-radius: 50%;
  background: transparent;
  position: relative;
}
.burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1px;
  background: var(--graphite);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 27px; }
.burger.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--graphite);
  color: var(--warm-white);
  z-index: 8500;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(.7,.1,.2,1);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 64px);
  font-weight: 300;
  letter-spacing: -0.03em;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: block;
  color: var(--warm-white);
}

/* ---------- CONTAINERS ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 36px; }
.wrap-narrow { max-width: 1100px; margin: 0 auto; padding: 0 36px; }
section { position: relative; }

/* ---------- TYPOGRAPHY ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-grotesk);
  font-size: 11.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--silver-dim);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--graphite);
  opacity: 0.6;
}
.eyebrow--inverse { color: rgba(255,255,255,0.6); }
.eyebrow--inverse::before { background: rgba(255,255,255,0.4); }

.h-display {
  font-family: var(--font-display);
  font-size: clamp(46px, 8vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 300;
  margin: 0;
}
.h-display i { font-style: italic; font-weight: 300; color: var(--silver-dim); }
.h-2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 300;
  margin: 0 0 28px;
}
.h-2 em { font-style: italic; color: var(--accent-strong); font-weight: 400; }
.h-3 {
  font-family: var(--font-grotesk);
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0 0 16px;
}
.lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--graphite);
  max-width: 60ch;
  margin: 0;
}
.lead--inverse { color: rgba(255,255,255,0.78); }
.text-muted { color: var(--silver-dim); }
.text-mono { font-family: var(--font-mono); letter-spacing: 0; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-family: var(--font-grotesk);
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn--dark { background: var(--graphite); color: var(--warm-white); }
.btn--dark:hover { transform: translateY(-2px); background: var(--deep-navy); }
.btn--ghost { background: transparent; color: var(--graphite); border-color: var(--graphite); }
.btn--ghost:hover { background: var(--graphite); color: var(--warm-white); }
.btn--ghost-light { background: transparent; color: var(--warm-white); border-color: rgba(255,255,255,0.3); }
.btn--ghost-light:hover { background: var(--warm-white); color: var(--graphite); }
.btn__arrow {
  width: 18px; height: 18px;
  display: inline-block;
  position: relative;
  transition: transform 0.25s ease;
}
.btn__arrow::before {
  content: "→";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- HERO ---------- */
.hero {
  padding: 180px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero__bg::before {
  content: "";
  position: absolute;
  width: 580px; height: 580px;
  top: -180px; right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(136,166,240,0.55), transparent 60%);
  filter: blur(80px);
}
.hero__bg::after {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  bottom: -120px; left: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 70%, rgba(17,32,58,0.35), transparent 65%);
  filter: blur(70px);
}
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}
.hero__title { max-width: 9ch; }
.hero__meta {
  display: grid;
  gap: 28px;
}
.hero__lead { max-width: 44ch; }
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.hero__stat {
  border-top: 1px solid var(--graphite);
  padding-top: 14px;
}
.hero__stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
}
.hero__stat span {
  font-family: var(--font-grotesk);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-dim);
  margin-top: 6px;
  display: block;
}
.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.hero__scroll-cue {
  position: absolute;
  bottom: 40px; left: 36px;
  font-family: var(--font-grotesk);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--silver-dim);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__scroll-cue::before {
  content: "";
  width: 1px;
  height: 36px;
  background: var(--graphite);
  animation: scrollcue 1.6s ease-in-out infinite;
  transform-origin: top center;
}
@keyframes scrollcue {
  0%, 100% { transform: scaleY(0.2); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- BENTO ---------- */
.bento {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(160px, auto);
}
.bento__cell {
  background: var(--warm-white-2);
  border-radius: var(--radius-l);
  padding: 28px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(14,15,18,0.05);
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s ease;
}
.bento__cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.bento__cell--dark { background: var(--graphite); color: var(--warm-white); border-color: rgba(255,255,255,0.06); }
.bento__cell--accent { background: linear-gradient(135deg, var(--soft-blue) 0%, var(--accent-strong) 100%); color: white; }
.bento__cell h4 {
  font-family: var(--font-grotesk);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 14px;
  opacity: 0.7;
}
.bento__cell p {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.15;
  margin: 0;
  font-weight: 300;
}
.bento__cell .big-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 300;
}

.bento__cell--span-6 { grid-column: span 6; }
.bento__cell--span-4 { grid-column: span 4; }
.bento__cell--span-3 { grid-column: span 3; }
.bento__cell--span-8 { grid-column: span 8; }
.bento__cell--row-2 { grid-row: span 2; }

/* ---------- SECTION GENERAL ---------- */
.section {
  padding: 120px 0;
  position: relative;
}
.section--tight { padding: 80px 0; }
.section--dark {
  background: var(--graphite);
  color: var(--warm-white);
}
.section--dark .eyebrow { color: rgba(255,255,255,0.6); }
.section--dark .eyebrow::before { background: rgba(255,255,255,0.4); }
.section--dark .h-2 em { color: var(--accent); }
.section--dark .text-muted { color: rgba(255,255,255,0.6); }

.section__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 64px;
}
.section__head p { max-width: 50ch; }

/* ---------- COUNTERS ---------- */
.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--graphite-line);
  border-bottom: 1px solid var(--graphite-line);
}
.counter {
  padding: 40px 26px;
  border-right: 1px solid var(--graphite-line);
  position: relative;
}
.counter:last-child { border-right: none; }
.counter__num {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 82px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 300;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.counter__num span { font-size: 0.5em; opacity: 0.6; }
.counter__lbl {
  margin-top: 14px;
  font-family: var(--font-grotesk);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-dim);
}

/* ---------- CARDS / ARTICLES ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  position: relative;
  background: var(--warm-white-2);
  border-radius: var(--radius-l);
  padding: 36px;
  border: 1px solid rgba(14,15,18,0.05);
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s ease;
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--silver-dim);
}
.card__title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.15;
  margin: 22px 0 14px;
  font-weight: 400;
}
.card__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--graphite);
  opacity: 0.85;
}
.card__more {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-grotesk);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.card__more::after { content: "→"; transition: transform 0.25s ease; }
.card:hover .card__more::after { transform: translateX(4px); }

/* article cards with chip */
.chip {
  display: inline-flex;
  padding: 6px 12px;
  background: rgba(14,15,18,0.06);
  border-radius: 999px;
  font-family: var(--font-grotesk);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
}

/* ---------- ACCORDION ---------- */
.accordion { border-top: 1px solid var(--graphite-line); }
.acc-item {
  border-bottom: 1px solid var(--graphite-line);
}
.acc-item__head {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 28px 0;
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  align-items: center;
  gap: 24px;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--graphite);
  cursor: pointer;
}
.acc-item__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--silver-dim);
}
.acc-item__icn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--graphite);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  flex-shrink: 0;
  justify-self: end;
  transition: background 0.25s ease, color 0.25s ease, transform 0.4s ease;
}
.acc-item__icn::before, .acc-item__icn::after {
  content: ""; position: absolute;
  background: var(--graphite);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.acc-item__icn::before { width: 12px; height: 1px; }
.acc-item__icn::after { width: 1px; height: 12px; }
.acc-item.is-open .acc-item__icn { background: var(--graphite); transform: rotate(180deg); }
.acc-item.is-open .acc-item__icn::before { background: var(--warm-white); }
.acc-item.is-open .acc-item__icn::after { opacity: 0; }
.acc-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(.2,.7,.2,1);
}
.acc-item__body-inner {
  padding: 0 0 32px 84px;
  color: var(--graphite);
  font-size: 16px;
  line-height: 1.6;
  max-width: 70ch;
}
.acc-item.is-open .acc-item__body { max-height: 500px; }

/* ---------- TIMELINE ---------- */
.timeline {
  position: relative;
  padding: 40px 0;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 60px; bottom: 60px;
  left: 24px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--graphite-line));
}
.tl-item {
  position: relative;
  padding: 24px 0 24px 80px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: 19px; top: 38px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(136,166,240,0.18);
}
.tl-item__year {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  font-style: italic;
  color: var(--accent-strong);
  line-height: 1;
}
.tl-item__title {
  font-family: var(--font-grotesk);
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 10px;
}
.tl-item__text {
  color: var(--graphite-soft);
  opacity: 0.85;
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- HORIZONTAL SCROLL ---------- */
.h-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 36px 28px;
  margin: 0 -36px;
  scrollbar-width: thin;
}
.h-scroll::-webkit-scrollbar { height: 6px; }
.h-scroll::-webkit-scrollbar-thumb { background: rgba(14,15,18,0.2); border-radius: 6px; }
.h-scroll__item {
  flex: 0 0 360px;
  scroll-snap-align: start;
  background: var(--warm-white-2);
  border-radius: var(--radius-l);
  padding: 32px;
  border: 1px solid rgba(14,15,18,0.05);
}
.h-scroll__item.is-dark { background: var(--graphite); color: var(--warm-white); }

/* ---------- TABLE ---------- */
.table-wrap {
  border: 1px solid var(--graphite-line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.tbl th, .tbl td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--graphite-line);
}
.tbl th {
  font-family: var(--font-grotesk);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-dim);
  background: var(--warm-white-2);
  font-weight: 500;
}
.tbl tr:last-child td { border-bottom: none; }
.tbl td:first-child { font-weight: 500; }

/* ---------- QUOTE SLIDER ---------- */
.qs {
  position: relative;
  padding: 80px 0;
  background: var(--graphite);
  color: var(--warm-white);
  overflow: hidden;
  border-radius: var(--radius-l);
}
.qs__track {
  display: flex;
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.qs__slide {
  min-width: 100%;
  padding: 0 8vw;
  text-align: center;
}
.qs__quote {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.25;
  font-weight: 300;
  font-style: italic;
  max-width: 50ch;
  margin: 0 auto 28px;
}
.qs__author {
  font-family: var(--font-grotesk);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.qs__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}
.qs__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background 0.25s ease, transform 0.25s ease;
  border: none;
}
.qs__dot.is-active { background: var(--accent); transform: scale(1.4); }

/* ---------- STORY BLOCKS ---------- */
.story {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.story__sticky {
  position: sticky;
  top: 120px;
}
.story__sticky h2 { margin-bottom: 18px; }
.story__items > div {
  padding: 50px 0;
  border-top: 1px solid var(--graphite-line);
}
.story__items > div:last-child { border-bottom: 1px solid var(--graphite-line); }
.story__items h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.story__items p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--graphite-soft);
  opacity: 0.9;
  margin: 0 0 10px;
  max-width: 50ch;
}

/* ---------- SPLIT ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
}
.split__panel {
  padding: 60px 56px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.split__panel--light { background: var(--warm-white-2); }
.split__panel--dark { background: var(--graphite); color: var(--warm-white); }
.split__panel--accent { background: linear-gradient(135deg, var(--soft-blue), var(--accent-strong)); color: white; }

/* ---------- CTA ---------- */
.cta {
  background: var(--graphite);
  color: var(--warm-white);
  border-radius: var(--radius-l);
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(136,166,240,0.35), transparent 60%);
  top: -260px; right: -160px;
  filter: blur(60px);
}
.cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
}
.cta h2 { margin-bottom: 14px; }

/* ---------- INFO BAR ---------- */
.marquee {
  background: var(--graphite);
  color: var(--warm-white);
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid var(--graphite-line);
  border-bottom: 1px solid var(--graphite-line);
}
.marquee__track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.01em;
  animation: marquee 36s linear infinite;
  width: max-content;
}
.marquee__track i { color: var(--accent); font-style: italic; margin: 0 18px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--graphite);
  color: var(--warm-white);
  padding: 100px 0 40px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand .brand__name { color: var(--warm-white); }
.footer__brand p {
  margin: 20px 0 0;
  max-width: 40ch;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}
.footer__col h5 {
  font-family: var(--font-grotesk);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer__col a {
  font-size: 14.5px;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s ease;
}
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-grotesk);
  letter-spacing: 0.04em;
  align-items: center;
}
.socials { display: flex; gap: 12px; }
.socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-white);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.socials a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- COOKIE ---------- */
.cookie {
  position: fixed;
  bottom: 24px; left: 24px; right: 24px;
  max-width: 540px;
  background: rgba(14,15,18,0.92);
  color: var(--warm-white);
  border-radius: var(--radius-m);
  padding: 22px 26px;
  z-index: 7000;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  backdrop-filter: blur(20px);
  transform: translateY(180%);
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
  border: 1px solid rgba(255,255,255,0.08);
}
.cookie.is-visible { transform: translateY(0); }
.cookie p { margin: 0; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,0.85); }
.cookie p b { color: var(--accent); font-weight: 600; }
.cookie__btn {
  padding: 12px 22px;
  background: var(--warm-white);
  color: var(--graphite);
  border-radius: 999px;
  border: none;
  font-family: var(--font-grotesk);
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 500;
  white-space: nowrap;
}

/* ---------- BACK TO TOP ---------- */
.totop {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--graphite);
  color: var(--warm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  border: none;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease;
  font-size: 18px;
}
.totop.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.totop:hover { background: var(--accent-strong); }

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 1;
  transform: translateY(32px);
  transition: transform 0.9s cubic-bezier(.2,.7,.2,1), opacity 0.6s ease;
}
.reveal.is-in { transform: translateY(0); }

/* magnetic */
.mag { transition: transform 0.3s cubic-bezier(.2,.7,.2,1); will-change: transform; }

/* ---------- PAGE HEAD ---------- */
.page-head {
  padding: 180px 0 80px;
  border-bottom: 1px solid var(--graphite-line);
  position: relative;
  overflow: hidden;
}
.page-head__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
}
.page-head h1 { margin: 16px 0 0; }
.page-head__meta {
  font-family: var(--font-grotesk);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--silver-dim);
  border-left: 1px solid var(--graphite);
  padding-left: 22px;
  display: grid;
  gap: 12px;
}
.page-head__meta b { color: var(--graphite); display: block; margin-bottom: 4px; font-weight: 500; }
.crumbs {
  font-family: var(--font-grotesk);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-dim);
  display: flex;
  gap: 10px;
  align-items: center;
}
.crumbs a:hover { color: var(--graphite); }
.crumbs span { opacity: 0.5; }

/* ---------- DASHBOARD MOCK ---------- */
.dash {
  background: var(--graphite);
  border-radius: var(--radius-l);
  padding: 36px;
  color: var(--warm-white);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  position: relative;
}
.dash__col h5 {
  font-family: var(--font-grotesk);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0 0 14px;
  font-weight: 500;
}
.dash__row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
  font-family: var(--font-grotesk);
  font-size: 14px;
}
.dash__row b { font-family: var(--font-display); font-size: 20px; font-weight: 400; }
.dash__bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  margin-top: 18px;
}
.dash__bar::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--accent), var(--success));
  width: var(--w, 60%);
  border-radius: 4px;
}
.dash__chart {
  position: relative;
  height: 240px;
}
.dash__chart svg { width: 100%; height: 100%; }

/* ---------- FORMS ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 8px; }
.form label {
  font-family: var(--font-grotesk);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-dim);
}
.form input, .form textarea, .form select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--graphite-line);
  padding: 14px 0;
  font: inherit;
  color: var(--graphite);
  width: 100%;
}
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--graphite); }
.form textarea { resize: vertical; min-height: 120px; }
.form .btn { justify-self: start; margin-top: 10px; }

/* ---------- HABIT GRID ---------- */
.habits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--graphite-line);
}
.habit {
  padding: 36px 28px;
  border-right: 1px solid var(--graphite-line);
  border-bottom: 1px solid var(--graphite-line);
  position: relative;
  transition: background 0.25s ease, color 0.25s ease;
}
.habit:hover { background: var(--graphite); color: var(--warm-white); }
.habit:nth-child(4n) { border-right: none; }
.habit__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--silver-dim);
}
.habit:hover .habit__num { color: rgba(255,255,255,0.6); }
.habit__icn {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--warm-white-2);
  display: flex; align-items: center; justify-content: center;
  margin: 18px 0;
  color: var(--graphite);
  transition: background 0.25s ease, color 0.25s ease;
}
.habit:hover .habit__icn { background: var(--accent); color: white; }
.habit__icn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.habit h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 10px;
  line-height: 1.2;
}
.habit p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--silver-dim);
  margin: 0;
}
.habit:hover p { color: rgba(255,255,255,0.75); }

/* ---------- CONTACTS ---------- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.contact-card {
  background: var(--warm-white-2);
  border-radius: var(--radius-l);
  padding: 36px;
}
.contact-card h4 {
  font-family: var(--font-grotesk);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-dim);
  font-weight: 500;
  margin: 0 0 14px;
}
.contact-card p {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin: 0;
  line-height: 1.3;
}
.contact-card + .contact-card { margin-top: 18px; }

.map-wrap {
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--graphite-line);
  height: 100%;
  min-height: 460px;
  position: relative;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; filter: grayscale(0.2); }

/* ---------- BIG WORD ---------- */
.bigword {
  font-family: var(--font-display);
  font-size: clamp(80px, 18vw, 280px);
  line-height: 0.86;
  letter-spacing: -0.05em;
  font-weight: 300;
  color: var(--graphite);
  text-align: center;
  margin: 0;
  white-space: nowrap;
}
.bigword i { font-style: italic; color: var(--accent-strong); }

/* ---------- MEDIA QUERIES ---------- */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .section__head { grid-template-columns: 1fr; gap: 24px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .bento__cell--span-6, .bento__cell--span-8, .bento__cell--span-4 { grid-column: span 12; }
  .bento__cell--span-3 { grid-column: span 6; }
  .counters { grid-template-columns: repeat(2, 1fr); }
  .counter:nth-child(2n) { border-right: none; }
  .story { grid-template-columns: 1fr; }
  .story__sticky { position: relative; top: 0; }
  .split { grid-template-columns: 1fr; }
  .cta__inner { grid-template-columns: 1fr; }
  .habits { grid-template-columns: repeat(2, 1fr); }
  .habit:nth-child(4n) { border-right: 1px solid var(--graphite-line); }
  .habit:nth-child(2n) { border-right: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .page-head__inner { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .header { padding: 16px 20px; }
  .header.is-stuck { padding: 12px 20px; }
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .wrap, .wrap-narrow { padding: 0 20px; }
  .hero { padding: 140px 0 80px; }
  .section { padding: 80px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .bento__cell--span-3 { grid-column: span 12; }
  .counters { grid-template-columns: 1fr; }
  .counter { border-right: none; border-bottom: 1px solid var(--graphite-line); }
  .counter:last-child { border-bottom: none; }
  .habits { grid-template-columns: 1fr; }
  .habit { border-right: none !important; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { grid-template-columns: 1fr; text-align: center; }
  .socials { justify-self: center; }
  .cta { padding: 50px 30px; }
  .tl-item { grid-template-columns: 1fr; gap: 14px; padding-left: 56px; }
  .h-scroll__item { flex: 0 0 280px; }
  .split__panel { padding: 40px 26px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; grid-template-columns: 1fr; }
}
