/* Solners — publiskās lapas stils */

:root {
  --red: #d3242b;
  --red-dark: #a91a20;
  --red-soft: #fdeeee;
  --ink: #1f1d1c;
  --ink-2: #45413e;
  --muted: #77716c;
  --line: #ebe6e1;
  --bg: #f8f6f3;
  --card: #fff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(31, 29, 28, .05), 0 8px 24px rgba(31, 29, 28, .06);
  --shadow-hover: 0 2px 4px rgba(31, 29, 28, .06), 0 16px 40px rgba(31, 29, 28, .12);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 750; }
h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--red) 55%, transparent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }
.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(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--red); margin: 0 0 .5rem; }
.empty { color: var(--muted); padding: 2rem 0; }

/* ---------- pogas ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; padding: .75em 1.25em;
  background: var(--red); color: #fff; border: 1px solid var(--red); border-radius: 999px;
  font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--card); color: var(--red); border-color: var(--red); }
.btn-sm { padding: .5em 1em; font-size: .875rem; }
.btn svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- galvene ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, #fff 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand img { width: 160px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a {
  display: block; padding: .55em .95em; border-radius: 999px; color: var(--ink-2);
  text-decoration: none; font-weight: 550; font-size: .95rem; transition: background .15s, color .15s;
}
.main-nav ul a:hover { background: var(--bg); color: var(--ink); }
.main-nav ul a.is-active { background: var(--red-soft); color: var(--red); }
.header-phone {
  display: inline-flex; align-items: center; gap: .45em; font-weight: 700; color: var(--ink);
  text-decoration: none; padding: .55em 1em; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap;
}
.header-phone svg { width: 1em; height: 1em; fill: var(--red); }
.header-phone:hover { border-color: var(--red); color: var(--red); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 12px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px; box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; }
  .main-nav ul a { padding: .8em 1em; border-radius: var(--radius-sm); }
  .header-phone { justify-content: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

main { min-height: 60vh; padding-bottom: 64px; }

/* ---------- sākumlapa ---------- */
.hero { padding: 56px 0 40px; background: radial-gradient(1200px 400px at 80% -10%, #fbe3e3 0%, transparent 60%), linear-gradient(#fff, var(--bg)); }
.hero h1 { max-width: 24ch; font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); margin-bottom: 1.2em; }
.hero-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.hero-card {
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 12px;
  background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 24px;
  text-decoration: none; color: var(--ink); overflow: hidden; position: relative;
  transition: transform .25s, box-shadow .25s;
}
.hero-card::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 220px; height: 220px; border-radius: 50%; background: var(--red-soft); z-index: 0; transition: transform .4s; }
.hero-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); color: var(--ink); }
.hero-card:hover::after { transform: scale(1.15); }
.hero-card > * { position: relative; z-index: 1; }
.hero-card-img img { max-height: 280px; margin: 0 auto; object-fit: contain; }
.hero-card-body { display: flex; flex-direction: column; gap: 12px; }
.hero-card-logo { max-width: 150px; max-height: 48px; object-fit: contain; object-position: left; }
.hero-card-title { font-size: clamp(1.35rem, 1rem + 1vw, 1.75rem); font-weight: 750; line-height: 1.15; }
.hero-card-more { color: var(--red); font-weight: 650; }
@media (max-width: 520px) { .hero-card { grid-template-columns: 1fr; text-align: center; } .hero-card-logo { object-position: center; margin: 0 auto; } }

.home-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; margin-top: 8px; }
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 32px); }
.news-teaser-img img { border-radius: var(--radius-sm); margin-bottom: 1rem; width: 100%; max-height: 320px; object-fit: cover; }
.news-teaser .btn { margin-top: .5rem; }

/* ---------- sadaļas ar sānu izvēlni ---------- */
.page-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; padding-top: 32px; }
@media (max-width: 900px) { .page-grid { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; } }
.page-main { min-width: 0; }
.container > .crumbs { padding-top: 32px; }

.sidebar { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 112px); overflow: auto; }
.side-nav { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; }
.side-nav summary { list-style: none; padding: 12px 14px; font-weight: 750; font-size: 1.05rem; cursor: default; }
.side-nav summary::-webkit-details-marker { display: none; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav a, .side-group { display: block; padding: .5em 14px; border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.side-group { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); padding-top: 1em; }
.side-nav a:hover { background: var(--bg); color: var(--ink); }
.side-nav li.is-active > a { background: var(--red-soft); color: var(--red); font-weight: 650; }
.side-sub a { font-size: .925rem; }
@media (max-width: 900px) {
  .sidebar { position: static; max-height: none; }
  .side-nav summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
  .side-nav summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; margin-right: 6px; }
  .side-nav[open] summary::after { transform: rotate(225deg); }
}

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.page-head { margin-bottom: 24px; }
.page-head h1 { margin: 0; }
.page-head.row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.page-head.with-logo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.brand-logo { max-height: 56px; width: auto; }
.count { font-size: .9rem; font-weight: 600; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .15em .65em; vertical-align: middle; }
.section-title { margin-top: 40px; }
.lead { font-size: 1.05rem; color: var(--ink-2); max-width: 75ch; }

/* kategoriju flīzes */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.tile {
  display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); color: var(--ink); }
.tile-img { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 16px; background: #fff; }
.tile-img img { max-height: 100%; object-fit: contain; transition: transform .35s; }
.tile:hover .tile-img img { transform: scale(1.04); }
.tile-title { padding: 14px 18px; font-weight: 650; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; }
.tile-title::after { content: "→"; color: var(--red); }

/* katalogs */
.sort-form select {
  font: inherit; font-size: .925rem; padding: .6em 2.4em .6em 1em; border-radius: 999px; border: 1px solid var(--line);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2377716c' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 1em center;
  appearance: none; cursor: pointer; color: var(--ink);
}
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.product {
  display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); color: var(--ink); }
.product-img { aspect-ratio: 1; display: grid; place-items: center; padding: 16px; background: #fff; }
.product-img img { max-height: 100%; object-fit: contain; transition: transform .35s; }
.product:hover .product-img img { transform: scale(1.04); }
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); flex: 1; }
.product-title { font-weight: 650; line-height: 1.3; }
.product-price { color: var(--red); font-weight: 750; font-size: 1.05rem; margin-top: auto; }

/* modelis */
.model { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 1000px) { .model { grid-template-columns: 1fr; gap: 24px; } }
.gallery { position: sticky; top: 96px; }
@media (max-width: 1000px) { .gallery { position: static; } }
.gallery-main { display: grid; place-items: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; aspect-ratio: 1; cursor: zoom-in; }
.gallery-main img { max-height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumb { width: 76px; height: 76px; padding: 6px; background: #fff; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; display: block; overflow: hidden; transition: border-color .15s, box-shadow .15s; box-sizing: border-box; }
.thumb img { width: 100%; height: 100%; max-width: none; object-fit: contain; display: block; }
.thumb.is-active { box-shadow: 0 0 0 3px var(--red-soft); }
.thumb:hover { border-color: #d8d1ca; }
.thumb.is-active { border-color: var(--red); }
.model-info h1 { margin-bottom: .4em; }
.price { font-size: 2rem; font-weight: 800; color: var(--red); margin: 0 0 20px; letter-spacing: -.02em; }
.params { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .95rem; }
.params th, .params td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.params tr:last-child th, .params tr:last-child td { border-bottom: 0; }
.params th { font-weight: 500; color: var(--muted); width: 48%; }
.params td { font-weight: 600; }
.model-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.model-extra { margin: 0 0 24px; color: var(--ink-2); }
.model-extra h2 { font-size: 1.1rem; }

/* siltās grīdas */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 32px; }
.chips a { padding: .45em 1em; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 550; }
.chips a:hover { border-color: var(--red); color: var(--red); }
.product-block { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 32px); margin-bottom: 24px; scroll-margin-top: 96px; }
.product-block-body.has-img { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 640px) { .product-block-body.has-img { grid-template-columns: 1fr; } }
.product-block-img { display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; cursor: zoom-in; }
.spec-table { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.spec-table .btn { margin-top: 12px; }
.install-step { margin: 0 0 32px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.install-step img { border-radius: var(--radius-sm); margin: 0 auto 12px; }

/* projekti */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 24px; }
.photo-grid a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); background: var(--line); cursor: zoom-in; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo-grid a:hover img { transform: scale(1.05); }

/* jaunumi */
.news-item { margin-bottom: 24px; }
.news-item-body.has-img { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.news-item-body img { border-radius: var(--radius-sm); }
@media (max-width: 640px) { .news-item-body.has-img { grid-template-columns: 1fr; } }

/* kontakti */
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .contacts { grid-template-columns: 1fr; } }
.contacts-info table { width: 100% !important; }
.contacts-info td:first-child { color: var(--muted); white-space: nowrap; padding-right: 16px; }
.map iframe { width: 100%; height: 480px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); display: block; margin-bottom: 12px; background: var(--line); }

.notfound { text-align: center; padding: 80px 20px; }
.notfound .btn { margin: 4px; }

/* ---------- rediģētāja saturs (vecie teksti ar tabulām) ---------- */
.rich { overflow-wrap: anywhere; }
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich p { margin: 0 0 1em; }
.rich img { display: inline-block; border-radius: 6px; }
.rich ul, .rich ol { padding-left: 1.3em; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.rich table { border-collapse: collapse; width: 100% !important; height: auto !important; background: #fff !important; font-size: .9rem; margin: 0 !important; }
.rich td, .rich th { padding: 8px 12px !important; border: 0; border-bottom: 1px solid var(--line); height: auto !important; width: auto !important; vertical-align: middle; }
.rich tr:last-child td { border-bottom: 0; }
.rich tbody tr:first-child td { background: #faf8f6; font-weight: 650; }
.rich tbody tr:hover td { background: #fcfbfa; }
.contacts-info .table-wrap { border: 0; }
.contacts-info tbody tr:first-child td { background: none; }
.contacts-info td { border-bottom: 0; padding: 6px 0 !important; }

/* ---------- kājene ---------- */
.site-footer { background: #1d1b1a; color: #bfb8b2; padding: 48px 0 32px; font-size: .925rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ffb3b5; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { background: #fff; border-radius: 10px; padding: 8px 12px; box-sizing: content-box; margin-bottom: 16px; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-meta p { margin: 0 0 .5em; }
.counter { margin-top: 12px; opacity: .6; }

/* ---------- attēlu skatītājs ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(15, 14, 13, .92); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: #ddd; margin-top: 12px; font-size: .9rem; }
.lightbox button { position: fixed; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox figure { padding: 64px 8px; } .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } }

/* ---------- drukāšana ---------- */
.print-page { background: #fff; padding: 24px; max-width: 900px; margin: 0 auto; }
.print-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.print-foot { color: var(--muted); font-size: .85rem; margin-top: 24px; }
@media print {
  .print-bar .btn, .site-header, .site-footer, .sidebar, .crumbs, .model-actions { display: none !important; }
  body { background: #fff; }
  .card, .product-block, .params { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* tabulās skaitļus nelauzt; video pielāgojas platumam */
.rich table { overflow-wrap: normal; word-break: normal; }
/* tabulas kompaktas: virsraksti drīkst lūzt, skaitļi paliek veseli */
.rich td, .rich th { white-space: normal; word-break: keep-all; hyphens: manual; }
.rich table { font-size: .84rem; line-height: 1.35; }
.rich td, .rich th { padding: 6px 8px !important; }
.rich td * { font-size: inherit !important; }
.rich tbody tr:first-child td, .rich tbody tr:nth-child(2) td[colspan], .rich thead td, .rich th { font-size: .78rem; }
@media (max-width: 640px) { .rich table { font-size: .8rem; } .rich td, .rich th { padding: 5px 6px !important; } }
.rich iframe { max-width: 100%; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-sm); display: block; margin: 1em 0; }

/* mobilajā — kolonnas drīkst sašaurināties zem satura platuma */
@media (max-width: 900px) { .page-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1000px) { .model { grid-template-columns: minmax(0, 1fr); } }
.home-grid > *, .contacts > *, .hero-cards > * { min-width: 0; }
@media (max-width: 900px) { .home-grid, .contacts { grid-template-columns: minmax(0, 1fr); } }
.params td { overflow-wrap: anywhere; }
html, body { overflow-x: clip; }

/* sākumlapa: „Par mums” */
.about { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.about-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.about-head h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
@media (max-width: 800px) { .about { grid-template-columns: minmax(0, 1fr); gap: 16px; } .about-head { flex-direction: row; flex-wrap: wrap; align-items: center; } .about-head h2 { width: 100%; } }

/* logo */
.brand { color: var(--ink); text-decoration: none; display: inline-flex; }
.brand:hover { color: var(--ink); }
.logo { display: inline-flex; align-items: flex-end; gap: 4px; line-height: 1; }
.logo-mark { width: 44px; height: 35px; flex: none; overflow: visible; margin-bottom: 0; }
.logo-text { display: flex; flex-direction: column; gap: 4px; }
.logo-word { font-size: 28px; font-weight: 800; letter-spacing: -.035em; line-height: .9; }
.logo-word, .logo-sol { color: var(--red); }
.logo-tag { font-size: 9.5px; font-weight: 650; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); padding-left: 1px; }
.logo-steam path { transform-box: fill-box; transform-origin: 50% 100%; animation: steam 3.2s ease-in-out infinite; }
.logo-steam path:nth-child(2) { animation-delay: -1.1s; }
.logo-steam path:nth-child(3) { animation-delay: -2.2s; }
.brand:hover .logo-steam path { animation-duration: 1.3s; }
@keyframes steam {
  0%, 100% { transform: translate(0, 0) scaleY(1); opacity: 1; }
  33% { transform: translate(.7px, -.8px) scaleY(1.05); opacity: .8; }
  66% { transform: translate(-.7px, -.4px) scaleY(.97); opacity: .95; }
}
.site-footer .logo { color: #fff; }
.site-footer .logo-tag { color: #8f8780; }
.site-footer .logo-word, .site-footer .logo-sol { color: #ef4146; }
.footer-logo { background: none !important; padding: 0 !important; margin-bottom: 16px; }
@media (max-width: 420px) { .logo-mark { width: 38px; height: 30px; } .logo-word { font-size: 24px; } }

/* kājene vienmēr ekrāna apakšā */
body:not(.print-page) { min-height: 100vh; display: flex; flex-direction: column; }
body:not(.print-page) > main { flex: 1; }

/* ---------- meklētājs ---------- */
.search { position: relative; }
.search-icon { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.search input {
  width: 170px; padding: .6em 1em .6em 2.3em; border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
  font: inherit; font-size: .925rem; color: var(--ink); transition: width .25s, background .15s, border-color .15s;
  -webkit-appearance: none; appearance: none;
}
.search input:focus { width: 260px; background: #fff; border-color: var(--red); outline: none; box-shadow: 0 0 0 3px var(--red-soft); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search-suggest {
  position: absolute; right: 0; top: calc(100% + 8px); width: 380px; max-width: calc(100vw - 32px); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hover); padding: 6px; z-index: 60;
}
.search-suggest a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.search-suggest a:hover, .search-suggest a.is-active { background: var(--bg); color: var(--ink); }
.search-suggest .s-img { width: 44px; height: 44px; border-radius: 8px; background: var(--bg) center / contain no-repeat; }
.search-suggest .s-title { font-weight: 600; font-size: .925rem; line-height: 1.25; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-suggest .s-kind { font-size: .75rem; color: var(--muted); }
.search-suggest .s-price { font-weight: 700; color: var(--red); font-size: .875rem; white-space: nowrap; }
.search-suggest .s-all { display: block; text-align: center; padding: 10px; font-weight: 600; color: var(--red); border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 10px 10px; }
.search-suggest .s-empty { padding: 14px; color: var(--muted); font-size: .925rem; text-align: center; }
mark { background: #ffe9a8; color: inherit; border-radius: 3px; padding: 0 1px; }
@media (max-width: 1100px) { .search input { width: 140px; } .search input:focus { width: 200px; } }
@media (max-width: 900px) {
  .search { order: -1; }
  .search input, .search input:focus { width: 100%; }
  .search-suggest { left: 0; right: 0; width: auto; max-width: none; }
}

.search-big { display: flex; gap: 10px; margin-bottom: 24px; }
.search-big input { flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; padding: .8em 1.2em; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.search-big input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.search-count { color: var(--muted); margin: 0 0 12px; }
.search-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.search-result { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 18px; align-items: center; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.search-result:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); color: var(--ink); }
.search-result-img { width: 88px; height: 88px; border-radius: 10px; background: #fff; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.search-result-img img { max-height: 100%; object-fit: contain; }
.search-result-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.search-result-kind { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--red); }
.search-result-title { font-weight: 700; font-size: 1.1rem; }
.search-result-snippet { color: var(--ink-2); font-size: .9rem; line-height: 1.5; }
.search-result-price { font-weight: 800; color: var(--red); font-size: 1.1rem; white-space: nowrap; }
@media (max-width: 600px) { .search-result { grid-template-columns: 64px minmax(0, 1fr); } .search-result-img { width: 64px; height: 64px; } .search-result-price { grid-column: 2; } }
.search-none p { color: var(--ink-2); }

/* sadaļu ikonas sānu izvēlnē */
.side-nav a { display: flex; align-items: center; gap: 10px; }
.side-nav a .ico { width: 20px; height: 20px; flex: none; color: #a39b94; transition: color .15s; }
.side-nav a:hover .ico { color: var(--ink-2); }
.side-nav li.is-active > a .ico { color: var(--red); }

/* ikonas augšējā izvēlnē */
.main-nav ul a { display: inline-flex; align-items: center; gap: 7px; }
.main-nav .nav-ico { width: 18px; height: 18px; flex: none; color: #a39b94; transition: color .15s; }
.main-nav ul a:hover .nav-ico { color: var(--ink-2); }
.main-nav ul a.is-active .nav-ico { color: var(--red); }
@media (max-width: 1180px) and (min-width: 901px) { .main-nav .nav-ico { display: none; } }
@media (max-width: 900px) { .main-nav ul a { display: flex; gap: 10px; } .main-nav .nav-ico { width: 20px; height: 20px; } }

/* produktu saīsnes kategorijas augšā */
.jump { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 4px 0 28px; }
.jump a {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  font-weight: 650; line-height: 1.25; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.jump a:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.jump-img { width: 52px; height: 52px; flex: none; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.jump-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.jump-title { flex: 1; min-width: 0; }
.jump-arrow { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.jump a:hover .jump-arrow { transform: translateY(2px); }
@media (max-width: 600px) { .jump { grid-template-columns: minmax(0, 1fr); gap: 8px; } .jump a { padding: 8px 12px 8px 8px; } .jump-img { width: 40px; height: 40px; } }

/* jautājuma forma produkta lapā */
.inquiry { border: 0; border-radius: 20px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: 0 24px 80px rgba(0,0,0,.25); }
.inquiry::backdrop { background: rgba(20, 18, 17, .55); backdrop-filter: blur(2px); }
.inquiry-form { padding: 28px; position: relative; display: grid; gap: 12px; }
.inquiry-form h2 { margin: 0; font-size: 1.35rem; }
.inq-product { margin: -6px 0 6px; color: var(--red); font-weight: 650; }
.inquiry-form label { display: grid; gap: 4px; font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.inquiry-form input, .inquiry-form textarea { font: inherit; font-weight: 400; font-size: 1rem; padding: .65em .85em; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.inquiry-form textarea { resize: vertical; min-height: 120px; }
.inquiry-form input:focus, .inquiry-form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.inq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .inq-row { grid-template-columns: 1fr; } .inquiry-form { padding: 22px 18px; } }
.inq-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inq-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.inq-status { font-size: .9rem; font-weight: 600; }
.inq-status.ok { color: #1f7a4a; }
.inq-status.err { color: #b3261e; }
.inq-note { margin: 0; font-size: .85rem; color: var(--muted); }
.inq-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--bg); font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink-2); }
.inq-close:hover { background: var(--red-soft); color: var(--red); }
.inquiry-form.sent label, .inquiry-form.sent .inq-row, .inquiry-form.sent .btn { display: none; }
.inquiry-form.sent .inq-status { font-size: 1.05rem; }

/* cena pie elektroapsildes produkta */
.block-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 12px; }
.price-tag { font-size: 1.6rem; font-weight: 800; color: var(--red); letter-spacing: -.02em; }
.block-price .maker { color: var(--muted); font-size: .9rem; }
.jump-price { display: block; color: var(--red); font-weight: 800; font-size: .9rem; margin-top: 2px; }
.page-main > .rich.lead { margin-bottom: 28px; }

/* elektroapsildes produkta papildu bildes */
.product-block-media { display: grid; gap: 8px; align-content: start; }
.block-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.block-thumbs a { aspect-ratio: 1; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px; overflow: hidden; cursor: zoom-in; transition: border-color .15s; }
.block-thumbs a:hover { border-color: var(--red); }
.block-thumbs img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* sānu izvēlnes virsraksts = saite uz sadaļas sākumu */
.side-nav summary .side-home { display: inline; padding: 0; color: var(--ink); font-weight: 750; font-size: 1.05rem; border-radius: 0; background: none; }
.side-nav summary .side-home:hover { color: var(--red); background: none; }
.side-nav summary.is-active .side-home { color: var(--red); }
