/* GoRide: „vakaro važiavimas“. Spalvos iš pačių nuotraukų: gilus prieblandos melsvai žalsvas fonas ir šiltas gatvių žibintų gintaras.
   Gintaras = veiksmas (mygtukai, nuorodos, numeriai). Burbulų spalvos tik ten, kur kalbama apie burbulus ir taškus.
   Vienas šriftas: Manrope (lietuviškos ir rusiškos raidės). Mobilusis pirmas; plati versija nuo 1040px. */

/* Manrope cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/manrope-v23-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Manrope cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/manrope-v23-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Manrope greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/manrope-v23-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* Manrope vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/manrope-v23-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Manrope latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/manrope-v23-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;
}
/* Manrope latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/manrope-v23-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: dark;
  --bg: #0b1418;
  --surface: #111e24;
  --surface-2: #172830;
  --line: #22363f;
  --line-2: #2e4752;
  --text: #f3f1ec;
  --text-2: #ccd5d6;
  --text-3: #9fadb1;
  --amber: #ffb547;
  --amber-hi: #ffc670;
  --amber-soft: rgb(255 181 71 / .14);
  --on-amber: #1d1405;
  --c1: #36d88a; --c2: #ff8a2a; --c3: #ff5a6e; --c4: #a874ff;
  --c5: conic-gradient(from 200deg, #5b8cff, #3dff9e, #ffd43b, #ff4d6a, #ff4fd8, #5b8cff);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --header: 64px;
  --measure: 70ch;
  --r: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --amber-glow: 0 10px 34px -10px rgb(255 181 71 / .6);
}

/* Puslapių perėjimai be JS (cross-document View Transitions): antraštė stovi, turinys švelniai pasikeičia */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .22s var(--ease) both vt-out; }
::view-transition-new(root) { animation: .38s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- Pagrindas ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 24px); }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  font: 450 17px/1.7 var(--font); color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
main { flex: 1; }
/* Plonas grūdėtumas: tamsūs gradientai nebesisluoksniuoja juostomis ir fonas atrodo kaip nuotrauka, ne plokščia spalva */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
::selection { background: rgb(255 181 71 / .35); color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

a { color: var(--text); text-decoration: underline 1.5px rgb(255 181 71 / .6); text-underline-offset: .24em; transition: color .2s var(--ease), text-decoration-color .2s var(--ease); }
a:hover { color: var(--amber-hi); text-decoration-color: var(--amber); }

h1, h2, h3 { margin: 0; color: var(--text); text-wrap: balance; font-family: var(--font); }
h1 { font-weight: 800; font-size: clamp(2.1rem, 1.4rem + 3vw, 3.9rem); line-height: 1.04; letter-spacing: -.04em; }
h2 { font-weight: 800; font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.6rem); line-height: 1.12; letter-spacing: -.035em; }
h3 { font-weight: 700; font-size: 1.2rem; line-height: 1.3; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
strong, b { font-weight: 700; color: var(--text); }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 100; padding: 10px 18px; border-radius: 999px; background: var(--amber); color: var(--on-amber); font-weight: 700; text-decoration: none; }
.skip:focus { top: 10px; }

/* Mygtukai: gintarinis pagrindinis, kontūrinis antrinis */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }
.actions a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px;
  border-radius: 999px; font-weight: 700; font-size: 16.5px; text-decoration: none; color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  transition: background-color .2s var(--ease), box-shadow .25s var(--ease), transform .25s var(--spring);
}
.actions a:hover { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text-3); background: rgb(255 255 255 / .05); transform: translateY(-2px); }
.actions a:first-child {
  color: var(--on-amber); box-shadow: var(--amber-glow), inset 0 1px 0 rgb(255 255 255 / .45);
  background: linear-gradient(180deg, var(--amber-hi), var(--amber));
}
.actions a:first-child:hover { color: var(--on-amber); background: linear-gradient(180deg, #ffd08a, var(--amber-hi)); box-shadow: 0 16px 40px -10px rgb(255 181 71 / .75), inset 0 1px 0 rgb(255 255 255 / .5); }
@media (max-width: 599px) { .actions a { flex: 1 1 100%; } }
.actions a:active { transform: scale(.97); transition-duration: .08s; }

.i { flex: none; width: 1.15em; height: 1.15em; }
.actions .i { width: 18px; height: 18px; }

/* ---------- Antraštė ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgb(11 20 24 / .78);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
  view-transition-name: site-header;
}
/* Skaitymo juosta: gintarinis „maršrutas“ antraštės apačioje, pildosi slenkant (CSS scroll timeline) */
@supports (animation-timeline: scroll()) {
  .site-header::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; transform-origin: 0 50%;
    background: linear-gradient(90deg, rgb(255 181 71 / .2), var(--amber)); box-shadow: 0 0 12px var(--amber);
    animation: grow linear both; animation-timeline: scroll(root);
  }
  @keyframes grow { from { transform: scaleX(0); } }
}
.bar { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); height: var(--header); display: flex; align-items: center; gap: 24px; }
/* Logotipas: „GR“ ženklas + GoRide.lt. Užvedus pelę virš ženklo iššoka „+100“ – kaip paėmus gradientinį burbulą žaidime */
.logo { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-right: auto; color: var(--text); text-decoration: none; }
.logo:hover { color: var(--text); }
.mark { flex: none; width: 34px; height: 34px; }
.mark rect { fill: var(--bg); stroke: var(--line-2); }
.word { font: 800 19px/1 var(--font); letter-spacing: -.035em; }
.word span { color: var(--amber); }
.logo::after {
  content: "+100"; position: absolute; left: 17px; top: 2px; translate: -50% 0; padding: 3px 7px; border-radius: 999px; pointer-events: none;
  font: 800 11px/1 var(--font); letter-spacing: 0; color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .35);
  background: linear-gradient(100deg, #5b8cff, #2fd39a 30%, #f5c33b 55%, #ff4d6a 78%, #c45bff); opacity: 0;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .logo .mark { transition: transform .35s var(--spring); }
  .logo:hover .mark { transform: rotate(-6deg) scale(1.06); }
  .logo:hover::after { animation: logo-pop .9s var(--ease) both; }
}
@keyframes logo-pop { 0% { opacity: 0; transform: translateY(12px) scale(.6); } 25% { opacity: 1; transform: translateY(-2px) scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
@media (max-width: 379px) { .bar { gap: 10px; } .logo { gap: 8px; } .mark { width: 32px; height: 32px; } .word { font-size: 17px; } .play { padding: 0 12px 0 14px; } } /* 320 px telefonas: logotipas, „Žaisti“ ir meniu telpa vienoje eilutėje */


.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border: 0; border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; }
.menu-btn:hover { background: rgb(255 255 255 / .07); }
/* „Žaisti“: žaidimas (app.goride.lt) visada vienu paspaudimu, ir telefone */
.play {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px 0 18px; border-radius: 999px;
  color: var(--on-amber); font: 800 15px/1 var(--font); text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, var(--amber-hi), var(--amber)); box-shadow: 0 6px 22px -8px rgb(255 181 71 / .7), inset 0 1px 0 rgb(255 255 255 / .45);
  transition: background-color .2s var(--ease), transform .25s var(--spring);
}
.play:hover { color: var(--on-amber); background: var(--amber-hi); }
.play:active { transform: scale(.96); }
.play .i { width: 16px; height: 16px; }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn path { transition: d .22s var(--ease); }
body:has(#menu:popover-open) .menu-btn path { d: path("M6 6l12 12M18 6L6 18"); }

/* Mobilusis meniu: natūralus popover (Esc ir paspaudimas šalia uždaro be JS) */
#menu {
  inset: var(--header) 0 auto 0; margin: 0; width: 100%; max-width: none;
  max-height: calc(100dvh - var(--header)); overflow: auto;
  padding: 8px var(--gutter) 28px; background: var(--bg); color: var(--text);
  border: 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), display .22s allow-discrete, overlay .22s allow-discrete;
}
#menu:popover-open { opacity: 1; transform: none; }
@starting-style { #menu:popover-open { opacity: 0; transform: translateY(-8px); } }
#menu::backdrop { top: var(--header); background: rgb(0 0 0 / .55); }
/* Naršyklės be popover (senesnės nei ~2024): meniu atidaro .open klasė (scenarijus po meniu), kitaip jis būtų nematomas ir stumdytų antraštę */
@supports not selector(:popover-open) {
  @media (max-width: 767px) {
    #menu { position: fixed; z-index: 60; display: none; opacity: 1; transform: none; }
    #menu.open { display: block; }
  }
}
#menu ul { list-style: none; margin: 0; padding: 0; }
.nav a { display: flex; align-items: center; min-height: 54px; color: var(--text); text-decoration: none; font: 700 20px/1.2 var(--font); letter-spacing: -.02em; border-bottom: 1px solid var(--line); }
.nav a[aria-current="page"] { color: var(--amber); }
.langs ul { display: flex; gap: 8px; margin-top: 20px !important; }
.langs a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); text-decoration: none; font-size: 14px; }
.langs a[aria-current] { color: var(--text); background: rgb(255 255 255 / .07); }

/* 4 meniu punktai + „Žaisti“ telpa nuo planšetės pločio */
@media (min-width: 768px) {
  .menu-btn { display: none; }
  .play { order: 3; margin-left: 4px; }
  #menu { display: flex; align-items: center; gap: 16px; position: static; inset: auto; width: auto; max-height: none; overflow: visible; padding: 0; background: none; border: 0; opacity: 1; transform: none; transition: none; }
  .nav ul { display: flex; align-items: center; gap: 2px; }
  .nav a { min-height: 38px; padding: 0 12px; border: 0; border-radius: 999px; font: 600 14.5px/1 var(--font); letter-spacing: 0; color: var(--text-2); transition: color .2s var(--ease), background-color .2s var(--ease); }
  .nav a:hover { color: var(--text); background: rgb(255 255 255 / .06); }
  .nav a[aria-current="page"] { color: var(--text); background: rgb(255 255 255 / .08); }
  .nav a { white-space: nowrap; }
  .langs ul { margin: 0 !important; gap: 4px; }
  .langs a { min-height: 32px; padding: 0 10px; font-size: 13px; }
}

@media (min-width: 768px) and (max-width: 899px) { .bar { gap: 12px; } .nav a { padding: 0 8px; font-size: 14px; } .play { padding: 0 12px 0 14px; } } /* siauras kompiuteris: meniu + „Žaisti“ telpa vienoje eilutėje */

/* ---------- Puslapio galva: kelias, H1, atsakymas, paveikslėlis ---------- */
.head {
  position: relative; isolation: isolate; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(50% 70% at 92% 0%, rgb(255 181 71 / .12), transparent 70%),
    radial-gradient(60% 80% at 0% 100%, rgb(46 125 140 / .18), transparent 70%),
    var(--bg);
}
.head::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgb(255 181 71 / .5), transparent); }

/* Viena orkestruota įžanga. H1 ir tekstas matomi nuo pirmo kadro (tik pajuda), kad LCP nevėluotų; išnyra tik mygtukai. */
.head-text > * { animation: slide .7s var(--ease) both; }
.head-text > p:not(.actions) { animation-delay: .08s; }
.head-text > .actions { animation: rise .7s .2s var(--ease) both; }
.head-text > .facts { animation: rise .7s .3s var(--ease) both; }
.head-in > figure { animation: settle 1s .1s var(--ease) both; }
@keyframes slide { from { transform: translateY(14px); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes settle { from { transform: translateY(20px) scale(.97); } }

/* Galva: tekstas ir vaizdas. Telefone vienas po kito, plačiau – šalia, vaizdas centruotas pagal tekstą. */
.head-in {
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(40px, 6vw, 72px);
  display: grid; gap: 36px;
}
.head-text { min-width: 0; container-type: inline-size; }
.head-text > p:not(.actions) { max-width: 42rem; margin: 20px 0 0; font-size: clamp(1.1rem, 1rem + .4vw, 1.25rem); line-height: 1.6; color: var(--text-2); }

.head figure { position: relative; isolation: isolate; width: 100%; max-width: 500px; margin: 0; }
.head .frame { position: relative; display: block; overflow: hidden; border-radius: 22px; background: var(--surface); box-shadow: 0 0 0 1px var(--line-2), 0 40px 90px -40px rgb(0 0 0 / .9); }
.head .frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Hero su video. Fonas: puslapio nuotrauka su žmonėmis, stipriai patamsinta ir nuspalvinta prieblandos tonu
   (vienas tonas visoms nuotraukoms, tekstas visada įskaitomas). Video dešinėje pusėje iki ekrano krašto,
   jo kraštas permatomumu (mask) išsilieja į nuotrauką, be spalvotų juostų.
   Rėmelio proporcijos ~4:5–1:1, todėl video ruošti 1080×1080 px, svarbiausią veiksmą laikyti centre. */
.head-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; filter: saturate(.6) contrast(1.05); }
.head:has(> .head-bg)::before { content: none; }
.head:has(> .head-bg)::after {
  inset: 0; height: auto; z-index: -1;
  background:
    linear-gradient(90deg, transparent, rgb(255 181 71 / .5), transparent) bottom / 100% 1px no-repeat,
    linear-gradient(transparent 55%, var(--bg)),
    linear-gradient(rgb(11 20 24 / .55), rgb(11 20 24 / .85)),
    linear-gradient(rgb(20 70 80 / .35), rgb(20 70 80 / .35));
}
.head figure.vid { max-width: none; width: auto; margin: 0 calc(-1 * var(--gutter)); }
.head-in > .vid { animation: none; }
/* Video kvadratinis (720×720) ir pilnas užrašų, todėl rodomas visas, neapkarpytas; kraštai tik švelniai išsilieja */
.vid .frame { aspect-ratio: 1; border-radius: 0; box-shadow: none; background: none; mask-image: linear-gradient(transparent, #000 6%, #000 94%, transparent); }
@media (min-width: 600px) and (max-width: 899px) { .head figure.vid { width: min(100%, 560px); margin-inline: auto; } .vid .frame { border-radius: 24px; mask-image: none; box-shadow: 0 0 0 1px var(--line-2), 0 40px 90px -40px #000; } } /* planšetėje per visą plotį kvadratas per aukštas */
.vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid button {
  position: absolute; z-index: 2; right: max(14px, var(--gutter)); bottom: 22%; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  color: var(--text); background: rgb(11 20 24 / .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18); transition: background-color .2s var(--ease), transform .25s var(--spring);
}
.vid button:hover { background: rgb(11 20 24 / .8); transform: scale(1.08); }
.vid svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.vid .i-play { fill: currentColor; stroke-width: 1.5; }
.vid.on .i-play, .vid:not(.on) .i-pause { display: none; }

@media (min-width: 900px) {
  /* Hero aukštis = ekranas be antraštės (ribose), tekstas centruotas vertikaliai */
  .head-in:has(> .vid) { min-height: clamp(560px, calc(100svh - var(--header)), 860px); align-content: center; }
  /* Tekstas niekada nelenda po video: plotis iki ekrano vidurio minus tarpas */
  .head-in:has(> .vid) > .head-text { position: relative; z-index: 2; max-width: calc(50vw - max(var(--gutter), (100vw - var(--max)) / 2) - 48px); }
  /* Dešinė pusė iki ekrano krašto; kvadratas centruotas vertikaliai, prigludęs dešinėje (cqh = figūros aukštis) */
  .head figure.vid { position: absolute; top: 0; right: 0; bottom: 0; width: 54%; margin: 0; display: flex; align-items: center; justify-content: flex-end; container-type: size; }
  .vid .frame { width: min(100%, 100cqh); mask-image: linear-gradient(90deg, transparent, #000 14%), linear-gradient(transparent, #000 7%, #000 93%, transparent); mask-composite: intersect; }
  .vid button { bottom: 40px; }
  /* Plačiame ekrane tamsinimas stipresnis kairėje (tekstas), silpnesnis link video */
  .head:has(> .head-bg)::after {
    background:
      linear-gradient(90deg, transparent, rgb(255 181 71 / .5), transparent) bottom / 100% 1px no-repeat,
      linear-gradient(transparent 70%, var(--bg)),
      linear-gradient(90deg, rgb(11 20 24 / .9) 15%, rgb(11 20 24 / .72) 50%, rgb(11 20 24 / .6)),
      linear-gradient(rgb(20 70 80 / .35), rgb(20 70 80 / .35));
  }
}
@media (min-width: 1040px) {
  .head-in:has(> figure:not(.vid)) { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); column-gap: 72px; align-items: center; }
}

.crumbs { margin-bottom: clamp(18px, 3vw, 32px); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--text-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--text-3); opacity: .6; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--amber-hi); }

/* Pradžia: ta pati galva, tik didesnė, su pagrindiniais faktais */
.page-home .head-in { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 80px); }
.page-home h1 { font-size: clamp(2.6rem, 1.4rem + 3vw, 4.2rem); line-height: 1; letter-spacing: -.05em; }

/* ---------- Turinys ---------- */
.body { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) 0; }
.prose > * { max-width: var(--measure); }
.prose > :is(.scroll, .links, .tiles, .facts, .route) { max-width: none; }
.prose > p, .prose > ul, .prose > ol { color: var(--text-2); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.6em 0 .6em; }
.prose h2:first-child { margin-top: 0; }

/* Turinys šone: tik plačiame ekrane ir tik ilgiems puslapiams */
.toc { display: none; }
@media (min-width: 1100px) {
  .has-toc { display: grid; grid-template-columns: minmax(0, 1fr) 240px; column-gap: 80px; }
  .has-toc .prose { grid-column: 1; grid-row: 1; }
  .toc { display: block; grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header) + 32px); align-self: start; font-size: 14.5px; }
  .toc p { margin: 0 0 12px; font-weight: 700; color: var(--text); }
  .toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
  .toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-3); text-decoration: none; line-height: 1.4; }
  .toc a:hover { color: var(--text); border-left-color: var(--amber); }
}

/* Sąrašai */
.prose ul, .prose ol { margin: 0 0 1.4em; padding: 0; list-style: none; }
.prose li { position: relative; margin: 0 0 .65em; }
.prose ul > li { padding-left: 1.5em; }
.prose ul > li::before { content: ""; position: absolute; left: .3em; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.prose ol { counter-reset: step; }
.prose ol > li { counter-increment: step; padding: 3px 0 0 50px; min-height: 34px; }
.prose ol > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font: 800 15px/1 var(--font); color: var(--amber); background: var(--amber-soft);
}

/* Miestų nuorodos: kompaktiškos kortelės, miestas ryškus, paslaugos žodis mažas virš jo.
   Telefone 2 stulpeliai (ne 19 eilučių per visą plotį). */
.prose .links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, calc(50% - 4px)), 1fr)); gap: 8px; }
.prose .links li { margin: 0; padding: 0; }
.prose .links li::before { content: none; }
.prose .links a {
  position: relative; min-width: 0; overflow-wrap: anywhere; display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 10px 14px 10px 34px; border-radius: 14px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); text-decoration: none; font-weight: 700; font-size: 16px; line-height: 1.25;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease), transform .3s var(--spring);
}
.prose .links a span:not(.vh) { order: 2; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--amber); }
.prose .links a::before { content: ""; position: absolute; left: 14px; top: 50%; width: 9px; height: 9px; margin-top: -6px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--amber); transition: transform .3s var(--spring), box-shadow .3s; }
.prose .links a:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px rgb(255 181 71 / .45); color: var(--text); transform: translateY(-2px); }
.prose .links a:hover::before { transform: rotate(-45deg) scale(1.3); box-shadow: 0 0 10px var(--amber); }
@media (min-width: 900px) { .prose .links { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }
@media (min-width: 1040px) { .prose .links { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- Renginių kalendorius: rungtynių kortelės ----------
   Kairėje datos „bilietas“ (mėnuo, diena, savaitės diena), dešinėje miestas, laikas, vieta ir žetonai.
   Apačioje vienas aiškus veiksmas (Registruotis → app.goride.lt) ir du pagalbiniai: į kalendorių, žemėlapis. */
.prose > :is(.events, .ev-filter) { max-width: none; }
.prose .events { display: grid; gap: 12px; margin: 20px 0 32px; counter-reset: none; }
.prose .events > li {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: 0 16px;
  margin: 0; padding: 18px; min-height: 0; counter-increment: none; border-radius: 20px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.prose .events > li[hidden] { display: none; }
.prose .events > li::before { content: none; }
.prose .events > li:target { background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--amber); }
.ev-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center; height: 76px; border-radius: 14px; line-height: 1;
  background: var(--amber-soft); box-shadow: inset 0 0 0 1px rgb(255 181 71 / .32); color: var(--amber); text-align: center;
}
.ev-date .m { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ev-date b { margin: 4px 0 5px; font-size: 28px; font-weight: 800; letter-spacing: -.03em; color: var(--text); }
.ev-date .d { font-size: 12px; font-weight: 700; color: var(--text-2); }
.ev-main { min-width: 0; }
.ev-when { margin: 0; font-size: 14.5px; line-height: 1.4; color: var(--text-2); }
.ev-when time { white-space: normal; }
.ev-when b { color: var(--text); }
.ev h3 { margin: 3px 0 2px; font-size: 1.4rem; letter-spacing: -.025em; }
.ev h3 a { color: var(--text); text-decoration: none; }
.ev h3 a:hover { color: var(--amber-hi); }
.ev-place { margin: 0; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.ev-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.ev-meta span { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1; color: var(--text-2); background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--line); }
.ev-meta .ev-price { color: var(--text); font-weight: 800; box-shadow: inset 0 0 0 1px var(--line-2); }
.ev-act { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 0; }
.ev-act a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 999px;
  font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap; text-decoration: none; color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background-color .2s var(--ease), box-shadow .2s var(--ease), transform .25s var(--spring);
}
.ev-act a:hover { color: var(--text); background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1.5px var(--text-3); }
.ev-act a:active { transform: scale(.97); }
.ev-act .ev-reg { grid-column: 1 / -1; min-height: 52px; font-size: 16.5px; color: var(--on-amber); background: linear-gradient(180deg, var(--amber-hi), var(--amber)); box-shadow: var(--amber-glow), inset 0 1px 0 rgb(255 255 255 / .45); }
.ev-act .ev-reg:hover { color: var(--on-amber); background: var(--amber-hi); box-shadow: var(--amber-glow); }
.ev-act .i { width: 18px; height: 18px; }
.ev-sub .i { color: var(--text-3); }
/* Platesniame ekrane veiksmai dešinėje, kortelė viena eilute: data | informacija | mygtukai */
@media (min-width: 720px) {
  .prose .events > li { grid-template-columns: 72px minmax(0, 1fr) 260px; align-items: center; gap: 0 22px; padding: 20px 22px; }
  .ev-date { height: 80px; }
  .ev-act { grid-column: 3; grid-row: 1; margin: 0; }
}
.ev.is-off { background: transparent; }
.ev.is-off :is(.ev-date, .ev-main) { opacity: .55; }
.ev.is-off time { text-decoration: line-through; }
.ev-badge { display: inline-flex; vertical-align: 1px; margin-left: 6px; padding: 3px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--c3); box-shadow: inset 0 0 0 1px currentColor; }

/* Miestų filtras (rodomas tik su JS ir kai miestų daugiau nei vienas). Telefone slenka į šoną, ne į kelias eilutes */
.ev-filter { display: flex; gap: 8px; margin: 20px 0 0; overflow-x: auto; scrollbar-width: none; }
.ev-filter[hidden] { display: none; }
.ev-filter::-webkit-scrollbar { display: none; }
@media (max-width: 639px) { .ev-filter { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); } }
.ev-filter button {
  flex: none; min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 15px/1 var(--font); color: var(--text-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.ev-filter button:hover { color: var(--text); background: var(--surface-2); }
.ev-filter button[aria-pressed="true"] { color: var(--on-amber); background: var(--amber); box-shadow: none; }

/* Artimiausios rungtynės hero dalyje: viena kortelė, paspaudus – į tą datą kalendoriuje */
.next { margin: 28px 0 0; }
.next a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; max-width: 32rem; padding: 14px 18px; border-radius: 18px;
  color: var(--text); text-decoration: none; background: rgb(17 30 36 / .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .2s var(--ease), transform .3s var(--spring);
}
.next a:hover { color: var(--text); box-shadow: inset 0 0 0 1px rgb(255 181 71 / .55); transform: translateY(-2px); }
.next-k { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--amber); }
.next-v { grid-column: 1; font-size: 1.05rem; font-weight: 800; line-height: 1.35; text-wrap: balance; }
.next .i { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; color: var(--amber); transition: transform .3s var(--spring); }
.next a:hover .i { transform: translateX(3px); }
.next + .actions { margin-top: 16px; }

/* Dabar vyksta (src/api.php live_block): kiekvienas vykstantis žaidimas – kortelė su trimis pirmaujančiais */
.live { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 12px; margin: 32px 0; }
.live:empty { display: none; }
.live-g { padding: 16px 18px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px rgb(255 181 71 / .45); }
.live-g p { margin: 0; }
.live-k { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--amber); }
.live-k .dot { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; animation: live-dot 1.6s ease-in-out infinite; }
@keyframes live-dot { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live-k .dot { animation: none; } }
.live-t { margin-top: 6px !important; font-size: 1.1rem; font-weight: 800; line-height: 1.3; }
.live-m { margin-top: 2px !important; font-size: 14px; color: var(--text-3); }
.live-l { margin: 10px 0 0; padding: 0; list-style: none; font-size: 15px; }
.prose .live-l > li { display: flex; gap: 6px; min-height: 0; padding: 4px 0; counter-increment: none; }
.prose .live-l > li::before { content: none; } /* vieta jau tekste: lygiosios rodo tą patį skaičių */
.live-l span { margin-left: auto; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* Lentelės: plačios slenka savo rėmelyje, ne visas puslapis */
.scroll { overflow-x: auto; margin: 28px 0 32px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; font-variant-numeric: tabular-nums; }
th, td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-size: 13.5px; font-weight: 700; color: var(--text-3); background: var(--surface-2); white-space: nowrap; }
td { color: var(--text-2); }
td:first-child { color: var(--text); font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }
table:has(th:nth-child(4)) td { min-width: 9.5rem; }
time { white-space: nowrap; }

@media (max-width: 639px) {
  table { font-size: 15px; }
  th, td { padding: 12px 14px; }
  /* Kitos 3+ stulpelių lentelės telefone: kiekviena eilutė – kortelė, pirmas langelis – pavadinimas,
     kiti su mažu stulpelio užrašu (data-label) virš reikšmės. Niekas nebeslenka į šonus. */
  .scroll:has(table:not(.events, .bubbles):has(th:nth-child(3))) { overflow: visible; }
  table:not(.events, .bubbles):has(th:nth-child(3)) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table:not(.events, .bubbles):has(th:nth-child(3)) :is(tbody, tr, td) { display: block; }
  table:not(.events, .bubbles):has(th:nth-child(3)) tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
  table:not(.events, .bubbles):has(th:nth-child(3)) tbody tr:last-child { border-bottom: 0; }
  table:not(.events, .bubbles):has(th:nth-child(3)) td { min-width: 0; padding: 0; border: 0; }
  table:not(.events, .bubbles):has(th:nth-child(3)) td:first-child { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
  table:not(.bubbles) td a { display: inline-flex; align-items: center; min-height: 40px; }
  table:not(.events, .bubbles):has(th:nth-child(3)) td + td { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding: 4px 0; }
  table:not(.events, .bubbles):has(th:nth-child(3)) td + td::before { content: attr(data-label); font-size: 13px; font-weight: 600; color: var(--text-3); padding-top: 1px; }
  /* 2 stulpelių lentelės: pavadinimas, po juo aprašymas per visą plotį */
  table:not(.events, .bubbles):not(:has(th:nth-child(3))) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table:not(.events, .bubbles):not(:has(th:nth-child(3))) :is(tbody, tr, td) { display: block; }
  table:not(.events, .bubbles):not(:has(th:nth-child(3))) tr { padding: 14px 18px; border-bottom: 1px solid var(--line); }
  table:not(.events, .bubbles):not(:has(th:nth-child(3))) tbody tr:last-child { border-bottom: 0; }
  table:not(.events, .bubbles):not(:has(th:nth-child(3))) td { padding: 0; border: 0; min-width: 0; }
  table:not(.events, .bubbles):not(:has(th:nth-child(3))) td:first-child { margin-bottom: 4px; }
}

/* Burbulai: dydis auga kartu su taškais */
.scroll:has(.bubbles) { overflow: visible; background: none; box-shadow: none; border-radius: 0; }
.bubbles thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.bubbles tbody { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .bubbles tbody { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
/* Telefone 3 stulpeliai ir mažesni burbulai, kad visi 5 tilptų į vieną ekraną */
@media (max-width: 639px) {
  .bubbles tbody { gap: 8px; }
  .bubbles tr { padding: 18px 6px 16px; gap: 8px; border-radius: 18px; }
  .bubbles td:first-child { height: 92px; gap: 12px; font-size: 13px; }
  .bubbles td:last-child { font-size: 1.6rem; }
  .bubbles .orb { scale: .72; transform-origin: bottom; }
}
.bubbles tr {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 10px 24px; border-radius: 22px;
  background: radial-gradient(90% 60% at 50% 30%, color-mix(in srgb, var(--g) 16%, transparent), transparent 70%), var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .35s var(--spring), box-shadow .3s var(--ease);
}
.bubbles tr:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g) 55%, transparent), 0 20px 50px -24px var(--g); }
.bubbles td { padding: 0; border: 0; min-width: 0; background: none; }
.bubbles td:first-child { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 16px; height: 128px; color: var(--text-3); font-weight: 600; font-size: 14.5px; }
.bubbles td:last-child { font: 800 2.1rem/1 var(--font); letter-spacing: -.04em; color: var(--text); font-variant-numeric: tabular-nums; }
/* Burbulai kaip žaidimo žemėlapyje: spalva, dydis pagal taškus, švelnus švytėjimas */
.bubbles .orb {
  flex: none; border-radius: 50%; background: radial-gradient(circle at 34% 30%, rgb(255 255 255 / .75), transparent 42%), var(--o);
  box-shadow: 0 0 34px -2px var(--g), 0 0 0 6px color-mix(in srgb, var(--g) 14%, transparent);
  transition: transform .4s var(--spring);
}
.bubbles tr:hover .orb { transform: scale(1.15); }
.b1 { --o: var(--c1); --g: var(--c1); } .b1 .orb { width: 34px; height: 34px; }
.b2 { --o: var(--c2); --g: var(--c2); } .b2 .orb { width: 44px; height: 44px; }
.b3 { --o: var(--c3); --g: var(--c3); } .b3 .orb { width: 56px; height: 56px; }
.b4 { --o: var(--c4); --g: var(--c4); } .b4 .orb { width: 68px; height: 68px; }
.b5 { --o: var(--c5); --g: #c27bff; } .b5 .orb { width: 80px; height: 80px; }
.b6 { --o: linear-gradient(135deg, #fff3c4, #ffc93c 40%, #c8860a 75%, #ffe08a); --g: #ffc93c; } .b6 .orb { width: 80px; height: 80px; }
.b6 { box-shadow: inset 0 0 0 1px rgb(255 201 60 / .35); }
.bubbles td small { position: absolute; top: 12px; left: 50%; translate: -50% 0; padding: 3px 8px; border-radius: 999px; background: rgb(255 201 60 / .12); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffc93c; }
.b5 .orb { background: radial-gradient(circle at 34% 30%, rgb(255 255 255 / .75), transparent 42%), conic-gradient(from 200deg, #5b8cff, #3dff9e, #ffd43b, #ff4d6a, #ff4fd8, #5b8cff); }

/* DUK */
.prose > .faq { max-width: none; }
@media (min-width: 1040px) { .faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; align-items: start; } .has-toc .faq { grid-template-columns: minmax(0, 1fr); max-width: var(--measure); } }
details { margin: 0 0 10px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s var(--ease); }
details:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
summary { position: relative; list-style: none; cursor: pointer; padding: 18px 58px 18px 22px; font-weight: 700; font-size: 17px; line-height: 1.45; color: var(--text); border-radius: var(--r); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px; margin-top: -6px; border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(45deg); transition: transform .25s var(--ease); }
details[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
details > p { margin: 0; padding: 0 22px 20px; color: var(--text-2); }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  details::details-content { height: 0; overflow: clip; transition: height .3s var(--ease), content-visibility .3s allow-discrete; }
  details[open]::details-content { height: auto; }
}

.updated { margin-top: 64px !important; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3) !important; }

/* ---------- Užsakymas (visuose puslapiuose, išskyrus kontaktus) ----------
   Vienintelis vientisas gintarinis blokas svetainėje: čia baigiasi skaitymas ir prasideda užsakymas.
   Be dekoracijų ir animacijos: vaizdas yra pati forma (miestas, data, automobiliai), kaip bilietų paieškos juosta. */
.cta {
  --ink: #1d1405; --ink-2: #5c4520; --paper: #fffaf1; --rule: #ecdcc0;
  max-width: var(--max); width: calc(100% - 2 * var(--gutter)); margin: clamp(72px, 10vw, 120px) auto 0;
  padding: clamp(20px, 5vw, 44px); border-radius: clamp(22px, 5vw, 28px); color: var(--ink); background: var(--amber);
}
.cta :focus-visible { outline-color: var(--ink); }
/* Kontaktuose forma iškart po antrašte */
.head + .cta { margin-top: clamp(8px, 2vw, 24px); margin-bottom: 0; }
.cta-text { display: grid; gap: 8px; }
.cta h2 { max-width: none; color: var(--ink); font-size: clamp(1.75rem, 1.25rem + 1.7vw, 2.6rem); line-height: 1.1; letter-spacing: -.03em; }
.cta-text p { max-width: 60rem; margin: 0; font-size: 1.05rem; line-height: 1.55; font-weight: 600; color: var(--ink-2); }

.cta-form {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: clamp(20px, 3vw, 28px); padding: 6px; border-radius: 22px;
  color-scheme: light; background: var(--paper); box-shadow: 0 1px 0 rgb(29 20 5 / .08), 0 18px 40px -24px rgb(29 20 5 / .55);
}
.cta-form .f { position: relative; display: grid; align-content: center; gap: 0; min-height: 76px; margin: 0; padding: 8px clamp(12px, 3.5vw, 16px); border-radius: 16px; cursor: pointer; background: #fbf0dc; transition: background-color .2s var(--ease); }
.cta-form .f:hover, .cta-form .f:focus-within { background: #f8e6c4; }
.cta-form .f > span:first-child i { font-style: normal; font-weight: 500; }
.cta-form input::placeholder { color: rgb(92 69 32 / .5); font-weight: 700; }
.cta-form :is(input[type="email"], input[type="tel"]) { cursor: text; }
.cta-form textarea {
  display: block; width: 100%; min-height: 52px; margin: 4px 0 0; padding: 0; border: 0; outline: 0; resize: vertical; field-sizing: content; max-height: 220px;
  font: 700 16.5px/1.45 var(--font); color: var(--ink); background: transparent; cursor: text;
}
.cta-form .f-note { align-content: start; padding-block: 12px; }
.cta-form .f:has(textarea:focus-visible) { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
/* Honeypot: žmogui nematomas, botas užpildo */
.cta-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Turnstile: matomas tik tada, kai Cloudflare prašo paspausti; kitaip be aukščio, -6px panaikina tuščios eilutės tarpą */
.cta-form .ts { grid-column: 1 / -1; justify-self: center; margin-top: -6px; }
.cta-form .f > :is(span, label):first-child, .dp-btn > span:first-child { font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--ink-2); }
.cta-form :is(select, input) {
  width: 100%; min-width: 0; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0; outline: 0;
  font: 800 18px/1 var(--font); color: var(--ink); background: transparent; appearance: none; cursor: pointer;
}
.cta-form select { padding-right: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c4520' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right center / 18px no-repeat; }
.cta-form input[type="date"]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
/* Datos laukas: visas laukas yra vienas mygtukas, po juo – kalendorius puslapio kalba */
.cta-form .f-date:has(.dp-btn) { padding: 0; }
.dp-btn {
  display: grid; align-content: center; width: 100%; height: 100%; min-height: 76px; margin: 0; padding: 8px clamp(12px, 3.5vw, 16px); border: 0; border-radius: 16px;
  text-align: left; color: var(--ink); background: none; cursor: pointer; font: inherit;
}
.dp-btn:focus-visible { outline: 0; box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.dp-v {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 44px; font: 800 18px/1.15 var(--font); white-space: nowrap; overflow: hidden;
}
.dp-v::after {
  content: ""; flex: none; width: 20px; height: 20px; opacity: .7;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c4520' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='3'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dp-v.is-empty { color: var(--ink-2); font-weight: 700; }

.dp {
  position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0; padding: 14px; border-radius: 20px;
  color: var(--ink); background: var(--paper); box-shadow: 0 0 0 1px rgb(29 20 5 / .08), 0 28px 60px -20px rgb(29 20 5 / .6);
  animation: dp-in .18s var(--ease);
}
.dp[hidden] { display: none; }
@keyframes dp-in { from { opacity: 0; translate: 0 -6px; } }
@media (min-width: 640px) { .dp { left: auto; width: 22rem; } }
/* Telefone – apatinis skydelis per visą plotį: dienos ≥ 44 px, pirštu patogu, pasirinkus užsidaro */
@media (max-width: 639px) {
  .dp {
    position: fixed; z-index: 40; inset: auto 0 0; padding: 18px max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    border-radius: 24px 24px 0 0; box-shadow: none; animation-name: dp-up; animation-duration: .25s;
  }
  /* Patamsintas fonas: paspaudimas ant jo tik uždaro kalendorių, nespaudžia nuorodų po juo */
  .dp::before { content: ""; position: fixed; inset: -100vh 0 0; z-index: -1; background: rgb(5 10 12 / .55); }
  .dp > * { position: relative; }
  .dp::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--paper); }
  .dp-g button { max-height: 48px; font-size: 16px; }
  .dp-f button { min-height: 44px; }
  @keyframes dp-up { from { translate: 0 40%; opacity: 0; } }
}
.dp-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.dp-h b { color: var(--ink); font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.dp button { margin: 0; border: 0; font: inherit; color: inherit; cursor: pointer; }
.dp-h button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0 0 3px; border-radius: 50%; font-size: 26px; line-height: 1; background: #f6e5c6; }
.dp-h button:hover { background: #f0d7a8; }
.dp-h button:disabled { opacity: .3; cursor: default; background: #f6e5c6; }
.dp-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.dp-g span { display: grid; place-items: center; height: 30px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.dp-g span:nth-child(n+6):nth-child(-n+7) { color: var(--ink); }
.dp-g button { aspect-ratio: 1; max-height: 44px; width: 100%; padding: 0; border-radius: 12px; font-size: 15px; font-weight: 700; background: none; transition: background-color .15s var(--ease); }
.dp-g button.we { background: rgb(255 181 71 / .16); }
.dp-g button:hover { background: #f6e5c6; }
.dp-g button[aria-current="date"] { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.dp-g button[aria-pressed="true"] { color: var(--amber); background: var(--ink); box-shadow: none; }
.dp-g button:disabled { opacity: .28; cursor: default; background: none; }
.dp-g button:focus-visible, .dp-h button:focus-visible, .dp-f button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.dp-f { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--rule); }
.dp-f button { min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 700; background: #f6e5c6; }
.dp-f button:hover { background: #f0d7a8; }
.dp-f [data-x="clear"] { background: none; color: var(--ink-2); padding: 0 6px; }
.dp-f [data-x="clear"]:hover { background: none; color: var(--ink); text-decoration: underline; }

.cta-form .f:has(select:focus-visible, input:focus-visible) { box-shadow: inset 0 0 0 1.5px var(--ink-2); }

/* Automobiliai: − 4 + (didelius mygtukus lengva spausti telefone), po jais – kiek tai žmonių */
.cta-form .f[role="group"] { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; cursor: default; }
.cta-form .f[role="group"] > span:first-child { grid-column: 1 / -1; }
.step { display: flex; align-items: center; gap: 4px; height: 44px; }
.step input { width: 3.2ch; flex: none; text-align: center; font-size: 22px; cursor: text; -moz-appearance: textfield; }
.step input::-webkit-inner-spin-button, .step input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.step button {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0 0 2px; border: 0; border-radius: 50%; cursor: pointer;
  font: 700 22px/1 var(--font); color: var(--ink); background: #f6e5c6; transition: background-color .15s var(--ease), transform .2s var(--spring);
}
.step button:hover { background: #f0d7a8; }
.step button:active { transform: scale(.9); }
.cta-form small { white-space: nowrap; font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--ink-2); }

.cta-form .go {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; margin: 0; padding: 0 28px; border: 0; border-radius: 16px; cursor: pointer;
  font: 800 17px/1 var(--font); white-space: nowrap; color: var(--amber); background: var(--ink); transition: background-color .2s var(--ease), transform .25s var(--spring);
}
.cta-form .go:hover { background: #33240b; }
.cta-form .go:active { transform: scale(.98); }
.cta-form .go .i { width: 20px; height: 20px; transition: transform .3s var(--spring); }
.cta-form .go:hover .i { transform: translateX(3px); }
.cta-form .go:disabled { opacity: .7; cursor: progress; }
/* Klaida: baltas langelis su raudonu kraštu ir „!“ ženklu – matosi ant geltono fono, tekstas tamsus ir skaitomas */
.cta-msg {
  grid-column: 1 / -1; position: relative; display: grid; gap: 2px; margin: 4px 0 0; padding: 14px 18px 15px 56px;
  border: 1px solid #efb9ae; border-radius: 16px; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--ink-2);
  background: #fff; box-shadow: inset 4px 0 0 #c8321f, 0 6px 18px -10px rgb(29 20 5 / .35);
}
.cta-msg[hidden] { display: none; }
.cta-msg::before {
  content: "!"; position: absolute; left: 18px; top: 14px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font: 800 15px/1 var(--font); color: #fff; background: #c8321f;
}
.cta-msg b { color: #9b2414; font-size: 16px; font-weight: 800; line-height: 1.4; }
.cta-msg a { color: var(--ink); font-weight: 800; white-space: nowrap; }
/* Klaidingas laukas: raudonas rėmelis ir šviesiai rausvas fonas, kol vartotojas pradeda taisyti */
.cta-form .f:has(input[aria-invalid="true"]) { background: #fff1ee; box-shadow: inset 0 0 0 2px #c8321f; }
.cta-form .f:has(input[aria-invalid="true"]) > span:first-child { color: #9b2414; }
/* Išsiųsta: forma pakeičiama patvirtinimu */
.cta-done { display: grid; gap: 6px; margin: clamp(20px, 3vw, 28px) 0 0; padding: 22px 24px; border: 1px solid var(--line-2); border-radius: 22px; font-size: 1.05rem; line-height: 1.5; font-weight: 600; color: var(--text); background: var(--surface); overflow-wrap: anywhere; }
.cta-done b { color: var(--amber); font-size: 1.3rem; letter-spacing: -.02em; }
.cta-done a { color: var(--amber); font-weight: 800; }

@media (max-width: 379px) { .cta-form .go { padding: 0 16px; } .step { gap: 0; } .step input { width: 2.6ch; } }
.cta-alt { margin: 16px 0 0; font-size: 15px; line-height: 1.6; font-weight: 600; color: var(--ink-2); }
.cta-alt a { color: var(--ink); font-weight: 800; text-decoration-color: rgb(29 20 5 / .4); white-space: nowrap; }
.cta-alt a:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* 640–1099 px: Miestas | Data, Automobiliai per visą plotį, El. paštas | Telefonas, Siųsti.
   Nuo 1100 px dvi eilutės: Miestas | Data | Automobiliai, po jomis El. paštas | Telefonas | Siųsti.
   Automobilių stulpelis pagal turinį, todėl „iki 20 žmonių“ niekada neužlenda */
@media (min-width: 640px) {
  .cta-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "city date" "cars cars" "note note" "mail tel" "go go" "msg msg"; }
  .f-city { grid-area: city; } .f-date { grid-area: date; } .f-cars { grid-area: cars; } .f-note { grid-area: note; } .f-mail { grid-area: mail; } .f-tel { grid-area: tel; }
  .cta-form .go { grid-area: go; } .cta-msg { grid-area: msg; }
}
@media (min-width: 1100px) {
  .cta-form { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(max-content, .95fr); grid-template-areas: "city date cars" "note note note" "mail tel go" "msg msg msg"; }
  .cta-form .f[role="group"] { padding-right: 20px; }
}

/* Miestų sąrašas: kompiuteryje vietoj sistemos sąrašo – savas dviejų stulpelių skydelis (Chrome/Edge: appearance: base-select).
   Telefone ir kitose naršyklėse lieka sistemos sąrašas – jis ten patogiausias */
@supports (appearance: base-select) {
  @media (hover: hover) and (pointer: fine) {
    .cta-form select, .cta-form select::picker(select) { appearance: base-select; }
    .cta-form select { display: flex; align-items: center; }
    .cta-form select::picker-icon { display: none; }
    .cta-form select::picker(select) {
      width: 23rem; max-height: min(70vh, 460px); margin: 10px 0 0 -10px; padding: 8px; border: 0; border-radius: 18px;
      background: var(--paper); box-shadow: 0 0 0 1px rgb(29 20 5 / .08), 0 28px 60px -24px rgb(29 20 5 / .6);
      opacity: 0; translate: 0 -6px; transition: opacity .16s var(--ease), translate .2s var(--ease), overlay .2s allow-discrete, display .2s allow-discrete;
    }
    .cta-form select:open::picker(select) { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; opacity: 1; translate: 0; }
    @starting-style { .cta-form select:open::picker(select) { opacity: 0; translate: 0 -6px; } }
    .cta-form option { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; font: 700 15.5px/1.2 var(--font); color: var(--ink); cursor: pointer; }
    .cta-form option::checkmark { display: none; }
    .cta-form option:is(:hover, :focus-visible) { outline: 0; background: #fff1d9; }
    .cta-form option:checked { background: var(--amber); }
    .cta-form option[value=""] { display: none; }
    .cta-form option[value="kitas"] { grid-column: 1 / -1; margin-top: 4px; color: var(--ink-2); box-shadow: inset 0 1px 0 var(--rule); border-radius: 0 0 10px 10px; }
  }
}

/* ---------- Telefono veiksmų juosta: atsiranda nuslinkus žemiau hero (hero turi savo mygtukus) ---------- */
.dock { display: none; }
@media (max-width: 899px) {
  .dock {
    position: fixed; inset: auto 0 0; z-index: 25; display: flex; flex-wrap: nowrap; gap: 8px; margin: 0;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: rgb(11 20 24 / .86); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-top: 1px solid var(--line);
  }
  .dock a { flex: 1 1 0; min-height: 48px; padding: 0 10px; font-size: clamp(14.5px, 4.2vw, 16.5px); white-space: nowrap; }
  .site-footer { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  @supports (animation-timeline: scroll()) {
    .dock { animation: dock-in linear both; animation-timeline: scroll(root); animation-range: 0 560px; }
    @keyframes dock-in { 0%, 70% { transform: translateY(110%); } 100% { transform: none; } }
  }
}

/* ---------- Poraštė ---------- */
.site-footer { margin-top: clamp(72px, 10vw, 120px); border-top: 1px solid var(--line); color: var(--text-3); font-size: 15px; }
.foot { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 56px var(--gutter) 40px; display: grid; gap: 36px; }
.brand .logo { margin: 0 0 16px; }
.brand p { margin: 0; line-height: 1.9; }
.foot a { color: var(--text-2); text-decoration: none; }
.foot a:hover { color: var(--amber-hi); }
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 28px 20px; }
.groups p { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.brand .social { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 0 16px; line-height: 1.6; }
.brand .social a { display: inline-flex; align-items: center; min-height: 44px; }
.foot ul a { display: inline-flex; align-items: center; min-height: 40px; }
.foot .meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot .meta p { margin: 0; }
@media (min-width: 1040px) {
  .foot { grid-template-columns: 260px 1fr; }
  .foot .meta { grid-column: 1 / -1; }
}

/* ================= PRADŽIOS SKYRIAI ================= */

/* Faktai: keturi skaičiai hero apačioje. Stulpelių skaičius pagal teksto bloko plotį (container query). */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 32px 0 0; padding: 0; list-style: none; border-radius: 20px; background: rgb(17 30 36 / .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.facts li { position: relative; margin: 0; padding: 16px 18px; color: var(--text-3); font-size: 14px; line-height: 1.35; background: radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--f) 14%, transparent), transparent 70%); }
.facts li::after { content: ""; position: absolute; top: 16px; right: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--f); box-shadow: 0 0 12px var(--f); }
.facts li:nth-child(2n) { border-left: 1px solid var(--line); }
.facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
.facts b { display: block; margin-bottom: 6px; font: 800 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1 var(--font); letter-spacing: -.045em; color: var(--text); }
.facts li:nth-child(1) { --f: var(--c1); } .facts li:nth-child(2) { --f: var(--c2); }
.facts li:nth-child(3) { --f: var(--c3); } .facts li:nth-child(4) { --f: var(--c4); }
@container (min-width: 620px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts li:nth-child(n) { border-top: 0; border-left: 1px solid var(--line); }
  .facts li:first-child { border-left: 0; }
}

/* Žingsniai: sujungti maršruto linija */
.prose .route { display: grid; margin: 32px 0 28px; counter-reset: step; }
.prose .route > li { padding: 0 0 30px 64px; min-height: 0; margin: 0; color: var(--text-2); }
.prose .route > li::before { width: 44px; height: 44px; font-size: 17px; color: var(--on-amber); background: var(--amber); z-index: 1; box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px rgb(255 181 71 / .35), 0 0 26px rgb(255 181 71 / .45); }
.prose .route > li::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; border-left: 2px dashed var(--line-2); }
.prose .route > li:last-child::after { content: none; }
@media (min-width: 900px) {
  .prose .route { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .prose .route > li { padding: 70px 0 0; }
  .prose .route > li::after { left: 56px; right: -24px; top: 21px; bottom: auto; border-left: 0; border-top: 2px dashed var(--line-2); }
}
/* Žingsniai užsidega paeiliui, kai skyrius slenka į ekraną (CSS view timeline, be JS) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .prose .route > li { animation: step-on linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
    .prose .route > li:nth-child(2) { animation-range: entry 25% cover 40%; }
    .prose .route > li:nth-child(3) { animation-range: entry 40% cover 45%; }
    .prose .route > li:nth-child(4) { animation-range: entry 55% cover 50%; }
    @keyframes step-on { from { transform: translateY(20px); } } /* be opacity: tekstas visada pilno kontrasto */
    .bubbles tr { animation: pop linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    @keyframes pop { from { transform: scale(.85) translateY(24px); } }
  }
}

/* Kainos: trys kortelės, kaina didelė */
.prose > ul.plans { max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin: 8px 0 40px; }
.prose .plans li { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 24px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.prose .plans li::before { content: none; }
.prose .plans li:first-child { background: radial-gradient(90% 70% at 100% 0%, rgb(255 181 71 / .14), transparent 70%), var(--surface); box-shadow: inset 0 0 0 1px rgb(255 181 71 / .35); }
.plans span { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.plans b { font: 800 clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem)/1.05 var(--font); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.plans li:first-child b { color: var(--amber); }
.plans li + li b { font-size: clamp(1.4rem, 1.2rem + .6vw, 1.7rem); } /* žodžiai, ne skaičius: viena eilutė */
.plans em { font-style: normal; font-weight: 600; color: var(--text); }
.plans small { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.55; color: var(--text-2); }

/* Tuščia būsena (pvz. kalendorius be datų): ramus blokas ir veiksmai */
.prose > .empty { max-width: none; position: relative; isolation: isolate; overflow: hidden; margin: 8px 0 32px; padding: clamp(24px, 4vw, 40px); border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.empty > p:first-child { max-width: 36rem; margin: 0; color: var(--text-2); }
.empty > p:first-child b { display: block; margin-bottom: 6px; font-size: 1.3rem; letter-spacing: -.02em; }
.empty .actions { margin-top: 24px; }

/* ---------- Dovanų kuponas: tas pats dizainas puslapio pavyzdyje ir tikrame kupone (src/voucher.php) ----------
   Matinis tamsus kartonas su grūdėtumu. Auksinė folija: užrašas „Dovanų kuponas“, suma ir plonas rėmelis.
   Dešinėje perforuota nuplėšiama dalis: ženklas, kodas ir žaidimo burbulai su taškais. Kortelė stovi tiesiai ir nejuda. */
.gift { container-type: inline-size; max-width: 560px; margin: 12px 0 48px; }
.prose > .gift { max-width: 560px; }
.gift-wrap { filter: drop-shadow(0 1px 1px rgb(0 0 0 / .55)) drop-shadow(0 16px 24px rgb(0 0 0 / .36)); }
.gift-card {
  --stub: 31%; --notch: 12px; --cream: #efe6d2; --muted: rgb(239 230 210 / .6); --rule: rgb(239 230 210 / .14);
  --foil: linear-gradient(110deg, #7c4f0e 0%, #e9bd5c 16%, #fff1c2 27%, #d6a03a 40%, #87570f 55%, #efc562 70%, #fff3cd 81%, #b47d22 100%);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--stub); aspect-ratio: 1.72; border-radius: 16px; /* aukštis – mažiausias; daugiau teksto = aukštesnė kortelė */ color: var(--cream);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(155deg, rgb(255 255 255 / .06), transparent 38%, rgb(0 0 0 / .22)),
    #12242a;
  -webkit-mask: radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, #0000 97%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, #0000 97%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
}
/* Kartono briauna: šviesesnė viršuje, tamsesnė apačioje */
.gift-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), inset 0 -1px 0 rgb(0 0 0 / .4), inset 0 0 0 1px rgb(255 255 255 / .04); }

/* Pagrindinė dalis: viršuje prekės ženklas, centre vertė, apačioje sąlygos */
.gift-main { position: relative; display: grid; grid-template-rows: auto 1fr auto; min-width: 0; padding: 7cqi 6cqi 6cqi; }
.gift-main::before { content: ""; position: absolute; inset: 2.8cqi 0 2.8cqi 2.8cqi; border: 1px solid rgb(226 189 106 / .3); border-right: 0; border-radius: 9px 0 0 9px; pointer-events: none; }
.gift-brand { font: 800 clamp(15px, 3.5cqi, 20px)/1 var(--font); letter-spacing: -.02em; color: #f3ead6; }
.gift-brand span { color: var(--amber); }
.gift-value { align-self: center; display: grid; gap: 1.4cqi; padding: 2cqi 0; }
.gift-k { font: 800 clamp(9.5px, 1.95cqi, 11.5px)/1.2 var(--font); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.gift-sum { display: flex; align-items: baseline; gap: .1em; margin: 0; font: 800 clamp(3.2rem, 15.5cqi, 5.6rem)/.88 var(--font); letter-spacing: -.055em; font-variant-numeric: lining-nums; }
.gift-value .gift-k, .gift-sum b, .gift-sum span {
  background: var(--foil); background-size: 220% 100%; background-position: 30% 0; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgb(0 0 0 / .55)) drop-shadow(0 -1px 0 rgb(255 240 200 / .12));
}
.gift-sum span { font-size: .5em; letter-spacing: 0; }
.gift-sub { margin: 0; font: 600 clamp(12px, 2.5cqi, 15px)/1.35 var(--font); color: rgb(239 230 210 / .78); }
.gift-meta { display: flex; gap: 7cqi; margin: 0; padding-top: 2.6cqi; border-top: 1px solid var(--rule); }
.gift-meta div { min-width: 0; }
.gift-meta dt { font: 800 clamp(8.5px, 1.7cqi, 10.5px)/1.3 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.gift-meta dd { margin: 3px 0 0; font: 700 clamp(12px, 2.45cqi, 14.5px)/1.3 var(--font); color: var(--cream); }

/* Nuplėšiama dalis: perforacija, ženklas, kodas, burbulai */
.gift-stub {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; min-width: 0; padding: 7cqi 3.6cqi 6cqi; text-align: center;
  background: linear-gradient(180deg, rgb(255 255 255 / .035), rgb(0 0 0 / .12));
}
.gift-stub::before { content: ""; position: absolute; inset: calc(var(--notch) + 6px) auto calc(var(--notch) + 6px) -1px; border-left: 2px dashed rgb(239 230 210 / .24); }
.gift-logo { display: grid; }
.gift-logo .mark { width: clamp(40px, 9.5cqi, 56px); height: auto; }
.gift-logo .mark rect { fill: #0b1418; stroke: rgb(255 255 255 / .14); }
.gift-code { display: grid; gap: 1.4cqi; width: 100%; }
.gift-code code {
  display: block; padding: 1.8cqi 0; border-block: 1px solid var(--rule);
  font: 800 clamp(12px, 2.75cqi, 16px)/1.2 var(--font); font-variant-numeric: tabular-nums; letter-spacing: .1em; color: #f6efdd; white-space: nowrap;
}
/* Žaidimo burbulai su taškais: kuo daugiau taškų, tuo didesnis, kaip žemėlapyje */
.gift-dots { display: flex; align-items: center; }
.gift-dots i {
  --s: 4.4cqi; display: grid; place-items: center; flex: none; width: clamp(20px, var(--s), 42px); aspect-ratio: 1; margin-left: -.8cqi; border-radius: 50%;
  font: 800 clamp(8.5px, calc(var(--s) * .36), 14px)/1 var(--font); font-style: normal; letter-spacing: -.03em; color: #fff; text-shadow: 0 1px 1px rgb(0 0 0 / .4);
  box-shadow: 0 0 0 1.5px rgb(255 255 255 / .9), inset 0 -3px 5px rgb(0 0 0 / .28), inset 0 2px 3px rgb(255 255 255 / .35), 0 3px 6px rgb(0 0 0 / .45);
}
.gift-dots i:first-child { margin-left: 0; }
.gift-dots i:nth-child(1) { background: var(--c1); }
.gift-dots i:nth-child(2) { --s: 4.9cqi; background: var(--c2); }
.gift-dots i:nth-child(3) { --s: 5.4cqi; background: var(--c3); }
.gift-dots i:nth-child(4) { --s: 6cqi; background: var(--c4); }
.gift-dots i:nth-child(5) { --s: 6.7cqi; background: var(--c5); }
.gift figcaption { margin: 20px 0 0; font-size: 14px; color: var(--text-3); }

/* Siaurame ekrane – stačias kuponas: nuplėšiama dalis apačioje, įkirtimai šonuose */
@container (max-width: 460px) {
  .gift-card {
    --stub: 136px; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr var(--stub); aspect-ratio: .9;
    -webkit-mask: radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub)), #0000 97%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub)), #0000 97%, #000) right / 51% 100% no-repeat;
            mask: radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub)), #0000 97%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub)), #0000 97%, #000) right / 51% 100% no-repeat;
  }
  .gift-main { row-gap: 14px; padding: 26px 24px 20px; }
  .gift-main::before { inset: 12px 12px 0; border: 1px solid rgb(226 189 106 / .3); border-bottom: 0; border-radius: 9px 9px 0 0; }
  .gift-value { gap: 8px; }
  .gift-sum { font-size: clamp(3.6rem, 25cqi, 5rem); }
  .gift-k { font-size: 10.5px; } .gift-sub, .gift-meta dd { font-size: 14px; } .gift-meta dt { font-size: 9.5px; }
  .gift-meta { flex-wrap: wrap; gap: 8px 28px; padding-top: 12px; }
  .gift-stub { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-content: center; justify-items: start; gap: 12px 16px; padding: 16px 24px; text-align: left; }
  .gift-stub::before { inset: -1px calc(var(--notch) + 6px) auto; border-left: 0; border-top: 2px dashed rgb(239 230 210 / .24); }
  .gift-code { grid-column: 1; grid-row: 1; gap: 4px; }
  .gift-code code { padding: 0; border: 0; font-size: 18px; }
  .gift-dots { grid-column: 1; grid-row: 2; }
  .gift-dots i { --s: 8cqi; margin-left: -3px; }
  .gift-dots i:nth-child(2) { --s: 8.7cqi; } .gift-dots i:nth-child(3) { --s: 9.4cqi; } .gift-dots i:nth-child(4) { --s: 10.1cqi; } .gift-dots i:nth-child(5) { --s: 10.8cqi; }
  .gift-logo { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .gift-logo .mark { width: 56px; }
}
@media print {
  .gift { max-width: 160mm; margin: 0 auto; }
  .gift-wrap { filter: none; }
  .gift-card { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Nuorodų su aprašymu sąrašas (pvz. /idejos): kortelės, visa kortelė paspaudžiama */
.prose > ul.cards { max-width: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.prose .cards li {
  position: relative; margin: 0; padding: 20px 22px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .3s var(--spring), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.prose .cards li::before { content: none; }
.prose .cards li:hover { transform: translateY(-3px); background: var(--surface-2); box-shadow: inset 0 0 0 1px rgb(255 181 71 / .4); }
.prose .cards a { display: block; margin-bottom: 8px; color: var(--text); font-weight: 800; font-size: 1.05rem; line-height: 1.35; text-decoration: none; }
.prose .cards a::after { content: ""; position: absolute; inset: 0; }
.prose .cards li:hover a { color: var(--amber-hi); }
.prose .cards span { display: block; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.prose :is(.cards, .plans) .sep { display: none; } /* skyrybos ženklai lieka tik .md versijai */

/* Kam tinka: kortelė = nuotrauka, pavadinimas (visa kortelė yra nuoroda), vienas sakinys ir susijusių puslapių „žetonai“.
   Nuotraukos tamsintos tuo pačiu tonu kaip hero. Telefone kortelės slenka horizontaliai (scroll-snap), ne stulpeliu. */
.prose .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 32px 0 0; padding: 0; }
@media (min-width: 1040px) { .prose .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.prose .tiles li {
  position: relative; display: flex; flex-direction: column; margin: 0; padding: 0; overflow: hidden; border-radius: 20px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2);
  transition: transform .35s var(--spring), box-shadow .3s var(--ease);
}
.prose .tiles li::before { content: none; }
.prose .tiles li:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgb(255 181 71 / .35), 0 30px 60px -30px rgb(0 0 0 / .9); }
.tiles img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: saturate(.7) brightness(.82) contrast(1.05); transition: transform .8s var(--ease), filter .5s; }
.tiles li:hover img { transform: scale(1.05); filter: saturate(.85) brightness(.95) contrast(1.05); }
.tiles strong { display: block; padding: 18px 20px 0; font-size: 1.15rem; line-height: 1.3; font-weight: 800; letter-spacing: -.015em; }
.tiles strong a { color: var(--text); text-decoration: none; }
.tiles strong a::after { content: ""; position: absolute; inset: 0; } /* visa kortelė paspaudžiama */
.tiles li:hover strong a { color: var(--amber-hi); }
.tiles .desc { display: block; padding: 6px 20px 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.tiles .chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding: 16px 20px 20px; }
.tiles .chips a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; line-height: 1;
  color: var(--text-2); text-decoration: none; background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.tiles .chips a:hover { color: var(--on-amber); background: var(--amber); box-shadow: none; }
@media (max-width: 639px) {
  .prose .tiles {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter); gap: 12px;
  }
  .prose .tiles::-webkit-scrollbar { display: none; }
  .prose .tiles li { flex: 0 0 82%; scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

@media print {
  :root { color-scheme: light; --bg: #fff; --surface: #fff; --surface-2: #eee; --line: #ccc; --line-2: #999; --text: #000; --text-2: #222; --text-3: #555; }
  .site-header, .site-footer, .crumbs, .cta, .toc { display: none; }
  .head { background: none; }
  .head .frame { box-shadow: none; }
}
