/* RAYA public website.
   Idea: Sofia's stop departure boards (navy panel, amber LED status) and the transit route line.
   Fonts: Unbounded (display) + Onest (text), both self-hosted, both with Cyrillic. SIL OFL, see fonts/. */

@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-latin-wght-normal.8616dc355070.woff2") format("woff2");
  font-weight: 200 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-cyrillic-wght-normal.3a5ed4d11365.woff2") format("woff2");
  font-weight: 200 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url("fonts/onest-latin-wght-normal.3db826ed1c5d.woff2") format("woff2");
  font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; src: url("fonts/onest-cyrillic-wght-normal.fe2bd26ae82a.woff2") format("woff2");
  font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --ink: #14233b;        /* signage navy: board, footer, headings */
  --ink-2: #1d3150;
  --paper: #ffffff;
  --mist: #eef2f6;
  --line: #d9e0e8;
  --text: #1a2433;
  --muted: #526073;
  --amber: #ffb000;      /* LED status on the board */
  --public: #d9381e;     /* tram red */
  --rail: #2b6cb0;       /* rail blue */
  --flight: #12857a;     /* airport teal */
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Onest", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text); font-family: var(--body);
  font-size: 17px; line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: var(--rail); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); font-weight: 600; letter-spacing: -0.02em; }
.mode-public { --c: var(--public); } .mode-rail { --c: var(--rail); } .mode-flight { --c: var(--flight); }

/* Header */
.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.04em;
}
.logo-stop { width: 14px; height: 14px; border-radius: 50%; border: 4px solid var(--ink); background: var(--amber); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.98rem;
}
.nav-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.nav-link:hover { background: var(--mist); }
.nav-link.active { background: var(--ink); color: #fff; }
.lang {
  font-weight: 700; font-size: 0.9rem; text-decoration: none; color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 12px;
}
.lang:hover { background: var(--ink); color: #fff; }

/* Hero: headline + departure board, over a faint route map and the Vitosha ridge */
.hero { position: relative; overflow: hidden; padding: 88px 0 120px; background: linear-gradient(180deg, #fff 0%, #f3f6f9 100%); }
.hero-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-map .vitosha { fill: #e6ecf2; }
.hero-in { position: relative; display: grid; grid-template-columns: 1fr 1.08fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.7rem); line-height: 1.06; letter-spacing: -0.035em; margin: 0 0 24px; font-weight: 650; }
.lead { font-size: 1.22rem; color: var(--muted); margin: 0; max-width: 32em; }

.board {
  position: relative;
  background-color: var(--ink);
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.4px);
  background-size: 5px 5px;
  border-radius: 20px; padding: 20px 22px 18px; color: #dfe6ef;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 2px 0 #0d1828,
              0 40px 80px -30px rgba(20, 35, 59, 0.6), 0 14px 28px -18px rgba(20, 35, 59, 0.5);
}
.board::before { /* the board's metal frame highlight */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.07), transparent 28%);
}
.board-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 2px 6px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.board-title { font-family: var(--display); font-size: 1.12rem; font-weight: 600; color: #fff; }
.board-clock { display: inline-flex; align-items: baseline; gap: 10px; }
.board-city { font-size: 0.85rem; color: #93a3b8; }
.board-clock time {
  font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--amber);
  font-variant-numeric: tabular-nums; text-shadow: 0 0 12px rgba(255, 176, 0, 0.5);
}
.board-rows { list-style: none; margin: 6px 0 0; padding: 0; }
.board-rows li + li { border-top: 1px dashed rgba(255, 255, 255, 0.1); }
.board-row {
  display: grid; grid-template-columns: 8.6em 1fr 5.2em; align-items: center; gap: 18px;
  padding: 17px 8px; color: inherit; text-decoration: none; border-radius: 12px;
  transition: background-color .15s;
}
a.board-row:hover { background: rgba(255, 255, 255, 0.05); }
a.board-row:hover .dest { color: #fff; }
.line-badge {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start;
  background: var(--c); color: #fff; border-radius: 8px; padding: 7px 12px 7px 9px;
  font-family: var(--display); font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 2px 6px rgba(0,0,0,.25);
}
.line-badge svg { width: 19px; height: 19px; }
.dest { font-size: 1rem; line-height: 1.4; color: #c9d3e0; }
.status { justify-self: end; }
.led { /* amber dot-matrix lettering */
  font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: 0.02em;
  color: var(--amber);
  background: radial-gradient(circle, #ffc233 0 1.15px, rgba(255,176,0,.55) 1.35px, transparent 1.55px) 0 0 / 2.8px 2.8px;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(255, 176, 0, 0.55));
}
.board-note { margin: 12px 8px 0; font-size: 0.86rem; color: #8797ad; }

/* One orchestrated moment: the board refreshes row by row on load */
@media (prefers-reduced-motion: no-preference) {
  .board-rows li { animation: row-in .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 140ms + 150ms); }
  .board-rows .led { animation: led-on .9s steps(1) both; animation-delay: calc(var(--i) * 140ms + 450ms); }
}
@keyframes row-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes led-on { 0% { opacity: 0; } 20% { opacity: 1; } 35% { opacity: .2; } 50% { opacity: 1; } }

/* Three ways across Sofia */
.modes { padding-top: 104px; }
.modes h2, .route h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 28px; letter-spacing: -0.03em; }
.mode {
  display: grid; grid-template-columns: 13rem 1fr 22rem; gap: 32px; align-items: center;
  padding: 30px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none;
}
.mode:last-of-type { border-bottom: 1px solid var(--line); }
.mode-name { display: inline-flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 600; font-size: 1.45rem; color: var(--ink); letter-spacing: -0.02em; }
.mode-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--c); color: #fff; }
.mode-text { font-size: 1.08rem; color: var(--muted); max-width: 30em; }
.mode-status { display: inline-block; margin-left: 10px; font-weight: 700; font-size: .8rem; color: var(--ink); background: #fff4d6; border-radius: 6px; padding: 2px 8px; vertical-align: 2px; }
.mode:hover .mode-name { color: var(--c); }
.diagram { position: relative; display: flex; justify-content: space-between; gap: 6px; padding-top: 30px; }
.diagram::before { content: ""; position: absolute; left: 8px; right: 8px; top: 9px; height: 4px; border-radius: 2px; background: var(--c); }
.d-stop { position: relative; font-size: .82rem; font-weight: 600; color: var(--ink); text-align: center; flex: 1; white-space: nowrap; }
.d-stop::before {
  content: ""; position: absolute; left: 50%; top: -27px; transform: translateX(-50%);
  width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3.5px solid var(--ink);
}
.d-stop:first-child { text-align: left; } .d-stop:first-child::before { left: 8px; }
.d-stop:last-child { text-align: right; } .d-stop:last-child::before { left: auto; right: 8px; transform: none; }
.d-stop:first-child::before { transform: translateX(-50%); }
/* Metro: four line badges in Sofia's metro colours instead of a single line */
.diagram-public::before { display: none; }
.diagram-public { padding-top: 0; justify-content: flex-start; gap: 10px; }
.diagram-public .d-stop { flex: 0 0 auto; color: #fff; font-family: var(--display); width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; font-size: .9rem; }
.diagram-public .d-stop::before { display: none; }
.diagram-public .d-stop:nth-child(1) { background: #e2231a; } .diagram-public .d-stop:nth-child(2) { background: #1e5aa8; }
.diagram-public .d-stop:nth-child(3) { background: #1e9a4a; } .diagram-public .d-stop:nth-child(4) { background: #f2b705; color: var(--ink); }

/* The route (a real sequence: what ships in which order) */
.route { padding-top: 104px; padding-bottom: 104px; }
.route-line { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.route-line::before { content: ""; position: absolute; left: 13px; right: 0; top: 11px; height: 4px; background: var(--line); border-radius: 2px; }
.route-line::after { content: ""; position: absolute; left: 13px; width: 25%; top: 11px; height: 4px; background: var(--amber); border-radius: 2px; }
.stop { position: relative; padding: 48px 32px 0 0; }
.stop-dot { position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 5px solid var(--ink); z-index: 1; }
.stop.here .stop-dot { background: var(--amber); box-shadow: 0 0 0 7px rgba(255, 176, 0, 0.22); }
.stop h3 { font-size: 1.08rem; margin: 0 0 6px; }
.stop p { margin: 0; color: var(--muted); font-size: 0.98rem; max-width: 22em; }
.stop.here p { color: var(--ink); font-weight: 600; }

/* Apps band with a phone preview */
.apps { background: var(--ink); color: #c9d3e0; overflow: hidden; }
.apps-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; padding-top: 88px; padding-bottom: 0; }
.apps-text { padding-bottom: 88px; }
.apps h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 14px; letter-spacing: -0.03em; }
.apps-text > p { font-size: 1.12rem; margin: 0 0 28px; max-width: 30em; }
.app-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; padding: 13px 20px;
  border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; font-size: 1rem;
}
.btn:hover { background: var(--ink-2); }
.btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.28); cursor: default; }
.btn small { font-weight: 500; color: #93a3b8; font-size: 0.85rem; }
.facts { list-style: none; margin: 40px 0 0; padding: 28px 0 0; border-top: 1px solid rgba(255,255,255,.12); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.facts strong { display: block; color: #fff; font-family: var(--display); font-weight: 600; font-size: .98rem; margin-bottom: 6px; }
.facts span { font-size: .93rem; color: #9fb0c5; }

.phone { justify-self: center; align-self: end; width: 300px; height: 520px; border-radius: 44px 44px 0 0; padding: 14px 14px 0;
  background: #0b1424; box-shadow: 0 0 0 2px #2a3d5c inset, 0 -30px 80px -20px rgba(255,176,0,.18); }
.phone-screen { height: 100%; border-radius: 32px 32px 0 0; background: #f6f8fb; padding: 22px 18px; color: var(--ink); }
.ph-top { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; margin-bottom: 22px; }
.ph-tag { background: #fff4d6; border-radius: 6px; padding: 1px 8px; font-weight: 600; }
.ph-stop { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin-bottom: 18px; }
.ph-pin { width: 14px; height: 14px; border-radius: 50%; background: var(--amber); border: 3px solid var(--ink); }
.ph-row { display: grid; grid-template-columns: 34px 1fr 30px; gap: 12px; align-items: center; background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 9px; box-shadow: 0 1px 2px rgba(20,35,59,.06); }
.ph-badge { width: 34px; height: 24px; border-radius: 6px; background: var(--c); }
.ph-bar { height: 8px; border-radius: 4px; background: #dde4ec; }
.w45 { width: 45%; } .w55 { width: 55%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
.ph-min { height: 14px; border-radius: 4px; background: #ffe2a3; }
.ph-tabs { display: flex; justify-content: space-around; margin-top: 22px; padding-top: 14px; border-top: 1px solid #e3e8ee; }
.ph-tabs span { width: 22px; height: 22px; border-radius: 7px; background: var(--c); opacity: .9; }

/* Inner pages */
.page-head {
  position: relative; color: #dfe6ef; padding: 72px 0 64px;
  background-color: var(--ink);
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1.4px);
  background-size: 5px 5px;
  border-bottom: 6px solid var(--c, var(--amber));
}
.page-head h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 16px; max-width: 20em; }
.page-head .lead { color: #c3cddb; }
.head-badge { margin-bottom: 22px; }
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; padding-top: 64px; padding-bottom: 104px; align-items: start; }
.doc { max-width: 680px; }
.doc h2 { font-size: 1.2rem; margin: 0 0 10px; }
.doc p { margin: 0 0 12px; }
.doc-sec { padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid var(--line); }
.doc-sec:last-of-type { border-bottom: 0; }
.points { list-style: none; padding: 0; margin: 8px 0 0; position: relative; }
.points::before { content: ""; position: absolute; left: 9px; top: 22px; bottom: 22px; width: 4px; border-radius: 2px; background: var(--c, var(--ink)); opacity: .9; }
.page-public .points { --c: var(--public); } .page-rail .points { --c: var(--rail); } .page-flight .points { --c: var(--flight); }
.points li { position: relative; display: flex; align-items: center; gap: 18px; padding: 14px 0; font-size: 1.08rem; color: var(--ink); font-weight: 500; }
.pt-dot { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--ink); position: relative; z-index: 1; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1.02rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto; width: 12px; height: 12px; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 36em; }
.mail-card {
  display: flex; flex-direction: column; gap: 6px; margin: 8px 0 18px; padding: 28px 30px; border-radius: 18px;
  background: var(--ink); color: #fff; text-decoration: none; max-width: 520px;
  box-shadow: 0 30px 60px -30px rgba(20, 35, 59, 0.6);
}
.mail-card:hover { background: var(--ink-2); }
.mail-label { color: #93a3b8; font-size: .95rem; }
.mail-addr { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--amber); letter-spacing: -0.02em; }
.updated { margin-top: 24px; }
.muted { color: var(--muted); font-size: 0.92rem; }

.side { position: sticky; top: 24px; display: grid; gap: 16px; }
.side-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; background: #fff; }
.side-card a { font-weight: 600; }
.side-q { margin: 0 0 6px; color: var(--muted); }
.side-card.side-board { border: 0; padding: 18px 20px 22px; background-color: var(--ink); }
.side-board .board-head { padding: 0 0 12px; }
.side-text { color: #c9d3e0; font-size: .95rem; margin: 14px 0 18px; }
.diagram.on-dark .d-stop { color: #dfe6ef; }
.diagram.on-dark .d-stop::before { background: var(--ink); border-color: #fff; }
.diagram.on-dark.diagram-public .d-stop { width: 40px; height: 40px; font-size: .82rem; color: #fff; }
.diagram.on-dark.diagram-public .d-stop:nth-child(4) { color: var(--ink); }
.side-board .diagram { grid-column: auto; }
.side-nav { display: grid; gap: 2px; padding: 10px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.side-nav a:hover { background: var(--mist); }
.side-nav a.active { background: var(--ink); color: #fff; }

/* Footer */
.bottom { background: var(--ink); color: #93a3b8; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.bottom-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 36px; padding-bottom: 36px; }
.logo-light { color: #fff; }
.logo-light .logo-stop { border-color: #fff; }
.bottom nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.bottom nav a { color: #dfe6ef; text-decoration: none; font-weight: 600; }
.bottom nav a:hover, .bottom nav a.active { color: var(--amber); }
.bottom p { margin: 0; width: 100%; font-size: 0.92rem; }
.bottom nav.f-legal { width: 100%; gap: 6px 20px; font-size: 0.88rem; }
.bottom nav.f-legal a { color: #b8c4d4; font-weight: 500; }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.f-sign { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; color: #dfe6ef; }
.f-release { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 9px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.78rem; color: var(--amber); }
.f-release i { width: 7px; height: 7px; border-radius: 50%; background: #2fd07a; box-shadow: 0 0 0 3px rgba(47, 208, 122, 0.18); }
.f-release b { font-weight: 600; color: #93a3b8; }

/* Tablet and phone */
@media (max-width: 1080px) {
  .mode { grid-template-columns: 11rem 1fr; }
  .diagram { grid-column: 2; }
}
@media (max-width: 960px) {
  .hero-in, .apps-in { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 52px 0 72px; }
  .modes, .route { padding-top: 64px; }
  .route { padding-bottom: 64px; }
  .route-line { grid-template-columns: 1fr; }
  .route-line::before { left: 11px; right: auto; top: 11px; bottom: 11px; width: 4px; height: auto; }
  .route-line::after { left: 11px; top: 11px; width: 4px; height: 22%; }
  .stop { padding: 0 0 30px 50px; }
  .mode { grid-template-columns: 1fr; gap: 14px; padding: 26px 0; }
  .diagram { grid-column: 1; max-width: 420px; }
  .apps-in { padding-top: 56px; }
  .apps-text { padding-bottom: 0; }
  .facts { grid-template-columns: 1fr; gap: 18px; }
  .phone { width: 260px; height: 400px; }
  .doc-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; padding-bottom: 64px; }
  .side { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .top-in { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 10px; gap: 10px; }
  .lang { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0; }
  .nav-link { flex: 1; justify-content: center; padding: 9px 6px; font-size: 0.92rem; }
  .board { padding: 16px 14px 14px; border-radius: 16px; }
  .board-row { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px 4px; }
  .board-row .dest { grid-column: 1 / -1; grid-row: 2; font-size: 0.95rem; }
  .page-head { padding: 44px 0 40px; }
  .mode-name { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
::selection { background: var(--amber); color: var(--ink); }

/* Contact form (goes to the helpdesk) */
.contact-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-weight: 600; color: var(--ink); font-size: .95rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; color: var(--text); background: #fff; border: 1.5px solid var(--line);
  border-radius: 12px; padding: 12px 14px; width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 176, 0, .35); }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form button { justify-self: start; border: 0; cursor: pointer; }
.contact-form fieldset[disabled] { opacity: .6; }
.contact-form fieldset[disabled] button { cursor: not-allowed; }
.contact-form .muted { margin-top: 14px; }
@media (max-width: 640px) { .contact-form .form-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 12px; padding: 14px 18px; margin: 0 0 22px; font-weight: 600; }
.notice.ok { background: #e7f6ef; color: #0d5c3a; }
.notice.warn { background: #fff4d6; color: #6b4a00; }
.preview-bar { background: var(--amber); color: var(--ink); text-align: center; font-weight: 700; padding: 8px 16px; font-size: .92rem; }
.preview-bar a { color: var(--ink); }
.btn.store { background: var(--amber); color: var(--ink); }
/* Helpdesk conversation */
.ticket-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.ticket-ref { font-family: var(--display); font-weight: 600; color: var(--ink); background: var(--mist); padding: 3px 10px; border-radius: 8px; }
.ticket-status { font-weight: 700; font-size: .85rem; padding: 3px 10px; border-radius: 8px; background: #fff4d6; color: #6b4a00; }
.ticket-status.st-replied { background: #e7f6ef; color: #0d5c3a; } .ticket-status.st-completed { background: var(--mist); color: var(--muted); }
.thread { list-style: none; padding: 0; margin: 18px 0 28px; display: grid; gap: 12px; }
.msg { background: var(--mist); border-radius: 14px; padding: 14px 18px; max-width: 90%; }
.msg.team { background: var(--ink); color: #dfe6ef; justify-self: end; }
.msg.team .msg-meta b { color: var(--amber); }
.msg-meta { font-size: .85rem; color: var(--muted); margin-bottom: 4px; } .msg.team .msg-meta { color: #93a3b8; }
.msg p { margin: 0; }
/* Four ways across Sofia (PUBLIC's modes) — RAYA's own colours */
.cmode-metro { --c: #1e5aa8; } .cmode-tram { --c: #d9381e; } .cmode-trolleybus { --c: #1e9a4a; } .cmode-bus { --c: #e08a00; }
.mode .diagram:not(.diagram-public) .d-stop { height: 14px; }
.att { margin-top: 10px; display: grid; gap: 6px; }
.att img { max-width: 100%; max-height: 260px; border-radius: 10px; display: block; }
.att audio { width: 100%; max-width: 320px; }
.att-name { font-size: .9rem; color: inherit; }
.msg.team .att-name { color: #dfe6ef; }
.contact-form input[type=file] { padding: 10px; background: var(--mist); }
