/* ============================================================
   E-Nusqa.uz — Qoraqalpog'iston raqamli arxivi
   Vintage archive aesthetic × modern UX
   ============================================================ */

:root {
  --cream:        #f6efe1;
  --cream-2:      #efe6d1;
  --paper:        #fbf7ec;
  --ink:          #1a1612;
  --ink-2:        #3a2e22;
  --muted:        #6b5b48;
  --line:         #d9caa8;
  --line-2:       #c8b687;
  --burgundy:     #5b2a2a;
  --burgundy-2:   #7a3636;
  --gold:         #c9a14a;
  --gold-2:       #a8842f;
  --forest:       #2f4a3a;
  --rust:         #b8593d;
  --shadow-sm:    0 1px 2px rgba(60, 40, 20, 0.08);
  --shadow:       0 8px 24px -8px rgba(60, 40, 20, 0.18);
  --shadow-lg:    0 24px 60px -20px rgba(60, 40, 20, 0.28);
  --radius:       14px;
  --radius-sm:    8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.kicker {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--burgundy);
}

.section-title {
  font-size: clamp(28px, 3.4vw, 44px);
  margin-top: 12px;
  letter-spacing: -0.015em;
}
.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 640px;
  margin-top: 12px;
  line-height: 1.6;
}

.section-head { text-align: center; margin: 0 auto 56px; max-width: 760px; }
.section-head--row {
  display: flex; justify-content: space-between; align-items: flex-end;
  text-align: left; max-width: none; gap: 24px; flex-wrap: wrap;
}

.link-more {
  font-weight: 600; color: var(--burgundy);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.link-more:hover { border-color: var(--burgundy); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 14.5px;
  cursor: pointer; border: 1px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.btn--primary:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-2);
}
.btn--ghost:hover { background: var(--ink); color: var(--cream); }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
}
.topbar__inner {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
}
.topbar__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,161,74,.18);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(201,161,74,.18); }
  50%      { box-shadow: 0 0 0 8px rgba(201,161,74,.05); }
}
.topbar__link {
  margin-left: auto;
  color: var(--gold);
  font-weight: 600;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(8px);
}
.header__inner {
  display: flex; align-items: center; gap: 32px;
  padding: 18px 0;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 22px; color: var(--ink);
}
.brand__mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand strong { font-weight: 800; }
.brand em { font-style: italic; color: var(--burgundy); font-weight: 400; }

.nav {
  display: flex; gap: 28px;
  font-size: 14.5px; font-weight: 500;
  margin-left: 16px;
}
.nav a {
  position: relative;
  padding: 8px 0;
  color: var(--ink-2);
  transition: color .2s;
}
.nav a:hover { color: var(--burgundy); }
.nav a::after {
  content: ""; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--burgundy);
  transition: width .2s;
}
.nav a:hover::after { width: 100%; }

.header__actions {
  display: flex; align-items: center; gap: 14px;
  margin-left: auto;
}
.lang {
  background: transparent; border: 1px solid var(--line);
  padding: 8px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  color: var(--muted); cursor: pointer;
  display: inline-flex; gap: 6px; align-items: center;
}
.lang__active { color: var(--ink); }
.lang:hover { border-color: var(--ink-2); }

.burger {
  display: none;
  background: transparent; border: 0;
  width: 40px; height: 40px;
  flex-direction: column; gap: 5px; justify-content: center; align-items: center;
  cursor: pointer;
}
.burger span {
  width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--cream);
  padding: 88px 0 64px;
  overflow: hidden;
  isolation: isolate;
}
.hero__paper {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(201,161,74,.18), transparent 60%),
    radial-gradient(ellipse at 10% 90%, rgba(91,42,42,.12), transparent 60%),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 4px,
      rgba(58,46,34,.018) 4px,
      rgba(58,46,34,.018) 5px
    );
  z-index: -1;
}
.hero__overlay {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 40%, rgba(184,89,61,.06), transparent 25%),
    radial-gradient(circle at 90% 80%, rgba(47,74,58,.08), transparent 25%);
  z-index: -1;
}
.hero__inner { max-width: 920px; }
.hero__kicker {
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--burgundy);
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  display: inline-block;
  background: rgba(251,247,236,.6);
}
.hero__title {
  font-size: clamp(40px, 6.2vw, 80px);
  line-height: 1.04;
  margin-top: 24px;
  letter-spacing: -0.025em;
}
.hero__title span {
  font-style: italic;
  color: var(--burgundy);
  position: relative;
}
.hero__title span::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 4px;
  height: 8px;
  background: var(--gold);
  opacity: .35;
  z-index: -1;
  border-radius: 4px;
}
.hero__sub {
  font-size: 19px; line-height: 1.55;
  color: var(--ink-2);
  max-width: 640px;
  margin-top: 22px;
}

/* Search */
.search {
  margin-top: 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr auto;
  gap: 8px;
  box-shadow: var(--shadow);
  max-width: 920px;
}
.search__field {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: transparent;
  position: relative;
}
.search__field + .search__field { border-left: 1px solid var(--line); }
.search__field .ico {
  width: 18px; height: 18px; color: var(--muted); flex-shrink: 0;
}
.search__field input,
.search__field select {
  border: 0; background: transparent; outline: none;
  font: inherit; color: var(--ink); width: 100%;
  font-size: 15px;
  cursor: pointer;
}
.search__field input { cursor: text; }
.search__field input::placeholder { color: var(--muted); }
.search__field select { appearance: none; padding-right: 8px; }
.search__btn { padding: 14px 26px; }

.hero__tags {
  margin-top: 22px;
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center;
  font-size: 14px; color: var(--muted);
}
.hero__tags a {
  padding: 6px 14px; border-radius: 999px;
  background: rgba(251,247,236,.7);
  border: 1px solid var(--line);
  font-weight: 500;
  color: var(--ink-2);
  transition: all .2s;
}
.hero__tags a:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.hero__stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.hero__stats > div { display: flex; flex-direction: column; gap: 4px; }
.hero__stats strong {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero__stats span {
  font-size: 13px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.12em;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--ink);
  color: var(--cream);
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid var(--ink-2);
  border-bottom: 1px solid var(--ink-2);
}
.marquee__track {
  display: flex; gap: 36px; align-items: center;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-style: italic;
}
.marquee__track i {
  color: var(--gold);
  font-style: normal;
  font-size: 14px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   FEATURES
   ============================================================ */
.features { padding: 96px 0; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.feat {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  transition: background .25s;
}
.feat:hover { background: var(--cream); }
.feat__num {
  font-family: 'Playfair Display', serif;
  font-size: 14px; font-weight: 700;
  color: var(--burgundy);
  letter-spacing: 0.05em;
}
.feat h3 {
  font-size: 22px;
  margin: 14px 0 10px;
}
.feat p { color: var(--muted); font-size: 15px; }

/* ============================================================
   DOCS
   ============================================================ */
.docs { padding: 96px 0; background: var(--cream); }
.docs__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.doc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .25s;
  display: flex; flex-direction: column;
}
.doc:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-2);
}
.doc__cover {
  aspect-ratio: 4/5;
  position: relative;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  color: var(--cream);
  background-size: cover; background-position: center;
}
.doc__cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.55) 100%);
  z-index: 0;
}
.doc__cover > * { position: relative; z-index: 1; }

/* Newspaper / journal / document covers */
.doc__cover--1 { background-image: url('images/doc-folk.jpg'); }
.doc__cover--2 { background-image: url('images/doc-amudaryo.jpg'); }
.doc__cover--3 { background-image: url('images/doc-map1853.jpg'); }
.doc__cover--4 { background-image: url('images/doc-kyzylkala.jpg'); }

.doc__badge {
  background: rgba(255,255,255,.92);
  color: var(--ink);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
}
.doc__year {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  align-self: flex-end;
  line-height: 1;
  letter-spacing: -0.02em;
}
.doc h3 {
  font-size: 19px; padding: 18px 18px 6px;
}
.doc p {
  padding: 0 18px;
  font-size: 14px;
  color: var(--muted);
  flex-grow: 1;
}
.doc__meta {
  padding: 14px 18px 18px;
  font-size: 12.5px; color: var(--burgundy);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--line);
  margin-top: 14px;
}

/* ============================================================
   SAMPLE (newspaper preview)
   ============================================================ */
.sample { padding: 96px 0; }
.sample__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.sample__paper {
  background: #f3ead3;
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 6px;
  box-shadow:
    0 1px 2px rgba(0,0,0,.08),
    0 30px 60px -20px rgba(60,40,20,.25),
    inset 0 0 0 6px rgba(58,46,34,.04);
  position: relative;
  transform: rotate(-1deg);
  font-family: 'Playfair Display', serif;
  color: var(--ink);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(91,42,42,.015) 2px 3px);
}
.sample__paper::before,
.sample__paper::after {
  content: "";
  position: absolute;
  width: 60%; height: 14px;
  left: 20%;
  background: rgba(58,46,34,.06);
  filter: blur(10px);
  bottom: -8px;
  z-index: -1;
}
.sample__masthead {
  text-align: center;
  border-bottom: 3px double var(--ink-2);
  padding-bottom: 10px;
  margin-bottom: 18px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.sample__date, .sample__price {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.sample__title {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 800;
  letter-spacing: 0.08em;
}
.sample__cols {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  column-rule: 1px solid var(--line);
}
.sample__col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.sample__col p { margin-bottom: 10px; }
.sample__col p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  float: left;
  line-height: 0.9;
  padding: 4px 6px 0 0;
  color: var(--burgundy);
  font-weight: 800;
}
.sample__highlight {
  border-left: 3px solid var(--burgundy);
  padding: 8px 14px;
  background: rgba(91,42,42,.04);
  margin-top: 10px;
  font-style: italic;
}
.sample__highlight em { display: block; font-size: 14px; color: var(--ink); }
.sample__highlight span { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; font-style: normal; letter-spacing: 0.08em; }

.sample__ocr {
  position: absolute;
  bottom: -14px; right: 20px;
  background: var(--ink);
  color: var(--cream);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  display: inline-flex; align-items: center; gap: 8px;
  transform: rotate(1deg);
}
.sample__ocr .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,161,74,.25);
}

.steps {
  list-style: none;
  margin-top: 32px;
  display: flex; flex-direction: column; gap: 24px;
}
.steps li { display: flex; gap: 18px; }
.steps span {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--burgundy);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700;
  flex-shrink: 0;
}
.steps strong { font-size: 17px; display: block; font-family: 'Playfair Display', serif; }
.steps p { color: var(--muted); font-size: 14.5px; margin-top: 2px; }

/* ============================================================
   ARTICLES
   ============================================================ */
.articles { padding: 96px 0; background: var(--cream); }
.articles__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}
.art {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: all .25s;
  display: flex; flex-direction: column;
}
.art:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.art--lg { grid-row: span 2; }
.art--lg .art__img { aspect-ratio: 4/5; }
.art__img {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  position: relative;
}
.art__img--1 { background-image: url('images/art-berdaqmuseum.jpg'); }
.art__img--2 { background-image: url('images/art-schooners.jpg'); }
.art__img--3 { background-image: url('images/art-barges.jpg'); }
.art__img--4 { background-image: url('images/g-wallpaint.jpg'); }
.art__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.art__tag {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--burgundy);
}
.art h3 {
  font-size: 19px;
  line-height: 1.3;
}
.art--lg h3 { font-size: 26px; }
.art p { color: var(--muted); font-size: 14.5px; }
.art__meta {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: auto;
  padding-top: 8px;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { padding: 96px 0; }
.gallery__tabs {
  display: flex; gap: 8px; justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.tab {
  background: transparent;
  border: 1px solid var(--line);
  padding: 9px 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 13.5px; font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .2s;
}
.tab:hover { border-color: var(--ink-2); }
.tab.is-active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.g {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background-size: cover; background-position: center;
  transition: all .3s;
}
.g:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.g figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.75));
  color: var(--cream);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Gallery items — real images */
.g--1 {
  grid-column: span 2; grid-row: span 2;
  background-image: url('images/g-toprakala.jpg');
}
.g--2 { background-image: url('images/g-karazin.jpg'); }
.g--3 { background-image: url('images/g-aralwatershed.png'); }
.g--4 { background-image: url('images/g-folkart.jpg'); }
.g--5 { background-image: url('images/g-wallpaint.jpg'); }
.g--6 {
  grid-column: span 2;
  background-image: url('images/g-museum.jpg');
}
.g--7 { background-image: url('images/g-moynaq.jpg'); }
.g--8 { background-image: url('images/g-amumap.jpg'); }

/* ============================================================
   VIDEOS
   ============================================================ */
.videos { padding: 96px 0; background: var(--ink); color: var(--cream); }
.videos .kicker { color: var(--gold); }
.videos .kicker::before { background: var(--gold); }
.videos h2 { color: var(--cream); }
.videos .link-more { color: var(--gold); }
.videos .link-more:hover { border-color: var(--gold); }

.videos__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 20px;
}
.vid { display: flex; flex-direction: column; gap: 14px; transition: transform .25s; }
.vid:hover { transform: translateY(-4px); }
.vid--lg { grid-row: span 2; }
.vid__thumb {
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
}
.vid--lg .vid__thumb { aspect-ratio: 4/5; }
.vid__thumb--1 {
  background-image:
    linear-gradient(135deg, rgba(26,14,14,.55), rgba(26,14,14,.25)),
    url('images/doc-folk.jpg');
}
.vid__thumb--2 {
  background-image:
    linear-gradient(135deg, rgba(14,24,18,.55), rgba(14,24,18,.25)),
    url('images/vid-bridge.jpg');
}
.vid__thumb--3 {
  background-image:
    linear-gradient(135deg, rgba(28,20,8,.55), rgba(28,20,8,.25)),
    url('images/vid-kkmap.jpg');
}
.vid__thumb--4 {
  background-image:
    linear-gradient(135deg, rgba(26,14,10,.55), rgba(26,14,10,.25)),
    url('images/vid-cotton.jpg');
}
.vid__play {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(246,239,225,.95);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  padding-left: 5px;
  transition: transform .25s;
}
.vid--lg .vid__play { width: 84px; height: 84px; font-size: 28px; }
.vid:hover .vid__play { transform: scale(1.1); }
.vid__time {
  position: absolute;
  right: 12px; bottom: 12px;
  background: rgba(0,0,0,.7);
  color: var(--cream);
  font-size: 12px; font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
}
.vid h3 { color: var(--cream); font-size: 18px; }
.vid--lg h3 { font-size: 24px; }
.vid p { color: rgba(246,239,225,.7); font-size: 14px; }

/* ============================================================
   PEOPLE
   ============================================================ */
.people { padding: 96px 0; background: var(--cream); }
.people__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.person {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: all .25s;
}
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.person__photo {
  width: 110px; height: 110px;
  border-radius: 50%;
  margin: 0 auto 18px;
  border: 4px solid var(--cream);
  box-shadow: 0 0 0 1px var(--line-2);
  background-size: cover; background-position: center;
}
.person__photo--1 { background-image: url('images/berdaq.jpg'); }
.person__photo--2 { background-image: url('images/ajiniyoz.jpg'); }
.person__photo--3 { background-image: url('images/yusupov.jpg'); }
.person__photo--4 { background-image: url('images/savitsky.jpg'); }
.person h3 { font-size: 22px; margin-bottom: 4px; }
.person > span {
  font-size: 12.5px;
  color: var(--burgundy);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.person p {
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0 16px;
}
.person a {
  font-size: 13.5px; font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { padding: 96px 0; }
.tl {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.tl__line {
  position: absolute;
  top: 24px;
  left: 8.33%;
  right: 8.33%;
  height: 2px;
  background: var(--line);
}
.tl__item {
  text-align: center;
  position: relative;
  padding-top: 60px;
}
.tl__item::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--burgundy);
}
.tl__item span {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 8px;
}
.tl__item h4 {
  font-size: 16px;
  margin-bottom: 6px;
}
.tl__item p {
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   CTA
   ============================================================ */
.cta { padding: 96px 0; background: var(--ink); color: var(--cream); }
.cta__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.cta__text .kicker { color: var(--gold); }
.cta__text .kicker::before { background: var(--gold); }
.cta__text h2 {
  color: var(--cream);
  font-size: clamp(28px, 3.4vw, 44px);
  margin: 14px 0 18px;
}
.cta__text > p {
  color: rgba(246,239,225,.75);
  font-size: 17px;
  max-width: 480px;
}
.cta__btns { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.cta__btns .btn--primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.cta__btns .btn--primary:hover {
  background: var(--cream); border-color: var(--cream);
}
.cta__btns .btn--ghost {
  color: var(--cream);
  border-color: rgba(246,239,225,.4);
}
.cta__btns .btn--ghost:hover {
  background: var(--cream); color: var(--ink);
}

.cta__form {
  background: var(--paper);
  color: var(--ink);
  padding: 32px;
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 14px;
}
.cta__form h3 { font-size: 22px; margin-bottom: 4px; }
.cta__form label {
  display: flex; flex-direction: column; gap: 6px;
}
.cta__form span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.cta__form input,
.cta__form select,
.cta__form textarea {
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
}
.cta__form input:focus,
.cta__form select:focus,
.cta__form textarea:focus { border-color: var(--burgundy); }
.cta__form textarea { resize: vertical; }
.cta__form .btn { margin-top: 6px; }
.cta__ok {
  display: none;
  background: rgba(47,74,58,.1);
  color: var(--forest);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}
.cta__ok.show { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #0d0a08; color: rgba(246,239,225,.7); padding: 64px 0 24px; }
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer__col h4 {
  color: var(--cream);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__col a {
  display: block;
  padding: 4px 0;
  font-size: 14.5px;
  transition: color .2s;
}
.footer__col a:hover { color: var(--gold); }
.brand--light { color: var(--cream); }
.brand--light em { color: var(--gold); }
.footer__col--brand p {
  margin-top: 16px;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.6;
}
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(246,239,225,.08);
  border: 1px solid rgba(246,239,225,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.06em;
}
.socials a:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(246,239,225,.1);
  display: flex; justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .nav { display: none; }
  .header__actions .btn { display: none; }
  .burger { display: flex; }
  .articles__grid,
  .videos__grid { grid-template-columns: repeat(2, 1fr); }
  .art--lg, .vid--lg { grid-column: span 2; grid-row: auto; }
  .docs__grid, .people__grid { grid-template-columns: repeat(2, 1fr); }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .g--1 { grid-column: span 2; }
  .g--6 { grid-column: span 2; }
  .tl { grid-template-columns: repeat(3, 1fr); gap: 32px 16px; }
  .tl__line { display: none; }
  .tl__item { padding-top: 0; }
  .tl__item::before { display: none; }
  .sample__inner, .cta__inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  .topbar__inner { font-size: 11.5px; }
  .topbar__link { display: none; }
  .hero { padding: 56px 0 48px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .search {
    grid-template-columns: 1fr;
    border-radius: var(--radius);
  }
  .search__field + .search__field { border-left: 0; border-top: 1px solid var(--line); }
  .features { padding: 64px 0; }
  .features__grid { grid-template-columns: 1fr; }
  .docs__grid, .articles__grid, .videos__grid, .people__grid {
    grid-template-columns: 1fr;
  }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .g--1, .g--6 { grid-column: span 2; }
  .docs, .articles, .gallery, .videos, .people, .timeline, .cta, .sample {
    padding: 64px 0;
  }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__col--brand { grid-column: span 2; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .sample__paper { padding: 20px; transform: none; }
  .sample__cols { grid-template-columns: 1fr; }
  .marquee__track { font-size: 16px; gap: 24px; }
  .hero__title span::after { display: none; }
}
