/* ==========================================================================
   Trans-Tur — «Foto» (Grand Tour)

   Mierīgs, premium ceļojumu stils: pilnekrāna fotogrāfija, serifa
   virsraksti (atbalss logotipa N/E/S/W burtiem), daudz gaisa.
   Palete: tinte, vēsi pelēks papīrs, viens šīfera zils akcents.
   Šrifti: Source Serif 4 (virsraksti), Manrope (teksts).
   ========================================================================== */

:root {
  --ink:       #0f1317;
  --ink-2:     #182027;
  --ink-line:  #2a333c;
  --ink-text:  #eef1f4;
  --ink-muted: #a3adb7; /* uz --ink: 8.2:1 */

  --paper:     #ffffff;
  --paper-2:   #f2f4f6;
  --text:      #14181d;
  --muted:     #59636e; /* uz balta: 6.2:1 */
  --line:      #dfe3e7;
  --line-2:    #c5ccd3;

  --accent:      #2f5878; /* šīfera zils, uz balta: 7.4:1 */
  --accent-soft: #e4ebf1;
  --on-dark-accent: #9cc0dc;

  --danger: #a3341f;  --danger-bg: #fcf0ed;
  --success: #2c6347; --success-bg: #edf6f1;
  --focus: #2f6fd0;

  --ff-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ff-sans:  "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Tipoškala ~1.333 */
  --f-xs: .8125rem;
  --f-sm: .9375rem;
  --f-base: 1.0625rem;
  --f-md: clamp(1.125rem, 1.05rem + .3vw, 1.3rem);
  --f-lg: clamp(1.35rem, 1.2rem + .6vw, 1.75rem);
  --f-xl: clamp(1.75rem, 1.4rem + 1.4vw, 2.6rem);
  --f-2xl: clamp(2.1rem, 1.5rem + 2.6vw, 3.75rem);
  --f-hero: clamp(2.5rem, 1.5rem + 4vw, 5.25rem);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --gutter: clamp(16px, 4.5vw, 56px);
  --max: 1280px;
  --section-y: clamp(72px, 7vw + 32px, 160px);
  --header-h: 76px;
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

[data-theme="dark"] {
  --paper:   #12171c;
  --paper-2: #182027;
  --text:    #e8ecef;
  --muted:   #a3adb7;
  --line:    #26303a;
  --line-2:  #35414c;
  --accent:      #9cc0dc;
  --accent-soft: #1d2a35;
  --ink:      #0a0d10;
  --ink-2:    #11161b;
  --ink-line: #222b33;
  --danger: #f0907c;  --danger-bg: #2b1813;
  --success: #86cfa6; --success-bg: #12261c;
  --focus: #9cc0dc;
  color-scheme: dark;
}


/* --- Pamats --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
/* Animācijas un plūstošā ritināšana ieslēdzas tikai pēc ielādes (html.is-ready, main.js):
   citādi, atjaunojot lapu, tā aizbrauc līdz #enkuram un galvene/bloki «nodreb». */
html.is-ready { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--ff-sans);
  font-size: var(--f-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { list-style: none; padding: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
img, svg, picture { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--ff-serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: #fff; }
main:focus { outline: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 16px; background: var(--ink); color: #fff; text-decoration: none;
}
.skip:focus { top: 16px; }

.label {
  font-size: var(--f-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.tbd { color: var(--muted); font-style: italic; }


/* --- Pogas ---------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: var(--f-sm); line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform 220ms var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:disabled { opacity: .7; cursor: progress; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: var(--f-base); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #dfe7ee; }
.btn--glass { color: #fff; border-color: rgba(255,255,255,.55); }
.btn--glass:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--accent); }
[data-theme="dark"] .btn--dark { background: var(--accent); color: var(--ink); }
[data-theme="dark"] .btn--dark:hover { background: #c3dbee; }
.btn--outline { border-color: var(--line-2); color: var(--text); }
.btn--outline:hover { border-color: var(--text); }

/* WhatsApp poga: ikona + teksts */
.btn--wa svg { width: 20px; height: 20px; }
.btn--wa:hover svg { transform: none; }
.contacts__wa { gap: 10px; }
.contacts__wa svg { width: 22px; height: 22px; flex: none; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid currentColor; border-radius: 50%;
  background: transparent; color: inherit;
  opacity: .9;
  transition: opacity 160ms, background-color 160ms;
}
.icon-btn:hover { opacity: 1; background: rgba(127,127,127,.12); }
.icon-btn svg { width: 19px; height: 19px; }

.more {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0; border: 0; background: none;
  font-weight: 600; font-size: var(--f-sm); color: var(--accent);
}
.more svg { width: 18px; height: 18px; transition: transform 220ms var(--ease); }
.more:hover svg { transform: translateX(4px); }

.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }


/* --- Galvene: caurspīdīga virs foto, cieta pēc ritināšanas ------------------ */

.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: #fff;
  padding-top: env(safe-area-inset-top);
}
.is-ready .header { transition: background-color 250ms var(--ease), color 250ms var(--ease), box-shadow 250ms var(--ease); }
.header.is-stuck,
.header--solid,
.header:has(.mobile-nav.is-open) {
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 1px 0 var(--line);
}

.header__inner { display: flex; align-items: center; gap: var(--s-5); min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-right: auto; text-decoration: none; }
.brand__logo { width: 42px; height: 43px; flex: none; }
.brand__name { font-family: var(--ff-serif); font-weight: 600; font-size: 1.25rem; letter-spacing: .02em; }

.nav { display: none; }
.nav__list { display: flex; gap: var(--s-1); }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: var(--f-sm); font-weight: 500; text-decoration: none;
  opacity: .85; position: relative;
  transition: opacity 160ms;
}
.nav__link:hover, .nav__link.is-current { opacity: 1; }
.nav__link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 9px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease);
}
.nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1); }

.header__tools { display: flex; align-items: center; gap: var(--s-2); }

/* Valodu izvēlne: <details>, lai strādātu bez JS un nebūtu 10 pogu rindas */
.langs { display: none; position: relative; }
.langs__toggle {
  display: inline-flex; align-items: center; gap: 4px; list-style: none; cursor: pointer;
  min-height: 44px; padding: 0 10px;
  font-size: var(--f-xs); font-weight: 600; letter-spacing: .08em; opacity: .7;
  transition: opacity 160ms;
}
.langs__toggle::-webkit-details-marker { display: none; }
.langs:hover .langs__toggle, .langs[open] .langs__toggle { opacity: 1; }
.langs__chev { width: 14px; height: 14px; transition: transform 200ms var(--ease); }
.langs[open] .langs__chev { transform: rotate(180deg); }

.langs__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(2, minmax(44px, 1fr)); gap: 2px;
  padding: var(--s-2); margin: 0; min-width: 164px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}
[data-theme="dark"] .langs__menu { box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.langs__menu .lang { color: var(--text); }

.lang {
  min-width: 38px; min-height: 44px; padding: 0 6px; border: 0; background: none;
  font-size: var(--f-xs); font-weight: 600; letter-spacing: .08em; opacity: .6;
  transition: opacity 160ms; cursor: pointer;
}
.lang:hover { opacity: 1; }
.lang[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

/* Mobilajā izvēlnē poga paliek pilnas platuma, saraksts atveras zem tās (nevis pārklājumā,
   lai to nenogrieztu .mobile-nav > .wrap { overflow: hidden }) */
.langs--mobile { width: 100%; }
.langs--mobile .langs__toggle {
  width: 100%; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 var(--s-4); opacity: 1;
}
.langs--mobile .langs__menu {
  position: static; width: 100%; margin-top: var(--s-2);
  grid-template-columns: repeat(5, 1fr); box-shadow: none;
}

.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }

.header__cta { display: none; }
.header.is-stuck .header__cta { background: var(--ink); color: #fff; }
[data-theme="dark"] .header.is-stuck .header__cta { background: var(--accent); color: var(--ink); }

.burger__box { position: relative; display: block; width: 18px; height: 10px; }
.burger__box span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 220ms var(--ease), top 220ms var(--ease); }
.burger__box span:first-child { top: 0; }
.burger__box span:last-child { top: 8px; }
.burger[aria-expanded="true"] .burger__box span:first-child { top: 4px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__box span:last-child { top: 4px; transform: rotate(-45deg); }

.mobile-nav {
  display: grid; grid-template-rows: 0fr; visibility: hidden;
  transition: grid-template-rows 250ms var(--ease), visibility 0s linear 250ms;
}
.mobile-nav > .wrap { overflow: hidden; }
.mobile-nav.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 250ms var(--ease); }
.mobile-nav__link {
  display: flex; align-items: center; min-height: 56px;
  border-bottom: 1px solid var(--line);
  font-family: var(--ff-serif); font-size: var(--f-lg); text-decoration: none;
}
.mobile-nav__foot { display: flex; flex-wrap: wrap; gap: var(--s-3); padding: var(--s-5) 0 calc(var(--s-6) + env(safe-area-inset-bottom)); }
.mobile-nav__foot .langs { display: block; width: 100%; }

@media (min-width: 640px) {
  .langs:not(.langs--mobile) { display: inline-block; }
  .header__cta { display: inline-flex; }
}
@media (min-width: 1100px) {
  .nav { display: block; }
  .burger, .mobile-nav { display: none; }
}


/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: max(600px, 100svh);
  display: flex; align-items: flex-end;
  color: #fff;
  background: var(--ink);
  isolation: isolate;
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -2; }
.hero__media img { object-fit: cover; object-position: 60% 50%; }
/* Tumšinājums: augšā galvenei, apakšā tekstam — kontrasts neatkarīgi no foto */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,11,14,.6) 0%, rgba(8,11,14,0) 26%),
    linear-gradient(0deg, rgba(8,11,14,.88) 0%, rgba(8,11,14,.55) 38%, rgba(8,11,14,0) 70%);
}
/* Maršrutu shēma fotogrāfijas vietā */
.hero__visual {
  background:
    radial-gradient(70% 90% at 75% 45%, rgba(47, 88, 120, .55), transparent 65%),
    radial-gradient(60% 60% at 10% 100%, rgba(47, 88, 120, .25), transparent 60%),
    var(--ink);
}
.hero__visual::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(60% 70% at 70% 45%, #000 20%, transparent 80%);
}
.hv { position: absolute; inset: 0; width: 100%; height: 100%; }
.hv__rings circle { fill: none; stroke: rgba(156, 192, 220, .3); stroke-width: 1.2; stroke-dasharray: 2 8; }
.hv__rings circle:first-child { stroke: rgba(156, 192, 220, .5); stroke-dasharray: none; }
.hv__compass { color: #fff; opacity: .16; transform-box: fill-box; transform-origin: center; animation: fv-sway 10s ease-in-out infinite alternate; }
.hv__glow { transform-box: fill-box; transform-origin: center; animation: fv-pulse 7s ease-in-out infinite alternate; }
.hv__route {
  fill: none; stroke: #9cc0dc; stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 700; stroke-dashoffset: 700;
  animation: fv-draw 1.6s var(--ease) forwards;
  animation-delay: calc(.4s + var(--i) * .35s);
}
.hv__route--sea { stroke-dasharray: 4 7; stroke-dashoffset: 0; opacity: 0; animation: fv-fade .6s ease forwards; animation-delay: calc(.4s + var(--i) * .35s); }
.hv__stop { fill: var(--ink); stroke: #9cc0dc; stroke-width: 2; opacity: 0; animation: fv-fade .4s ease forwards; animation-delay: calc(1.4s + var(--i) * .35s); }
.hv__city {
  font: 600 15px var(--ff-sans); letter-spacing: .12em; text-transform: uppercase;
  fill: rgba(238, 241, 244, .7); opacity: 0;
  animation: fv-fade .5s ease forwards; animation-delay: calc(1.5s + var(--i) * .35s);
}
.hv__city--origin { fill: #fff; font-size: 17px; opacity: 1; animation: none; }
.hv__origin { fill: #fff; filter: drop-shadow(0 0 10px rgba(156, 192, 220, .9)); }
.hv__dot { fill: #fff; filter: drop-shadow(0 0 6px rgba(156, 192, 220, .95)); }
/* Telefonā shēma ir aiz teksta — padarām klusāku */
@media (max-width: 1023px) { .hv { opacity: .4; } }
@media (prefers-reduced-motion: reduce) {
  .hv__route { stroke-dashoffset: 0; animation: none; }
  .hv__route--sea, .hv__stop, .hv__city { opacity: 1; animation: none; }
  .hv__compass, .hv__glow { animation: none; }
  .hv__dot { display: none; }
}

.hero__sentinel { position: absolute; top: 80svh; left: 0; width: 1px; height: 1px; }

.hero__content { padding-top: calc(var(--header-h) + var(--s-8)); padding-bottom: clamp(40px, 7vh, 96px); }
.hero__eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: var(--s-5);
  font-size: var(--f-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
.hero__eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.hero__title { font-size: var(--f-hero); line-height: 1.02; letter-spacing: -0.02em; max-width: 17ch; text-wrap: balance; }
.hero__title span, .hero__title em { display: block; }
.hero__title em { font-style: italic; font-weight: 400; color: #d6e4ef; }

.hero__row { display: grid; gap: var(--s-6); margin-top: var(--s-6); }
.hero__lead { max-width: 46ch; font-size: var(--f-md); color: rgba(255,255,255,.88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

@media (min-width: 1024px) {
  .hero__row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s-8); }
}


/* --- Sadaļas -------------------------------------------------------------- */

.section { padding-block: var(--section-y); }
.section--soft { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--ink-text); }
.section--ink .label { color: var(--ink-muted); }
.section--ink .head__lead { color: var(--ink-muted); }

.head { display: grid; gap: var(--s-4); margin-bottom: clamp(40px, 5vw, 80px); }
.head__title { font-size: var(--f-2xl); max-width: 18ch; text-wrap: balance; }
.head__lead { max-width: 54ch; font-size: var(--f-md); color: var(--muted); }

@media (min-width: 1024px) {
  .head:not(.head--stack) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s-8); align-items: end; }
  .head:not(.head--stack) .label { grid-column: 1 / -1; }
}


/* --- Ievads --------------------------------------------------------------- */

.intro { padding-block: var(--section-y) calc(var(--section-y) * .6); }
.intro__grid { display: grid; gap: var(--s-5); }
.intro__text {
  font-family: var(--ff-serif);
  font-size: var(--f-xl);
  line-height: 1.3;
  max-width: 30ch;
  text-wrap: pretty;
}
@media (min-width: 1024px) {
  .intro__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--s-8); }
  .intro__grid .label { padding-top: .9em; }
}

.facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 96px);
  border-top: 1px solid var(--line-2);
}
.fact { padding: var(--s-5) var(--s-4) var(--s-5) 0; border-bottom: 1px solid var(--line); }
.fact dt { font-size: var(--f-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin-top: var(--s-2); font-family: var(--ff-serif); font-size: var(--f-lg); line-height: 1.2; }
@media (min-width: 768px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fact { border-bottom: 0; padding-right: var(--s-5); }
  .fact + .fact { border-left: 1px solid var(--line); padding-left: var(--s-5); }
}


/* --- Pakalpojumi ---------------------------------------------------------- */

.cards { display: grid; gap: var(--s-4); }
.card {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-6) var(--s-5);
  background: var(--paper-2);
  border-radius: var(--radius);
  transition: background-color 220ms var(--ease), transform 220ms var(--ease);
}
.card:hover { background: var(--accent-soft); }
.card__title { font-size: var(--f-lg); }
.card__for { font-size: var(--f-sm); font-weight: 600; color: var(--muted); }
.card__text { flex: 1; color: var(--text); opacity: .9; }
.card .more { margin-top: var(--s-3); align-self: flex-start; }
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
  .card { padding: var(--s-7) var(--s-6); }
}

.tags { display: grid; gap: var(--s-4); margin-top: var(--s-8); }
.tags__list { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.tags__list li {
  font-family: var(--ff-serif); font-size: var(--f-md);
  display: inline-flex; align-items: center; gap: var(--s-5);
}
.tags__list li:not(:last-child)::after { content: "·"; color: var(--line-2); }


/* --- Autoparks: foto + saturs blakus -------------------------------------- */

.fleet { display: grid; background: var(--paper-2); }
.fleet__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.fleet__media img { width: 100%; height: 100%; object-fit: cover; }
/* Dekoratīvā kompozīcija foto vietā: kompass, attāluma gredzeni, maršruts */
.fleet__visual {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(47, 88, 120, .55), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(47, 88, 120, .35), transparent 60%),
    var(--ink);
  color: #fff;
  isolation: isolate;
}
/* Smalks režģis, kas izgaist uz malām */
.fleet__visual::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%);
}
.fv { position: absolute; inset: 0; width: 100%; height: 100%; }
.fv__rings circle { fill: none; stroke: rgba(156, 192, 220, .35); stroke-width: 1; stroke-dasharray: 2 6; }
.fv__rings circle:first-child { stroke: rgba(156, 192, 220, .6); stroke-dasharray: none; }
.fv__labels text { font: 600 11px var(--ff-sans); letter-spacing: .2em; fill: rgba(238, 241, 244, .55); text-anchor: middle; }
.fv__route {
  fill: none; stroke: url(#fv-route); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 1100; stroke-dashoffset: 1100;
  animation: fv-draw 2.4s var(--ease) .3s forwards;
}
.fv__stops circle { fill: var(--ink); stroke: #9cc0dc; stroke-width: 2; opacity: 0; animation: fv-fade .4s ease forwards; }
.fv__stops circle:nth-child(1) { animation-delay: .9s; }
.fv__stops circle:nth-child(2) { animation-delay: 1.3s; }
.fv__stops circle:nth-child(3) { animation-delay: 1.8s; }
.fv__stops circle:nth-child(4) { animation-delay: 2.4s; fill: #9cc0dc; }
.fv__dot { fill: #fff; filter: drop-shadow(0 0 6px rgba(156, 192, 220, .9)); }
.fv__compass { color: #fff; transform-box: fill-box; transform-origin: center; animation: fv-sway 9s ease-in-out infinite alternate; }
.fv__glow { transform-box: fill-box; transform-origin: center; animation: fv-pulse 6s ease-in-out infinite alternate; }
.fleet__coords {
  position: absolute; left: var(--s-5); bottom: var(--s-4);
  font-size: var(--f-xs); font-weight: 600; letter-spacing: .14em; color: rgba(238, 241, 244, .55);
}
@keyframes fv-draw { to { stroke-dashoffset: 0; } }
@keyframes fv-fade { to { opacity: 1; } }
@keyframes fv-sway { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@keyframes fv-pulse { from { transform: scale(.92); opacity: .7; } to { transform: scale(1.08); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .fv__route { stroke-dashoffset: 0; animation: none; }
  .fv__stops circle { opacity: 1; animation: none; }
  .fv__compass, .fv__glow { animation: none; }
  .fv__dot { display: none; }
}

.fleet__body {
  padding: var(--section-y) max(var(--gutter), env(safe-area-inset-right)) var(--section-y) max(var(--gutter), env(safe-area-inset-left));
}
.models { display: grid; gap: var(--s-6); }
.model { padding-top: var(--s-5); border-top: 1px solid var(--line-2); }
.model__tag { font-size: var(--f-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.model__name { font-size: var(--f-xl); margin: var(--s-2) 0 var(--s-3); }
.model__text { color: var(--muted); max-width: 48ch; }

@media (min-width: 1024px) {
  .fleet { grid-template-columns: 1fr 1fr; }
  .fleet__media, .fleet__visual { aspect-ratio: auto; min-height: 100%; }
  .fleet__body { padding-left: var(--s-8); max-width: calc(var(--max) / 2 + var(--gutter)); }
}


/* --- Virzieni: maršruts ar pieturām --------------------------------------- */

.journey { display: grid; gap: var(--s-7); position: relative; padding-left: 32px; }
.journey::before {
  content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px;
  border-left: 1px dashed var(--ink-line);
}
.journey__stop { position: relative; }
.journey__dot {
  position: absolute; left: -32px; top: .55em;
  width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid var(--on-dark-accent); background: var(--ink);
}
.journey__stop:last-child .journey__dot { background: var(--on-dark-accent); }
.journey__name { font-size: var(--f-xl); margin-bottom: var(--s-3); }
.journey__text { color: var(--ink-muted); max-width: 40ch; }

@media (min-width: 900px) {
  .journey { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-left: 0; padding-top: 48px; gap: var(--s-7); }
  .journey::before { left: 6px; right: 0; top: 6px; bottom: auto; border-left: 0; border-top: 1px dashed var(--ink-line); }
  .journey__dot { left: 0; top: -48px; }
}


/* --- Kāpēc ---------------------------------------------------------------- */

.why { display: grid; gap: var(--s-6) var(--s-7); }
.why__item { padding-top: var(--s-5); border-top: 1px solid var(--line-2); }
.why__title { font-size: var(--f-lg); margin-bottom: var(--s-3); max-width: 20ch; }
.why__item p { color: var(--muted); max-width: 46ch; }
@media (min-width: 768px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .why { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); } }


/* --- Process -------------------------------------------------------------- */

.steps { display: grid; gap: var(--s-6); }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--s-4); }
.step__num {
  grid-row: span 2;
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-2);
  font-family: var(--ff-serif); font-size: var(--f-md);
}
.step__title { font-size: var(--f-lg); margin: .5em 0 var(--s-2); }
.step p { color: var(--muted); max-width: 40ch; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7); }
  .step { grid-template-columns: 1fr; }
  .step__num { grid-row: auto; margin-bottom: var(--s-4); }
  .step__title { margin-top: 0; }
}


/* --- Pieteikums ----------------------------------------------------------- */

.book__grid { display: grid; gap: var(--s-7); }
.book__aside { display: grid; gap: var(--s-4); align-content: start; }
.contacts { margin-top: var(--s-5); display: grid; gap: var(--s-4); }
.contacts dt { font-size: var(--f-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.contacts a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; transition: color 160ms; }
.contacts a:hover { color: var(--on-dark-accent); }
.contacts__phone { font-family: var(--ff-serif); font-size: var(--f-xl); }

.form {
  display: grid; gap: var(--s-5);
  padding: var(--s-6) var(--s-5);
  background: var(--paper); color: var(--text);
  border-radius: var(--radius);
}
@media (min-width: 1024px) {
  .book__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-9); align-items: start; }
  .form { padding: var(--s-7); }
}

.form__legend { margin-bottom: var(--s-3); font-weight: 600; font-size: var(--f-sm); }
.chips__row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: var(--f-sm); cursor: pointer;
  transition: border-color 160ms, background-color 160ms, color 160ms;
}
.chip span:hover { border-color: var(--text); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme="dark"] .chip input:checked + span { color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.form__row { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--s-2); align-content: start; }
.field__label { font-weight: 600; font-size: var(--f-sm); }
.field__req { color: var(--danger); margin-left: 2px; }
.field__hint { font-size: var(--f-xs); color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 0;
  border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  background: transparent; font-size: 1rem;
  transition: border-color 160ms;
}
.field textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .7; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--accent); padding-bottom: 11px; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { display: none; font-size: var(--f-xs); font-weight: 600; color: var(--danger); }
.field__error.is-shown { display: block; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status { display: none; padding: var(--s-4); border-radius: var(--radius); font-size: var(--f-sm); }
.form__status.is-shown { display: block; }
.form__status strong { display: block; }
.form__status--success { background: var(--success-bg); color: var(--success); }
.form__status--error { background: var(--danger-bg); color: var(--danger); }
.form__status--info { background: var(--accent-soft); }
.form__status:focus { outline: none; }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.form__foot .btn { width: 100%; }
.form__note { font-size: var(--f-xs); color: var(--muted); }
@media (min-width: 640px) { .form__foot .btn { width: auto; } }


/* --- Kājene --------------------------------------------------------------- */

.footer {
  background: var(--ink-2); color: var(--ink-text);
  padding: var(--s-8) 0 calc(var(--s-5) + env(safe-area-inset-bottom));
}
.footer__grid { display: grid; gap: var(--s-6); }
.brand--footer { margin-right: 0; }
.brand--footer .brand__logo { width: 56px; height: 58px; }
.footer__about { margin-top: var(--s-4); max-width: 38ch; color: var(--ink-muted); font-size: var(--f-sm); }
.footer__h { margin-bottom: var(--s-3); font-size: var(--f-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.footer__list a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; transition: color 160ms; }
.footer__list a:hover { color: var(--on-dark-accent); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3);
  margin-top: var(--s-7); padding-top: var(--s-5);
  border-top: 1px solid var(--ink-line);
  font-size: var(--f-xs); color: var(--ink-muted);
}
.footer__bottom a { text-underline-offset: 3px; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: var(--s-7); } }

/* Kājene bez satura augšdaļas (apakšlapās) */
.footer:not(:has(.footer__grid)) { padding-top: var(--s-5); }
.footer:not(:has(.footer__grid)) .footer__bottom { margin-top: 0; padding-top: 0; border-top: 0; }


/* --- Juridiskā lapa (privacy.html) ---------------------------------------- */

/* Apakšlapām: cieta galvene (nav foto zem tās), zīmols un atgriešanās poga */
.header__inner--simple { justify-content: space-between; }
.header__inner--simple .brand { margin-right: 0; }

/* Valodu pārslēgs juridiskajās lapās (LV / EN / RU) */
.legal-tools { display: flex; align-items: center; gap: var(--s-3); }
.legal-langs { display: flex; }
.legal-lang {
  display: inline-grid; place-items: center; min-width: 38px; min-height: 44px; padding: 0 6px;
  font-size: var(--f-xs); font-weight: 600; letter-spacing: .08em; text-decoration: none;
  color: var(--muted); transition: color 160ms;
}
.legal-lang:hover { color: var(--text); }
.legal-lang[aria-current="page"] { color: var(--text); text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 479px) { .legal-tools .btn { display: none; } }

.section--legal { padding-top: calc(var(--header-h) + clamp(40px, 5vw, 80px)); }
.legal__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); margin-bottom: var(--s-8); padding-bottom: var(--s-6); border-bottom: 1px solid var(--line-2); }
/* «конфиденциальности» — garš vārds; telefonā mazāks izmērs, lai nelauztu vārdu */
.legal__head .section__title { font-size: clamp(1.6rem, 1rem + 3vw, 3.75rem); max-width: 26ch; }
.section__label { font-size: var(--f-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.section__title { font-size: var(--f-2xl); max-width: 20ch; text-wrap: balance; }
.legal__date { font-size: var(--f-sm); color: var(--muted); }

/* Garam tekstam rindas platums ir svarīgākais lasāmības parametrs */
.legal { max-width: 68ch; }
.legal h2 { font-size: var(--f-lg); margin: var(--s-8) 0 var(--s-4); }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: var(--f-md); margin: var(--s-6) 0 var(--s-3); }
.legal p { margin-bottom: var(--s-4); }
.legal p:last-child { margin-bottom: 0; }
.legal ul { list-style: disc; padding-left: 1.25em; margin-bottom: var(--s-4); display: grid; gap: var(--s-2); }
.legal a { color: var(--accent); text-underline-offset: 3px; }
.legal code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: var(--paper-2); border-radius: 3px; padding: .05em .35em; }
.legal__note { padding: var(--s-4); background: var(--paper-2); border-left: 3px solid var(--accent); border-radius: var(--radius); font-size: var(--f-sm); color: var(--muted); }
.legal__address { font-size: var(--f-sm); line-height: 1.8; }

.table-scroll { overflow-x: auto; margin-bottom: var(--s-4); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: var(--f-sm); }
thead th { text-align: left; font-weight: 600; color: var(--muted); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); background: var(--paper-2); white-space: nowrap; }
tbody th, tbody td { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
tbody th { font-weight: 600; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }


/* --- Consent, parādīšanās ------------------------------------------------- */

.consent {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  display: grid; gap: var(--s-4); max-width: 520px; max-height: calc(100svh - 24px); overflow-y: auto;
  padding: var(--s-5);
  background: var(--paper); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(8,11,14,.18);
}
.consent[hidden] { display: none; }
.consent__title { font-family: var(--ff-serif); font-weight: 600; font-size: var(--f-md); }
.consent__text { font-size: var(--f-sm); color: var(--muted); }
.consent__text a { color: var(--text); text-underline-offset: 3px; }

.consent__options { display: grid; border-top: 1px solid var(--line); }
.consent__options[hidden] { display: none; }
.consent__opt {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--s-3); align-items: start;
  padding: var(--s-3) 0; border-bottom: 1px solid var(--line); cursor: pointer;
}
.consent__opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.consent__opt input:disabled { cursor: default; }
.consent__opt b { display: block; font-size: var(--f-sm); }
.consent__opt small { display: block; font-size: var(--f-xs); color: var(--muted); line-height: 1.5; }

.consent__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-2); }
.consent__actions .btn { flex: 1 1 auto; }
/* Pirmajā līmenī — «Iestatījumi», izvērstā — «Saglabāt izvēli» */
.consent__save { display: none; }
.consent.is-detailed .consent__save { display: inline-flex; }
.consent.is-detailed .consent__customize { display: none; }

.consent__link { min-height: 40px; padding: 0; border: 0; background: none; color: inherit; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 640px) { .consent { left: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); } }

.js .reveal { opacity: 0; transform: translateY(16px); }
.is-ready .reveal { transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html, html.is-ready { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
