:root {
  --sb-bg: #ffffff;
  --sb-surface: #f5f7f8;
  --sb-ink: #172027;
  --sb-muted: #5b6770;
  --sb-line: #dfe5e8;
  --sb-accent: #174f6d;
  --sb-accent-strong: #0f3b53;
  --sb-radius: 14px;
  --sb-shell: 1180px;
  --sb-shadow: 0 10px 30px rgba(18, 38, 48, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sb-bg); color: var(--sb-ink); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: var(--sb-accent); text-underline-offset: .16em; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
.sb-shell { width: min(calc(100% - 32px), var(--sb-shell)); margin-inline: auto; }
.sb-content-shell { max-width: 900px; }
.sb-section { padding: clamp(36px, 6vw, 76px) 0; }
.sb-section-muted { background: var(--sb-surface); }
.sb-prose > * + * { margin-top: 1.1em; }
.sb-prose h1, .sb-prose h2, .sb-prose h3 { line-height: 1.2; }
.sb-prose h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
.sb-prose h2 { margin-top: 1.8em; font-size: clamp(1.45rem, 2.6vw, 2.1rem); }
.sb-prose table { width: 100%; border-collapse: collapse; overflow-x: auto; display: block; }
.sb-prose th, .sb-prose td { border-bottom: 1px solid var(--sb-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.sb-prose iframe { max-width: 100%; }
.sb-skip-link { position: fixed; left: 12px; top: 12px; z-index: 1000; transform: translateY(-200%); background: var(--sb-ink); color: #fff; padding: 10px 14px; }
.sb-skip-link:focus { transform: none; }
.sb-site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--sb-line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.sb-header-inner { min-height: 76px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.sb-site-title { color: var(--sb-ink); font-weight: 800; font-size: 1.22rem; text-decoration: none; }
.custom-logo { max-height: 54px; width: auto; }
.sb-primary-nav { justify-self: center; }
.sb-menu, .sb-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; align-items: center; }
.sb-menu a, .sb-footer-menu a, .sb-header-search { color: var(--sb-ink); text-decoration: none; font-weight: 650; }
.sb-menu-toggle { display: none; }
.sb-hero { padding: clamp(60px, 9vw, 118px) 0; background: linear-gradient(180deg, #eef4f6 0%, #fff 100%); }
.sb-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: clamp(36px, 6vw, 84px); align-items: center; }
.sb-hero .sb-prose { max-width: 780px; }
.sb-hero h1 { margin-top: 0; margin-bottom: 22px; font-size: clamp(2.4rem, 5vw, 4.7rem); line-height: 1.02; letter-spacing: -.035em; }
.sb-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sb-hero-facts { display: grid; gap: 14px; }
.sb-hero-facts > div { padding: 22px; border: 1px solid var(--sb-line); border-radius: var(--sb-radius); background: rgba(255,255,255,.84); box-shadow: var(--sb-shadow); }
.sb-hero-facts strong { display: block; font-size: 1.55rem; line-height: 1; }
.sb-hero-facts span { display: block; margin-top: 7px; color: var(--sb-muted); font-size: .94rem; }
.sb-card-grid, .sb-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.sb-card, .sb-product-card { border: 1px solid var(--sb-line); border-radius: var(--sb-radius); background: #fff; overflow: hidden; box-shadow: var(--sb-shadow); }
.sb-card { padding: 24px; }
.sb-category-card { padding: 0; }
.sb-card-media { display: block; aspect-ratio: 16/10; background: #eef2f4; overflow: hidden; }
.sb-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.sb-category-card:hover .sb-card-media img { transform: scale(1.025); }
.sb-card-body { padding: 22px; }
.sb-card h3, .sb-product-card h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.sb-card h3 a, .sb-product-card h3 a { color: var(--sb-ink); text-decoration: none; }
.sb-card p, .sb-product-card p { color: var(--sb-muted); }
.sb-text-link { display: inline-block; margin-top: 12px; font-weight: 750; text-decoration: none; }
.sb-section-heading { max-width: 760px; margin-bottom: 28px; }
.sb-section-heading.compact { margin-bottom: 20px; }
.sb-section-heading h2 { margin: 5px 0 8px; font-size: clamp(1.8rem, 3vw, 2.55rem); line-height: 1.12; }
.sb-section-heading p { margin: 0; color: var(--sb-muted); }
.sb-product-card-media { aspect-ratio: 4/3; display: block; background: #fff; overflow: hidden; }
.sb-product-card-media img { width: 100%; height: 100%; object-fit: contain; }
.sb-product-card-body { padding: 20px; }
.sb-products .sb-product-card-body { min-height: 70px; display: flex; align-items: center; justify-content: center; background: #eaf2f6; border-top: 1px solid #d4e3ea; transition: background-color .22s ease; }
.sb-products .sb-product-card-body h3 { width: 100%; text-align: center; }
.sb-products .sb-product-card-body h3 a { display: block; width: 100%; text-align: center; }

.sb-products .sb-product-card {
  background:#eaf2f6;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease;
}
.sb-products .sb-product-card-media {
  position: relative;
}
.sb-products .sb-product-card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(7, 43, 61, .34);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.sb-products .sb-product-card-media::after {
  content: "Plačiau";
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0 14px;
  color: rgba(255,255,255,.94);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: .08em;
  text-align: center;
  text-shadow: 0 3px 16px rgba(0,0,0,.34);
  opacity: 0;
  transform: scale(.94);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.sb-products .sb-product-card-media img {
  transition: transform .26s ease, filter .26s ease;
}
.sb-products .sb-product-card-body h3 {
  transform-origin: center;
  transition: transform .22s ease;
}
.sb-products .sb-product-card-body h3 a {
  transition: color .22s ease;
}
@media (hover: hover) {
  .sb-products .sb-product-card:hover {
    transform: translateY(-3px);
    background:#e2edf3;
    border-color: rgba(23,79,109,.28);
    box-shadow: 0 16px 38px rgba(18,38,48,.13);
  }
  .sb-products .sb-product-card:hover .sb-product-card-media::before,
  .sb-products .sb-product-card:hover .sb-product-card-media::after {
    opacity: 1;
  }
  .sb-products .sb-product-card:hover .sb-product-card-media::after {
    transform: scale(1);
  }
  .sb-products .sb-product-card:hover .sb-product-card-media img {
    transform: scale(1.035);
    filter: saturate(.92) contrast(.96);
  }
  .sb-products .sb-product-card:hover .sb-product-card-body h3 {
    transform: scale(1.045);
  }
  .sb-products .sb-product-card:hover .sb-product-card-body {
    background: #e2edf3;
  }
  .sb-products .sb-product-card:hover .sb-product-card-body h3 a {
    color: #078fbd;
  }
}
.sb-products .sb-product-card:focus-within .sb-product-card-media::before,
.sb-products .sb-product-card:focus-within .sb-product-card-media::after {
  opacity: 1;
}
.sb-products .sb-product-card:focus-within .sb-product-card-media::after {
  transform: scale(1);
}
.sb-products .sb-product-card:focus-within .sb-product-card-body h3 {
  transform: scale(1.045);
}
.sb-products .sb-product-card:focus-within .sb-product-card-body h3 a {
  color: #078fbd;
}

.sb-product-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px,5vw,70px); align-items: center; margin-bottom: 44px; }
.sb-product-heading h1 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.08; margin: 8px 0 20px; }
.sb-eyebrow { margin: 0; color: var(--sb-accent); font-weight: 750; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.sb-lead { font-size: 1.08rem; color: var(--sb-muted); }
.sb-product-primary-media { border-radius: var(--sb-radius); background: var(--sb-surface); min-height: 300px; display: grid; place-items: center; overflow: hidden; }
.sb-product-primary-media img { max-height: 620px; object-fit: contain; }
.sb-product-copy { max-width: 940px; }
.sb-product-section { margin-top: 48px; padding-top: 8px; }
.sb-product-section > h2 { margin-bottom: 18px; }
.sb-product-gallery { margin-top: 56px; }
.sb-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.sb-gallery-grid figure { background: var(--sb-surface); border-radius: 10px; overflow: hidden; min-height: 160px; display: grid; place-items: center; }
.sb-gallery-grid img { width: 100%; height: 100%; object-fit: contain; }
.sb-video-grid { display: grid; gap: 18px; }
.sb-video-frame { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 12px; background: #000; }
.sb-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sb-breadcrumbs { margin-bottom: 24px; color: var(--sb-muted); font-size: .9rem; }
.sb-breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; gap: 8px; }
.sb-breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #9aa4aa; }
.sb-breadcrumbs a { color: inherit; }
.sb-archive-header { max-width: 900px; margin-bottom: 42px; }
.sb-archive-header-grid { max-width: none; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr); gap: 42px; align-items: start; }
.sb-archive-header h1 { font-size: clamp(2rem,4vw,3.1rem); line-height: 1.12; margin: 5px 0 20px; }
.sb-category-description { text-align: justify; }
.sb-category-hero-media { min-height: 260px; max-height: 420px; display: grid; place-items: center; overflow: hidden; border-radius: var(--sb-radius); background: var(--sb-surface); }
.sb-category-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.sb-subcategories { margin-bottom: 52px; }
.sb-products > h2, .sb-subcategories > h2, .sb-product-gallery > h2 { font-size: 1.55rem; }
.sb-category-longform { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--sb-line); }
.sb-category-longform-copy { max-width: 960px; }
.sb-category-longform-copy img { margin: 24px auto; border-radius: 10px; }
.sb-category-longform-copy iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 10px; }
.sb-page-gallery, .sb-gallery-hub { margin-top: 54px; }
.sb-page-gallery > h2, .sb-gallery-hub > h2 { margin-bottom: 22px; }
.sb-link-card { padding: 0; }
.sb-sitemap-grid { display: grid; grid-template-columns: minmax(220px,.65fr) minmax(0,1.35fr); gap: 42px; margin-top: 38px; }
.sb-sitemap-group { padding: 26px; border: 1px solid var(--sb-line); border-radius: var(--sb-radius); background: var(--sb-surface); }
.sb-sitemap-group h2 { margin-top: 0; }
.sb-sitemap-group ul { margin: 0; padding-left: 22px; }
.sb-sitemap-group li + li { margin-top: 7px; }
.sb-sitemap-tree ul { margin-top: 7px; }
.sb-cta { display: flex; gap: 28px; align-items: center; justify-content: space-between; margin-top: 64px; padding: 28px; border-radius: var(--sb-radius); background: var(--sb-surface); border: 1px solid var(--sb-line); }
.sb-cta p { margin: 4px 0 0; color: var(--sb-muted); }
.sb-button { display: inline-flex; min-height: 44px; padding: 10px 18px; align-items: center; justify-content: center; border: 1px solid var(--sb-accent); border-radius: 10px; background: var(--sb-accent); color: #fff; font-weight: 750; text-decoration: none; cursor: pointer; }
.sb-button:hover, .sb-button:focus { background: var(--sb-accent-strong); border-color: var(--sb-accent-strong); }
.sb-button-secondary { background: #fff; color: var(--sb-accent); }
.sb-button-secondary:hover, .sb-button-secondary:focus { color: #fff; }
.sb-trust-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.sb-trust-grid strong { font-size: 1.08rem; }
.sb-trust-grid p { color: var(--sb-muted); margin-bottom: 0; }
.sb-search-form { padding: 24px; border: 1px solid var(--sb-line); border-radius: var(--sb-radius); background: var(--sb-surface); }
.sb-search-row { display: flex; gap: 10px; margin-top: 8px; }
.sb-search-row input { flex: 1; min-height: 44px; border: 1px solid #b8c2c7; border-radius: 9px; padding: 8px 12px; font: inherit; }
.sb-list-stack article { padding: 20px 0; border-bottom: 1px solid var(--sb-line); }
.sb-site-footer { margin-top: 40px; padding: 48px 0 20px; background: var(--sb-ink); color: #fff; }
.sb-site-footer a { color: #fff; }
.sb-footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; }
.sb-footer-menu { flex-wrap: wrap; justify-content: flex-end; }
.sb-footer-bottom { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.72); font-size: .9rem; }
.nav-links { display: flex; gap: 8px; margin-top: 30px; }
.page-numbers { padding: 8px 12px; border: 1px solid var(--sb-line); border-radius: 8px; text-decoration: none; }
.page-numbers.current { background: var(--sb-ink); color: #fff; border-color: var(--sb-ink); }
@media (max-width: 900px) {
  .sb-header-inner { grid-template-columns: 1fr auto auto; }
  .sb-menu-toggle { display: inline-flex; min-height: 40px; align-items: center; border: 1px solid var(--sb-line); background: #fff; border-radius: 8px; padding: 7px 11px; }
  .sb-primary-nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: #fff; border-bottom: 1px solid var(--sb-line); padding: 18px 16px; }
  .sb-primary-nav.is-open { display: block; }
  .sb-menu { display: grid; gap: 12px; }
  .sb-product-hero, .sb-hero-grid, .sb-archive-header-grid, .sb-sitemap-grid { grid-template-columns: 1fr; }
  .sb-card-grid, .sb-product-grid, .sb-gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sb-trust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .sb-header-search { display: none; }
  .sb-header-inner { grid-template-columns: 1fr auto; }
  .sb-card-grid, .sb-product-grid, .sb-gallery-grid { grid-template-columns: 1fr; }
  .sb-cta, .sb-search-row { align-items: stretch; flex-direction: column; }
  .sb-footer-grid { grid-template-columns: 1fr; }
  .sb-footer-menu { justify-content: flex-start; display: grid; gap: 10px; }
  .sb-hero { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sb-card-media img { transition: none; }
}

.sb-archive-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.25rem;
}

@media (max-width: 680px) {
    .sb-archive-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .sb-archive-actions .sb-button {
        width: 100%;
        text-align: center;
    }

    .sb-archive-actions .sb-text-link {
        text-align: center;
    }
}
