/* d-d.lt — "the page is the object": the visitor's document sheet, printed in brand blue on white. */
:root {
  --ground: #E6EEF4;
  --ground-2: #D5E3EE;
  --paper: #FFFFFF;
  --ink: #0F1B26;
  --soft: #44525F;
  --blue: #039BE5;      /* brand blue, from the logo */
  --action: #0270AE;    /* darker brand blue: white text passes AA on it */
  --action-press: #015A8C;
  --margin: clamp(16px, 2.2vw, 32px);
  --gap: clamp(96px, 12vw, 200px);
  --display: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  --r: 20px;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-hero: clamp(2.375rem, 1.1rem + 3.6vw, 4.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 var(--step-body)/1.6 var(--text); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--action); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; margin: 0; text-wrap: balance; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); letter-spacing: -0.015em; line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--blue); color: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -60px; background: var(--ink); color: #fff; padding: 12px 16px; z-index: 50; }
.skip:focus { top: 12px; }
.lead { font-size: var(--step-lead); line-height: 1.4; }

/* buttons: one shape, square */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; background: var(--action); color: #fff;
  font: 700 var(--step-body)/1 var(--display); letter-spacing: -0.01em; text-decoration: none; border: 0; border-radius: 999px; cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease); }
.btn:hover { background: var(--action-press); color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: var(--step-body); }
.btn-block { display: flex; width: 100%; }
.text-link { font-family: var(--display); font-weight: 700; color: var(--action); }
.text-link:hover { color: var(--ink); }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 12px var(--margin); background: var(--ground); }
.bar-mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 var(--step-lead)/1 var(--display); letter-spacing: -0.03em; }
.bar-mark img { width: 40px; height: 40px; }
.bar-links { display: flex; gap: 24px; margin-left: auto; font: 700 var(--step-body)/1 var(--display); }
.bar-links a { text-decoration: none; padding: 10px 0; }
.bar-links a:hover { text-decoration: underline; }
.langs { display: flex; gap: 2px; font: 700 var(--step-small)/1 var(--display); }
.langs a { text-decoration: none; padding: 12px 10px; color: var(--soft); transition: background-color .2s, color .2s; }
.langs a:hover { color: var(--ink); background: var(--ground-2); }
.langs a[aria-current] { color: var(--paper); background: var(--ink); }

/* hero: the printed card beside the photograph */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 0 var(--margin); min-height: calc(100svh - 72px); }
.card { background: var(--paper); border-radius: var(--r); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.stripe { display: flex; height: 56px; overflow: hidden; flex: none; }
.stripe i { flex: 0 0 28px; height: 100%; }
.stripe i:nth-child(odd) { background: var(--blue); }
.card-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px clamp(24px, 4vw, 64px); gap: 0; }
.wordmark { width: min(300px, 70%); margin-bottom: 44px; }
.hero h1 { font-size: var(--step-hero); max-width: 16ch; }
.hero-sub { margin-top: 36px; max-width: 40ch; font-size: var(--step-lead); line-height: 1.4; }
.hero .btn { margin-top: 36px; min-height: 60px; padding: 0 36px; font-size: var(--step-body); }
.hero-call { margin-top: 18px; font: 500 var(--step-body)/1.4 var(--display); }
.hero-call a { font-weight: 800; color: var(--action); white-space: nowrap; }
.hero-countries { margin-top: 10px; font: 700 var(--step-body)/1.4 var(--display); color: var(--soft); }
.card-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; padding: 0 24px 28px; font: 700 var(--step-body)/1 var(--display); }
.card-links a { padding: 8px 0; }
.hero-photo { position: relative; overflow: hidden; background: var(--blue); min-height: 320px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; }
.hero-draw { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-plate { opacity: 0; transition: opacity .9s ease, transform .9s var(--ease); transform: translateY(18px); }
.hero-plate.on { opacity: 1; transform: none; }

/* documents: the live checklist */
.docs { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); align-items: start; padding: var(--gap) var(--margin) 0; }
.docs-pick { position: sticky; top: 104px; }
.docs h2 { max-width: 12ch; }
.docs .lead { margin-top: 28px; max-width: 34ch; }
fieldset { border: 0; padding: 0; margin: 40px 0 0; }
legend { font: 700 var(--step-body)/1.2 var(--display); margin-bottom: 14px; padding: 0; }
.segs { display: grid; gap: 6px; }
.segs-4 { grid-template-columns: repeat(2, 1fr); }
.segs-2 { grid-template-columns: repeat(2, 1fr); }
.seg { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 8px 14px; background: var(--paper); border-radius: 14px; font: 700 var(--step-body)/1.15 var(--display); text-align: center; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.seg:hover span { background: var(--ground-2); }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.seg input:active + span { transform: scale(.98); }

.sheet { background: var(--paper); border-radius: var(--r); overflow: hidden; }
.sheet-body { padding: clamp(40px, 5vw, 64px) clamp(20px, 4vw, 56px) 32px; }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.sheet-title { font: 700 var(--step-head)/1 var(--display); letter-spacing: -0.03em; }
.sheet-have { font: 700 var(--step-small)/1 var(--display); color: var(--soft); }
.list { display: none; }
.list ul { list-style: none; margin: 0; padding: 0; }
.list li label { display: grid; grid-template-columns: 32px auto 1fr auto; align-items: baseline; gap: 12px; padding: 14px 0; cursor: pointer; }
.list input[type=checkbox] { width: 24px; height: 24px; margin: 0; accent-color: var(--action); align-self: center; cursor: pointer; }
.item-name { font-size: var(--step-body); line-height: 1.35; }
.leader { border-bottom: 4px dotted var(--ground-2); transform: translateY(-5px); min-width: 16px; }
.item-val, .menu-val { font: 700 var(--step-body)/1.3 var(--display); text-align: right; color: var(--action); white-space: nowrap; }
.list li label:has(input:checked) .item-name { color: var(--action); font-weight: 600; }
.sheet-note { margin-top: 18px; color: var(--soft); max-width: 60ch; }
.moto-note { display: none; }
.sheet-we { margin-top: 18px; font-weight: 600; }
/* without script, the radios still switch the list */
.docs:has(#c-de:checked) .list-de, .docs:has(#c-pl:checked) .list-pl, .docs:has(#c-uk:checked) .list-uk, .docs:has(#c-us:checked) .list-us { display: block; }
.docs:has(#v-moto:checked) .moto-note { display: block; }
.stub { background: var(--ground-2); border-top: 6px dotted var(--paper); padding: 28px clamp(20px, 4vw, 56px) 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.stub p { flex: 1 1 260px; font-size: var(--step-small); color: var(--soft); line-height: 1.45; }

/* how it works: a dragged row of moments */
.how { padding: var(--gap) 0 0; }
.how-top { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 0 var(--margin); }
.how-btns { display: flex; gap: 8px; }
.sq { width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 var(--step-lead)/1 var(--display); cursor: pointer; transition: background-color .2s, transform .2s var(--ease); }
.sq:hover { background: var(--action); }
.sq:active { transform: scale(.94); }
.progress { margin: 28px var(--margin) 0; height: 6px; background: var(--ground-2); border-radius: 3px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 20%; background: var(--ink); transform-origin: left; }
.row { display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--margin); padding: 40px var(--margin) 8px; margin: 0; list-style: none; scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.moment { flex: 0 0 300px; scroll-snap-align: start; display: flex; flex-direction: column; }
.moment h3 { font-size: var(--step-lead); }
.moment p { margin-top: 12px; font-size: var(--step-body); line-height: 1.5; }
.moment-gap { flex: none; height: var(--gap); }
.moment-draw { width: 100%; height: auto; display: block; margin-top: auto; }

/* services: the price list on a blue field */
.services { margin-top: var(--gap); background: var(--blue); padding: clamp(64px, 8vw, 120px) var(--margin); display: flex; justify-content: center; }
.menu { width: min(680px, 100%); background: var(--paper); padding: clamp(48px, 6vw, 72px) clamp(20px, 4vw, 52px); border-radius: var(--r); }
.menu h2 { text-align: center; margin-bottom: 44px; }
.menu-group + .menu-group { margin-top: 44px; }
.menu-group h3 { font-size: var(--step-lead); color: var(--action); margin-bottom: 8px; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { padding: 10px 0; }
.menu-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: baseline; }
.menu-name { font-size: var(--step-body); font-weight: 600; }
.menu-desc { margin-top: 4px; font-size: var(--step-body); color: var(--soft); max-width: 40ch; }

/* about: the letter with a tear-off strip */
.about { padding: var(--gap) var(--margin) 0; display: flex; flex-direction: column; align-items: center; }
.letter { width: min(680px, 100%); background: var(--paper); border-radius: var(--r) var(--r) 0 0; padding: clamp(32px, 5vw, 64px); }
.letter p { margin-top: 20px; max-width: 58ch; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font: 700 var(--step-body)/1 var(--display); }
.sign { font-weight: 700; font-size: var(--step-lead); margin-top: 36px !important; }
.role { margin-top: 4px !important; font-size: var(--step-small); color: var(--soft); }
.tear { width: min(680px, 100%); background: var(--paper); border-radius: 0 0 var(--r) var(--r); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding: 24px clamp(32px, 5vw, 64px); border-top: 6px dotted var(--ground); }
.tear span { color: var(--soft); }
.tear a { font: 700 var(--step-lead)/1.2 var(--display); letter-spacing: -0.02em; color: var(--action); }

/* reviews: quotes on paper slips */
.reviews { margin-top: var(--gap); padding: clamp(72px, 8vw, 120px) var(--margin); background: var(--ground-2); overflow: hidden; }
.reviews h2 { max-width: 14ch; }
.reviews .slips::before { content: '“'; font: 800 160px/0.7 var(--display); color: var(--blue); flex: none; }
.slips { display: flex; gap: 24px; margin-top: 56px; }
.slip { margin: 0; flex: 1 1 0; background: var(--paper); padding: 36px 36px 40px; border-radius: var(--r); }
.slip:nth-child(2) { margin-top: 72px; }
.slip figcaption { font-family: var(--display); display: flex; align-items: baseline; gap: 12px; }
.slip figcaption strong { display: block; font-size: var(--step-lead); }
.slip figcaption span { color: var(--soft); font-size: var(--step-body); }
.slip blockquote { margin: 20px 0 0; font-size: var(--step-body); line-height: 1.55; }

/* faq: questions beside a tall photograph */
.faq { background: var(--paper); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); padding: 0 var(--margin) 0; }
.faq-text { padding: clamp(72px, 8vw, 128px) 0; }
.facts { margin: 32px 0 0; }
.facts div { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 6px 0; font-size: var(--step-body); }
.facts dt { font-family: var(--display); font-weight: 700; min-width: 7.5em; }
.facts dd { margin: 0; }
.qs { margin-top: 40px; }
.qs details { padding: 14px 0; }
.qs details + details { margin-top: 6px; }
.qs summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; font: 700 var(--step-lead)/1.25 var(--display); letter-spacing: -0.015em; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: ''; flex: none; width: 12px; height: 12px; border-right: 3px solid var(--action); border-bottom: 3px solid var(--action); rotate: 45deg; translate: 0 -4px; transition: rotate .25s var(--ease); }
.qs details[open] summary::after { rotate: 225deg; translate: 0 2px; }
.qs summary:hover { color: var(--action); }
.qs details p { margin-top: 10px; font-size: var(--step-body); color: var(--soft); max-width: 56ch; }
.faq-act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 44px; }
.faq-pics { padding: clamp(72px, 8vw, 128px) 0; }
.faq-draw { width: 100%; height: auto; display: block; position: sticky; top: 96px; }

/* contact: the visit card on Kaunas */
.contact { position: relative; min-height: 70svh; }
.contact-photo { position: absolute; inset: 0; overflow: hidden; }
.map-draw { width: 100%; height: 100%; display: block; }
.visit { position: absolute; top: 60px; right: var(--margin); width: 400px; background: var(--paper); border-radius: var(--r); padding: 36px 32px 32px; }
.visit h2 { font-size: var(--step-head); }
.visit dl { margin: 24px 0 28px; }
.visit dl div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.visit dt { font-family: var(--display); font-weight: 700; }
.visit dd { margin: 0; text-align: right; }

/* footer: the back of the card */
.foot { padding: var(--gap) var(--margin) 32px; }
.foot-card { width: min(1120px, 100%); margin: 0 auto; background: var(--paper); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: clamp(48px, 6vw, 80px) clamp(24px, 5vw, 72px); position: relative; border-radius: var(--r); }
.foot-msg h2 { font-size: var(--step-head); }
.foot-msg p { margin-top: 20px; max-width: 40ch; }
.foot-msg .langs { margin-top: 28px; margin-left: -10px; }
.foot-addr { position: relative; display: flex; flex-direction: column; gap: 12px; font-size: var(--step-body); padding-right: 120px; }
.foot-addr a { font-family: var(--display); font-weight: 700; }
.foot-addr span { margin-top: 8px; font-size: var(--step-body); color: var(--soft); line-height: 1.5; }
.stamp { position: absolute; right: 0; top: 0; width: 92px; rotate: 4deg; }
.stamp-draw { width: 100%; height: auto; display: block; }
.imprint p { max-width: 75ch; margin-inline: auto; }
.imprint { width: min(1120px, 100%); margin: 24px auto 0; text-align: center; font-size: var(--step-small); color: var(--soft); }
.credits summary { cursor: pointer; display: inline-block; padding: 10px; font-family: var(--display); font-weight: 700; }
.credits p { margin-top: 4px; line-height: 1.6; }

/* privacy */
.policy { width: min(860px, calc(100% - 2 * var(--margin))); margin: 24px auto 0; background: var(--paper); border-radius: var(--r); }
.policy-body { padding: clamp(32px, 6vw, 80px); }
.policy h1 { font-size: var(--step-head); }
.policy-date { margin-top: 16px; color: var(--soft); font-size: var(--step-small); }
.policy .lead { margin-top: 28px; }
.policy section { margin-top: 48px; }
.policy h2 { font-size: var(--step-lead); letter-spacing: -0.02em; }
.policy section p, .policy ul { margin-top: 14px; max-width: 68ch; }
.policy ul { padding-left: 1.2em; }
.policy li + li { margin-top: 8px; }
.policy-body > p:last-child { margin-top: 56px; }

/* entrances: parts rise in turn, only when script is running */
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity .7s var(--ease), translate .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; translate: 0 0; }

@media (min-width: 1101px) {
  .card-links { display: none; }
  .how-btns, .progress { display: none; }
  .row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 72px 32px; overflow: visible; padding-top: 48px; }
  .moment { flex: none; }
  .moment-draw { max-width: 360px; }
}
@media (max-width: 1100px) {
  .bar-links { display: none; }
  .langs { margin-left: auto; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 0 12px; gap: 0; }
  .hero-photo { order: -1; height: auto; min-height: 0; aspect-ratio: 10 / 9; }
  .card { margin: -24px 12px 0; position: relative; }
  .stripe { height: 40px; }
  .card-body { padding: 36px 20px 28px; }
  .wordmark { width: 56%; margin-bottom: 28px; }
  .hero h1 { font-size: clamp(2.125rem, 8.6vw, 3rem); }
  .hero-sub { margin-top: 24px; font-size: var(--step-body); }
  .hero .btn { width: 100%; margin-top: 28px; }
  .docs, .faq { grid-template-columns: 1fr; }
  .docs-pick { position: static; }
  .faq-pics { order: -1; padding: 48px 0 0; }
  .faq-draw { max-height: 70svh; width: auto; margin: 0 auto; }
  .faq-text { padding-top: 24px; }
  .how-btns { display: none; }
  .moment { flex-basis: 74vw; }
  .row { gap: 16px; }
  .moment-gap { height: calc(var(--gap) / 2.2); }
  .slips { flex-direction: column; }
  .reviews .slips::before { font-size: 110px; }
  .slip:nth-child(2) { margin-top: 0; }
  .contact { min-height: 0; padding-bottom: 0; }
  .contact-photo { position: relative; height: 56svh; }
  .visit { position: relative; top: auto; right: auto; width: auto; margin: -80px var(--margin) 0; }
  .visit .btn { min-height: 56px; }
  .foot-card { grid-template-columns: 1fr; gap: 32px; }
  .foot-addr { padding-right: 80px; font-size: var(--step-body); }
  .stamp { width: 68px; }
}
@media (max-width: 520px) {
  .bar { gap: 8px; padding: 10px 16px; }
  .bar-mark span { display: none; }
  .langs a { padding: 12px 7px; }
  .segs-4 { grid-template-columns: repeat(2, 1fr); }
  .list li label { grid-template-columns: 28px 1fr; row-gap: 2px; }
  .list .leader { display: none; }
  .item-val { grid-column: 2; text-align: left; }
  .item-name { font-size: var(--step-body); }
  .menu-row { grid-template-columns: 1fr auto; }
  .menu-row .leader { display: none; }
  .menu-name { font-size: var(--step-body); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
  .hero-plate { transition: none; transform: none; }
  .hero-plate:not(.on) { display: none; }
  .btn, .seg span, .sq { transition: none; }
}
