/* Ekologiško viešojo transporto šalininkai – svetainės stilius */
:root {
  --g900: #0f3d2e;
  --g700: #1b6b4a;
  --g500: #2e9e6b;
  --g100: #e6f4ec;
  --amber: #f4b400;
  --amber-d: #c98f00;
  --ink: #17221c;
  --muted: #5b6b62;
  --bg: #fbfaf6;
  --card: #ffffff;
  --line: #e3e6df;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 61, 46, .06), 0 6px 20px rgba(15, 61, 46, .06);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--g700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--g900); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; color: var(--g900); }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); margin: .2em 0 .3em; font-weight: 750; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.2rem; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--g900); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--g500); margin: 0; }
ul.plain { list-style: none; padding: 0; margin: 0; }

/* Mygtukai */
.btn { display: inline-flex; align-items: center; gap: .4em; background: var(--g700); color: #fff; border: 2px solid var(--g700); padding: .7em 1.3em; border-radius: 999px; font-weight: 650; text-decoration: none; cursor: pointer; font: inherit; font-weight: 650; transition: background .15s, transform .15s; }
.btn:hover { background: var(--g900); border-color: var(--g900); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--g700); }
.btn-ghost:hover { background: var(--g100); color: var(--g900); }
.btn-amber { background: var(--amber); border-color: var(--amber); color: var(--g900); }
.btn-amber:hover { background: #ffc823; border-color: #ffc823; color: var(--g900); }
.btn-small { padding: .45em 1em; font-size: .92rem; }

/* Antraštė */
.site-header { background: rgba(251, 250, 246, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--g900); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--g500); font-weight: 700; }
.brand-text strong { font-size: 1.02rem; font-weight: 750; max-width: 260px; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.main-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.main-nav li { position: relative; }
.main-nav > ul > li > a { display: block; white-space: nowrap; padding: 10px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.main-nav > ul > li > a:hover, .main-nav > ul > li.active > a { color: var(--g700); background: var(--g100); }
.main-nav .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); list-style: none; padding: 8px; margin: 0; }
.main-nav li.has-sub:hover > .sub, .main-nav li.has-sub:focus-within > .sub { display: block; }
.main-nav .sub a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.main-nav .sub a:hover { background: var(--g100); color: var(--g900); }
.nav-search input { width: 130px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: .9rem; transition: width .2s; }
.nav-search input:focus { width: 200px; outline: 2px solid var(--g500); border-color: transparent; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; position: relative; }
.nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after { position: absolute; left: 11px; width: 20px; height: 2px; background: var(--g900); content: ""; transition: .2s; }
.nav-toggle span:first-child { top: 21px; }
.nav-toggle span:first-child::before { top: -6px; left: 0; }
.nav-toggle span:first-child::after { top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] span:first-child { background: transparent; }
.nav-toggle[aria-expanded="true"] span:first-child::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:first-child::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero { padding: 56px 0 40px; background: radial-gradient(1200px 500px at 85% 20%, var(--g100), transparent 60%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: .25em 0 .35em; }
.lead { font-size: 1.15rem; color: #34453b; max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.route-map { width: 100%; height: auto; }
.route-map .ln { fill: none; stroke-width: 10; stroke-linecap: round; }
.route-map .ln-a { stroke: var(--g700); }
.route-map .ln-b { stroke: var(--g500); }
.route-map .ln-c { stroke: var(--amber); }
.route-map .stops circle { fill: #fff; stroke: var(--g900); stroke-width: 4; }
.route-map { animation: fadein .8s ease-out both; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } }
.route-map .hub circle:first-child { fill: #fff; stroke: var(--g900); stroke-width: 5; }
.route-map .hub circle:last-child { fill: var(--amber); }
@media (prefers-reduced-motion: reduce) { .route-map { animation: none; } }

/* Sekcijos */
.section { padding: 56px 0; }
.section-tint { background: #f2f5ef; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: 1.75rem; }
.more { font-weight: 650; text-decoration: none; white-space: nowrap; }
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }

/* Kortelės */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin: 8px 0 24px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.card-img { aspect-ratio: 16 / 10; background: var(--g100) url("../img/logo.svg") center / 56px no-repeat; display: block; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.card-body strong { color: var(--g900); font-size: 1.05rem; }
.card-body span { color: var(--muted); font-size: .9rem; line-height: 1.45; }

/* Laiko juosta (naujienos) – maršruto linija su stotelėmis */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 4px; background: var(--g500); border-radius: 4px; }
.timeline li { position: relative; padding: 0 0 26px; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--g900); }
.timeline li:first-child::before { background: var(--amber); }
.timeline time { display: block; font-size: .82rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.timeline a { font-weight: 700; font-size: 1.08rem; text-decoration: none; color: var(--g900); }
.timeline a:hover { text-decoration: underline; }
.timeline p { margin: 4px 0 0; color: #3d4c43; font-size: .95rem; }
.timeline-big li { display: grid; grid-template-columns: 1fr; }
.timeline-big li.has-img { grid-template-columns: 1fr 150px; column-gap: 20px; }
.timeline-big li.has-img .tl-img { grid-column: 2; grid-row: 1 / span 3; border-radius: 10px; width: 150px; aspect-ratio: 3 / 2; object-fit: cover; }
.mission { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 28px; box-shadow: var(--shadow); }
.mission h2 { margin-top: 0; }
.checks { list-style: none; padding: 0; margin: 0 0 20px; }
.checks li { padding: 8px 0 8px 34px; position: relative; border-bottom: 1px dashed var(--line); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 16px; height: 16px; border-radius: 50%; background: var(--g100); box-shadow: inset 0 0 0 4px var(--g500); }

/* Galerijos */
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.photo-strip a, .grid-gallery a { display: block; border-radius: 10px; overflow: hidden; position: relative; background: var(--g100); }
.photo-strip img, .grid-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.photo-strip a:hover img, .grid-gallery a:hover img { transform: scale(1.04); }
.grid-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 20px 0 30px; }
.grid-gallery span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-size: .82rem; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); line-height: 1.3; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8, 20, 14, .92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; text-align: center; max-width: 90vw; }
.lightbox img { max-height: 82vh; max-width: 90vw; border-radius: 8px; }
.lightbox figcaption { color: #e9efe9; margin-top: 10px; font-size: .95rem; }
.lightbox button { position: fixed; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; }
.lb-next { right: 16px; top: 50%; }

/* CTA juosta */
.cta-band { background: var(--g900); color: #e7f1ea; padding: 44px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; }

/* Vidiniai puslapiai */
.page-head { padding: 34px 0 10px; background: linear-gradient(var(--g100), var(--bg)); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--g700); text-decoration: underline; }
.crumbs > *:not(:last-child)::after { content: "›"; margin-left: 6px; color: #9aa79f; }
.page-body { padding-top: 32px; padding-bottom: 64px; }
.page-body.with-side { display: grid; grid-template-columns: 250px 1fr; gap: 44px; align-items: start; }
.side-nav { position: sticky; top: 96px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.side-title { display: block; font-weight: 750; color: var(--g900); text-decoration: none; padding: 6px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: block; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.side-nav a:hover { background: var(--g100); }
.side-nav a[aria-current] { background: var(--g700); color: #fff; font-weight: 650; }
.content { min-width: 0; }
.prose { max-width: 46em; }
.prose img { border-radius: 10px; margin: 6px 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.prose blockquote { margin: 1.2em 0; padding: 4px 18px; border-left: 4px solid var(--amber); background: #fffaf0; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.updated { color: var(--muted); font-size: .82rem; margin-top: 40px; }
.lead-img { width: 100%; border-radius: var(--radius); margin-bottom: 20px; }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.prev-next a { text-decoration: none; display: flex; flex-direction: column; font-weight: 650; color: var(--g900); }
.prev-next small { color: var(--muted); font-weight: 500; }
.prev-next .nx { text-align: right; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.pager a { min-width: 40px; text-align: center; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: #fff; }
.pager a[aria-current] { background: var(--g700); color: #fff; border-color: var(--g700); }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 700; color: var(--g900); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--g500); }
.faq details[open] summary::after { content: "–"; }
.faq .prose { padding: 0 20px 14px; }

.file-list { list-style: none; padding: 0; }
.file-list li { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 10px; }
.file-list .ext { background: var(--g100); color: var(--g700); font-weight: 800; font-size: .78rem; border-radius: 8px; text-align: center; padding: 12px 0; }
.file-list p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.search-big { display: flex; gap: 10px; margin: 14px 0 6px; }
.search-big input { flex: 1; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; font: inherit; }
.results { list-style: none; padding: 0; }
.results li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.results small { display: block; color: var(--g500); font-weight: 650; }
.results a { font-weight: 700; font-size: 1.1rem; }
.results p { margin: 4px 0 0; color: #3d4c43; }
.notfound { padding-top: 80px; }

/* Poraštė */
.site-footer { background: #0b2a20; color: #c9dacf; margin-top: 0; }
.route-line { position: relative; height: 8px; background: var(--g500); display: flex; justify-content: space-around; }
.route-line span { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 5px solid var(--g900); margin-top: -6px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 48px; padding-bottom: 28px; }
.site-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-top: 6px; }
.site-footer a { color: #e8f3ec; }
.site-footer .muted { color: #9fb5a8; max-width: 26em; }
.brand-footer, .brand-footer strong { color: #fff; }
.brand-footer small { color: #7fd1a6; }
.footer-grid li { padding: 3px 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; padding-bottom: 26px; font-size: .86rem; color: #93aa9c; }

/* Mobilus */
@media (max-width: 1140px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; max-height: calc(100vh - 72px); overflow-y: auto; }
  .main-nav.open { display: flex; }
  .main-nav > ul { flex-direction: column; }
  .main-nav .sub { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 6px 14px; background: transparent; min-width: 0; }
  .nav-search input, .nav-search input:focus { width: 100%; }
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; }
  .page-body.with-side { grid-template-columns: 1fr; gap: 20px; }
  .side-nav { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .brand-text strong { font-size: .92rem; max-width: 200px; }
  .hero { padding-top: 32px; }
  .hero-art { display: none; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .timeline-big li.has-img { grid-template-columns: 1fr; }
  .timeline-big li.has-img .tl-img { grid-column: 1; grid-row: auto; width: 100%; margin: 8px 0 0; }
  .prev-next { grid-template-columns: 1fr; }
  .prev-next .nx { text-align: left; }
  .section-head { flex-direction: column; gap: 4px; }
  .file-list li { grid-template-columns: 48px 1fr; }
  .file-list small { grid-column: 2; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 10px 12px 12px; }
  .card-body strong { font-size: .95rem; }
  .card-body span { display: none; }
}
@media print { .site-header, .site-footer, .side-nav { display: none; } }
