/* ============================================================
   Автобуска станица Прилеп — style.css

   Склопот е ист како кај демото за Скопје (табла за поаѓања,
   ознаки-табли над насловите, листа по земји, темна историја,
   контакт со фотографија), а бојата е на Прилеп: сина и
   портокалова од логото, бела подлога, истите букви.
   ============================================================ */

:root {
  --blue: #141ed2;
  --blue-deep: #1a24b8;
  --orange: #fe6601;
  --orange-ink: #c94e00;
  --ink: #101114;
  --ink-2: #50555d;
  --ink-3: #7a7f87;
  --paper: #ffffff;
  --mist: #f5f5f3;
  --mist-2: #ebebe8;
  --rule: #e2e2de;
  --line: rgba(16, 17, 20, .12);
  --line-strong: rgba(16, 17, 20, .26);
  --ok: #127a4b;
  --off: #b3382a;

  /* таблата за поаѓања */
  --board: #0e1014;
  --board-line: #262a31;
  --board-text: #eeeae2;
  --board-dim: #9a968e;

  --f-display: "Wix Madefor Display", "Segoe UI", system-ui, sans-serif;
  --f-body: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, Consolas, monospace;

  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(18px, 4vw, 48px);
  --maxw: 1320px;
  --header-h: 72px;
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

/* без scroll-behavior: smooth — мазното лизгање го прави скриптата; CSS
   правилото ги правеше бавни и сите внатрешни поместувања (ново мерење
   на страницата), па страницата сама „патуваше“ нагоре */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }

::selection { background: var(--orange); color: var(--ink); }
: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: fixed; left: 12px; top: 12px; z-index: 200; padding: 10px 16px; border-radius: var(--r); background: var(--ink); color: var(--orange); font-weight: 600; text-decoration: none; transform: translateY(-160%); transition: transform .2s var(--ease); }
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section[id], main[id] { scroll-margin-top: var(--header-h); }

/* ---------- типографија ---------- */
.h2 {
  margin-top: 18px;
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 3.9rem); line-height: 1.02; letter-spacing: -0.03em;
  text-wrap: balance;
}
.h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -0.02em; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.5; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }

/* ---------- табли-ознаки (како натписите во самата станица) ---------- */
.plate {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 11px; border-radius: 4px;
  background: var(--ink); color: var(--orange);
  font: 600 11.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap;
}
.plate--ghost { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.plate--ico .ico { width: 15px; height: 15px; }
.plate__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); animation: pulse 2.4s var(--ease) infinite; }
.plate--live.is-closed .plate__dot { background: var(--board-dim); animation: none; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(254, 102, 1, .55); }
  50% { box-shadow: 0 0 0 6px rgba(254, 102, 1, 0); }
}
.plates { display: flex; flex-wrap: wrap; gap: 8px; }

/* мала икона до името на услугата */
.ico { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--e-out); }

/* ---------- копчиња: подлогата се лизга одоздола при поминување ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 22px; border: 0; border-radius: var(--r);
  font: 600 15.5px/1 var(--f-body); text-decoration: none; white-space: nowrap;
  background: var(--ink); color: #fff;
  transition: color .3s var(--ease), transform .2s var(--ease), box-shadow .3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: translateY(101%); transition: transform .45s var(--e-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:active { transform: scale(.97); }
.btn--orange { background: var(--orange); color: var(--ink); }
.btn--orange:hover, .btn--orange:focus-visible { color: var(--orange); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue::before { background: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: #fff; }
/* останува за страниците со релации и правните страници */
.btn--dark { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--dark:hover, .btn--dark:focus-visible { color: #fff; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn__arrow { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--e-out); }
.btn:hover .btn__arrow { transform: translate(2px, -2px); }
.btn:hover .btn__arrow--down { transform: translateY(3px); }

/* ---------- курсор ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor__dot { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px rgba(255,255,255,.7); transition: transform .3s var(--e-out), opacity .2s; }
.cursor.is-hover .cursor__dot { transform: scale(1.8); }
.cursor.has-tag .cursor__dot { opacity: 0; }
.cursor__tag { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 4px; background: var(--ink); color: var(--orange); font: 600 13px var(--f-body); white-space: nowrap; transform-origin: 0 0; opacity: 0; scale: .6; transition: opacity .2s var(--e-out), scale .3s var(--e-out); }
.cursor.has-tag .cursor__tag { opacity: 1; scale: 1; }
@media (hover: none), (prefers-reduced-motion: reduce) { .cursor { display: none; } }

/* ============================================================
   ЗАГЛАВИЕ
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: var(--header-h);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__mark { width: 38px; height: 38px; flex: none; border-radius: 50%; transition: transform .5s var(--e-out); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.04); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--f-display); font-weight: 800; font-size: 15.5px; letter-spacing: -.01em; }
.brand__city { font: 600 10.5px/1.4 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { position: relative; padding: 6px 0; font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color .2s var(--ease); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--e-out); }
.nav a:hover, .nav a.is-cur { color: var(--ink); }
.nav a:hover::after, .nav a.is-cur::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; padding: 3px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-strong); }
.lang__btn { border: 0; background: transparent; height: 30px; min-width: 36px; padding: 0 8px; border-radius: 4px; font: 600 11.5px/1 var(--f-mono); letter-spacing: .08em; color: var(--ink-2); transition: background-color .2s var(--ease), color .2s var(--ease); }
.lang__btn:hover { color: var(--ink); }
.lang__btn.is-active { background: var(--ink); color: var(--orange); }

.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: var(--r); background: var(--ink); place-items: center; }
.burger__lines { display: grid; gap: 6px; width: 18px; }
.burger__lines span { display: block; height: 2px; background: var(--orange); transition: transform .35s var(--e-out); }
.burger[aria-expanded="true"] .burger__lines span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* мобилно мени: темно, како таблата */
.menu {
  position: fixed; inset: 0; z-index: 65;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--header-h) + 28px) var(--gutter) 36px;
  background: var(--ink); color: #fff;
  visibility: hidden; opacity: 0;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity .35s var(--ease); }
.menu__links { display: flex; flex-direction: column; gap: 2px; }
.menu__links a {
  padding: 6px 0; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.9rem, 8vw, 2.8rem); line-height: 1.2; letter-spacing: -0.02em; text-decoration: none;
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s var(--e-out), transform .5s var(--e-out), color .2s;
}
.menu.is-open .menu__links a { opacity: 1; transform: none; transition-delay: calc(.05s * var(--i)); }
.menu__links a:hover { color: var(--orange); }
.menu__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; opacity: 0; transition: opacity .5s var(--e-out) .3s; }
.menu.is-open .menu__foot { opacity: 1; }
.menu__phones { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.menu__phone { display: flex; flex-direction: column; text-decoration: none; }
.menu__phone b { font: 700 1.35rem var(--f-mono); color: var(--orange); }
.menu__phone span { font-size: 12.5px; color: rgba(255,255,255,.6); }

body.is-locked .site-header { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: #fff; }
body.is-locked .site-header .brand__city { color: var(--orange); }
body.is-locked .site-header .lang { box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
body.is-locked .site-header .lang__btn { color: rgba(255,255,255,.65); }
body.is-locked .site-header .lang__btn.is-active { background: var(--orange); color: var(--ink); }
body.is-locked .burger { background: var(--orange); }
body.is-locked .burger__lines span { background: var(--ink); }

/* ============================================================
   ХИРО
   ============================================================ */
.hero { padding-top: calc(var(--header-h) + clamp(36px, 5.5vw, 80px)); padding-bottom: clamp(64px, 8vw, 112px); }
.hero__title {
  margin-top: clamp(22px, 2.8vw, 34px);
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.5rem, 6.2vw, 5.8rem); line-height: 1.02; letter-spacing: -0.04em;
}
/* overflow:hidden е за анимацијата; padding-bottom ги собира опашките на „ј“, „р“, „у“ */
.line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.12em; }
.line > span { display: inline-block; }
.line--muted { color: var(--ink-3); }
.num-plate {
  display: inline-block; padding: 0 .16em; border-radius: .08em;
  background: var(--orange); color: var(--ink); font-weight: 800; line-height: 1.02;
  font-variant-numeric: tabular-nums;
}

.hero__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 5vw, 80px); align-items: end;
  margin-top: clamp(36px, 4.5vw, 64px);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
/* „Информации“ е за телефон; на компјутер менито горе го носи истото */
@media (min-width: 761px) { .hero__actions .btn--info { display: none; } }

.stats { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.stats > div { display: flex; flex-direction: column-reverse; gap: 6px; }
.stats dt { font: 600 11px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.stats dd { font: 800 clamp(1.7rem, 2.5vw, 2.2rem)/1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats div:first-child dd { color: var(--blue); }

/* ---------- табла за поаѓања ---------- */
.board {
  --cw: 16px; --cg: 2px; --fg: 12px; --nd: 14; --nc: 11;
  position: relative; width: 100%; min-width: 0; max-width: 100%; overflow: hidden;
  padding: clamp(14px, 1.6vw, 22px); border-radius: 10px;
  background: var(--board); color: var(--board-text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 40px 80px -40px rgba(16,17,20,.55), 0 14px 28px -16px rgba(16,17,20,.4);
}
.board::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(165deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 38%); }
/* тенка сина лента одгоре: бојата на станицата и на таблата */
.board::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--blue); }
.board__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 2px 2px 14px; border-bottom: 1px solid var(--board-line); }
.board__title { font: 700 13px/1 var(--f-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--orange); }
.board__clock { font: 500 13px/1 var(--f-mono); font-variant-numeric: tabular-nums; text-transform: uppercase; letter-spacing: .06em; }
.board__clock span { color: var(--board-dim); margin-right: 6px; }

.board__cols, .board__row {
  display: grid;
  grid-template-columns:
    calc(5 * var(--cw) + 4 * var(--cg))
    calc(var(--nd) * var(--cw) + (var(--nd) - 1) * var(--cg))
    calc(var(--nc) * var(--cw) + (var(--nc) - 1) * var(--cg))
    calc(5 * var(--cw) + 4 * var(--cg));
  column-gap: var(--fg); justify-content: space-between; align-items: center;
}
.board--compact .board__cols, .board--compact .board__row {
  grid-template-columns:
    calc(5 * var(--cw) + 4 * var(--cg))
    calc(var(--nd) * var(--cw) + (var(--nd) - 1) * var(--cg))
    calc(5 * var(--cw) + 4 * var(--cg));
}
.board--compact .board__col-carrier, .board--compact .f--car { display: none; }
.board__cols { padding: 12px 2px 8px; font: 500 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--board-dim); }
.board__col-in { text-align: right; }
.board__rows { min-height: calc(var(--rows, 7) * (var(--cw) * 1.5 + 13px)); }
.board__row { width: 100%; padding: 6px 2px; border: 0; border-top: 1px solid var(--board-line); background: none; color: inherit; text-align: left; border-radius: 0; transition: background-color .2s; }
.board__rows li:first-child .board__row { border-top: 0; }
.board__row:hover, .board__row:focus-visible { background: rgba(255,255,255,.05); }
.board__row:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }

.f { display: flex; gap: var(--cg); }
.f--in { justify-content: flex-end; }
.t {
  position: relative; display: inline-block;
  width: var(--cw); height: calc(var(--cw) * 1.5); border-radius: 2px;
  background: linear-gradient(to bottom, #20232a 0, #1a1d23 49%, #08090b 49%, #08090b 53%, #15181d 53%, #1a1d23 100%);
  font-family: var(--f-mono); font-weight: 600; font-size: calc(var(--cw) * 1.02); line-height: calc(var(--cw) * 1.5);
  text-align: center; text-transform: uppercase; color: var(--board-text);
  backface-visibility: hidden;
}
.f--time .t, .f--in .t { color: var(--orange); }
.f--car .t { color: var(--board-dim); }
.board__row.is-now .f--in .t { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }

.board__foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 6px; padding: 14px 2px 2px; border-top: 1px solid var(--board-line); font: 400 12px/1.4 var(--f-mono); color: var(--board-dim); }
.board__foot a { color: var(--orange); text-decoration: none; }
.board__foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   СЕКЦИИ
   ============================================================ */
.section { padding-block: clamp(84px, 10.5vw, 148px); }
.section-head { max-width: 780px; }
.section-head__text { margin-top: 18px; max-width: 58ch; color: var(--ink-2); font-size: clamp(1.02rem, 1.3vw, 1.15rem); text-wrap: pretty; }
.section-head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; }
.section-head--split .section-head__text { margin-top: 0; }

/* ============================================================
   ВОЗЕН РЕД
   ============================================================ */
.section--timetable { border-top: 1px solid var(--line); outline: none; }

.finder { margin-top: clamp(34px, 4vw, 54px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.finder__label { flex: none; width: 128px; font: 600 11px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.finder__controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; }
.finder__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; min-width: 0; }
.finder__row .days { flex: 1 1 0; min-width: 0; }

.search { position: relative; }
.search__icon { position: absolute; left: 22px; top: 50%; width: 24px; height: 24px; transform: translateY(-50%); fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.search__input {
  width: 100%; height: 72px; padding: 0 16px 0 60px;
  border: 1.5px solid var(--ink); border-radius: var(--r);
  background: var(--paper); color: var(--ink);
  font: 500 clamp(18px, 1.6vw, 21px)/1 var(--f-body);
  transition: box-shadow .25s var(--ease);
}
.search__input::placeholder { color: var(--ink-3); opacity: 1; }
.search__input::-webkit-search-cancel-button { display: none; }
.search__input:not(:placeholder-shown) { padding-right: 64px; }
.search__input:focus { outline: none; box-shadow: 0 0 0 4px var(--orange); }
.search__clear { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 4px; background: var(--mist-2); transition: background-color .2s; }
.search__clear:hover { background: var(--rule); }
.search__clear svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }

.suggest {
  position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; right: 0;
  max-height: min(420px, 60vh); overflow-y: auto; padding: 6px;
  background: #fff; border-radius: var(--r);
  box-shadow: 0 0 0 1px var(--line), 0 24px 48px -20px rgba(16,17,20,.35);
  animation: pop .22s var(--e-out);
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }
.suggest li { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 50px; padding: 8px 14px; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 17px; }
.suggest li b { font: 500 12px/1 var(--f-mono); color: var(--ink-3); }
.suggest li[aria-selected="true"] { background: var(--ink); color: #fff; }
.suggest li[aria-selected="true"] b { color: var(--orange); }
.finder__none { cursor: default !important; color: var(--ink-2); font-weight: 500 !important; }

/* главни дестинации — лента што се лизга */
.dest { min-width: 0; }
.dest__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.dest__head .finder__label { width: auto; }
.dest__arrows { display: flex; gap: 6px; }
.dest__arrow { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 4px; background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color .2s var(--ease), color .2s var(--ease), opacity .2s; }
.dest__arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dest__arrow:hover:not(:disabled) { background: var(--ink); color: var(--orange); box-shadow: none; }
.dest__arrow:disabled { opacity: .3; cursor: default; }
.dest__track {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 4px 2px 12px; margin: -4px -2px -12px;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
}
.dest__track::-webkit-scrollbar { display: none; }
.dest__track.at-end { -webkit-mask-image: none; mask-image: none; }
.dest__track:not(.at-start):not(.at-end) {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 48px), transparent 100%);
}
.dest__track.at-end:not(.at-start) { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 36px); mask-image: linear-gradient(to right, transparent 0, #000 36px); }

.dest-card {
  flex: 0 0 auto; width: 172px; min-height: 106px;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 14px 16px 13px; border: 0; border-radius: var(--r);
  background: var(--mist); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink); text-decoration: none; text-align: left; user-select: none;
  scroll-snap-align: start;
  transition: transform .4s var(--e-out), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.dest-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--ink), 0 12px 22px -14px rgba(16,17,20,.4); }
.dest-card:active { transform: translateY(-1px) scale(.98); }
.dest-card.is-active { background: var(--blue); color: #fff; box-shadow: none; }
.dest-card__name { max-width: 100%; font-family: var(--f-display); font-weight: 700; font-size: 16.5px; line-height: 1.25; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dest-card__meta { margin-top: auto; padding-top: 12px; display: grid; gap: 3px; font: 500 12px/1.2 var(--f-mono); color: var(--ink-2); }
.dest-card__p { color: var(--ink-3); }
.dest-card.is-active .dest-card__meta, .dest-card.is-active .dest-card__p { color: rgba(255,255,255,.85); }
.dest-card.is-off .dest-card__meta { color: var(--ink-3); }

/* насока и ден */
.segmented { display: inline-flex; padding: 3px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-strong); }
.seg__btn { height: 42px; padding: 0 16px; border: 0; border-radius: 4px; background: transparent; font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: background-color .2s var(--ease), color .2s var(--ease); }
.seg__btn::before { content: "→ "; font-family: var(--f-mono); opacity: .55; }
.seg__btn[data-dir="in"]::before { content: "← "; }
.seg__btn:hover { color: var(--ink); }
.seg__btn.is-active { background: var(--ink); color: var(--orange); }

.days { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; height: 42px; padding: 0 14px; border: 0; border-radius: 4px;
  background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong);
  font-weight: 600; font-size: 14px; color: var(--ink-2);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.day:hover { background: var(--mist-2); color: var(--ink); }
.day:active { transform: scale(.96); }
.day.is-active { background: var(--ink); color: var(--orange); box-shadow: none; }

/* напомена за неработен ден */
.holiday { padding: 12px 16px; border-radius: var(--r); background: #fff6ef; box-shadow: inset 0 0 0 1px rgba(254,102,1,.28); font-size: 14.5px; line-height: 1.5; color: var(--orange-ink); font-weight: 600; }

/* ---------- резултати ---------- */
.sheet { margin-top: clamp(40px, 5vw, 60px); min-width: 0; }
.sheet__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.sheet__route { font: 600 12px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.sheet__city { margin-top: 4px; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1; letter-spacing: -0.03em; }
.sheet__count { font: 600 12.5px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.sheet__list { min-height: 120px; }
.sheet__empty { padding: 28px 0; color: var(--ink-2); }

/* филтер по превозник: домашниот е прв, останатите се лизгаат настрана */
.carriers { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.carriers .finder__label { width: auto; }
.carriers__wrap { position: relative; flex: 1; min-width: 0; }
.carriers__row {
  display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: 2px 30px 2px 2px; margin: -2px;
}
.carriers__row::-webkit-scrollbar { display: none; }
.carriers__wrap::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 36px; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,0), #fff 75%); }
.carriers__chip {
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px; border: 0; border-radius: 4px;
  background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong);
  font-weight: 600; font-size: 14px; color: var(--ink-2); white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.carriers__chip b { font: 500 11.5px/1 var(--f-mono); color: var(--ink-3); }
.carriers__chip:hover { background: var(--mist-2); color: var(--ink); }
.carriers__chip.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.carriers__chip.is-on b { color: var(--orange); }

/* редовите со поаѓања */
.trip {
  position: relative;
  display: grid; grid-template-columns: 6.2rem minmax(0, 1fr) auto; gap: 4px 18px; align-items: center;
  padding: 15px 16px; border-bottom: 1px solid var(--line);
  transition: background-color .25s var(--ease);
}
.trip::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 4px; background: var(--orange); transform: scaleY(0); transform-origin: bottom; transition: transform .35s var(--e-out); }
.trip:hover { background: var(--mist); }
.trip:hover::before, .trip:focus-within::before { transform: scaleY(1); }
.trip--next { background: #fff6ef; }
.trip--next::before { background: var(--blue); transform: scaleY(1); }
.trip.is-past { opacity: .5; }
.trip--off { opacity: .6; }
.trip__when { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.trip__time { font: 700 1.45rem/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.trip__who { min-width: 0; }
.trip__carrier { font-weight: 600; font-size: 16.5px; line-height: 1.3; }
.trip__tags { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 3px; font-size: 13.5px; color: var(--ink-2); }
.trip__tags .daily { color: var(--ok); }
.trip__tags .off { color: var(--off); }
.trip__tags .direct { color: var(--orange-ink); font-weight: 600; }
.trip__local { font-weight: 600; color: var(--blue); }
.trip__price { font: 700 1rem/1.3 var(--f-mono); text-align: right; white-space: nowrap; }
.trip__price small { display: block; font: 500 12.5px/1.4 var(--f-body); color: var(--ink-3); }
.trip__pill { display: inline-block; padding: 3px 7px; border-radius: 3px; font: 600 11.5px/1.25 var(--f-body); white-space: nowrap; }
.trip__pill--now { background: var(--orange); color: var(--ink); }
.trip__pill--past { background: var(--mist-2); color: var(--ink-3); font-weight: 500; }
.trip__pill--off { background: transparent; color: var(--ink-3); font-weight: 500; box-shadow: inset 0 0 0 1px var(--rule); }

/* напомена за меѓународните линии, над часовите */
.resv { margin: 18px 0; padding: 20px 22px; border-radius: var(--r); background: #fff6ef; box-shadow: inset 0 0 0 1px rgba(254,102,1,.26); }
.resv__title { margin: 0 0 4px; font-family: var(--f-display); font-weight: 700; font-size: 1.08rem; color: var(--orange-ink); }
.resv__text { margin: 0 0 14px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); max-width: 62ch; }

/* двата телефона, секогаш заедно */
.phones { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.phones__one {
  display: flex; flex-direction: column; gap: 1px;
  padding: 10px 16px; border-radius: var(--r); background: #fff;
  text-decoration: none; box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: box-shadow .25s var(--e-out), transform .3s var(--e-out);
}
.phones__one b { font: 700 1.15rem var(--f-mono); color: var(--blue); font-variant-numeric: tabular-nums; }
.phones__one span { font-size: 12px; color: var(--ink-3); }
.phones__one:hover { box-shadow: inset 0 0 0 1.5px var(--orange); transform: translateY(-2px); }
.phones__one:hover b { color: var(--orange-ink); }

.callbox { padding: 26px 0 8px; }
.callbox__title { margin: 0 0 16px; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.5rem); }
.callbox__text { margin: 16px 0 0; color: var(--ink-2); max-width: 52ch; }

.sheet__note { margin-top: 24px; font-size: 14px; color: var(--ink-2); line-height: 1.7; max-width: 90ch; }
.sheet__tel { display: inline-block; padding-block: 3px; font-family: var(--f-mono); font-weight: 700; font-size: 1.05em; color: var(--orange-ink); text-decoration: none; white-space: nowrap; border-bottom: 2px solid var(--orange); transition: color .25s var(--e-out); }
.sheet__tel:hover { color: var(--blue); border-color: var(--blue); }
.sheet__or { color: var(--ink-3); }

/* онлајн билет, веднаш под поаѓањата; за странство копчето го нема */
.sheet__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.sheet__buy.is-intl .btn { display: none; }
.sheet__buy.is-intl .sheet__buyNote { max-width: 70ch; }
.sheet__buyNote { font-size: 13.5px; color: var(--ink-3); max-width: 36ch; }

/* ============================================================
   СТРАНСТВО
   ============================================================ */
.section--intl { background: var(--mist); padding-bottom: clamp(56px, 6vw, 96px); }
/* после сивиот дел со странство не треба уште еден полн појас празно */
.section--station { padding-top: clamp(56px, 6vw, 96px); }
.countries { margin-top: clamp(40px, 5vw, 60px); border-top: 2px solid var(--ink); }
.country {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 16px 24px; align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--line-strong);
}
.country::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 5px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--e-out); }
.country__main { min-width: 0; transition: transform .45s var(--e-out); }
@media (hover: hover) {
  .country:hover::before { transform: scaleX(1); }
  .country:hover .country__main { transform: translateX(22px); }
}
.country--rest .country__name { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }
.country__name { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 2.5vw, 2.1rem); line-height: 1.1; letter-spacing: -.025em; }
.country__cities { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ctry__city {
  height: 34px; padding: 0 12px; border: 0; border-radius: 4px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 500; color: var(--ink);
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s;
}
.ctry__city:hover { background: var(--ink); color: var(--orange); box-shadow: none; }
.country__stat { font: 600 12px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.country__stat b { display: block; font: 700 1.2rem/1.2 var(--f-mono); color: var(--ink); text-transform: none; letter-spacing: 0; }

.intl__call { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 36px; padding: 22px 24px; border-radius: 10px; background: var(--ink); color: #fff; }
.intl__callText { font-weight: 600; font-size: 1.05rem; max-width: 40ch; }
.intl__call .phones__one { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.intl__call .phones__one b { color: var(--orange); }
.intl__call .phones__one span { color: rgba(255,255,255,.6); }
.intl__call .phones__one:hover b { color: #fff; }
.intl__call .phones { flex: 1 1 320px; justify-content: flex-end; }
.intl__call .phones__one { flex: 0 1 200px; }
@media (max-width: 760px) { .intl__call .phones { justify-content: stretch; } .intl__call .phones__one { flex: 1 1 200px; } }

/* ============================================================
   УСЛУГИ
   ============================================================ */
/* услугите се во три колони преку целата ширина: фотографиите од
   станицата си имаат свој дел подолу, па тука не се повторуваат */
.station { max-width: none; }

.media { position: relative; }
.media__frame { overflow: hidden; border-radius: var(--r); background: var(--mist-2); }
.media__frame img { width: 100%; height: auto; }
.caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-top: 12px; font: 400 12.5px/1.4 var(--f-mono); color: var(--ink-3); }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); margin-top: clamp(36px, 4vw, 56px); }
.services dd { max-width: 40ch; }
.services > div { padding: 18px 0; border-top: 1px solid var(--line-strong); }
.services dt { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; }
.services dt .ico { color: var(--orange-ink); }
.services div:hover dt .ico { transform: translateY(-2px) rotate(-6deg); }
.services dd { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.services a { font-family: var(--f-mono); font-weight: 700; color: var(--blue); text-decoration: none; white-space: nowrap; }
.services a:hover { color: var(--orange-ink); }

/* главниот блок за билети: во сината боја на станицата */
.ticket {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center;
  margin-top: clamp(60px, 8vw, 104px); padding: clamp(28px, 4vw, 52px); border-radius: 10px;
  background: var(--blue); color: #fff;
}
.ticket__text { position: relative; z-index: 1; }
.ticket__text p { margin-top: 12px; color: rgba(255,255,255,.82); max-width: 58ch; }
.ticket__actions { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ticket__tels { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ticket__tel { font: 700 1.1rem var(--f-mono); color: #fff; text-decoration: none; border-bottom: 2px solid rgba(255,255,255,.4); }
.ticket__tel:hover { border-color: var(--orange); }
.ticket__hint { font-size: 13px; color: rgba(255,255,255,.66); }

/* ============================================================
   ИСТОРИЈА — темно, со линија што се полни додека се скрола
   ============================================================ */
.section--history { background: var(--ink); color: #fff; }
.section--history .plate { background: var(--orange); color: var(--ink); }
.section--history .section-head__text { color: rgba(255,255,255,.72); }

.timeline { --year-w: clamp(150px, 20vw, 270px); position: relative; margin-top: clamp(44px, 6vw, 76px); }
.timeline__progress { position: absolute; top: 0; bottom: 0; left: var(--year-w); width: 2px; background: rgba(255,255,255,.12); }
.timeline__progress span { position: absolute; inset: 0; background: var(--orange); transform: scaleY(0); transform-origin: top; }
.tl__item {
  position: relative;
  display: grid; grid-template-columns: var(--year-w) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 72px);
  padding: clamp(30px, 4vw, 50px) 0; border-top: 1px solid rgba(255,255,255,.1);
}
.tl__item::before {
  content: ""; position: absolute; left: calc(var(--year-w) - 5px); top: calc(clamp(30px, 4vw, 50px) + .9rem);
  width: 12px; height: 12px; border-radius: 2px;
  background: var(--ink); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--e-out);
}
.tl__item--on::before { background: var(--orange); box-shadow: none; transform: rotate(45deg); }
/* годината никогаш не смее да стигне до линијата: десен простор од
   32 px и големина што собира „Денес“ / „Until 2014“ во колоната */
.tl__year { padding-right: 32px; font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.tl__item--now .tl__year { color: var(--orange); }
.tl__body { padding-left: 8px; }
.tl__body h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -.01em; }
.tl__body p { margin-top: 8px; font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.6; color: rgba(255,255,255,.78); max-width: 58ch; }

/* ============================================================
   СТАНИЦАТА ОДНАТРЕ (фотографии настрана)
   ============================================================ */
.section--gallery .section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.hscroll { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll.is-pinned { overflow: hidden; scroll-snap-type: none; }
.hscroll__track { display: flex; gap: 14px; padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); width: max-content; }
/* иста висина за сите, а ширината си ја носи секоја фотографија */
.shot { position: relative; flex: none; margin: 0; overflow: hidden; border-radius: 8px; height: clamp(300px, 56vh, 470px); background: var(--mist-2); scroll-snap-align: center; }
.shot img { height: 100%; width: auto; max-width: none; object-fit: cover; }
.shot figcaption { position: absolute; left: 14px; bottom: 14px; }
.shot figcaption span { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 4px; background: var(--ink); color: var(--orange); font: 600 11.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }

/* ============================================================
   КОНТАКТ
   ============================================================ */
.section--contact { background: var(--mist); }
/* без фотографија: адресата и податоците одат преку целата ширина */
.contact { display: block; }
.contact__main .section-head__text { max-width: 60ch; }
.contact__address { font-size: clamp(2.4rem, 5.4vw, 4.8rem); }
.contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); margin-top: 44px; }
@media (max-width: 1080px) { .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contacts > div { padding: 16px 0; border-top: 1px solid var(--line-strong); }
.contacts dt { font: 600 11px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.contacts dd { margin-top: 7px; font: 700 17px/1.3 var(--f-mono); }
.contacts dd.contacts__addr { font: 600 15.5px/1.4 var(--f-body); }
.contacts a { color: var(--blue); text-decoration: none; background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 3px no-repeat; transition: background-size .35s var(--e-out); }
.contacts a:hover { background-size: 100% 3px; }

/* ============================================================
   ПОДНОЖЈЕ
   ============================================================ */
.footer { padding: clamp(54px, 7vw, 86px) 0 40px; background: var(--ink); color: rgba(255,255,255,.7); font-size: 14.5px; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__city { color: var(--orange); }
.footer__up { border: 0; background: none; padding: 8px 0; font: 600 13px var(--f-mono); letter-spacing: .06em; color: var(--orange); }
.footer__up:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 48px; margin-top: 34px; }
.footer__h { margin-bottom: 14px; font: 600 11px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.footer p + p { margin-top: 6px; }
.footer a { display: inline-block; padding-block: 3px; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { color: var(--orange); }
.footer__links li + li { margin-top: 2px; }
.footer .brand { display: inline-flex; padding: 0; }
.footer__credit { font-size: 13px; color: rgba(255,255,255,.5); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 12px !important; font-size: 13.5px; }
.footer__legal a { color: rgba(255,255,255,.75); border-bottom: 1px solid rgba(255,255,255,.28); }
.footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.footer__copy { font: 400 12.5px var(--f-mono); color: rgba(255,255,255,.5); }
/* копчето нагоре: доволно големо за палец, на крајот од страницата */
.footer .footer__top-btn { display: inline-flex; padding: 0 22px; color: var(--ink); }
.footer .footer__top-btn:hover { color: var(--orange); }
.footer__top-btn:hover .btn__arrow { transform: translateY(-3px); }


/* ============================================================
   ВЛЕЗ ВО ЕКРАН (кога GSAP не е достапен, сè е видливо)
   ============================================================ */
.js [data-anim]:not(.is-shown) { opacity: 0; transform: translateY(26px); }
.js.no-gsap [data-anim] { opacity: 1; transform: none; }
.js [data-anim].is-shown { opacity: 1; transform: none; }
[data-magnet] { transition: transform .35s var(--e-out); }

/* ============================================================
   ПРИЛАГОДУВАЊЕ
   ============================================================ */
@media (max-width: 1180px) {
  .nav { gap: 18px; }
  .nav a { font-size: 14px; }
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: grid; }
  .site-header__actions { margin-left: auto; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }

  /* хирото во една колона: сè централно, како кај Скопје */
  .hero { text-align: center; }
  .hero .board { text-align: left; }
  .hero .plates { justify-content: center; }
  .hero__title { text-wrap: balance; }
  .hero .lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  /* три еднакви колони: секоја бројка е точно на средина од својата
     третина, без разлика колку е долг натписот под неа */
  .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .stats > div { align-items: center; text-align: center; }

  .section-head--split { grid-template-columns: minmax(0, 1fr); }
  .section-head--split .section-head__text { margin-top: 0; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__media { max-width: 720px; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .section { padding-block: 64px; }
  .section--intl { padding-bottom: 44px; }
  .section--station { padding-top: 48px; }
  .footer__top-btn { width: 100%; }
  .site-header__cta { display: none; }
  .site-header__inner { gap: 12px; }
  .site-header__actions { gap: 8px; }
  .brand { min-width: 0; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 14.5px; }
  .lang__btn { min-width: 32px; padding: 0 6px; }

  /* Хиро на телефон: името на станицата големо, трите копчиња одма
     под него, па бројките и таблата со пет поаѓања. */
  .hero { padding-top: calc(var(--header-h) + 26px); padding-bottom: 60px; }
  .hero__title { font-size: clamp(2.3rem, 11.5vw, 3.4rem); }
  .hero .lead { font-size: 1rem; }
  /* редослед на телефон: наслов, копчиња, таблата со пет поаѓања, па
     бројките — поаѓањата мора да се гледаат уште во првиот екран */
  .plates .plate--ghost { display: none; }
  .hero__title { margin-top: 16px; }
  .hero__lead { display: none; }
  /* stretch: од компјутерот остана align-items: end, кое во колона ги
     туркаше копчињата и бројките надесно */
  .hero__grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin-top: 0; }
  .hero__copy { display: contents; }
  .hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .btn:first-child { grid-column: 1 / -1; }
  .board { order: 2; margin-top: 22px; }
  .stats { order: 3; gap: 0; margin-top: 26px; }
  .stats dt { letter-spacing: .08em; }

  .finder__label { width: 100%; }
  .finder__row { width: 100%; }
  .search__icon { left: 18px; }
  .search__input { height: 62px; padding-left: 52px; font-size: 17px; }
  .dest__arrows { display: none; }
  .dest-card { width: 150px; min-height: 98px; padding: 12px 14px; }
  .dest-card__name { font-size: 15.5px; }
  .segmented { width: 100%; }
  .seg__btn { flex: 1; padding: 0 8px; }

  .trip { grid-template-columns: 5rem minmax(0, 1fr); gap: 3px 12px; align-items: start; padding: 13px 10px 13px 14px; }
  .trip__time { font-size: 1.28rem; }
  /* цената и повратната одат во ист ред: еден ред помалку по линија */
  .trip__price { grid-column: 2; text-align: left; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
  .trip__price small { display: inline; }
  .carriers { flex-wrap: wrap; gap: 8px; }
  .carriers .finder__label { width: 100%; }
  .carriers__wrap { flex: 1 1 100%; }
  /* Секој превозник зафаќа најмалку половина од ширината: на екранот се
     гледаат точно Роман и Галеб, а Транскоп почнува зад работ и се
     наоѓа само со лизгање настрана. */
  .carriers__row { padding-right: 0; gap: 8px; }
  .carriers__chip { min-width: calc(50% - 4px); height: 46px; justify-content: center; font-size: 15px; }
  .carriers__chip b { font-size: 12.5px; }
  .carriers__wrap::after { display: none; }

  .country { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "n"; padding: 20px 0; }
  .country__main { grid-area: main; }
  .country__stat--n { grid-area: n; }

  .services, .contacts { grid-template-columns: minmax(0, 1fr); }
  .ticket { grid-template-columns: minmax(0, 1fr); }
  .ticket__actions .btn { width: 100%; }
  .contact__main .hero__actions { grid-template-columns: minmax(0, 1fr); }
  .contact__main .btn { width: 100%; }
  .intl__call { padding: 20px; }

  .timeline { --year-w: 0px; }
  .timeline__progress { left: 0; }
  .tl__item { grid-template-columns: minmax(0, 1fr); row-gap: 12px; padding-left: 28px; }
  .tl__item::before { left: -5px; top: calc(clamp(30px, 4vw, 50px) + 12px); }
  .tl__body { padding-left: 0; }

  .shot { height: min(78vw, 420px); }

  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}

@media (max-width: 400px) {
  .brand__name { font-size: 13.5px; }
  .brand__city { letter-spacing: .12em; }
}

/* ---------- намалено движење ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-anim] { opacity: 1; transform: none; }
  .plate__dot { animation: none; }
}
