/* Chatz — chatz.uz. Plain CSS, no build step.
   Transit-map language: white paper, ink, seven flat line colours. Type: Geologica. */

@font-face { font-family: "Geologica"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geologica-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geologica"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geologica-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geologica"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geologica-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Geologica has no U+02BB (Uzbek oʻ / gʻ) and the subsets carry no arrows: this 1 KB face
   maps Geologica's own left-quote glyph to U+02BB and adds its ← → glyphs. */
@font-face { font-family: "Geologica"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geologica-uz.woff2) format("woff2");
  unicode-range: U+02BB, U+2190, U+2192; }

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #111318;
  --soft: #4b505c;
  --rule: #111318;
  --red: #e2231a; --blue: #0a6fd6; --green: #12964a; --yellow: #f2b100; --purple: #7b3fb8; --teal: #0f9aa8; --orange: #f07b12;
  --f: "Geologica", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111318; --fg: #f3f3ef; --soft: #b9bcc6; --rule: #f3f3ef; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.5 var(--f); overflow-wrap: break-word; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
svg { flex: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
code { font: 600 .95em var(--f); padding: 1px 6px; border: 2px solid currentColor; border-radius: 5px; white-space: nowrap; }
.ring { fill: var(--bg); stroke: var(--fg); }

/* Header */
.top .wrap { display: flex; align-items: center; gap: 18px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; font: 800 1.45rem/1 var(--f); letter-spacing: -.02em; }
.langs { display: flex; align-items: center; gap: 7px; font: 600 .95rem/1 var(--f); }
.langs a { padding: 8px 2px; text-decoration: none; }
.langs a:hover, .langs a[aria-current] { text-decoration: underline; }
.langs span { opacity: .4; }
.go { display: none; align-items: center; gap: 6px; font: 600 1rem/1 var(--f); text-decoration: underline; }
.go .arr { width: 18px; height: 18px; }
.go:hover { color: var(--red); }

/* Button: a signage plate */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 24px; background: var(--fg); color: var(--bg); border-radius: 6px; text-decoration: none; font: 700 1.08rem/1.15 var(--f); }
.btn:hover { background: var(--red); color: #fff; }
.btn.big { padding: 20px 28px; font-size: 1.25rem; }

/* Hero */
.hero { padding: 18px 0 44px; }
h1 { font: 800 clamp(1.6rem, 7.25vw, 3.5rem)/1.04 var(--f); letter-spacing: -.03em; }
.lead { margin-top: 14px; font-size: 1.12rem; line-height: 1.45; max-width: 30em; }
.act .btn { margin-top: 20px; width: 100%; }
.beta { margin-top: 12px; font-size: .92rem; color: var(--soft); }

/* The map */
.map { display: block; width: 100%; height: auto; margin-top: 30px; font-family: var(--f); }
.map-m { max-width: 470px; }
.map-d { display: none; }
.ln { fill: none; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ln.out { stroke: var(--fg); }
.term, .stop, .hub, .you { fill: var(--bg); stroke: var(--fg); }
.term { stroke-width: 4; }
.stop { stroke-width: 2.5; }
.hub, .you { stroke-width: 5; }
.lb { font-size: 16.5px; font-weight: 600; fill: var(--fg); }
.hub-lb { font-size: 30px; font-weight: 800; letter-spacing: -.02em; fill: var(--fg); }
.map-d .lb { font-size: 20px; }
.map-d .hub-lb { font-size: 34px; }
.train { display: none; fill: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .draw .ln { animation: draw .75s cubic-bezier(.45, 0, .2, 1) both; animation-delay: calc(var(--i) * 60ms); }
  .draw .ln.out { animation-duration: .4s; animation-delay: .82s; }
  .draw .st { animation: pop .35s 1.15s both; }
  @supports (offset-path: path("M0 0L1 1")) {
    .live .train { display: block; offset-rotate: 0deg; animation: run 7s linear infinite; animation-delay: calc(var(--n) * 2.3s); opacity: 0; }
  }
}
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes pop { from { opacity: 0; } }
@keyframes run { 0% { offset-distance: 0%; opacity: 1; } 96% { offset-distance: 100%; opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

/* Sections */
section { padding: 44px 0; }
h2 { display: flex; align-items: center; gap: 12px; font: 800 clamp(1.45rem, 5.4vw, 2.2rem)/1.1 var(--f); letter-spacing: -.025em; }
.sign { margin-left: -20px; }

/* Tickets */
.strip { display: flex; gap: 14px; margin-top: 24px; padding: 2px 20px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 20px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.tk { position: relative; flex: 0 0 236px; display: flex; flex-direction: column; scroll-snap-align: start; border: 2.5px solid var(--fg); border-radius: 8px;
  background: linear-gradient(var(--c), var(--c)) 0 0 / 100% 12px no-repeat; }
.say { flex: 1; min-height: 6.6em; padding: 28px 16px 16px; font-weight: 600; font-size: 1.08rem; line-height: 1.32; }
.say b { display: inline-block; margin-left: 10px; font-weight: 600; vertical-align: 9px; font-variant-numeric: tabular-nums; }
.vn .tri { fill: var(--bg); }
.res { position: relative; display: flex; align-items: center; gap: 7px; min-height: 3.9em; padding: 10px 14px; line-height: 1.25; border-top: 2.5px dashed var(--fg); font-weight: 500; }
.res .arr { width: 18px; height: 18px; color: var(--c); }
.res::before, .res::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border: 2.5px solid var(--fg); border-radius: 50%; background: var(--bg); }
.res::before { left: -12.5px; clip-path: inset(0 0 0 50%); }
.res::after { right: -12.5px; clip-path: inset(0 50% 0 0); }

/* Legend */
.legend { margin-top: 24px; border-top: 2px solid var(--rule); }
.legend li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 3px 12px; align-items: center; padding: 13px 0; border-bottom: 2px solid var(--rule); }
.sw { display: block; width: 44px; height: 9px; border-radius: 5px; background: var(--c); }
.sw.dash { background: repeating-linear-gradient(90deg, var(--fg) 0 9px, transparent 9px 16px); border-radius: 0; }
.legend b { font-weight: 700; }
.legend span { grid-column: 2 / -1; color: var(--soft); }
.legend em { grid-row: 1; grid-column: 3; font-style: normal; font-size: .85rem; font-weight: 600; }
.legend .built em { color: var(--soft); }
.note { margin-top: 20px; max-width: 44em; }
.cmd { white-space: nowrap; font-weight: 600; }

/* Safety: three stations on one line */
.stops { margin: 30px 0 0 9px; border-left: 9px solid var(--green); }
.stops li { position: relative; padding: 0 0 26px 24px; font-weight: 600; font-size: 1.2rem; line-height: 1.3; }
.stops li:last-child { padding-bottom: 4px; }
.stops li::before { content: ""; position: absolute; left: -18.5px; top: .05em; width: 24px; height: 24px; border: 4.5px solid var(--fg); border-radius: 50%; background: var(--bg); }
.more { margin-top: 22px; font-weight: 600; }

/* FAQ */
.qa { margin-top: 24px; border-bottom: 2px solid var(--rule); }
.qa details { border-top: 2px solid var(--rule); }
.qa summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 17px 0; cursor: pointer; list-style: none; font: 600 clamp(1.08rem, 3.4vw, 1.3rem)/1.3 var(--f); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; font-weight: 400; font-size: 1.5em; line-height: .85; }
.qa details[open] summary::after { content: "−"; }
.qa details p { padding: 0 40px 20px 0; max-width: 46em; color: var(--soft); }
.qa a, .legal a { font-weight: 600; }

/* Closing: the last stretch of line */
.end { padding: 40px 0 64px; overflow: hidden; }
.end .wrap { display: flex; align-items: center; }
.rail { position: relative; flex: 1; min-width: 34px; height: 9px; margin: 0 22px 0 -50vw; background: var(--fg); }
.rail::after { content: ""; position: absolute; right: -14px; top: -10.5px; width: 30px; height: 30px; border: 5px solid var(--fg); border-radius: 50%; background: var(--bg); }

/* Footer */
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; padding-top: 18px; padding-bottom: 18px; border-top: 2px solid var(--rule); font-size: .95rem; }
.foot nav:not(.langs) { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.foot nav a { display: inline-block; padding: 6px 0; }
.foot .copy { margin-right: auto; }
.bundle { height: 28px; background: linear-gradient(var(--red) 0 4px, var(--blue) 4px 8px, var(--green) 8px 12px, var(--yellow) 12px 16px, var(--purple) 16px 20px, var(--teal) 20px 24px, var(--orange) 24px 28px); }

/* Mobile dock */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 2px solid var(--rule); transform: translateY(100%); visibility: hidden; transition: transform .2s, visibility .2s; }
.dock.on { transform: none; visibility: visible; }
.dock .btn { width: 100%; }
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }

/* Legal + 404 */
.legal { padding: 22px 0 64px; }
.legal .wrap { max-width: 800px; }
.back { display: inline-block; margin-bottom: 24px; font-weight: 600; }
.legal h1 { font-size: clamp(1.8rem, 7vw, 3rem); }
.date { margin-top: 14px; color: var(--soft); }
.intro { margin-top: 22px; font-size: 1.18rem; line-height: 1.5; }
.legal h2 { display: block; margin-top: 40px; padding-top: 16px; border-top: 2px solid var(--rule); font-size: 1.2rem; line-height: 1.25; letter-spacing: -.01em; }
.legal p { margin-top: 13px; }
.legal ul { margin: 16px 0 0 5px; border-left: 5px solid var(--blue); }
.legal li { position: relative; padding: 0 0 12px 20px; }
.legal li:last-child { padding-bottom: 0; }
.legal li::before { content: ""; position: absolute; left: -9.5px; top: .42em; width: 14px; height: 14px; border: 3px solid var(--fg); border-radius: 50%; background: var(--bg); }
.nf { padding: 30px 0 70px; min-height: 68vh; }
.nf .code { display: flex; align-items: center; gap: 6px; font: 800 clamp(6rem, 30vw, 11rem)/1 var(--f); letter-spacing: -.04em; }
.nf .code svg { width: .78em; height: .78em; }
.nf h1 { margin-top: 14px; font-size: clamp(1.3rem, 5vw, 2rem); line-height: 1.2; letter-spacing: -.02em; }
.nf h1 span { display: block; }
.nf ul { margin-top: 30px; }
.nf li a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 0; font-weight: 600; font-size: 1.12rem; }

/* ≥ 600 */
@media (min-width: 600px) {
  .wrap { padding: 0 32px; }
  .go { display: inline-flex; }
  .act .btn { width: auto; }
  .strip { padding-left: 32px; padding-right: 32px; scroll-padding-left: 32px; }
  .sign { margin-left: 0; }
  .legend li { grid-template-columns: 56px 15rem minmax(0, 1fr) auto; gap: 0 16px; padding: 14px 0; }
  .sw { width: 56px; }
  .legend span { grid-column: 3; }
  .legend em { grid-column: 4; }
  section { padding: 56px 0; }
}
@media (min-width: 720px) {
  .dock { display: none; }
  .stops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 44px 0 0; border-left: 0; border-top: 9px solid var(--green); }
  .stops li, .stops li:last-child { padding: 30px 28px 0 0; font-size: 1.3rem; }
  .stops li::before { left: 0; top: -21px; width: 33px; height: 33px; border-width: 5px; }
  .more { margin-top: 30px; }
}
/* ≥ 900: the wide map */
@media (min-width: 900px) {
  .wrap { padding: 0 40px; }
  .top .wrap { padding-top: 18px; padding-bottom: 18px; gap: 28px; }
  .hero { padding: 26px 0 60px; }
  .pitch { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: end; }
  h1 { font-size: clamp(2.4rem, 4.35vw, 3.6rem); }
  .lead { margin-top: 0; }
  .map-m { display: none; }
  .map-d { display: block; margin-top: 36px; }
  section { padding: 68px 0; }
  .end { padding: 56px 0 90px; }
}
@media (min-width: 1180px) {
  .strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 1280px; margin-left: auto; margin-right: auto; padding: 0 40px; overflow: visible; }
  .tk { flex: none; }
}
