:root {
  --sky: #EEF2F8;
  --sky-deep: #DFE6F2;
  --ink: #0E1A33;
  --ink-2: #16254A;
  --lapis: #1F3F95;
  --lapis-deep: #14306B;
  --gold: #B8913E;
  --gold-light: #E9D7A6;
  --muted: #4A5670;
  --display: "Brygada 1918", Georgia, "Times New Roman", serif;
  --sans: "Onest", system-ui, sans-serif;
  --mono: "Noto Sans Mono", ui-monospace, monospace;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --line: rgba(14, 26, 51, .14);
  --surface: #FFFFFF;
  --header-bg: rgba(238, 242, 248, .82);
  --line-strong: rgba(14, 26, 51, .25);
  --accent-text: #1F3F95;
  --night: #0E1A33;
  --pill-border: rgba(31, 63, 149, .22);
}
/* Tünd tema — sistem ayarı (data-theme yoxdursa) və ya əl ilə seçim */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sky: #0A1022; --sky-deep: #1D2947; --ink: #E6EBF5; --muted: #A7B1C7;
    --line: rgba(230, 235, 245, .14); --surface: #111A33; --header-bg: rgba(10, 16, 34, .82);
    --line-strong: rgba(230, 235, 245, .28); --accent-text: #A9C1F5; --night: #060B19; --pill-border: rgba(169, 193, 245, .25);
  }
}
:root[data-theme="dark"] {
  --sky: #0A1022; --sky-deep: #1D2947; --ink: #E6EBF5; --muted: #A7B1C7;
  --line: rgba(230, 235, 245, .14); --surface: #111A33; --header-bg: rgba(10, 16, 34, .82);
  --line-strong: rgba(230, 235, 245, .28); --accent-text: #A9C1F5; --night: #060B19; --pill-border: rgba(169, 193, 245, .25);
}
/* Loqo: açıq temada gil lövhə, tünd temada səma diski */
.logo-night { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-day { display: none; } :root:not([data-theme="light"]) .logo-night { display: block; } }
:root[data-theme="dark"] .logo-day { display: none; }
:root[data-theme="dark"] .logo-night { display: block; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--sky); color: var(--ink); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
.defs { position: absolute; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 1rem; top: -3rem; background: var(--night); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 50; }
.skip:focus { top: 1rem; }

/* ── Başlıq ───────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 30; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .25s; }
.top.scrolled { border-bottom-color: var(--sky-deep); }
.top-row { display: flex; align-items: center; gap: 2rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font: 600 1.02rem/1 var(--sans); letter-spacing: .32em; }
.brand .logo { flex: none; }
.theme-btn { all: unset; box-sizing: border-box; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; color: var(--muted); }
.theme-btn:hover { color: var(--ink); }
.theme-btn:focus-visible { outline: 2px solid var(--accent-text); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.theme-btn .i-sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; } :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; } }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
.nav { display: flex; gap: 1.6rem; margin-left: 1rem; }
.nav a { text-decoration: none; font-size: .92rem; color: var(--muted); padding-block: .6rem; }
.nav a:hover { color: var(--ink); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: .9rem; }
.langs { display: flex; font: 500 .76rem/1 var(--mono); letter-spacing: .08em; }
.langs a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .45rem; color: var(--muted); text-decoration: none; }
.langs a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .7rem 1.25rem; border-radius: 999px; font: 500 .94rem/1.2 var(--sans); text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn-solid { background: var(--lapis); color: #fff; }
.btn-solid:hover { background: var(--lapis-deep); }
.btn-line { border: 1px solid var(--line-strong); }
.btn-line:hover { border-color: var(--ink); }

/* ── Hero ─────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3.5rem, 8vw, 7rem); }
.eyebrow { font: 500 .78rem/1.4 var(--mono); letter-spacing: .08em; color: var(--accent-text); margin: 0 0 1.3rem; }
.eyebrow-dark { color: var(--gold-light); }
h1 { font: 500 clamp(2.4rem, 5.2vw, 4.3rem)/1.06 var(--display); letter-spacing: -.015em; text-wrap: balance; margin: 0; }
h1 em { font-style: normal; color: var(--accent-text); }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.16rem); color: var(--muted); max-width: 35rem; margin: 1.6rem 0 2.2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* İmza: gil lövhə → reyestr */
.artefact { --tab-w: clamp(190px, 18vw, 250px); --row: 76px; margin: 0; display: grid; grid-template-columns: var(--tab-w) 1fr; }
.tablet { border-radius: 34px 30px 40px 36px; padding: 26px 20px; background: radial-gradient(120% 80% at 30% 15%, #3456B0 0%, var(--lapis) 45%, var(--lapis-deep) 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .18), inset 0 -6px 14px rgba(0, 0, 0, .25), 0 30px 50px -26px rgba(20, 48, 107, .65); display: grid; gap: 10px; position: relative; z-index: 1; }
.marks { height: var(--row); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid rgba(233, 215, 166, .18); }
.marks:last-child { border-bottom: 0; }
.tablet .g { fill: var(--gold-light); opacity: 0; transform: scale(1.35); animation: press .4s cubic-bezier(.2, .8, .2, 1) forwards; flex: none; }
@keyframes press { to { opacity: 1; transform: scale(1); } }
.ledger { align-self: center; margin-left: -2px; padding: 0 18px; background: var(--surface); border: 1px solid var(--sky-deep); border-left: 2px solid var(--gold); border-radius: 0 14px 14px 0; display: grid; grid-template-rows: repeat(4, var(--row)); gap: 10px; }
.entry { display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: center; border-bottom: 1px dashed var(--sky-deep); font: 400 .8rem/1.35 var(--mono); opacity: 0; transform: translateX(-6px); animation: appear .5s ease forwards; }
.entry:last-child { border-bottom: 0; }
.entry b { display: block; font-weight: 500; }
.entry .id { display: block; color: var(--muted); font-size: .72rem; }
.entry .amt { text-align: right; }
.entry .st { display: block; font-size: .7rem; color: var(--accent-text); }
@keyframes appear { to { opacity: 1; transform: none; } }
.captions { grid-column: 1 / -1; display: grid; grid-template-columns: var(--tab-w) 1fr; margin-top: 1rem; font: 400 .72rem/1.45 var(--mono); color: var(--muted); }
.captions span { padding-top: .6rem; border-top: 1px solid var(--gold); }
.captions span:first-child { padding-right: 1rem; }
.captions span + span { padding-left: 1.2rem; }

/* ── Ümumi bölmə ──────────────────────────────────────── */
section { padding-block: clamp(4rem, 9vw, 7rem); }
.rule { border-top: 1px solid var(--sky-deep); }
h2 { font: 500 clamp(1.9rem, 3.4vw, 2.8rem)/1.1 var(--display); letter-spacing: -.01em; text-wrap: balance; margin: 0 0 1rem; }
.sub { color: var(--muted); margin: 0; max-width: 42rem; }

/* ── Tur ──────────────────────────────────────────────── */
.tour { background: var(--night); color: #E6EAF3; overflow: hidden; }
.tour h2 { color: #fff; margin: 0; }
.tour .sub { color: #AEB8CE; }
.tour-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: end; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.tour-body { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.tab-col { display: flex; flex-direction: column; min-width: 0; }
.tabs { display: flex; flex-direction: column; gap: .25rem; }
.tab { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: .35rem; padding: 1rem 1.1rem; border-radius: 14px; color: #AEB8CE; transition: background .25s, color .25s; }
.tab:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.tab:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.tab[aria-selected="true"] { background: var(--ink-2); color: #fff; }
.tab-title { font: 500 1.02rem/1.3 var(--sans); }
.tab-text { font-size: .9rem; line-height: 1.5; color: #AEB8CE; display: none; }
.tab[aria-selected="true"] .tab-text { display: block; }
.tab-bar { height: 2px; background: rgba(233, 215, 166, .15); border-radius: 2px; overflow: hidden; display: none; margin-top: .4rem; }
.tab[aria-selected="true"] .tab-bar { display: block; }
.tab-bar i { display: block; height: 100%; width: 0; background: var(--gold-light); }
.tour.playing .tab[aria-selected="true"] .tab-bar i { animation: fill var(--dwell, 7s) linear forwards; }
.tour.paused .tab-bar i { animation-play-state: paused !important; }
@keyframes fill { to { width: 100%; } }
.autoplay { all: unset; cursor: pointer; margin-top: .75rem; padding: .6rem 1.1rem; font: 500 .72rem/1 var(--mono); letter-spacing: .06em; color: #8E9AB5; border-radius: 999px; min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; align-self: flex-start; }
.autoplay:hover { color: #fff; }
.autoplay:focus-visible { outline: 2px solid var(--gold-light); }
.window { border-radius: 16px; background: #0A1328; border: 1px solid rgba(233, 215, 166, .16); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 8px rgba(255, 255, 255, .02); overflow: hidden; }
.chrome { display: flex; align-items: center; gap: 6px; height: 36px; padding-inline: 14px; border-bottom: 1px solid rgba(233, 215, 166, .12); }
.chrome i { width: 9px; height: 9px; border-radius: 50%; background: rgba(233, 215, 166, .28); }
.chrome span { margin-left: auto; margin-right: auto; font: 400 .7rem/1 var(--mono); color: #7E8AA6; transform: translateX(-18px); }
.screens { position: relative; aspect-ratio: 16 / 10; background: #fff; }
.screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity .6s ease; }
.screens img.on { opacity: 1; }

/* ── Nəticələr ────────────────────────────────────────── */
.out-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(2rem, 5vw, 3.5rem); }
.out { border-top: 1px solid var(--ink); padding-top: 1.4rem; }
.out .g { fill: var(--gold); }
.out h3 { font: 500 clamp(1.3rem, 1.9vw, 1.55rem)/1.22 var(--display); text-wrap: balance; margin: 1rem 0 .8rem; }
.out p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ── Kim üçün ─────────────────────────────────────────── */
.who-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 2rem; align-items: start; }
.who-list { list-style: none; margin: .4rem 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.who-list li { padding: .7rem 1.15rem; border: 1px solid var(--pill-border); border-radius: 999px; background: var(--surface); font-weight: 500; }

/* ── Necə işləyirik (ardıcıllıq — nömrə məna daşıyır) ─── */
.steps { list-style: none; counter-reset: step; margin: clamp(2rem, 5vw, 3.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.steps li { counter-increment: step; position: relative; padding-top: 3.8rem; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; font: 500 2.4rem/1 var(--display); color: var(--accent-text); }
.steps li::after { content: ""; position: absolute; top: 1.3rem; left: 2.4rem; right: -1.5rem; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(184, 145, 62, 0)); }
.steps li:last-child::after { display: none; }
.steps h3 { font: 600 1.05rem/1.3 var(--sans); margin: 0 0 .5rem; }
.steps p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ── Tünd zolaq ───────────────────────────────────────── */
.band { background: var(--lapis-deep); color: #E6EAF3; }
.band h2 { color: #fff; max-width: 20ch; }
.band .sub { color: #C3CDE3; }
.band-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: end; }
.facts { margin: 0; display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1rem; padding-block: 1rem; border-top: 1px solid rgba(233, 215, 166, .22); }
.facts dt { font: 500 1.2rem/1.25 var(--display); color: var(--gold-light); }
.facts dd { margin: 0; font-size: .9rem; color: #C3CDE3; align-self: center; }

/* ── Ad ───────────────────────────────────────────────── */
.name-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); }
.name-text { margin: 0; font: 400 clamp(1.15rem, 1.7vw, 1.4rem)/1.55 var(--display); color: var(--ink); max-width: 40rem; }
.date-mark { font: 400 .78rem/1.5 var(--mono); color: var(--accent-text); margin: .6rem 0 0; }
.an-note { display: flex; gap: 1.2rem; align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--sky-deep); max-width: 40rem; }
.an-note .g { fill: var(--accent-text); flex: none; }
.an-note p { margin: 0; font-size: .92rem; color: var(--muted); }
.an-note b { font-weight: 600; color: var(--ink); }

/* ── Əlaqə ────────────────────────────────────────────── */
.contact-section { padding-top: 0; }
.contact { background: var(--lapis); color: #fff; border-radius: 28px; padding: clamp(2rem, 6vw, 4rem); display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.contact h2 { color: #fff; }
.contact .sub { color: #D5DDF0; }
.phones { display: flex; flex-direction: column; gap: .7rem; }
.phone { display: flex; align-items: center; gap: .7rem; min-height: 56px; padding: .8rem 1.4rem; border-radius: 999px; background: #fff; color: #0E1A33; text-decoration: none; font: 500 clamp(1.05rem, 2vw, 1.3rem)/1 var(--mono); transition: background .2s; }
.phone:hover { background: var(--gold-light); }
.phone svg, .call-fab svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.phone svg { fill: var(--lapis); }

.foot { padding-block: 2rem 2.6rem; font: 400 .8rem/1.5 var(--mono); color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.call-fab { display: none; }

/* ── Uyğunlaşma ───────────────────────────────────────── */
@media (max-width: 1020px) {
  .nav { display: none; }
  .tour-body { grid-template-columns: 1fr; }
  .tabs { flex-direction: row; overflow-x: auto; gap: .4rem; scrollbar-width: none; padding-bottom: .2rem; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; padding: .7rem 1rem; }
  .tab .tab-text, .tab .tab-bar { display: none !important; }
  .autoplay { display: none; }
  .tour-caption { display: block; }
}
@media (max-width: 900px) {
  .hero, .band-grid, .name-grid, .contact, .tour-head, .who-grid { grid-template-columns: 1fr; }
  .out-list, .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
}
@media (max-width: 560px) {
  .btn-top { display: none; }
  .artefact { --tab-w: 124px; --row: 64px; }
  .tablet { padding: 20px 12px; }
  .tablet .g { transform-origin: center; zoom: .62; }
  .entry { font-size: .72rem; }
  .entry .id { display: none; }
  .facts div { grid-template-columns: 1fr; gap: .2rem; }
  .call-fab { display: inline-flex; align-items: center; gap: .5rem; position: fixed; right: 1rem; bottom: 1rem; z-index: 40; min-height: 52px; padding: .8rem 1.3rem; border-radius: 999px; background: var(--lapis); color: #fff; text-decoration: none; font-weight: 500; box-shadow: 0 16px 30px -12px rgba(20, 48, 107, .7); transition: opacity .25s, transform .25s; }
  .call-fab.hide { opacity: 0; transform: translateY(20px); pointer-events: none; }
  .foot { padding-bottom: 6rem; }
}
.tour-caption { display: none; margin: 1rem 0 0; color: #AEB8CE; font-size: .92rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tablet .g, .entry { animation: none; opacity: 1; transform: none; }
  .screens img { transition: none; }
}
