/* =====================================================================
   Verslo dokumentai v2 – „stiklo“ dizainas.
   Įkeliamas PO app.css: perrašo spalvas, šriftus ir pagrindinius komponentus.
   Idėja: šviesus fonas su lėtai judančiu „pašvaistės“ šviesų sluoksniu,
   permatomos (stiklo) plokštės, gintaro spalvos akcentas veiksmams.
   ===================================================================== */
:root {
  --ink: #0f2233;
  --ink-2: #2e4457;
  --muted: #627487;
  --line: rgba(15, 34, 51, .10);
  --paper: #eef2f5;
  --card: rgba(255, 255, 255, .62);
  --accent: #0e8c74;
  --accent-2: #0a6e5b;
  --accent-soft: rgba(14, 140, 116, .12);
  --amber: #e9a23b;
  --amber-2: #c9831c;
  --glass: rgba(255, 255, 255, .58);
  --glass-strong: rgba(255, 255, 255, .80);
  --glass-edge: rgba(255, 255, 255, .78);
  --radius: 18px;
  --shadow: 0 1px 1px rgba(15, 34, 51, .04), 0 12px 32px -14px rgba(15, 34, 51, .22);
  --shadow-lift: 0 2px 2px rgba(15, 34, 51, .04), 0 22px 44px -18px rgba(15, 34, 51, .30);
  --serif: "Manrope", "Figtree", system-ui, sans-serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

html { scroll-behavior: smooth; }
body { background: var(--paper); font-family: var(--sans); color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(1.7rem, 2.6vw + .8rem, 2.7rem); line-height: 1.12; }
h2 { font-size: clamp(1.25rem, 1vw + .9rem, 1.6rem); line-height: 1.2; }
h3 { font-size: 1.02rem; line-height: 1.3; }
a { color: var(--accent-2); }
:focus-visible { outline: 3px solid rgba(233, 162, 59, .75); outline-offset: 2px; border-radius: 8px; }

/* ---------- Gyvas fonas (pašvaistė) ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--paper); }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.aurora i:nth-child(1) { width: 52vw; height: 52vw; left: -14vw; top: -18vw; background: #9fe0cf; animation: drift1 46s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 46vw; height: 46vw; right: -16vw; top: 10vh; background: #bfcdfb; animation: drift2 54s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 36vw; height: 36vw; left: 30vw; bottom: -18vw; background: #ffd9a1; opacity: .5; animation: drift3 60s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(10vw, 8vh) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-12vw, 14vh) scale(.94); } }
@keyframes drift3 { to { transform: translate(-8vw, -10vh) scale(1.12); } }

/* ---------- Stiklas ---------- */
.glass, .card, .cat-card, .prod-card, .side-menu, .info-box, .stat, .option, .subcat, .cta-request, .feature {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.card { border-radius: 22px; }

/* ---------- Antraštė ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(238, 242, 245, .62); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); border-bottom: 1px solid rgba(255, 255, 255, .7); }
.brand { font-family: var(--serif); font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.brand-mark { border-radius: 9px; border-color: var(--ink); background: linear-gradient(160deg, #fff, #e9f6f2); }
.nav a, .nav button.linklike { border-radius: 999px; font-weight: 500; }
.nav a:hover, .nav button.linklike:hover { background: rgba(255, 255, 255, .7); }

/* ---------- Mygtukai ---------- */
.btn { border-radius: 999px; font-weight: 600; transition: transform .18s var(--ease), box-shadow .18s, background .18s; }
.btn-primary { background: linear-gradient(180deg, #13a085, var(--accent)); box-shadow: 0 8px 18px -8px rgba(14, 140, 116, .7); }
.btn-primary:hover { background: linear-gradient(180deg, #11937a, var(--accent-2)); }
.btn-amber { background: linear-gradient(180deg, #f2b452, var(--amber)); color: #2b1a02; box-shadow: 0 8px 18px -8px rgba(201, 131, 28, .8); }
.btn-amber:hover { background: linear-gradient(180deg, #eea93f, var(--amber-2)); color: #2b1a02; text-decoration: none; }
.btn-ghost { background: rgba(255, 255, 255, .7); border-color: rgba(15, 34, 51, .12); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=tel], input[type=number], input[type=date], select, textarea {
  border-radius: 12px; background: rgba(255, 255, 255, .85); border-color: rgba(15, 34, 51, .14);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(14, 140, 116, .14); outline: none; }

/* ---------- Pradžia: hero ---------- */
.hero { background: none; padding: 26px 0 0; overflow: visible; }
.hero::after { display: none; }
.hero-shell { position: relative; border-radius: 32px; padding: 54px 48px 50px; color: #fff; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, rgba(14, 33, 51, .94), rgba(13, 64, 72, .90)); box-shadow: 0 30px 60px -28px rgba(15, 34, 51, .55); }
.hero-shell::before, .hero-shell::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1; }
.hero-shell::before { width: 420px; height: 420px; right: -80px; top: -140px; background: rgba(233, 162, 59, .45); }
.hero-shell::after { width: 380px; height: 380px; left: 30%; bottom: -220px; background: rgba(43, 201, 168, .35); }
.hero h1 { color: #fff; font-weight: 800; max-width: 640px; letter-spacing: -.03em; }
.hero p { color: #c9d6df; }
.hero-search input { border-radius: 999px; padding: 14px 20px; background: rgba(255, 255, 255, .96); }
.hero-search .btn { padding-left: 24px; padding-right: 24px; }
.hero-points span::before { color: #f2b452; }
.hero-side { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 24px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); }
.hero-side .hero-side-title { font-size: 1.45rem; }

/* ---------- Naršyklė: forma → tipas → dokumentai ---------- */
.explorer-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin: 34px 0 18px; }
.explorer-head h2, .explorer-head h1 { margin: 0; }
.explorer-head p { margin: 6px 0 0; color: var(--muted); }
.ex-steps { display: flex; gap: 6px; list-style: none; padding: 5px; margin: 0; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow); font-size: .84rem; }
.ex-steps li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; color: var(--muted); white-space: nowrap; }
.ex-steps li b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(15, 34, 51, .07); font-size: .75rem; color: var(--ink-2); }
.ex-steps li a { color: inherit; }
.ex-steps li.done b { background: var(--accent-soft); color: var(--accent-2); }
.ex-steps li.now { background: var(--ink); color: #fff; }
.ex-steps li.now b { background: var(--amber); color: #2b1a02; }

.cat-grid { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.cat-card { position: relative; border-radius: 22px; padding: 20px 20px 18px; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 62%);
  transform: translateX(-120%); transition: transform .7s var(--ease); pointer-events: none; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: rgba(14, 140, 116, .45); }
.cat-card:hover::after { transform: translateX(120%); }
.cat-card h3 { margin: 12px 0 4px; font-size: 1rem; }
.cat-icon { display: grid; place-items: center; width: 50px; height: 50px; margin: 0; border-radius: 15px; font-size: 1.45rem;
  background: linear-gradient(150deg, rgba(255, 255, 255, .95), rgba(214, 240, 233, .9)); box-shadow: inset 0 0 0 1px rgba(14, 140, 116, .14), 0 6px 14px -8px rgba(14, 140, 116, .5); }
.cat-card .count { display: inline-block; font-size: .76rem; font-weight: 600; color: var(--accent-2); background: var(--accent-soft); padding: 2px 9px; border-radius: 999px; }
.cat-card .subs { color: var(--ink-2); font-size: .84rem; line-height: 1.5; }

/* Perėjimo animacija (tik po vartotojo veiksmo) */
.x-leave .cat-card, .x-leave .prod-card { animation: tileOut .2s var(--ease) both; }
.x-enter .cat-card, .x-enter .prod-card { animation: tileIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.x-enter .explorer-head, .x-enter .page-title { animation: fadeIn .35s var(--ease) both; }
@keyframes tileOut { to { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes tileIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.x-loading { cursor: progress; }

/* ---------- Šoninis meniu ---------- */
.side-menu { border-radius: 22px; padding: 6px; }
.side-menu .sm-block { background: transparent; border-radius: 15px; padding: 11px 12px; transition: background .2s, color .2s; }
.side-menu .sm-block + .sm-block { border-top: 0; margin-top: 2px; }
.side-menu .sm-block:hover { background: rgba(255, 255, 255, .75); }
.side-menu .sm-block.is-current { background: var(--ink); color: #fff; box-shadow: 0 10px 20px -12px rgba(15, 34, 51, .7); }
.side-menu .sm-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px rgba(15, 34, 51, .06); }
.side-menu .sm-block.is-current .sm-ico { background: rgba(255, 255, 255, .14); box-shadow: none; }
.side-menu .sm-count { background: rgba(15, 34, 51, .06); border: 0; }
.side-menu .sm-block.is-current .sm-count { background: var(--amber); color: #2b1a02; }
.sidebar h4 { letter-spacing: .02em; text-transform: none; font-size: .86rem; color: var(--ink-2); }

/* ---------- Dokumentų kortelės ---------- */
.prod-card { border-radius: 22px; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.prod-thumb { background: linear-gradient(160deg, rgba(214, 240, 233, .7), rgba(201, 214, 251, .55)); }
.doc-sheet { border-radius: 6px; box-shadow: 0 14px 26px -14px rgba(15, 34, 51, .45); border: 0; }
.doc-sheet b { background: var(--ink); border-radius: 6px; }
.prod-body .cat { text-transform: none; letter-spacing: 0; font-size: .78rem; color: var(--accent-2); font-weight: 600; }
.prod-body h3 { font-family: var(--sans); font-weight: 700; font-size: 1rem; letter-spacing: 0; }
.price { color: var(--ink); }
.tag { border-radius: 999px; background: rgba(255, 255, 255, .75); }

/* ---------- Kita ---------- */
.breadcrumbs { margin-top: 26px; }
.page-title h1 { margin-bottom: 4px; }
.subcat { border-radius: 22px; }
.cta-request { border-radius: 24px; }
.info-box { border-radius: 16px; }
.feature { border-radius: 20px; padding: 18px; }
.alert-ok { border-radius: 14px; }
.toolbar select { border-radius: 999px; }
.pagination a, .pagination span { border-radius: 10px; background: rgba(255, 255, 255, .7); }
.site-footer { background: linear-gradient(160deg, #0f2233, #12333f); border-radius: 32px 32px 0 0; margin-top: 60px; }

@media (max-width: 760px) {
  .hero-shell { padding: 34px 22px 30px; border-radius: 24px; }
  .ex-steps li span { display: none; }
  .ex-steps li { padding: 6px; }
  .explorer-head { align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora i { animation: none; }
  .cat-card, .prod-card, .btn { transition: none; }
  .cat-card::after { display: none; }
  .x-leave .cat-card, .x-leave .prod-card, .x-enter .cat-card, .x-enter .prod-card, .x-enter .explorer-head, .x-enter .page-title { animation: none; }
  html { scroll-behavior: auto; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .card, .cat-card, .prod-card, .side-menu, .info-box, .stat, .option, .subcat, .cta-request, .feature { background: var(--glass-strong); }
}

/* Patikslinimai */
.hero-side { justify-content: center; }
.hero-side .actions { margin-top: 22px; }
.explorer-head h1 { font-size: clamp(1.5rem, 1.4vw + 1rem, 2.1rem); }
.explorer-head h1 + p { font-size: .95rem; }
