/* GH Service — kopīgais stils */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:       #2f5a50;
  --teal-dark:  #1f3e37;
  --teal-light: #3f7667;
  --teal-pale:  #eaf1ee;
  --sand:       #f6f3ee;
  --sand-dark:  #ece6dc;
  --ink:        #1b2b27;
  --muted:      #5f7770;
  --line:       #d6e2de;
  --white:      #ffffff;
  --ok:         #2f7a4f;
  --no:         #a14b3f;

  --serif: 'Crimson Pro', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 6px;
  --nav-h: 76px;
  --shadow: 0 12px 32px -18px rgba(27, 43, 39, 0.35);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── TIPOGRĀFIJA ── */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-light);
  font-weight: 500;
  margin-bottom: 18px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--teal); line-height: 1.15; font-variant-numeric: lining-nums; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); font-weight: 400; }
h1 em, h2 em { font-style: italic; }
/* garš virsraksts vienā rindā — izmērs pielāgojas ekrāna platumam */
.h1-one-line { white-space: nowrap; font-size: min(4.8vw, 3.75rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 400; margin-bottom: 20px; }
h3 { font-size: 1.45rem; }

.lead { font-size: 1rem; line-height: 1.7; color: var(--muted); max-width: 620px; }
.prose p { color: var(--muted); margin-bottom: 16px; }
.prose p strong { color: var(--ink); font-weight: 500; }
.prose--justify p { text-align: justify; }
/* visi teksta paragrāfi izlīdzināti gar abām malām */
main p, .site-footer p, main td, .drawer-note { text-align: justify; }
.rule { width: 48px; height: 1px; background: var(--teal-light); margin: 0 0 28px; border: 0; }

/* ── POGAS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--teal); }
.btn--ghost:hover { background: var(--teal); color: var(--white); }
.btn--light { background: var(--white); color: var(--teal); border-color: var(--white); }
.btn--light:hover { background: var(--sand); border-color: var(--sand); color: var(--teal-dark); }
.btn--sm { padding: 10px 18px; font-size: 0.7rem; }
.btn.is-added { background: var(--teal-pale); color: var(--teal); border-color: var(--line); }
.btn.is-added:hover { background: #f6ebe8; color: var(--no); border-color: #e3c9c3; }

.link-arrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color 0.2s;
}
.link-arrow:hover { border-color: var(--teal); }

/* ── NAVIGĀCIJA ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; letter-spacing: 0.14em; color: var(--teal); font-weight: 500; }

.nav-menu { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-menu > li { position: relative; }
.nav-menu > li > a,
.nav-menu > li > button.nav-parent {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--teal);
  font-weight: 500;
  background: none;
  border: 0;
  border-radius: 3px;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav-menu > li > a:hover,
.nav-menu > li > button.nav-parent:hover { background: var(--teal-pale); }
.nav-menu > li > a[aria-current="page"],
.nav-parent[data-current] { box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0 !important; }
/* vidēji plati logi — izvēlne cieši, lai poga "Pieprasījums" paliek satura robežās */
@media (min-width: 1020.02px) and (max-width: 1180px) {
  .nav { gap: 14px; }
  .nav-menu { gap: 2px; }
  .nav-menu > li > a { padding: 10px 9px; letter-spacing: 0.08em; }
  .brand-name { font-size: 1.3rem; letter-spacing: 0.1em; }
}
@media (min-width: 1020.02px) and (max-width: 1080px) {
  .cart-btn .cart-label { display: none; }
  .cart-btn { padding: 10px 12px; }
}

.caret { width: 9px; height: 9px; transition: transform 0.2s; }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.dropdown::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--ink);
  border-radius: 4px;
}
.dropdown a:hover { background: var(--sand); color: var(--teal); }
.dropdown .dropdown-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); font-weight: 500; }

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover .caret,
.has-dropdown.is-open .caret { transform: rotate(180deg); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--teal);
  border-radius: 3px;
  background: var(--white);
  color: var(--teal);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.cart-btn:hover { background: var(--teal); color: var(--white); }
.cart-btn svg { width: 17px; height: 17px; }
.cart-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--teal);
  color: var(--white);
  font-size: 0.7rem;
  letter-spacing: 0;
  display: inline-grid;
  place-items: center;
}
.cart-btn:hover .cart-count { background: var(--white); color: var(--teal); }
.cart-count[data-count="0"] { display: none; }
.cart-btn.bump { animation: bump 0.4s ease; }
@keyframes bump { 40% { transform: scale(1.08); } }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  color: var(--teal);
  place-items: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1020px) {
  .menu-toggle { display: inline-grid; }
  .cart-btn { min-height: 44px; }
  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px var(--gutter) 40px;
    background: var(--white);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .nav-open .nav-menu { transform: translateX(0); }
  .nav-menu > li { border-bottom: 1px solid var(--line); }
  .nav-menu > li > a,
  .nav-menu > li > button.nav-parent { width: 100%; justify-content: space-between; padding: 18px 4px; font-size: 0.85rem; }
  .nav-parent[data-current], .nav-menu > li > a[aria-current="page"] { box-shadow: none; color: var(--teal-dark); text-decoration: underline; text-underline-offset: 6px; }
  .dropdown {
    position: static;
    min-width: 0;
    border: 0;
    box-shadow: none;
    padding: 0 0 12px 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.is-open .dropdown { display: block; }
  .has-dropdown:hover .caret { transform: none; }
  .has-dropdown.is-open .caret { transform: rotate(180deg); }
}

/* ── SADAĻAS ── */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section--sand { background: var(--sand); }
.section--tight-top { padding-top: clamp(12px, 1.5vw, 18px); }
.section--compact { padding: clamp(40px, 5vw, 64px) 0; }
.section--flush-bottom { padding-bottom: 24px; }
.section--flush-bottom .prose p:last-child { margin-bottom: 0; }
.section--flush-top { padding-top: 32px; }
.section--tight-bottom { padding-bottom: clamp(36px, 4vw, 48px); }
.section--teal { background: var(--teal); color: var(--white); }
.section--teal h2, .section--teal h3 { color: var(--white); }
.section--teal .eyebrow { color: rgba(255, 255, 255, 0.6); }
.section--teal .lead, .section--teal .prose p { color: rgba(255, 255, 255, 0.75); }

.section-head { margin-bottom: 48px; max-width: 720px; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head--row .eyebrow:only-child { margin-bottom: 0; }
.wrap.section-head--row { max-width: var(--wrap); }

/* ── LAPAS VIRSRAKSTS ── */
.page-hero {
  background: linear-gradient(160deg, var(--sand) 0%, var(--teal-pale) 100%);
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px);
  border-bottom: 1px solid var(--line);
}
.page-hero--compact {
  padding: clamp(36px, 5vw, 60px) 0 clamp(32px, 4vw, 48px);
}
.page-hero h1 { margin-bottom: 18px; }
/* kompakts virsraksta bloks — minimālas atstarpes */
.page-hero--tight { padding: 20px 0 22px; }
.page-hero--tight .breadcrumb { margin-bottom: 10px; }
.page-hero--tight h1 { margin-bottom: 6px; line-height: 1.05; }
.page-hero--tight .lead { margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--teal); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li + li::before { content: '→'; margin-right: 8px; color: var(--line); }

/* ── SĀKUMA IEVADS (Ģirts aplī) ── */
.intro {
  background: linear-gradient(160deg, var(--sand) 0%, var(--teal-pale) 100%);
  overflow: hidden;
}
.intro-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(56px, 8vw, 104px);
}
.intro-photo {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
  justify-self: center;
}
/* divi smalki riņķi ap foto */
.intro-photo::before,
.intro-photo::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.intro-photo::before { inset: -14px; border: 1px solid rgba(63, 118, 103, 0.35); }
.intro-photo::after { inset: -32px; border: 1px solid rgba(63, 118, 103, 0.18); }
.intro-photo-clip {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sand-dark);
  box-shadow: var(--shadow);
}
/* pietuvināts, lai aplī ir seja un pleci */
.intro-photo-clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  transform: scale(1.7);
  transform-origin: 51% 26%;
}
/* virsraksts vienā rindā — izmērs pielāgojas ekrāna platumam */
.intro h1 { font-size: clamp(1.5rem, 3vw, 2.5rem); white-space: nowrap; margin-bottom: 24px; }
.intro .prose p { text-align: justify; }
/* atslēgvārdu rinda zem uzrunas — maziem burtiem */
.intro h1 { margin-bottom: 8px; }
.intro .intro-subtitle { text-align: left; font-size: 0.95rem; color: var(--teal-light); margin-bottom: 22px; }

/* ── FAKTU JOSLA ── */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.fact { padding: 32px 24px; text-align: center; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact strong { font-variant-numeric: lining-nums; display: block; font-family: var(--serif); font-size: 2.3rem; font-weight: 500; color: var(--teal); line-height: 1; margin-bottom: 8px; }
.fact span { display: block; line-height: 1.5; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ── DIVU KOLONNU BLOKS ── */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.split--reverse { grid-template-columns: 1.15fr 0.85fr; }
.split--reverse .split-media { order: 2; }
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
/* Serviss lapā — simbols foto vietā */
.service-emblem {
  align-self: stretch; /* tikpat augsts kā teksts blakus */
  min-height: 320px;
  display: grid;
  place-items: center;
  background: var(--teal-pale);
  border-radius: var(--radius);
}
.service-emblem svg { width: 68%; height: auto; }
.signature { font-family: var(--serif); font-size: 1.5rem; color: var(--teal); margin-top: 8px; }
.signature small { display: block; font-family: var(--sans); font-style: normal; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* ── PRODUKTU RINDA (sākumlapā) — 5 kartītes vienā rindā ── */
.cat-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  padding-top: 8px;
  padding-bottom: 8px;
}
/* šaurākos ekrānos — rinda ritināma uz sāniem */
@media (max-width: 1020px) {
  .cat-row {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 240px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    padding-bottom: 16px;
  }
  .cat-row .cat-card { scroll-snap-align: start; }
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-card-media { aspect-ratio: 4 / 3; background: var(--ink); overflow: hidden; }
.cat-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.cat-card:hover .cat-card-media img { transform: scale(1.04); }
.cat-card-media--product { display: grid; place-items: center; background: var(--white); }
.cat-card-media--product img { width: 78%; height: auto; max-height: 90%; object-fit: contain; }
.cat-card-media--wide img { width: 92%; }
.cat-card-media--fill img { width: 100%; }
.cat-card-body { padding: 20px 22px 24px; }
.cat-card-num { font-size: 0.7rem; letter-spacing: 0.16em; color: var(--muted); }
.cat-card h3 { font-size: 1.45rem; margin: 4px 0 6px; }
.cat-card p { font-size: 1rem; color: var(--muted); line-height: 1.7; }

/* ── NUMURĒTS SARAKSTS (serviss) ── */
.steps { list-style: none; display: grid; gap: 14px; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal-light);
  border-radius: var(--radius);
}
.section--sand .step { border-color: var(--sand-dark); border-left-color: var(--teal-light); }
.step-num { font-variant-numeric: lining-nums;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
}
.step h3 { font-size: 1.45rem; margin-bottom: 4px; }
.step p { font-size: 1rem; color: var(--muted); line-height: 1.7; }

/* ── PAKALPOJUMU KARTES (sākumlapā) ── */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  padding: 36px 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  transition: background 0.2s;
}
.service-card:hover { background: rgba(255, 255, 255, 0.1); }
.service-card svg { width: 34px; height: 34px; color: rgba(255, 255, 255, 0.85); margin-bottom: 22px; }
.service-card h3 { font-size: 1.45rem; margin-bottom: 10px; }
.service-card p { font-size: 1rem; color: rgba(255, 255, 255, 0.7); line-height: 1.7; }

/* ── CTA JOSLA ── */
.cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: clamp(36px, 5vw, 56px);
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius);
}
.cta h2 { color: var(--white); margin-bottom: 8px; }
.cta p { color: rgba(255, 255, 255, 0.75); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── PRODUKTU LAPA ── */
.cat-nav {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.cat-nav ul { display: flex; gap: 4px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav a {
  display: block;
  white-space: nowrap;
  padding: 16px 16px;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.cat-nav a:hover { color: var(--teal); }
.cat-nav a.is-active { color: var(--teal); border-bottom-color: var(--teal); }

.cat-section { padding: clamp(28px, 3.5vw, 44px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.cat-section:nth-of-type(even) { background: var(--sand); }
.cat-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; margin-bottom: 28px; }
.cat-intro .lead { max-width: none; }
/* apakškategoriju klucīši ar ikonām */
.sub-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 44px; }
.sub-tile {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 24px 14px 20px; text-align: center; text-decoration: none;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
a.sub-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal-light); }
.sub-tile--soon { cursor: default; }
.sub-tiles:last-child { margin-bottom: 0; }
.sub-tile-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--teal-pale); color: var(--teal); }
.sub-tile-icon svg { width: 32px; height: 32px; }
/* klucītis ar produkta foto ikonas vietā */
/* foto un ikonas laukumam vienāds augstums (110px), lai nosaukumi ir vienā līmenī */
.sub-tile-img { display: block; width: 100%; max-width: 150px; height: 110px; margin: 0 auto; }
.sub-tile .sub-tile-icon { margin: 23px 0; }
.sub-tile-img { overflow: hidden; }
/* attēliem ir plašas baltas malas — pietuvinām produktu */
.sub-tile-img img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.35); transition: transform 0.3s; }
a.sub-tile:hover .sub-tile-img img { transform: scale(1.42); }
/* kolāžai nav baltu malu — bez pietuvināšanas */
.sub-tile-img--collage img { transform: none; }
a.sub-tile:hover .sub-tile-img--collage img { transform: scale(1.05); }
.sub-tile-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; line-height: 1.2; color: var(--teal); }
.sub-tile-note { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: auto; }
@media (max-width: 1020px) { .sub-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sub-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .sub-tile { padding: 18px 10px 16px; } }
/* virsraksts ar aprakstu zem tā, mazākiem burtiem */
.cat-intro--stacked { grid-template-columns: 1fr; gap: 12px; }
.cat-intro--stacked h2 { margin-bottom: 0; }
.cat-intro--stacked h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 0; }
.cat-intro--stacked .lead { font-size: 1rem; line-height: 1.7; max-width: none; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  overflow: hidden;
}
.product-card-media img { width: 100%; height: auto; transition: transform 0.35s; }
.product-card:hover .product-card-media img { transform: scale(1.04); }
.product-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px; }
.product-card h3 { font-size: 1.45rem; }
.product-card h3 a { text-decoration: none; }
.product-card p { font-size: 1rem; color: var(--muted); line-height: 1.7; flex: 1; }
.product-card-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 6px; }

.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 500;
  background: var(--teal-pale);
  color: var(--ok);
}
.tag--no { background: #f6ebe8; color: var(--no); }
.tag svg { width: 11px; height: 11px; }

/* ── PRODUKTA DETAĻAS ── */
.product-detail { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.product-visual {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}
.product-visual img { width: 100%; }
.product-info h1 { margin-bottom: 14px; }
.product-info .tags { margin-bottom: 28px; }
.product-tagline { font-family: var(--serif); font-size: 1.7rem; color: var(--teal-light); line-height: 1.3; margin-bottom: 16px; }
.product-info .prose { margin-bottom: 32px; }
.product-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }

.spec-table { width: 100%; border-collapse: collapse; background: var(--sand); border-radius: var(--radius); overflow: hidden; font-size: 0.93rem; }
.spec-table caption { text-align: left; font-family: var(--serif); font-size: 1.6rem; color: var(--teal); padding-bottom: 14px; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 14px 20px; border-bottom: 1px solid var(--sand-dark); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 38%; font-weight: 600; color: var(--teal-dark); }
.spec-table td { color: var(--ink); text-align: justify; }

.model-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); align-items: center; }
.model-switch span { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.model-switch a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; font-size: 0.85rem; color: var(--teal); }
.model-switch a:hover { border-color: var(--teal); }
.model-switch a[aria-current="page"] { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* ── KONTAKTI ── */
.contact-list { display: grid; gap: 14px; margin: 32px 0; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: var(--sand);
  border-left: 3px solid var(--teal-light);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s;
}
.contact-item:hover { background: var(--teal-pale); }
.contact-item svg { width: 26px; height: 26px; color: var(--teal); flex-shrink: 0; }
.contact-item small { display: block; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.contact-item strong { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--teal); line-height: 1.2; }
.contact-note { padding: 20px 24px; background: var(--teal); color: var(--white); border-radius: var(--radius); text-align: center; font-weight: 500; }

/* ── FORMA ── */
.form { display: grid; gap: 16px; }
.contact-form-wrap { max-width: calc(760px + 2 * var(--gutter)); }
.contact-form-wrap h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal-light); box-shadow: 0 0 0 3px var(--teal-pale); }
.form-status { font-size: 0.9rem; color: var(--teal); }
.form-status.is-error { color: var(--no); }

/* ── PIEPRASĪJUMA GROZS ── */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(27, 43, 39, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 210;
  width: min(460px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: -20px 0 40px -20px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 0.28s ease;
}
.cart-open .drawer-backdrop { opacity: 1; visibility: visible; }
.cart-open .drawer { transform: translateX(0); }
.cart-open { overflow: hidden; }

.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.7rem; margin: 0; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 3px; background: var(--white); color: var(--teal); }
.icon-btn:hover { background: var(--teal-pale); }
.icon-btn svg { width: 18px; height: 18px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px 32px; }
.drawer-note { font-size: 0.85rem; color: var(--muted); background: var(--sand); padding: 12px 14px; border-radius: 4px; margin-bottom: 18px; }

.cart-list { list-style: none; display: grid; gap: 10px; margin-bottom: 28px; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.cart-thumb { width: 56px; height: 56px; border-radius: 4px; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.cart-thumb img { width: 100%; }
.cart-thumb--cat { background: var(--teal-pale); color: var(--teal); }
.cart-thumb--cat svg { width: 26px; height: 26px; }
.cart-item-name { font-weight: 500; font-size: 0.95rem; line-height: 1.3; }
.cart-item-cat { font-size: 0.75rem; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 2px; }
.qty button { width: 28px; height: 28px; border: 1px solid var(--line); background: var(--white); border-radius: 3px; color: var(--teal); font-size: 1rem; line-height: 1; }
.qty button:hover { background: var(--teal-pale); }
.qty output { min-width: 26px; text-align: center; font-size: 0.9rem; font-weight: 500; }
.cart-remove { grid-column: 2 / -1; justify-self: start; background: none; border: 0; font-size: 0.75rem; color: var(--muted); text-decoration: underline; padding: 0; }
.cart-remove:hover { color: var(--no); }
.cart-empty { text-align: center; padding: 32px 12px; color: var(--muted); }
.cart-empty svg { width: 48px; height: 48px; color: var(--line); margin: 0 auto 14px; }
.cart-empty .btn { margin-top: 20px; }

.drawer h3 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: 14px; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 300;
  transform: translate(-50%, calc(100% + 40px));
  visibility: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 14px 20px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  transition: transform 0.3s ease, visibility 0.3s;
  max-width: calc(100% - 32px);
}
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; }
.toast button { background: none; border: 0; color: #a9d6c8; text-decoration: underline; font-size: 0.85rem; white-space: nowrap; }

/* ── KĀJENE ── */
.site-footer { background: var(--teal-dark); color: rgba(255, 255, 255, 0.65); padding: 72px 0 0; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-brand img { width: 190px; margin-bottom: 18px; }
.footer-brand p { max-width: 300px; }
.site-footer h4 { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); font-weight: 500; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: rgba(255, 255, 255, 0.75); }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 22px 0; font-size: 0.78rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ── ANIMĀCIJA ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── ADAPTĪVAIS ── */
@media (max-width: 1020px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .intro-grid, .split, .split--reverse, .product-detail, .cat-intro { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .intro-grid { gap: 56px; }
  .intro-photo { width: min(78%, 340px); margin-top: 16px; }
  .intro h1 { font-size: 5.6vw; }
  .split-media img { aspect-ratio: 4 / 3; object-position: center 30%; }
  .service-emblem { aspect-ratio: 4 / 3; min-height: 0; }
  .service-emblem svg { width: 44%; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cta { grid-template-columns: 1fr; }
  .product-visual { position: static; max-width: 420px; }
  .cat-intro { gap: 16px; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table th { padding-bottom: 2px; border-bottom: 0; }
  .spec-table td { padding-top: 0; }
  .brand img { height: 34px; }
  .brand-name { font-size: 1.2rem; }
}

.page-hero--slim { padding: 18px 0; background: var(--sand); }
.page-hero--slim .breadcrumb { margin: 0; }

@media (max-width: 1020px) {
  /* backdrop-filter padarītu galveni par fiksētās izvēlnes bloku — mobilajā izslēdzam */
  .site-header { backdrop-filter: none; background: var(--white); }
  .nav-menu { visibility: hidden; transition: transform 0.25s ease, visibility 0.25s; }
  .nav-open .nav-menu { visibility: visible; }
  .nav-open { overflow: hidden; }
}

@media (max-width: 560px) {
  .nav { gap: 12px; }
  .brand { gap: 8px; }
  .cart-btn { padding: 0; width: 44px; justify-content: center; }
  .cart-btn .cart-label { display: none; }
  .cart-btn svg { width: 20px; height: 20px; }
  .cart-btn .cart-count { position: absolute; top: -8px; right: -8px; }
}

/* ── PRIVĀTUMA POLITIKA ── */
.legal { max-width: calc(820px + 2 * var(--gutter)); }
.legal h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 6px; }
.legal-updated { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.legal .prose h2 { font-size: 1.45rem; font-weight: 500; margin: 32px 0 10px; }
.legal .prose a { color: var(--teal); }
.legal mark { background: #fff3c4; color: var(--ink); padding: 0 4px; border-radius: 3px; }
.form-privacy { font-size: 0.8rem; color: var(--muted); }
.form-privacy a { color: var(--teal); }
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; transition: background 0.2s, border-color 0.2s; }
.footer-social a:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
