/* Herotaled: svetainė atrodo kaip pati knyga. Popierius, rašalas, šiltos spalvos. */
@font-face { font-family: 'Grandstander'; font-weight: 500; font-display: swap; src: url(/fonts/grandstander-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Grandstander'; font-weight: 500; font-display: swap; src: url(/fonts/grandstander-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Grandstander'; font-weight: 700; font-display: swap; src: url(/fonts/grandstander-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Grandstander'; font-weight: 700; font-display: swap; src: url(/fonts/grandstander-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Grandstander'; font-weight: 800; font-display: swap; src: url(/fonts/grandstander-latin-ext-800-normal.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Grandstander'; font-weight: 800; font-display: swap; src: url(/fonts/grandstander-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Nunito'; font-weight: 400; font-display: swap; src: url(/fonts/nunito-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Nunito'; font-weight: 400; font-display: swap; src: url(/fonts/nunito-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url(/fonts/nunito-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url(/fonts/nunito-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url(/fonts/nunito-latin-ext-800-normal.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url(/fonts/nunito-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }

/* Knygos šriftai (pasirenkami formoje) */
@font-face { font-family: 'Andika'; font-weight: 400; font-display: swap; src: url(/fonts/andika-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Andika'; font-weight: 400; font-display: swap; src: url(/fonts/andika-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Lexend'; font-weight: 400; font-display: swap; src: url(/fonts/lexend-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Lexend'; font-weight: 400; font-display: swap; src: url(/fonts/lexend-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Fredoka'; font-weight: 500; font-display: swap; src: url(/fonts/fredoka-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Fredoka'; font-weight: 500; font-display: swap; src: url(/fonts/fredoka-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  color-scheme: light;
  --paper: #FBF1DF;
  --paper-2: #F5E4C6;
  --paper-3: #EFD7AE;
  --ink: #2B2340;
  --ink-soft: #5E5270;
  --tomato: #E4573D;
  --tomato-dk: #C2412A;
  --sun: #F4C95D;
  --night: #2E3A73;
  --night-2: #1F2A57;
  --grass: #7FB75A;
  --sky: #9FD3EC;
  --pink: #F28CB1;
  --display: 'Grandstander', 'Baloo 2', ui-rounded, system-ui, sans-serif;
  --body: 'Nunito', ui-rounded, system-ui, sans-serif;
  --wobble: 255px 18px 225px 18px / 18px 225px 18px 255px;
  --wobble-2: 18px 225px 18px 255px / 255px 18px 225px 18px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55;
  background-color: var(--paper); background-image: var(--grain);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0 0 .4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 8.6vw, 64px); }
h2 { font-size: clamp(28px, 6.4vw, 44px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 18px; }
@media (min-width: 900px) { .wrap { padding: 0 40px; } }
.small { font-size: 14px; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.hl { color: var(--tomato); }
.squiggle { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='10'%3E%3Cpath d='M0 6 Q7.5 0 15 6 T30 6 T45 6 T60 6' fill='none' stroke='%23F4C95D' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 100% / 30px 7px; padding-bottom: 6px; }

/* Mygtukai kaip iškirpti iš kartono */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1; text-decoration: none;
  padding: 18px 28px; min-height: 58px; color: #fff; background: var(--tomato);
  border: 3px solid var(--ink); border-radius: var(--wobble); box-shadow: 4px 5px 0 var(--ink);
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translate(-1px, -2px) rotate(-.5deg); box-shadow: 5px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn.secondary { background: var(--paper); color: var(--ink); }
.btn.sun { background: var(--sun); color: var(--ink); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.arrow { display: inline-block; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.link { font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Viršutinė juosta */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 2px dashed color-mix(in srgb, var(--ink) 20%, transparent); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 25px; text-decoration: none; display: inline-flex; align-items: baseline; gap: 2px; letter-spacing: -0.02em; }
.logo .tu { background: var(--tomato); color: #fff; padding: 1px 9px 3px; border-radius: var(--wobble-2); border: 2.5px solid var(--ink); transform: rotate(-4deg); display: inline-block; margin-right: 5px; box-shadow: 2px 3px 0 var(--ink); }
.logo .star { color: var(--sun); -webkit-text-stroke: 1.5px var(--ink); font-size: .8em; position: relative; top: -10px; margin-left: 2px; }
.top-nav { display: none; gap: 26px; font-weight: 700; }
.top-nav a, .top-acct { text-decoration: none; }
.top-nav a:hover, .top-acct:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.top-right { display: flex; align-items: center; gap: 18px; }
.top-acct { font-weight: 700; font-size: 15px; white-space: nowrap; }
.top .btn { font-size: 16px; padding: 10px 16px; min-height: 42px; box-shadow: 3px 3px 0 var(--ink); }
@media (min-width: 1000px) { .top-nav { display: flex; } .top .wrap { height: 72px; } }

section { padding: 64px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } .sec-head { margin-bottom: 44px; } }
.sec-head { max-width: 680px; margin-bottom: 28px; }
.kicker { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 15px; background: var(--sun); border: 2.5px solid var(--ink); border-radius: var(--wobble); padding: 5px 14px; transform: rotate(-2deg); margin-bottom: 16px; }

/* Popieriaus kortelė */
.card { background: #FFFAF0; border: 3px solid var(--ink); border-radius: 22px 26px 20px 28px; box-shadow: 5px 6px 0 var(--ink); padding: 22px; position: relative; }
.lead { font-size: 19px; color: var(--ink-soft); }
.tape { position: absolute; width: 96px; height: 28px; background: color-mix(in srgb, var(--sun) 70%, transparent); top: -14px; left: 50%; transform: translateX(-50%) rotate(-3deg); border-left: 2px dashed rgba(0,0,0,.08); border-right: 2px dashed rgba(0,0,0,.08); }

/* ---------------- Knygos puslapiai ---------------- */
.pg { position: relative; aspect-ratio: 1 / 1; overflow: hidden; container-type: inline-size; background: var(--paper); background-image: var(--grain); }
.pg-full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pg-num { position: absolute; bottom: 4cqi; left: 0; right: 0; text-align: center; font-family: var(--display); font-weight: 700; font-size: 3.4cqi; color: var(--ink-soft); }
.pg-art .pg-num { color: #fff; text-shadow: 0 0 6px rgba(0,0,0,.5); }
.pg-wm { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 13cqi; color: rgba(255,255,255,.32); transform: rotate(-24deg); pointer-events: none; letter-spacing: .05em; -webkit-text-stroke: .25cqi rgba(43,35,64,.18); }
.pg-text { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10cqi 10cqi 13cqi; text-align: center; }
.pg-story { font-family: var(--display); font-weight: 500; color: var(--ink); margin: 0; text-wrap: pretty; }
.lvl-m .pg-story { font-size: 7.2cqi; line-height: 1.28; }
.lvl-d .pg-story { font-size: 5.1cqi; line-height: 1.4; }
.pg-vin { width: 44cqi; height: 44cqi; margin-top: 5cqi; }
.pg-vin-ai { border-radius: 50%; background-size: 190%; background-position: 50% 45%; border: .7cqi solid var(--ink); box-shadow: .8cqi 1cqi 0 var(--ink); }
.tp-hero.tp-ref { width: 54cqi; height: 40cqi; margin-bottom: 4cqi !important; object-fit: cover; mix-blend-mode: multiply; margin-bottom: 1cqi; }
.pg-art { background: var(--paper); }
.pg-cover .cover-label { position: absolute; top: 5cqi; left: 8cqi; right: 8cqi; text-align: center; background: #FFFAF0; border: .7cqi solid var(--ink); border-radius: 4cqi 5cqi 4cqi 6cqi; padding: 3cqi 4cqi 3.6cqi; box-shadow: 1cqi 1.2cqi 0 var(--ink); }
.cover-brand { font-family: var(--display); font-weight: 700; font-size: 3.2cqi; color: var(--tomato); margin-bottom: 1cqi; }
.cover-title { font-size: 7.4cqi; margin: 0; line-height: 1.05; }
.pg-titlepage { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10cqi 12cqi 14cqi; }
.tp-hero { width: 34cqi; height: 46cqi; object-fit: contain; margin-bottom: 3cqi; }
.tp-title { font-size: 7.4cqi; margin-bottom: 2.4cqi; }
.tp-for { font-size: 4.6cqi; color: var(--ink-soft); margin-bottom: 4cqi; }
.tp-ded { font-family: var(--book, var(--display)); font-weight: var(--book-w, 500); font-size: 5.6cqi; line-height: 1.35; color: var(--tomato-dk); max-width: 80cqi; }
.tp-from { display: block; margin-top: 2cqi; font-size: 4.6cqi; color: var(--ink-soft); }
.pg-last .last-box { position: absolute; top: 5cqi; left: 6cqi; right: 6cqi; background: rgba(255,250,240,.94); border: .6cqi solid var(--ink); border-radius: 4cqi 5cqi 4cqi 6cqi; padding: 3.6cqi 5cqi; text-align: center; box-shadow: .9cqi 1cqi 0 var(--ink); }
.pg-last.lvl-m .pg-story { font-size: 5.2cqi; }
.pg-last.lvl-d .pg-story { font-size: 3.6cqi; }
.last-end { font-family: var(--display); font-weight: 800; font-size: 4.4cqi; color: var(--tomato); margin-top: 1.6cqi; }

/* Atvartas: du puslapiai su knygos lenkimu */
.spread { display: grid; grid-template-columns: 1fr 1fr; filter: drop-shadow(0 10px 18px rgba(43,35,64,.22)); border-radius: 6px; overflow: hidden; position: relative; }
.spread::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 9%; transform: translateX(-50%); background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(43,35,64,.16) 46%, rgba(255,255,255,.12) 52%, rgba(0,0,0,0) 100%); pointer-events: none; }
@media (max-width: 640px) { .spread { grid-template-columns: 1fr; gap: 0; } .spread::after { display: none; } }
.single { filter: drop-shadow(0 10px 18px rgba(43,35,64,.22)); border-radius: 4px 10px 10px 4px; overflow: hidden; }
.book3d { border-radius: 4px 12px 12px 4px; overflow: hidden; box-shadow: inset 6px 0 0 rgba(0,0,0,.18), 0 2px 0 #e8d8bb, 0 4px 0 #d9c39d, 0 6px 0 #c9b087, 10px 18px 30px rgba(43,35,64,.3); position: relative; }
.book3d::before { content: ''; position: absolute; top: 0; bottom: 0; left: 3.5%; width: 2.5%; background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(255,255,255,.25), rgba(0,0,0,.08)); z-index: 2; }

/* Formos elementai */
.lbl { display: block; font-family: var(--display); font-weight: 700; font-size: 19px; margin: 0 0 10px; }
.hint { font-size: 14px; color: var(--ink-soft); margin: -4px 0 10px; }
input[type=text], input[type=email], input[type=tel], input[type=password], textarea {
  width: 100%; font: inherit; font-size: 18px; padding: 14px 16px; color: var(--ink); background: #FFFAF0;
  border: 3px solid var(--ink); border-radius: 14px 18px 12px 16px; outline: none; box-shadow: 3px 3px 0 color-mix(in srgb, var(--ink) 25%, transparent);
}
input:focus, textarea:focus { box-shadow: 3px 3px 0 var(--sun), 0 0 0 3px var(--sun); }
textarea { min-height: 96px; resize: vertical; }
.err { color: var(--tomato-dk); font-weight: 700; font-size: 15px; margin-top: 6px; display: none; }
.has-err .err { display: block; }
.has-err input { border-color: var(--tomato); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 9px 16px; font-weight: 700; background: #FFFAF0; border: 2.5px solid var(--ink); border-radius: var(--wobble); transition: transform .1s; }
.chip input:checked + span { background: var(--sun); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-1.5deg); }
.chip input:focus-visible + span { outline: 3px solid var(--tomato); outline-offset: 2px; }
.sw { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ink); display: inline-block; }



.mock-badge { display: inline-block; background: #FFE58A; border: 2.5px dashed var(--ink); padding: 6px 12px; font-weight: 800; border-radius: 10px; font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Modelio viršelis: pavadinimas popieriaus juostoje viršuje, piešinys po ja (niekada neuždengia vaiko). */
.pg-cover-ai .pg-full { top: 31cqi; height: 69cqi; object-fit: cover; border-top: .7cqi solid var(--ink); }
.pg-cover-ai .cover-label { top: 2.5cqi; left: 5cqi; right: 5cqi; box-shadow: none; background: transparent; border: 0; padding: 1.5cqi 2cqi; }
.pg-cover-ai .cover-title { font-size: 7.2cqi; }
.pg-cover-ai .cover-brand { font-size: 3.6cqi; }

/* Modelio paskutinis puslapis: piešinys viršuje, tekstas apačioje ant popieriaus. */
.pg-last-ai .pg-full { height: 60cqi; object-position: 50% 40%; border-bottom: .6cqi solid var(--ink); }
.pg-last-ai .last-box { top: auto; bottom: 0; left: 0; right: 0; height: 40cqi; background: transparent; border: 0; box-shadow: none; border-radius: 0; display: flex; flex-direction: column; justify-content: center; padding: 3cqi 9cqi 5cqi; }
.pg-last-ai.lvl-d .pg-story { font-size: 3.5cqi; }
.pg-last-ai.lvl-m .pg-story { font-size: 5cqi; }

/* ================= Naujas maketas: atvartai ================= */
/* Spausdinamas atvarto puslapis: kiekviena pusė rodo savo plačios iliustracijos dalį. */
.pg-sp { background: var(--paper); }
.sp-half { position: absolute; top: 0; height: 100%; width: 200%; max-width: none; object-fit: cover; }
.sp-half-l { left: 0; }
.sp-half-r { left: -100%; }
.sp-text { position: absolute; top: 50%; transform: translateY(-50%); width: 58cqi; padding: 4.2cqi 5cqi; background: rgba(255, 250, 240, .9); border-radius: 5cqi; box-shadow: 0 0 4cqi 2cqi rgba(255, 250, 240, .7); }
.sp-text-l { left: 7cqi; }
.sp-text-r { right: 7cqi; }
.sp-text p { white-space: pre-line; margin: 0; font-family: var(--book, var(--display)); font-weight: var(--book-w, 500); color: var(--ink); text-wrap: pretty; }
.sp-text.lvl-s p { font-size: 3.9cqi; line-height: 1.32; }
.sp-text.lvl-m p { font-size: 3.4cqi; line-height: 1.36; }
.sp-text.lvl-d p { font-size: 2.95cqi; line-height: 1.42; }
.pg-sp .pg-num { color: var(--ink-soft); }

/* Titulinis ir pabaiga */
.pg-titlepage .tp-frame { width: 44cqi; height: 44cqi; border-radius: 50%; overflow: hidden; border: .8cqi solid var(--ink); box-shadow: 1cqi 1.2cqi 0 var(--ink); margin-bottom: 4cqi; }
.pg-titlepage .tp-frame img { width: 100%; height: 100%; object-fit: cover; }
.pg-titlepage .tp-title { font-size: max(19px, 6.4cqi); }
.pg-titlepage .tp-for { font-size: max(14px, 3.6cqi); }
.pg-titlepage .tp-ded { font-size: max(15px, 4.4cqi); margin: 1cqi 0 0; }
.pg-titlepage .tp-from { font-size: max(14px, 3.6cqi); color: var(--ink-soft); margin: 2cqi 0 0; }
.pg-end { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12cqi; }
.end-star { font-size: 14cqi; color: var(--sun); -webkit-text-stroke: .5cqi var(--ink); line-height: 1; margin-bottom: 4cqi; }
.end-text { font-family: var(--book, var(--display)); font-weight: var(--book-w, 500); font-size: max(16px, 4.4cqi); line-height: 1.4; margin: 0 0 5cqi; }
.end-word { font-family: var(--display); font-weight: 800; font-size: max(20px, 7cqi); color: var(--tomato); }
.end-brand { position: absolute; bottom: 15cqi; font-family: var(--display); font-weight: 700; font-size: max(11px, 2.6cqi); color: var(--ink-soft); }

/* Įskaitomumas ekrane: minimalūs dydžiai (PDF puslapiai dideli, ten galioja cqi). */
.pg-cover .cover-title { font-size: max(18px, 7.2cqi); }
.pg-cover .cover-brand { font-size: max(12px, 3.6cqi); }
.pg-num { font-size: max(11px, 3cqi); }

/* Atvartas svetainėje */
.wsp { width: 100%; margin: 0 auto 28px; max-width: 980px; container-type: inline-size; position: relative; }
.wsp-img { position: relative; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 6px; box-shadow: 0 10px 22px rgba(43, 35, 64, .22); background: var(--paper-2); }
.wsp-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.wsp-img::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 7%; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(43, 35, 64, .14) 48%, rgba(255, 255, 255, .12) 52%, transparent); pointer-events: none; }
.wsp-text { white-space: pre-line; display: block; margin: 12px 0 0; padding: 14px 18px; background: #FFFAF0; border: 2.5px solid var(--ink); border-radius: 14px 18px 12px 16px; font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.45; color: var(--ink); text-wrap: pretty; }
.wsp.lvl-s .wsp-text { font-size: 21px; }
.wsp.lvl-d .wsp-text { font-size: 17px; }
@media (min-width: 760px) {
  .wsp-text { position: absolute; top: 25cqi; transform: translateY(-50%); width: 30cqi; margin: 0; padding: 2.2cqi 2.6cqi; border: 0; border-radius: 2.6cqi; background: rgba(255, 250, 240, .9); box-shadow: 0 0 2cqi 1cqi rgba(255, 250, 240, .7); font-size: max(16px, 1.75cqi); }
  .wsp-l .wsp-text { left: 3.5cqi; }
  .wsp-r .wsp-text { right: 3.5cqi; }
  .wsp.lvl-s .wsp-text { font-size: max(18px, 2.1cqi); }
  .wsp.lvl-d .wsp-text { font-size: max(15px, 1.6cqi); }
}
.wtitle { max-width: 440px; width: 88%; margin: 0 auto 28px; }

/* Kainos su nubraukta vėlesne kaina */
.price-n { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.pn-now { font-family: var(--display); font-weight: 800; font-size: 42px; line-height: 1; color: var(--tomato-dk); }
.pn-was { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--ink-soft); text-decoration-thickness: 2px; }
.badge-start { display: inline-block; align-self: flex-start; margin-top: 8px; font-weight: 800; font-size: 13px; background: var(--tomato); color: #fff; padding: 2px 10px; border: 2px solid var(--ink); border-radius: var(--wobble); }
.ticks { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 9px; }
.ticks li::before { content: '✓'; flex: none; color: var(--grass); font-weight: 900; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; line-height: 1.4; }
.check input { width: 24px; height: 24px; flex: none; accent-color: var(--tomato); margin-top: 1px; }
select { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; background: #FFFAF0; border: 3px solid var(--ink); border-radius: 14px; color: var(--ink); }
.legal { max-width: 760px; padding-top: 40px; padding-bottom: 60px; }
.legal p { color: var(--ink); }
.wait-bar { height: 12px; border: 2.5px solid var(--ink); border-radius: 10px; background: #FFFAF0; overflow: hidden; max-width: 340px; margin: 22px auto; }
.wait-bar i { display: block; height: 100%; width: 30%; background: var(--sun); border-right: 2.5px solid var(--ink); animation: waitbar 2.4s ease-in-out infinite; }
@keyframes waitbar { 0% { margin-left: -30%; } 100% { margin-left: 100%; } }

/* Puslapio vidiniai dydžiai (cqi) skaičiuojami nuo jį gaubiančio elemento. */
.book3d, .fb-page, .pp, .single { container-type: inline-size; }

/* ===== 3 rato kompiuterio vaizdo tvarka ===== */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
h1, h2, .sec-head p, .lead { text-wrap: balance; }
.btn { white-space: nowrap; }
@media (max-width: 420px) { .btn { white-space: normal; text-align: center; } }
/* Valdiklių aukščiai ir kampai vienodi */
input[type=text], input[type=email], input[type=tel], input[type=password], textarea, select { border-radius: 14px; }
.chip span { min-height: 52px; border-radius: 14px; padding: 10px 16px; }
.chip input:checked + span { transform: none; }
.hint { margin: 6px 0 10px; }
.field > .hint:first-of-type { margin-top: -2px; }
/* Vidinių puslapių antraštės vieno dydžio */
.pv-head h1, .acc-head h1, .rd-title, .kf-head h1, .legal h1, .acc-card h1 { font-size: clamp(30px, 4vw, 44px); }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal h1 + .muted { margin-top: -4px; }

/* ---------- 4 ratas: ikonos, antraštė (site / flow / app), poraštė ---------- */
.ic { flex: none; display: inline-block; vertical-align: middle; }
:focus-visible { outline: 3px solid var(--night); outline-offset: 2px; }
.top-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.top .wrap { gap: 24px; justify-content: flex-start; }
.top-acct { display: inline-flex; align-items: center; gap: 8px; min-width: 44px; min-height: 44px; justify-content: center; font-family: var(--body); font-weight: 700; font-size: 16px; text-decoration: none; }
.top-acct .ta-t { display: none; }
.top-acct .who { width: 32px; height: 32px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 15px; line-height: 1; }
.top-new { display: none; align-items: center; gap: 6px; font-weight: 700; font-size: 16px; text-decoration: none; min-height: 44px; }
.top-new:hover, .top-acct:hover .ta-t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.top .btn { font-family: var(--body); font-size: 15px; padding: 9px 16px; min-height: 42px; box-shadow: 3px 3px 0 var(--ink); }
.top-secure { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.top-nav a { font-family: var(--body); font-weight: 700; font-size: 16px; padding: 8px 0; border-bottom: 3px solid transparent; }
.top-nav a[aria-current] { border-bottom-color: var(--tomato); }
.top-app, .top-flow { border-bottom-style: solid; border-bottom-width: 1px; }
.top-flow .wrap { height: 60px; }
@media (min-width: 700px) { .top-acct .ta-t { display: inline; } .top-new { display: inline-flex; } }
@media (min-width: 1000px) { .top-nav { display: flex; gap: 32px; margin-left: 24px; } .top .wrap { height: 72px; } .top-flow .wrap { height: 64px; } }
@media (max-width: 380px) { .logo { font-size: 22px; } .top .btn { padding: 8px 12px; } }

.footer { padding: 44px 0 36px; border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); font-size: 15px; margin-top: 40px; }
.ft-top { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.ft-brand { grid-column: 1 / -1; }
.ft-brand p { margin: 8px 0 0; color: var(--ink-soft); }
.ft-col { display: flex; flex-direction: column; gap: 4px; }
.ft-col b { font-size: 13px; font-weight: 800; color: var(--ink-soft); margin-bottom: 4px; }
.ft-col a, .ft-docs a, .ft-mail { text-decoration: none; line-height: 1.4; padding: 6px 0; overflow-wrap: anywhere; }
.ft-col a:hover, .ft-docs a:hover, .ft-mail:hover { text-decoration: underline; }
.ft-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; justify-content: space-between; font-size: 13px; color: var(--ink-soft); }
.ft-legal { margin: 0; }
.ft-docs { display: flex; gap: 18px; }
.footer-min { padding: 22px 0; margin-top: 24px; }
.footer-min .wrap { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; font-size: 13px; color: var(--ink-soft); }
@media (min-width: 900px) { .ft-top { grid-template-columns: 2fr 1fr 1fr; } .ft-brand { grid-column: auto; } }
.top .btn { white-space: nowrap; }
.legal .eu-guarantee { margin: 36px 0 0; max-width: 420px; } .legal .eu-guarantee img { width: 100%; height: auto; border: 1px solid #ddd; }
.cookie-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 560px; margin: 0 auto; background: #FFFAF0; border: 1.5px solid color-mix(in srgb, var(--ink) 20%, transparent); border-radius: 16px; padding: 14px 16px; box-shadow: 0 8px 24px rgb(43 35 64 / .16); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.cookie-bar p { margin: 0; flex: 1 1 260px; }
.cookie-bar div { display: flex; gap: 14px; align-items: center; }
.cookie-bar .btn-ink { min-height: 40px; padding: 8px 16px; border-radius: 10px; background: var(--ink); color: #fff; border: 0; font-weight: 800; cursor: pointer; font-family: var(--body); }
.cookie-bar .link-btn { appearance: none; background: none; border: 0; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
@media (max-width: 440px) { .top:not(.top-app):not(.top-flow) .btn { display: none; } }
/* Teksto langelis viršuje arba apačioje, kai viduryje yra veikėjų galvos (src/lib/book.js textY). */
.sp-text.sp-y-top { top: 5cqi; transform: none; }
.sp-text.sp-y-bot { top: auto; bottom: 7cqi; transform: none; }
/* 5 ratas, išdėstymo tikrintojas */
.top-secure { white-space: nowrap; }
@media (max-width: 400px) { .top-secure { font-size: 13px; } }
.top .wrap { align-items: center; }
.top-nav a { line-height: 1.2; display: inline-flex; align-items: center; }
.btn { text-wrap: balance; }
.top-nav a { border-top: 3px solid transparent; }
