/* Šiaurės Kryptis — tarptautiniai pervežimai.
   Sandara — ../bendra/pasakotojas.css; čia šriftai, spalvos ir puspriekabių jungiklis.

   Paletė iš kelio: šviesus asfaltas, tamsus rašalas, signalinė oranžinė —
   ta pati spalva, kuri būna ant kelio ženklų ir vairuotojo liemenės. */

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/BarlowCondensed-latin-ext.woff2") format("woff2");
  unicode-range: U+0104-0105, U+010C-010D, U+0116-0119, U+012E-012F, U+0160-0161, U+016A-016B, U+0172-0173, U+017D-017E;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/BarlowCondensed-latin.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0, U+00B0, U+00B7, U+00D7, U+2013-2014, U+2018-2019, U+201C-201E, U+2026, U+20AC, U+2212;
}
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../../assets/fonts/SchibstedGrotesk-400-600-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../../assets/fonts/SchibstedGrotesk-400-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-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; }

:root {
  color-scheme: light;

  --fonas: #eceff1;
  --fonas-2: #dfe4e7;
  --tekstas: #16202a;          /* ant --fonas ≈ 14,2:1 */
  --tekstas-2: #4d5a66;        /* ≈ 6,4:1 */
  --tekstas-3: #9aa5ae;        /* tik dekoracijai */
  --akcentas: #b83a17;         /* kelio ženklo oranžinė, ≈ 5,2:1 */
  --ant-akcento: #ffffff;
  --linija: rgba(22, 32, 42, .13);
  --virsus-fonas: rgba(236, 239, 241, .86);
  --milzinas-sp: 22, 32, 42;

  --serif: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --sans: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Siauras, didžiosiomis — kaip užrašas ant puspriekabės borto. */
h2, h3, .milzinas, .skaicius, .zenklas__vardas, .apacia__vardas { font-weight: 600; text-transform: uppercase; }
h2 { letter-spacing: -.005em; line-height: .92; }
.milzinas { letter-spacing: -.01em; font-size: clamp(130px, 28vw, 480px); }
.skaicius { letter-spacing: -.02em; }
.zenklas__vardas { letter-spacing: .02em; font-size: 22px; }
.konfig__suma { font-weight: 600; text-transform: uppercase; }

.zenklas__rodykle { fill: var(--akcentas); }
.zenklas__kelias { fill: none; stroke: var(--tekstas); stroke-width: 3; stroke-linecap: round; }

.konfig__pav { margin: 0 0 8px; font: 500 12px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--tekstas-2); }

/* Statinis vilkikas (be WebGL / be JS). */
.a__tentas { fill: #f4f5f6; stroke: #c9d0d5; stroke-width: 2; }
.a__juosta { fill: #b83a17; }
.a__kabina { fill: #16202a; }
.a__stiklas { fill: #5b6873; }
.a__ratas { fill: #1b1f23; }
.a__kelias { fill: none; stroke: #b9c1c7; stroke-width: 3; stroke-dasharray: 24 18; }


/* ================= Savas maketas =================
   Kelias: fone — maršrutų žemėlapis, kuriame kelias Kaunas–Berlynas
   „važiuoja“. Pradžioje — išvykimų švieslentė su artimiausiais reisais.
   Tekstai užrašyti ant mėlynų kelio ženklų, numeriai — žali E kelių
   ženkliukai. Dalinį krovinį rodo padėklų planas, sekimą — būsenų juosta,
   pabaigoje — pavyzdinė kainos skaičiuoklė. */

.zemelapis { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: .75; }
.zemelapis__kelias { fill: none; stroke: #b9c2c9; stroke-width: 2.5; stroke-dasharray: 2 8; stroke-linecap: round; }
.zemelapis__aktyvus { fill: none; stroke: var(--akcentas); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 14 10; animation: vaziuoja 3s linear infinite; }
@keyframes vaziuoja { to { stroke-dashoffset: -48; } }
.zemelapis__miestai circle { fill: #8a96a0; }
.zemelapis__miestai .zemelapis__namai { fill: var(--akcentas); stroke: #fff; stroke-width: 3; }
.zemelapis__miestai text { font: 600 13px var(--serif); letter-spacing: .06em; text-transform: uppercase; fill: #8a96a0; }

/* ---------- pradžia: švieslentė ---------- */
.ekranas { min-height: calc(100svh - 52px); justify-content: space-between; padding-top: 118px; }
.ekranas__virsus { position: relative; z-index: 2; }
.antraste { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(56px, 7vw, 120px); line-height: .88; letter-spacing: -.01em; text-transform: uppercase; }
.ekranas__apie { margin: 0; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; max-width: 40ch; }
.lenta {
  position: relative;
  z-index: 2;
  flex: none;
  width: min(440px, 42vw);
  padding: 16px 18px 12px;
  border-radius: 8px;
  background: #121a22;
  color: #f2c94c;
  box-shadow: 0 24px 50px -24px rgba(22, 32, 42, .6);
  font: 500 13px/1 var(--mono);
}
.lenta__pav { margin: 0 0 12px; color: #fff; font: 600 14px/1 var(--serif); letter-spacing: .12em; text-transform: uppercase; }
.lenta__eile { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, 1.1fr); gap: 8px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .08); text-transform: uppercase; letter-spacing: .06em; }
/* Raidės — tarsi ant plokštelių, kaip sena oro uosto lenta. */
.lenta__eile span { padding: 3px 5px; border-radius: 2px; background: linear-gradient(180deg, #1c2631 0 49%, #0e151c 51%); }
.lenta__eile--galva { border-top: 0; padding-top: 0; color: #8a96a0; font-size: 10.5px; }
.lenta__eile--galva span { background: none; padding: 0 5px; }

/* ---------- kelio ženklai ---------- */
.sekcija__tekstas { color: #fff; }
.sekcija__tekstas::before {
  inset: -42px -46px;
  -webkit-mask-image: none;
  mask-image: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 18px;
  background: #1c4f92;
  box-shadow: inset 0 0 0 7px #1c4f92, inset 0 0 0 10px #fff, 0 26px 50px -24px rgba(22, 32, 42, .55);
}
.sekcija__tekstas h2, .sekcija__tekstas h3 { color: #fff; }
.sekcija__tekstas .zodziai, .sekcija__tekstas .trumpas, .sekcija__tekstas .pastaba, .sekcija__tekstas .konfig__apie, .sekcija__tekstas .konfig__pav { color: #dce6f2; }
.sekcija__tekstas .skaicius { color: #f2c94c; }
.nr { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.nr b { padding: 5px 9px 4px; border-radius: 4px; background: #13804a; box-shadow: inset 0 0 0 2px #fff; font: 600 15px/1 var(--serif); letter-spacing: .04em; }
/* Konfigūratorius ir sąrašas ant mėlyno ženklo. */
.sekcija__tekstas .konfig__variantas { color: #dce6f2; border-color: rgba(255, 255, 255, .35); }
.sekcija__tekstas .konfig__variantas[aria-pressed="true"] { color: #fff; border-color: #f2c94c; }
.sekcija__tekstas .konfig__suma { color: #fff; }
.sekcija__tekstas .konfig__kaina, .sekcija__tekstas .paslaugos, .sekcija__tekstas .paslaugos li { border-color: rgba(255, 255, 255, .22); }
.sekcija__tekstas .paslaugos li p { color: #dce6f2; }
#uzklausa .sekcija__tekstas::before { border-radius: 22px; }
#uzklausa .mygtukas { color: #fff; border-color: #f2c94c; }
#uzklausa .mygtukas::before { background: #f2c94c; }
#uzklausa .mygtukas:hover, #uzklausa .mygtukas:focus-visible { color: #121a22; }

/* ---------- padėklų planas ---------- */
.padeklai { display: grid; grid-template-columns: repeat(11, 1fr); grid-auto-flow: column; grid-template-rows: repeat(3, 1fr); gap: 4px; max-width: 420px; margin-top: 26px; padding: 8px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 4px; }
.padeklai i { aspect-ratio: 1.2; border-radius: 2px; background: rgba(255, 255, 255, .16); }
.padeklai i.jusu { background: #f2c94c; }

/* ---------- sekimas ---------- */
.sekimas { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 30px 0 0; padding: 0; }
.sekimas li { position: relative; padding: 24px 10px 0 0; }
.sekimas li::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 3px; background: rgba(255, 255, 255, .25); }
.sekimas li::after { content: ""; position: absolute; left: 0; top: 0; width: 17px; height: 17px; border-radius: 50%; background: #1c4f92; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .5); }
.sekimas__atlikta::before { background: #f2c94c !important; }
.sekimas__atlikta::after { background: #f2c94c !important; box-shadow: none !important; }
.sekimas__dabar::after { background: #fff !important; box-shadow: 0 0 0 5px rgba(242, 201, 76, .45) !important; animation: dabar 1.6s ease-in-out infinite; }
@keyframes dabar { 50% { box-shadow: 0 0 0 9px rgba(242, 201, 76, .1); } }
.sekimas b { display: block; font: 600 18px/1.1 var(--serif); letter-spacing: .04em; text-transform: uppercase; }
.sekimas span { display: block; margin-top: 4px; font-size: 13px; color: #dce6f2; }

/* ---------- kainos skaičiuoklė ---------- */
.kaina { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; max-width: 620px; margin: 0 auto 38px; padding: 20px 22px; text-align: left; border-radius: 10px; background: rgba(255, 255, 255, .1); }
.kaina[hidden] { display: none; }
.kaina label { display: grid; gap: 8px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #dce6f2; }
.kaina label output { font: 600 18px/1 var(--serif); color: #fff; letter-spacing: .04em; }
.kaina select { padding: 11px 12px; border: 0; border-radius: 6px; background: #fff; color: #16202a; font: 600 17px/1 var(--serif); letter-spacing: .03em; text-transform: uppercase; }
.kaina select:focus-visible, .kaina input:focus-visible { outline: 3px solid #f2c94c; outline-offset: 2px; }
.kaina input { width: 100%; height: 40px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.kaina input::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #f2c94c var(--uzpildyta, 28%), rgba(255, 255, 255, .25) var(--uzpildyta, 28%)); }
.kaina input::-moz-range-track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .25); }
.kaina input::-moz-range-progress { height: 8px; border-radius: 99px; background: #f2c94c; }
.kaina input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 4px; background: #fff; border: 3px solid #f2c94c; }
.kaina input::-moz-range-thumb { width: 20px; height: 20px; border-radius: 4px; background: #fff; border: 3px solid #f2c94c; }
.kaina__rezultatas { grid-column: 1 / -1; display: grid; gap: 4px; margin: 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .2); }
.kaina__rezultatas small { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #dce6f2; }
.kaina__rezultatas b { font: 600 clamp(36px, 4vw, 52px)/1 var(--serif); color: #f2c94c; }
.kaina__rezultatas span { font-size: 14px; color: #dce6f2; }

@media (max-width: 860px) {
  .ekranas { min-height: 100svh; padding-top: 96px; }
  .ekranas__virsus::before { content: ""; position: absolute; z-index: -1; inset: -14px calc(var(--krastas) * -1 + 2px); background: var(--virsus-fonas); }
  .ekranas__apacia { flex-direction: column; align-items: stretch; gap: 18px; }
  .lenta { width: 100%; }
  .sekcija__tekstas::before { inset: -32px calc(var(--krastas) * -1 + 4px); }
  .sekimas { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .kaina { grid-template-columns: 1fr; padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  :root:not(.judesys) .zemelapis__aktyvus, :root:not(.judesys) .sekimas__dabar::after { animation: none; }
}
