/* celazimes.lv — pagaidu lapa. Dizains atkārto esošās lapas krāsas, fontu un izkārtojumu. */
/* Rajdhani (SIL Open Font License, sk. OFL-LICENSE.txt) — lokāli, bez Google Fonts */
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/rajdhani-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/rajdhani-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/rajdhani-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/rajdhani-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/rajdhani-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/rajdhani-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }


:root {
  --bg: #f9f7f5;          /* lapas fons */
  --paper: #ffffff;
  --ink: #423b3e;         /* pamatteksts, tumšais fons */
  --ink-2: #605157;       /* rīku joslas otrā flīze */
  --ink-3: #8b7e83;       /* rīku joslas trešā flīze */
  --muted: #9a9899;       /* apakšizvēlne */
  --soft: #d3d2cd;        /* "Kādēļ izvēlēties" sadaļa */
  --line: #e3e0dc;
  --light: #f2efeb;
  --orange: #f7933b;
  --orange-dark: #d67118;
  --ok: #2d993c;
  --err: #bf373e;
  --sidebar-w: 300px;
  --rail-w: 56px;
  --font: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-color: var(--orange); text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
strong { font-weight: 600; }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.125em; flex: none; }

/* ---------- Sānu izvēlne ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w);
  background: var(--ink); color: #fff; overflow-y: auto; z-index: 40;
  display: flex; flex-direction: column;
}
.sidebar .logo { display: flex; align-items: center; justify-content: center; height: 132px; flex: none; }
.sidebar .logo img { width: 138px; height: 75px; }
.nav { list-style: none; margin: 0; padding: 0; }
.nav > li { border-top: 1px solid rgba(255,255,255,.08); }
.nav > li > a, .nav > li > .nav-row > a {
  display: block; padding: 18px 26px 16px 40px; color: #fff; text-decoration: none;
  font-size: 21px; font-weight: 600; text-transform: uppercase; letter-spacing: .01em;
}
.nav > li > a:hover, .nav > li > .nav-row > a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-row { display: flex; align-items: stretch; }
.nav-row > a { flex: 1; }
.nav-row button {
  background: none; border: 0; color: inherit; width: 52px; cursor: pointer; font-size: 18px;
}
.nav-row button .icon { transition: transform .2s; }
.nav > li.open .nav-row button .icon { transform: rotate(180deg); }
.nav > li.active { background: var(--bg); }
.nav > li.active > a, .nav > li.active > .nav-row > a, .nav > li.active .nav-row button { color: var(--ink); }
.nav > li.active > a:hover, .nav > li.active > .nav-row > a:hover { background: transparent; color: var(--orange-dark); }
.subnav { display: none; list-style: none; margin: 0; padding: 10px 0 14px; background: var(--muted); }
.nav > li.open .subnav { display: block; }
.subnav a {
  display: flex; gap: 10px; align-items: flex-start; padding: 4px 22px 4px 40px; color: #fff;
  text-decoration: none; font-size: 16px; line-height: 1.3;
}
.subnav a::before {
  content: ""; flex: none; width: 13px; height: 13px; margin-top: 3px; background: #fff; border-radius: 1px;
}
.subnav a:hover { color: var(--ink); }
.subnav a.current { font-weight: 600; color: var(--ink); }
.subnav a.current::before { background: var(--orange); box-shadow: inset 0 0 0 3px #fff; }
.nav .nav-small > a { font-size: 17px; padding-top: 14px; padding-bottom: 12px; }
.nav .nav-cart > a { display: flex; gap: 12px; align-items: center; padding-left: 14px; }
.nav .nav-cart .count { margin-left: auto; background: var(--orange); color: #fff; border-radius: 12px; padding: 0 9px; font-size: 15px; }
.sidebar-foot { margin-top: auto; padding: 22px 40px 26px; font-size: 15px; color: #cfc8cb; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-foot a { color: #fff; text-decoration: none; font-weight: 600; }
.sidebar-foot a:hover { color: var(--orange); }

/* ---------- Rīku josla (izvēlne / meklēšana / grozs) ---------- */
.rail {
  position: fixed; top: 0; left: var(--sidebar-w); width: var(--rail-w); z-index: 30;
  display: flex; flex-direction: column;
}
.rail a, .rail button {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: var(--rail-w); height: var(--rail-w); border: 0; color: #f2efeb; font-size: 22px; cursor: pointer; text-decoration: none;
}
.rail .t-logo { display: none; background: var(--ink); }
.rail .t-logo img { width: 34px; }
.rail .t-menu { background: var(--ink); display: none; }
.rail .t-search { background: var(--ink-2); }
.rail .t-cart { background: var(--ink-3); }
.rail a:hover, .rail button:hover { color: var(--orange); }
.rail .badge {
  position: absolute; top: 7px; right: 6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--bg); color: var(--ink); font-size: 12px; font-weight: 600; line-height: 18px; text-align: center;
}
.searchbox {
  position: fixed; top: 0; left: calc(var(--sidebar-w) + var(--rail-w)); z-index: 35; display: none;
  background: var(--ink-2); padding: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.searchbox.open { display: flex; }
.searchbox input {
  width: min(420px, 70vw); border: 0; padding: 10px 14px; font: inherit; font-size: 18px; color: var(--ink); background: #fff;
}
.searchbox button { border: 0; background: var(--orange); color: #fff; font: inherit; font-weight: 600; padding: 0 18px; cursor: pointer; }

/* ---------- Saturs ---------- */
.main { margin-left: calc(var(--sidebar-w) + var(--rail-w)); min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1180px; padding: 0 56px; }
.section { padding-top: 56px; padding-bottom: 56px; }
.section.tight { padding-top: 24px; }
.page-head { padding: 64px 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; align-items: start; }
.page-head h1 { font-size: 46px; text-transform: uppercase; margin: 0; letter-spacing: .01em; }
.page-head .lead { margin: 6px 0 0; font-size: 17px; color: #5d5558; }
.page-head .lead a { font-weight: 600; text-decoration: none; }
.breadcrumbs { grid-column: 1 / -1; font-size: 16px; color: #7a7175; margin-bottom: -10px; }
.breadcrumbs a { text-decoration: none; color: #7a7175; }
.breadcrumbs a:hover { color: var(--orange-dark); }
.breadcrumbs span { margin: 0 6px; }

.notice-strip {
  background: var(--orange); color: #fff; font-size: 16px; padding: 9px 56px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.notice-strip a { color: #fff; font-weight: 600; }

.flashes { padding-top: 20px; }
.flash { padding: 12px 16px; margin: 0 0 10px; background: var(--paper); border-left: 5px solid var(--ink-3); font-size: 17px; }
.flash.ok { border-color: var(--ok); }
.flash.error { border-color: var(--err); }
.flash.info { border-color: var(--orange); }

/* Pogas */
.btn {
  display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--orange); color: #fff; font: inherit; font-size: 20px; font-weight: 500; padding: 11px 26px; line-height: 1.2;
  transition: background .15s;
}
.btn:hover { background: var(--orange-dark); color: #fff; }
.btn.gray { background: var(--ink); }
.btn.gray:hover { background: var(--ink-2); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.small { font-size: 17px; padding: 7px 16px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: #7a7175; cursor: pointer; text-decoration: underline; text-decoration-color: var(--orange); }
.linkbtn:hover { color: var(--err); }

/* ---------- Sākumlapas paziņojums ---------- */
.closed-notice {
  background: var(--paper); border-left: 8px solid var(--orange); padding: 30px 34px; margin: 8px 0 0;
  box-shadow: 0 1px 0 var(--line);
}
.closed-notice .tag {
  display: inline-block; background: var(--orange); color: #fff; font-weight: 600; text-transform: uppercase;
  font-size: 14px; letter-spacing: .06em; padding: 3px 10px; margin-bottom: 12px;
}
.closed-notice h2 { font-size: 32px; margin-bottom: 10px; }
.closed-notice p { font-size: 19px; max-width: 62ch; }
.closed-notice .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.steps li { background: var(--paper); padding: 22px 22px 18px; border-top: 4px solid var(--ink); counter-increment: s; }
.steps li::before { content: counter(s); display: block; font-size: 40px; font-weight: 600; color: var(--orange); line-height: 1; margin-bottom: 8px; }
.steps h3 { font-size: 21px; margin-bottom: 6px; }
.steps p { font-size: 16px; margin: 0; color: #5d5558; }

.section-title { font-size: 34px; text-transform: uppercase; margin-bottom: 26px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.cat-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 22px 14px 18px;
  background: var(--paper); border: 1px solid var(--line); text-decoration: none; font-size: 18px; font-weight: 500; line-height: 1.2;
  transition: border-color .15s, transform .15s;
}
.cat-tile:hover { border-color: var(--orange); transform: translateY(-2px); color: var(--ink); }
.cat-tile img { width: 84px; height: 84px; object-fit: contain; }
.cat-tile small { color: #8a8285; font-size: 15px; font-weight: 400; }

.make-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: center; }
.make-grid.alt { grid-template-columns: 1.3fr 1fr; align-items: start; }

/* ---------- Katalogs ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.toolbar form { display: flex; }
.toolbar input[type=search] { border: 1px solid #cfc9c4; border-right: 0; padding: 9px 14px; font: inherit; font-size: 17px; width: 280px; max-width: 60vw; background: #fff; }
.toolbar button { border: 0; background: var(--ink); color: #fff; padding: 0 16px; font-size: 18px; cursor: pointer; }
.toolbar .count { color: #7a7175; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chips a { text-decoration: none; padding: 4px 12px; background: var(--paper); border: 1px solid var(--line); font-size: 16px; }
.chips a:hover { border-color: var(--orange); }
.chips a.current { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 40px 28px; }
.card { text-align: center; }
.card a { text-decoration: none; }
.card .thumb {
  position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1;
  background: var(--paper); border: 1px solid #ddd8d3; padding: 22%; margin-bottom: 12px; transition: border-color .15s;
}
.card a:hover .thumb { border-color: var(--orange); }
.card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.card .num { position: absolute; top: 8px; right: 10px; font-size: 15px; color: #a39b9e; }
.card h2 { font-size: 19px; font-weight: 500; margin: 0 0 2px; line-height: 1.3; }
.card .price { color: #9a9295; font-size: 17px; }
.empty { padding: 40px; text-align: center; background: var(--paper); }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 48px; }
.pager a, .pager span { min-width: 40px; padding: 6px 10px; text-align: center; text-decoration: none; background: var(--paper); border: 1px solid var(--line); }
.pager span.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Produkts ---------- */
.product { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 48px; align-items: start; }
.product .gallery { background: var(--paper); border: 1px solid #ddd8d3; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 14%; }
.product .gallery img { width: 100%; height: 100%; object-fit: contain; }
.form-rows { list-style: none; margin: 0; padding: 0; }
.form-rows li { display: grid; grid-template-columns: 190px 1fr; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.form-rows li:first-child { border-top: 1px solid var(--line); }
.form-rows label, .form-rows .lbl { font-weight: 600; font-size: 18px; }
.form-rows .hint { display: block; font-size: 15px; color: #7a7175; font-weight: 400; margin-top: 4px; }
select, input[type=text], input[type=email], input[type=tel], input[type=number], textarea {
  font: inherit; font-size: 18px; color: var(--ink); background: #fff; border: 1px solid #cfc9c4; border-radius: 0; padding: 8px 12px; width: 100%; max-width: 420px;
}
select:focus, input:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: -1px; }
textarea { min-height: 110px; resize: vertical; max-width: 100%; }
.qty { display: inline-flex; align-items: stretch; }
.qty input { width: 84px; text-align: center; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty button { width: 38px; border: 1px solid #cfc9c4; background: var(--light); font: inherit; font-size: 20px; cursor: pointer; color: var(--ink); }
.qty button:first-child { border-right: 0; }
.qty button:last-child { border-left: 0; }
.price-box { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.price-box .val { font-size: 30px; font-weight: 600; }
.price-box small { color: #7a7175; font-size: 16px; }
.note { font-size: 16px; color: #5d5558; background: var(--light); padding: 12px 16px; margin: 0 0 6px; }
.product-desc { margin-top: 44px; max-width: 820px; font-size: 17px; }
.product-desc h3 { font-size: 24px; text-transform: uppercase; }
.product-desc em { color: #6f676a; }
.variant-table { border-collapse: collapse; margin: 6px 0 0; font-size: 16px; }
.variant-table th, .variant-table td { padding: 5px 14px 5px 0; text-align: left; border-bottom: 1px solid var(--line); }
.variant-table th { font-weight: 600; }

/* ---------- Montāžas elementi ---------- */
.eq-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.eq { background: var(--paper); border: 1px solid #ddd8d3; display: flex; flex-direction: column; scroll-margin-top: 24px; }
.eq:target { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(247,147,59,.25); }
.eq .img { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 18px; border-bottom: 1px solid var(--line); }
.eq .img img { max-height: 100%; object-fit: contain; }
.eq .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.eq h2 { font-size: 22px; margin: 0; }
.eq p { font-size: 16px; color: #5d5558; margin: 0; flex: 1; }
.eq .price { font-size: 22px; font-weight: 600; }
.eq form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- Grozs ---------- */
.cart-table { width: 100%; border-collapse: collapse; background: var(--paper); }
.cart-table th { text-align: left; font-size: 16px; font-weight: 600; padding: 12px 14px; background: var(--light); border-bottom: 2px solid var(--ink); }
.cart-table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 17px; }
.cart-table .img { width: 84px; }
.cart-table .img img { width: 64px; height: 64px; object-fit: contain; display: block; }
.cart-table .title a { font-weight: 600; text-decoration: none; }
.cart-table .meta { display: block; color: #7a7175; font-size: 15px; }
.cart-table .r { text-align: right; white-space: nowrap; }
.cart-table .qty input { width: 70px; }
.totals { margin: 22px 0 0 auto; width: min(420px, 100%); font-size: 18px; }
.totals div { display: flex; justify-content: space-between; padding: 5px 0; }
.totals .grand { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 10px; font-size: 22px; font-weight: 600; }
.totals small { display: block; color: #7a7175; font-size: 15px; text-align: right; }
.cart-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.checkout { margin-top: 56px; background: var(--paper); padding: 34px 38px 38px; border-top: 6px solid var(--orange); scroll-margin-top: 20px; }
.checkout h2 { font-size: 30px; text-transform: uppercase; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; margin: 20px 0; }
.fields .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 17px; }
.field input, .field textarea, .field select { max-width: none; }
.field .err, .err-msg { color: var(--err); font-size: 15px; margin-top: 3px; display: block; }
.field.has-err input, .field.has-err textarea { border-color: var(--err); }
.radios { display: flex; flex-direction: column; gap: 6px; }
.radios.inline { flex-direction: row; flex-wrap: wrap; gap: 6px 24px; }
.radios label, .check label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 17px; }
input[type=radio], input[type=checkbox] { accent-color: var(--orange); width: 18px; height: 18px; margin-top: 4px; flex: none; }
.hp { position: absolute; left: -9999px; }
.req { color: var(--orange-dark); }

/* ---------- Teksta lapas ---------- */
.prose { max-width: 820px; font-size: 18px; }
.prose h2 { font-size: 26px; margin-top: 1.4em; }
.doc-list { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.doc-list a, .doc-list > li > span {
  display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line);
  text-decoration: none; font-size: 18px; font-weight: 500; line-height: 1.25; height: 100%;
}
.doc-list a:hover { border-color: var(--orange); }
.doc-list img { width: 34px; height: 40px; flex: none; }
.doc-list > li > span { color: #8a8285; }
.subhead { font-size: 22px; margin: 34px 0 14px; text-transform: uppercase; }

.guide { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.guide .box { background: var(--paper); padding: 26px 28px; border-top: 4px solid var(--ink); }
.guide h2 { font-size: 26px; }
.guide dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 16px; margin: 0 0 18px; font-size: 17px; }
.guide dt { font-weight: 600; }
.guide dd { margin: 0; }
.guide img { border: 1px solid var(--line); }

/* ---------- "Kādēļ izvēlēties" ---------- */
.features { background: var(--soft); padding: 64px 0 56px; margin-top: auto; }
.features .section-title { font-size: 30px; font-weight: 500; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.feature { text-align: center; }
.feature img { height: 74px; width: auto; margin-bottom: 18px; }
.feature h3 { font-size: 24px; font-weight: 500; margin-bottom: 18px; }
.feature p { font-size: 16px; text-align: left; margin: 0; }

/* ---------- Kontakti ---------- */
.contacts { background: var(--ink); color: #fff; padding: 64px 0 40px; scroll-margin-top: 0; }
.contacts .cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 36px; }
.contacts h2 { font-size: 40px; text-transform: uppercase; font-weight: 600; line-height: 1.05; }
.contacts h3 { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.contacts p { font-size: 17px; color: #e7e2e4; }
.contacts a { color: #fff; text-decoration-color: var(--orange); }
.contacts a:hover { color: var(--orange); }
.contacts .bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 15px; color: #b9b1b4; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.contacts .bottom a { color: #d8d1d4; }

/* ---------- Pielāgošanās ekrāniem ---------- */
@media (max-width: 1200px) {
  .wrap { padding: 0 36px; }
  .notice-strip { padding: 9px 36px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
  :root { --rail-w: 50px; }
  body { font-size: 17px; }
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; width: min(var(--sidebar-w), 86vw); box-shadow: none; z-index: 60; }
  body.menu-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.35); }
  .mask { position: fixed; inset: 0; background: rgba(50,50,50,.6); z-index: 55; display: none; }
  body.menu-open .mask { display: block; }
  .rail { left: 0; width: auto; flex-direction: row; z-index: 50; }
  .rail a, .rail button { flex: none; }
  .rail .t-logo, .rail .t-menu { display: flex; }
  .searchbox { left: 0; top: var(--rail-w); right: 0; }
  .searchbox input { width: 100%; }
  .main { margin-left: 0; padding-top: var(--rail-w); }
  .notice-strip { padding: 9px 16px; font-size: 15px; }
  .wrap { padding: 0 16px; }
  .page-head { grid-template-columns: 1fr; padding-top: 34px; }
  .page-head h1 { font-size: 34px; }
  .product { grid-template-columns: 1fr; gap: 26px; }
  .product .gallery { max-width: 320px; }
  .guide, .make-grid, .make-grid.alt { grid-template-columns: 1fr; }
  .contacts .cols { grid-template-columns: 1fr 1fr; }
  .contacts .cols > :first-child { grid-column: 1 / -1; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .checkout { padding: 24px 18px 28px; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .card h2 { font-size: 17px; }
  .form-rows li { grid-template-columns: 1fr; gap: 6px; }
  .fields { grid-template-columns: 1fr; }
  .feature-grid, .contacts .cols { grid-template-columns: 1fr; }
  .closed-notice { padding: 22px 20px; }
  .closed-notice h2 { font-size: 26px; }
  .contacts h2 { font-size: 32px; }
  .guide dl { grid-template-columns: 1fr; gap: 2px; }
  .guide dd { margin-bottom: 8px; }
  .toolbar input[type=search] { width: 100%; }
  .toolbar form { width: 100%; }
  /* Grozs kā kartītes */
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { display: grid; grid-template-columns: 72px 1fr; gap: 4px 12px; padding: 14px; border-bottom: 1px solid var(--line); }
  .cart-table td { border: 0; padding: 0; }
  .cart-table td.img { grid-row: span 4; width: auto; }
  .cart-table .r { text-align: left; }
  .cart-table td[data-l]::before { content: attr(data-l) ": "; color: #7a7175; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .sidebar, .rail, .searchbox, .notice-strip, .features, .cart-actions, .checkout { display: none !important; }
  .main { margin: 0; padding: 0; }
}
