/* ciems.lv — publiskās lapas stils */
:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-2: #efece3;
  --text: #1c2420;
  --muted: #5e6862;
  --line: #dcd8cc;
  --brand: #1f3a2e;
  --brand-2: #2f5a45;
  --accent: #b9772f;
  --ok: #2f7d4f;
  --warn: #a8661d;
  --sold: #7a7f7c;
  --danger: #b03a2e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 8px 24px rgba(20, 30, 25, .06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--brand-2); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--brand); }
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3, .h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; }

/* Pogas */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--brand); background: var(--brand); color: #fff; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--brand-2); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--surface-2); color: var(--brand); }
.btn-small { padding: 8px 16px; font-size: .9rem; }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #8e2d23; }

/* Galvene */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247, 245, 239, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); text-decoration: none; font: 700 1.35rem/1 var(--serif); }
.logo-mark { width: 30px; height: 30px; color: var(--brand-2); }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { white-space: nowrap; }
.brand-text { display: flex; flex-direction: column; gap: 4px; }
.brand-text small { font: 500 .72rem/1.2 var(--sans); color: var(--muted); letter-spacing: .02em; }
@media (max-width: 560px) { .brand-text small { display: none; } }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--brand-2); text-decoration: underline; }
.nav-toggle { display: none; }

@media (max-width: 1200px) { /* izvēlnes poga — visi punkti ietilpst rindā tikai no ~1200 px */
  .nav-toggle { display: inline-block; min-height: 44px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: 600 .95rem var(--sans); color: var(--brand); cursor: pointer; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 18px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
}

/* Sākuma bloks */
.hero { position: relative; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); } /* bez gradienta (lietotājas vēlme) */
.hero::after { content: ""; position: absolute; inset: auto -5% -2px -5%; height: 140px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 140' preserveAspectRatio='none'%3E%3Cpath d='M0 90 C200 40 360 120 600 70 S1000 30 1200 80 V140 H0Z' fill='%232f5a45' opacity='.08'/%3E%3Cpath d='M0 110 C250 70 420 140 650 100 S1000 70 1200 105 V140 H0Z' fill='%231f3a2e' opacity='.08'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: end; padding-top: 88px; padding-bottom: 104px; position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stats { display: grid; gap: 14px; margin: 0; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); }
.stats dt { color: var(--muted); font-size: .85rem; }
.stats dd { margin: 2px 0 0; font: 600 1.6rem/1.2 var(--serif); color: var(--brand); }
.stats dd small { display: block; font: 500 .9rem/1.3 var(--sans); color: var(--muted); }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.points li { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); }
.points strong { font: 600 1.2rem/1.25 var(--serif); color: var(--brand); }
.points span { color: var(--muted); font-size: .95rem; }
@media (max-width: 820px) { .hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 44px; padding-bottom: 72px; gap: 28px; } .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .stats div { padding: 12px 14px; } .stats dt { font-size: .75rem; } .stats dd { font-size: 1.1rem; } .hero::after { height: 70px; } }


/* Sajūta un ieguvumi */
/* "Tava vieta…" — virsraksts un teksts visā satura platumā (lietotāja vēlme) */
.feel-head { margin-bottom: 32px; }
.feel-head .lead { max-width: none; text-align: justify; hyphens: auto; } /* taisnots visos ekrānos (lietotājas vēlme) */
.feel-text p { margin: 0 0 .8em; }
.feel-text p:last-child { margin-bottom: 0; }
.feel { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.feel li { display: grid; align-content: start; gap: 8px; }
.feel h3 { margin: 4px 0 0; }
.feel p { margin: 0; color: var(--muted); }
.feel-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: #e3ebe4; font-size: 1.6rem; }

/* Sadaļas */
.section { padding: 72px 0; }
.section-tight { padding: 28px 0 72px; }
.section-follow { padding-top: 0; }
.section-reviews { background: var(--surface); border-top: 1px solid var(--line); }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-custom { border-top: 1px solid var(--line); }
.custom-text { margin-bottom: 8px; }
.prose.custom-text p { max-width: none; } /* pievienotajām sadaļām nav otras kolonnas — teksts pa visu platumu */
.custom-points { margin-top: 24px; }
.custom-cta { margin: 28px 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-head { padding: 56px 0 8px; }
.prose p { max-width: 68ch; }

/* Kartītes */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 24px; }
/* Precīzi un tīri: robežu rāda līnija, ne ēna; uz hover (un kad gabals izgaismots kartē) līnija kļūst meža zaļa */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.card:hover, .card.is-hot { border-color: var(--brand-2); box-shadow: 0 0 0 1px var(--brand-2); }
.card-link { color: inherit; text-decoration: none; display: block; height: 100%; }
/* .card ir overflow:hidden, tas nogriež saites fokusa kontūru — kontūru zīmē pati kartīte */
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.card-body { min-width: 0; }
.card-body h3, .card-body .muted { overflow-wrap: anywhere; }
.card-body h3 + .card-facts { margin-top: 14px; }
.card-media { position: relative; aspect-ratio: 16 / 10.5; background: var(--surface-2); }
.card-media img, .card-media .ph { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-media .badge { position: absolute; top: 12px; left: 12px; }
.card-media .badge-phase { left: auto; right: 12px; }
.card-body { padding: 18px 20px 20px; }
.card-body h3 { margin-bottom: 4px; }
.card-body .muted { margin-bottom: 14px; font-size: .95rem; }
.card-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.card-facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.card-facts dd { margin: 0; font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; overflow-wrap: break-word; }
/* Bez cenas par m² (cena nav norādīta / pārdots) — "Cena" aizņem divas kolonnas, lai "Pēc vienošanās" nelūst vārda vidū */
.card-fact-wide { grid-column: span 2; }

.ph-bg { fill: #e5e6da; }
.ph-lines { stroke: #b9bfae; }
.ph-plot { fill: rgba(47, 90, 69, .12); stroke: var(--brand-2); }

.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; background: var(--surface); border: 1px solid var(--line); }
.badge-pieejams { background: #e3f1e7; color: #1f6a3e; border-color: #b9dcc4; }
.badge-rezervets { background: #fbefdc; color: #8a5414; border-color: #efd2a6; }
.badge-pardots { background: #fbe1df; color: #9b2620; border-color: #efb3ae; }

/* Vīzija un Zeme + Māja (divu kolonnu bloki) */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.features li { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.features p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: #e3ebe4; color: var(--brand); font-size: 1.15rem; }
@media (max-width: 820px) { .about { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Zeme + Māja: informācijas rāmis visā platumā (tāds pats rāmis kā kalkulatoram) */
.house-note { margin-top: 40px; overflow-wrap: anywhere; }
.house-note h3 { margin-bottom: 10px; }
.house-note .prose p { max-width: none; }
.house-note .prose p:last-child { margin-bottom: 0; }
.wrap:has(.house-note) + .wrap .house-photos { margin-top: 24px; }

/* Zeme + Māja: kataloga poga + "Saņemt piedāvājumu" (atver PDF) */
.house-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 1em; }

/* Zeme + Māja: līdz 4 attēliem visā platumā zem teksta un kalkulatora — datorā vienā rindā, telefonā pa 2 */
.house-photos { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.house-photos-1 { grid-template-columns: minmax(0, 1fr); }
.house-photos-1 .photo img { aspect-ratio: 21 / 9; }
.house-photos-3 li:first-child { grid-column: 1 / -1; }
@media (min-width: 821px) {
  .house-photos { gap: 16px; }
  .house-photos-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .house-photos-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .house-photos-3 li:first-child { grid-column: auto; }
  .house-photos-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .house-photos-2 .photo img { aspect-ratio: 16 / 10; }
}

/* Zeme + Māja, kalkulators, komanda, atsauksmes */
.package-list { margin: 8px 0 24px; display: grid; max-width: 68ch; }
.package-list div { padding: 12px 0; border-top: 1px solid var(--line); }
.package-list div:last-child { border-bottom: 1px solid var(--line); }
.package-list dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.package-list dd { margin: 2px 0 0; }
.features-grid { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.calc { display: grid; gap: 18px; }
.calc-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.calc-result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.calc-result p { margin: 0; display: grid; gap: 2px; background: #e3ebe4; border-radius: 10px; padding: 12px 16px; }
.calc-result span { font-size: .85rem; color: var(--muted); }
.calc-result strong { font: 600 1.5rem/1.2 var(--serif); color: var(--brand); }
.calc .small { margin: 0; }
@media (max-width: 560px) { .calc-fields, .calc-result { grid-template-columns: minmax(0, 1fr); } }
.team, .reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; margin-top: 8px; }
.team p:last-child { margin-bottom: 0; }
/* Komandas portreti: rinda zem teksta, paraksts "Vārds — loma" */
.team-photos { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 20px; }
.team-photos figure { margin: 0; }
.team-photos .photo img { aspect-ratio: 4 / 5; object-position: center 25%; }
.team-photos figcaption { display: grid; gap: 2px; margin-top: 10px; }
.team-photos figcaption strong { font: 600 1.05rem/1.3 var(--serif); color: var(--brand); }
.team-photos figcaption span { font-size: .9rem; color: var(--muted); }
@media (max-width: 560px) { .team-photos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; } }
.review { margin: 0; display: grid; gap: 14px; align-content: space-between; }
.review blockquote { margin: 0; font-size: 1.05rem; }
.review blockquote p:last-child { margin-bottom: 0; }
.review figcaption { display: grid; }
/* Datorā — atsauksmes vienā rindā (līdz 4, vienāda platuma); pārējās — saitē "Visas atsauksmes Google" */
@media (min-width: 1000px) {
  .reviews { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .reviews > :nth-child(n+5) { display: none; }
}
.stars { color: #d39b2a; letter-spacing: .08em; font-size: 1.05rem; line-height: 1; }
.stars span { color: var(--line); }
.rating-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: -8px 0 20px; }
.rating-summary strong { font: 600 1.3rem/1 var(--serif); color: var(--brand); }
.sub-head { margin-top: 48px; }
.map-block { margin-top: 40px; scroll-margin-top: 90px; } /* sākuma poga "Apskatīt zemesgabalus" — lai karti neaizsedz piestiprinātā galvene */

/* Attālumu tabula */
.commute { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 8px 0 20px; }
.commute th, .commute td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.commute thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.commute tbody th { color: var(--brand); }
.commute tr:last-child th, .commute tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .commute thead { display: none; }
  .commute tr { display: grid; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .commute tr:last-child { border-bottom: 0; }
  .commute th, .commute td { padding: 0; border: 0; }
  .commute td:last-child { color: var(--muted); }
}

/* Karte */
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); aspect-ratio: 16 / 7; margin-top: 12px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 640px) { .map { aspect-ratio: 4 / 3; } }

/* BUJ: datorā virsraksts + kontakti pa kreisi (paliek redzami ritinot), jautājumi pa labi — katrs savā izvēršamā rāmī */
.faq { display: grid; gap: 28px; }
.faq-head h2 { margin-bottom: 12px; }
.faq-head .muted { max-width: 40ch; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s; }
.faq-item:hover, .faq-item[open] { border-color: var(--brand-2); }
.faq-item > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 56px; padding: 16px 20px; cursor: pointer; list-style: none; border-radius: var(--radius); }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary h3 { margin: 0; font-size: 1.15rem; line-height: 1.35; }
.faq-item > summary:hover h3 { color: var(--brand-2); }
/* + / − zīme no divām līnijām */
.faq-item > summary::after { content: ""; flex: none; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 999px; background:
  linear-gradient(var(--brand), var(--brand)) center / 12px 2px no-repeat,
  linear-gradient(var(--brand), var(--brand)) center / 2px 12px no-repeat, var(--surface); transition: background-size .15s; }
.faq-item[open] > summary::after { background-size: 12px 2px, 2px 0, auto; }
.faq-item > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.faq-a { margin: 0 20px; padding: 16px 0 20px; border-top: 1px solid var(--line); }
.faq-a p { max-width: 68ch; }
.faq-a p:last-child { margin-bottom: 0; }
/* Zeme + Māja teksta numurētās daļas (1., 2.) — tie paši izvēršamie rāmji kā BUJ, nedaudz kompaktāki */
.house-points { display: grid; gap: 10px; margin: 0 0 1em; }
.house-points .faq-item > summary { min-height: 52px; padding: 13px 18px; }
.house-points .faq-item > summary h3, .faq-static h3 { font-size: 1.05rem; margin: 0; }
.house-points .faq-a { margin: 0 18px; padding: 14px 0 16px; }
.faq-static { padding: 15px 18px; }

/* BUJ: virsraksts un ievads visā platumā, jautājumi divās neatkarīgās kolonnās (atverot vienu, otra nekustas) */
.faq-head .muted { max-width: none; }
.faq-cols { display: grid; gap: 12px; align-items: start; }
@media (min-width: 900px) {
  .faq-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
}
@media (max-width: 560px) { .faq-item > summary { padding: 14px 16px; } .faq-a { margin: 0 16px; } }

/* Kontakti un formas */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 820px) { .contact { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.contact-list li { display: flex; flex-direction: column; }
.contact-list span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-list a, .contact-list strong { font: 600 1.25rem/1.3 var(--serif); color: var(--brand); text-decoration: none; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: .92rem; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
/* Sākumlapas vizītes forma — kompakta: lauki rindās, zemāki ievades lauki, poga blakus piezīmei */
.panel-form { padding: 22px; }
.form-compact { gap: 12px; }
.form-compact .field { gap: 4px; }
.form-compact .field > span { font-size: .86rem; }
.form-compact .field-row { gap: 12px; }
.form-compact .field-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-compact input, .form-compact select, .form-compact textarea { padding: 8px 11px; }
.form-compact textarea { min-height: 64px; }
.form-compact .form-foot { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 2px; }
.form-compact .form-foot p { flex: 1 1 200px; margin: 0; }
@media (max-width: 560px) {
  .form-compact .field-row-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-compact .field-row-3 > :first-child { grid-column: 1 / -1; }
  .form-compact .form-foot .btn { width: 100%; }
}
input, select, textarea { width: 100%; font: inherit; color: inherit; background: #fff; border: 1px solid #cfcabd; border-radius: 10px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(47, 90, 69, .18); }
textarea { resize: vertical; }
.field-error { color: var(--danger); font-size: .88rem; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 10px; padding: 14px 16px; border: 1px solid; }
.notice-ok { background: #e3f1e7; border-color: #b9dcc4; color: #174f2f; }
.notice-error { background: #fbe7e4; border-color: #efc0b9; color: #7d2219; }

/* Filtri */
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(180px, 1.3fr) auto; gap: 14px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.filters label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.filter-actions { display: flex; gap: 8px; }
@media (max-width: 920px) { .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .filter-actions { grid-column: 1 / -1; } }
.result-count { margin: 0; font: 600 .95rem/1.4 var(--sans); letter-spacing: 0; color: var(--muted); }

/* Gabalu saraksts + karte */
.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 20px 0 16px; }
.filter-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 8px 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--brand); font-size: .88rem; font-weight: 600; text-decoration: none; }
.filter-chips a span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; background: var(--surface-2); font-size: 1rem; line-height: 1; }
.filter-chips a:hover { border-color: var(--brand-2); }
.filter-chips a:hover span { background: var(--brand); color: #fff; }
.list-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.view-toggle { display: none; margin-left: auto; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.view-toggle button { min-height: 38px; padding: 6px 16px; border: 0; border-radius: 999px; background: none; color: var(--brand); font: 600 .92rem var(--sans); cursor: pointer; }
.view-toggle button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.plots-layout { display: grid; gap: 24px; }
.grid-list { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.map.map-list { aspect-ratio: auto; height: 420px; margin-top: 0; }
.plots-map .map-legend { margin-top: 10px; }
.map-note { margin: 8px 0 0; }
.list-next { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }
.list-next a { font-weight: 600; }
.filters-toggle { display: none; }
@media (min-width: 1000px) {
  .plots-layout { grid-template-columns: minmax(0, 1fr) minmax(360px, 40%); align-items: start; gap: 28px; }
  .plots-map { position: sticky; top: 88px; }
  .map.map-list { height: calc(100vh - 210px); min-height: 420px; max-height: 760px; }
}
@media (max-width: 999px) {
  /* Ar JS: viens skats reizē (Saraksts | Karte). Bez JS: saraksts, zem tā karte. */
  .view-toggle:not([hidden]) { display: inline-flex; }
  .js-views[data-view="list"] .plots-map, .js-views[data-view="map"] .plots-list { display: none; }
  .js-views .map.map-list { height: 70vh; min-height: 360px; }
  .filters-toggle:not([hidden]) { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border: 1px solid var(--brand); border-radius: 999px; background: var(--surface); color: var(--brand); font: 600 .95rem var(--sans); cursor: pointer; }
  .filters-toggle[aria-expanded="true"] { background: var(--brand); color: #fff; }
  .filters-toggle .count { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .8rem; }
  .filters.js-collapsible { display: none; margin-top: 12px; }
  .filters.js-collapsible.open { display: grid; }
}
.empty { padding: 40px; text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty p:last-child { margin-bottom: 0; }
.empty-title { color: var(--text); font-weight: 600; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }

/* Gabala lapa */
.crumbs { padding-top: 22px; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.plot-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .plot-layout { grid-template-columns: minmax(0, 1fr); } }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--surface-2); border: 1px solid var(--line); }
.gallery-main img, .gallery-main .ph { width: 100%; height: 100%; object-fit: cover; }
.gallery-main img { cursor: zoom-in; }
.gallery-main .badge { position: absolute; top: 14px; left: 14px; }
.thumbs { position: relative; display: flex; gap: 10px; margin: 4px -6px 0; padding: 6px; overflow-x: auto; scrollbar-width: none; } /* atkāpe — lai fokusa rāmis netiek nogriezts */
.thumbs::-webkit-scrollbar { display: none; } /* rindu var vilkt ar pirkstu; aktīvo sīktēlu JS pabīda uz vidu */
.thumb { flex: none; width: 96px; aspect-ratio: 3 / 2; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; opacity: .7; }
.thumb[aria-current="true"] { border-color: var(--brand-2); opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.plot-title { margin-top: 28px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 24px 0 32px; }
.facts div { background: var(--surface); padding: 14px 18px; }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.chips { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: #e3ebe4; color: var(--brand); padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem; }
.plot-main .h3 { margin-top: 8px; }
.sticky { position: sticky; top: 92px; }
.price { font: 700 2rem/1.1 var(--serif); color: var(--brand); margin-bottom: 4px; }

/* Pilnekrāna bilde */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(10, 14, 12, .92); display: grid; place-items: center; padding: 24px; }
/* Viss attēls ekrānā neatkarīgi no proporcijām (režģa rindas augstums ir auto, tāpēc 100% neierobežo — vajag vw/vh). */
.lightbox img, .lightbox video { width: auto; height: auto; max-width: calc(100vw - 48px); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); object-fit: contain; border-radius: 6px; }
.lightbox video { width: min(calc(100vw - 48px), 1200px); background: #000; }
/* YouTube/Vimeo: 16:9 (Shorts — 9:16), cik liels ietilpst ekrānā */
.lightbox .lb-embed { display: block; border: 0; border-radius: 6px; background: #000; aspect-ratio: 16 / 9; width: min(calc(100vw - 48px), 1200px, calc((100dvh - 48px) * 16 / 9)); height: auto; }
.lightbox .lb-embed.is-portrait { aspect-ratio: 9 / 16; width: min(calc(100vw - 48px), calc((100dvh - 48px) * 9 / 16)); }
@media (min-width: 561px) { .lightbox .lb-embed { width: min(calc(100vw - 160px), 1200px, calc((100dvh - 48px) * 16 / 9)); } .lightbox .lb-embed.is-portrait { width: min(calc(100vw - 160px), calc((100dvh - 48px) * 9 / 16)); } } /* vieta bultiņām ‹ › sānos */
.lightbox button { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px; padding: 10px 16px; font: 600 1rem var(--sans); cursor: pointer; }

/* Kājene */
.site-footer { background: var(--brand); color: #d8e2dc; padding: 44px 0; }
.site-footer a { color: #fff; }
.site-footer .muted { color: #a9bcb1; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: start; }
.brand-footer { color: #fff; }
.brand-footer .logo-mark { color: #9cc3ad; }
.footer-contacts { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 18px 0 0; padding: 0; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); color: #d8e2dc; transition: background-color .2s, color .2s, border-color .2s; }
.social a:hover, .social a:focus-visible { background: #fff; color: var(--brand); border-color: #fff; }
.social svg { width: 20px; height: 20px; }
.footer-inner > .small { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
@media (max-width: 640px) { .footer-inner { grid-template-columns: minmax(0, 1fr); } .footer-contacts { text-align: left; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Admin priekšskatījums: paslēpta sadaļa */
.preview-hidden { position: relative; opacity: .55; outline: 2px dashed var(--warn); outline-offset: -6px; }
.preview-tag { margin: 0; padding-top: 14px; padding-bottom: 14px; font-weight: 700; color: var(--warn); }

/* Hero skaitļi: telefonā vienā kolonnā, lai cenas teksts ietilptu */
@media (max-width: 560px) { .stats { grid-template-columns: minmax(0, 1fr); } .stats dd { font-size: 1.25rem; } }

/* Kārtu atšifrējums */
.phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; margin-top: 8px; }
.phase h3, .phase .h3 { margin-bottom: 8px; }
.phase p { color: var(--muted); }
.phase p:last-child { margin-bottom: 0; }
.phase-note { margin: -8px 0 32px; }
.phase-note p { margin-bottom: 8px; }

/* Hero ar fona attēlu: tumšs pārklājums, lai teksts būtu salasāms */
.hero-photo { background: var(--brand); }
.hero-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero-bg.is-active { opacity: 1; }
.slides-toggle { position: absolute; right: 16px; bottom: 16px; z-index: 3; background: rgba(15, 25, 20, .55); color: #fff; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; padding: 6px 14px; font: 600 .85rem var(--sans); cursor: pointer; }
.slides-toggle:hover { background: rgba(15, 25, 20, .75); }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(14, 28, 21, .82) 0%, rgba(14, 28, 21, .55) 55%, rgba(14, 28, 21, .25) 100%); }
.hero-photo .hero-inner { z-index: 2; }
.hero-photo h1, .hero-photo .lead { color: #fff; }
.hero-photo .lead { opacity: .92; }
.hero-photo .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .7); }
.hero-photo .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.hero-photo::after { z-index: 1; }
@media (max-width: 820px) { .hero-photo::before { background: linear-gradient(180deg, rgba(14, 28, 21, .78) 0%, rgba(14, 28, 21, .6) 100%); } }

/* Sākumlapas galerija */
.photo-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.photo { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--surface-2); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.photo:hover img { transform: scale(1.03); }
@media (max-width: 560px) { .photo-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; } }

/* Galerija (foto un video): sākumlapas sadaļa un lapa /galerija */
.media-intro { margin: -8px 0 0; max-width: 62ch; }
.media-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 18px 14px; }
.media-item { margin: 0; }
.media-tile { position: relative; }
.media-noposter { display: block; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--brand) 0%, #2f5443 100%); }
.media-play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; transform: translate(-50%, -50%); border-radius: 999px; background: rgba(14, 28, 21, .62); box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); transition: background .2s, transform .2s; }
.media-play::after { content: ''; position: absolute; left: 23px; top: 18px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #fff; }
.media-tile.is-video { cursor: pointer; }
.media-tile:hover .media-play, .media-tile:focus-visible .media-play { background: rgba(14, 28, 21, .85); transform: translate(-50%, -50%) scale(1.06); }
.media-item figcaption { display: grid; gap: 2px; margin-top: 8px; font-size: .92rem; }
.media-item figcaption span { color: var(--text); }
@media (max-width: 560px) { .media-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 8px; } .media-play { width: 46px; height: 46px; } .media-play::after { left: 18px; top: 14px; border-width: 9px 0 9px 14px; } }

/* Galerijas pogas ‹ › (gabala lapā un pilnekrāna skatā) */
.gal-nav, .lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: grid; place-items: center; padding: 0 0 4px; border: 0; border-radius: 999px; font: 400 2rem/1 var(--sans); cursor: pointer; }
.gal-nav { background: rgba(255, 255, 255, .88); color: var(--brand); box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.gal-nav:hover { background: #fff; }
.gal-prev { left: 12px; }
.gal-next { right: 12px; }
.gal-count { position: absolute; right: 12px; bottom: 12px; background: rgba(15, 25, 20, .7); color: #fff; font-size: .85rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.lightbox .lb-nav { background: rgba(255, 255, 255, .14); color: #fff; right: auto; width: 56px; height: 56px; }
.lightbox .lb-nav:hover { background: rgba(255, 255, 255, .26); }
.lightbox .lb-prev { left: 16px; }
.lightbox .lb-next { left: auto; right: 16px; }
.lb-count { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); color: #fff; font-weight: 600; font-size: .95rem; }
@media (max-width: 560px) { .gal-nav { width: 40px; height: 40px; font-size: 1.7rem; } .lightbox .lb-nav { width: 44px; height: 44px; } .lightbox .lb-prev { left: 8px; } .lightbox .lb-next { right: 8px; } }

/* Sākumlapas karte: leģenda, ielu nosaukumi, uznirstošais logs */
.map-leaflet { aspect-ratio: 16 / 8; z-index: 0; margin-top: 16px; }
@media (max-width: 640px) { .map-leaflet { aspect-ratio: 3 / 4; } }
.map-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; padding: 0; font-size: .9rem; color: var(--muted); }
.map-legend li { display: flex; align-items: center; gap: 6px; }
.lg { width: 14px; height: 14px; border-radius: 3px; border: 2px solid; }
.lg-pieejams { background: rgba(46, 158, 79, .5); border-color: #2e9e4f; }
.lg-rezervets { background: rgba(230, 184, 0, .5); border-color: #e6b800; }
.lg-pardots { background: rgba(208, 52, 44, .5); border-color: #d0342c; }
.map-links { margin-top: 8px; }
.street-label { background: rgba(255, 255, 255, .85); border: 0; box-shadow: none; padding: 1px 6px; border-radius: 4px; font: 600 .75rem/1.3 var(--sans); color: #3b4540; white-space: nowrap; }
.street-label::before { display: none; }
.hide-street-labels .street-label { display: none; }
.plot-tip { font-weight: 600; }
.map-pop { display: grid; gap: 4px; min-width: 180px; font: .92rem/1.4 var(--sans); }
.map-pop .badge { justify-self: start; }
/* Kartes uznirstošajā logā statusa krāsas kā gabaliem kartē */
.map-pop .badge-rezervets { background: #fdf3c4; color: #7a5d00; border-color: #ecd36a; }
.map-error { position: absolute; inset: auto 0 0 0; z-index: 1000; margin: 0; padding: 8px 12px; background: #fbe7e4; color: #7d2219; }
.map-plot { aspect-ratio: 16 / 10; }
@media (max-width: 640px) { .map-plot { aspect-ratio: 4 / 3; } }

/* Partneri: kartītes ar foto, kategoriju, logo, aprakstu un saiti */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.partners { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
/* Lapa /partneri */
.partners-all { margin-top: 0; }
.partners-back { margin: 40px 0 0; }
.partner { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; transition: box-shadow .2s, transform .2s; }
.partner:hover { box-shadow: 0 2px 4px rgba(20, 30, 25, .06), 0 14px 32px rgba(20, 30, 25, .1); transform: translateY(-2px); }
.partner-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius) - 6px); background: var(--surface-2); }
.partner-body { display: flex; flex-direction: column; flex: 1; padding: 16px 14px 12px; }
.partner-cat { margin: 0 0 12px; font-size: .85rem; color: var(--muted); }
.partner-title { display: flex; align-items: center; min-height: 52px; margin: 0 0 12px; }
.partner-logo { display: block; max-width: min(100%, 200px); max-height: 52px; width: auto; height: auto; object-fit: contain; }
.partner-name { font: 600 1.3rem/1.2 var(--serif); color: var(--brand); }
.partner-text { margin: 0; color: var(--muted); font-size: .95rem; }
.partner-more { margin-top: auto; padding-top: 18px; align-self: flex-start; font-weight: 600; color: var(--brand); text-decoration: none; }
.partner-more:hover { text-decoration: underline; }
@media (max-width: 900px) { .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .partners { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* Tālruņi sludinājuma sānu kolonnā (admin: Tālruņi → "Sludinājuma lapā") */
.side-phones { list-style: none; margin: 14px 0 18px; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.side-phones li { display: flex; flex-direction: column; }
.side-phones span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.side-phones a { font: 600 1.1rem/1.3 var(--serif); color: var(--brand); text-decoration: none; }
.side-phones a:hover { text-decoration: underline; }
.footer-contacts .phone-label { opacity: .75; font-weight: 400; }
/* "Tava vieta…": poga uz galeriju zem 6 attēliem */
.feel-more { margin: 24px 0 0; text-align: center; }
@media (min-width: 561px) { .photo-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Zeme + Māja: telefonā attēli virs hipotēkas kalkulatora (teksta kolonnas beigās), datorā — sadaļas apakšā */
.house-photos-mobile { display: none; }
@media (max-width: 820px) {
  .house-photos-mobile { display: block; }
  .house-photos-mobile .house-photos { margin-top: 24px; }
  .house-photos-desktop { display: none; }
}
/* Galvenes logo (admin → Attēli → Logo) */
.brand-logo { display: block; height: 40px; width: auto; max-width: 120px; object-fit: contain; flex: none; border-radius: 6px; } /* ikonas vietā; teksts paliek blakus */
/* Josla "Lapa izstrādes procesā" (admin sākumlapā — ieslēgt/izslēgt) */
.dev-banner { background: #9a5b0f; color: #fff; padding: 16px 20px; text-align: center; font: 700 clamp(1.05rem, 2.4vw, 1.3rem)/1.35 var(--sans); letter-spacing: .01em; }
.dev-banner::before { content: "🚧"; margin-right: .5em; }
/* Pieslēgtam adminam — atgādinājums (mazāks), ka apmeklētāji redz tikai sākumlapu */
.dev-banner-admin { background: #f4e7c3; color: #4a3a12; border-bottom: 1px solid #e3cf95; padding: 9px 16px; font: 500 .92rem/1.4 var(--sans); }
.dev-banner-admin::before { content: none; }
.dev-banner-admin a { color: inherit; font-weight: 700; }
.dev-form-off h3 { margin: 0 0 8px; }
.dev-form-off p { margin: 0; }

/* Sīkdatņu josla (public/js/consent.js) */
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.site-footer .link-btn { color: #d8e2dc; }
.site-footer .link-btn:hover { color: #fff; }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; display: flex; justify-content: center; pointer-events: none; }
.consent[hidden] { display: none; }
.consent-inner { pointer-events: auto; max-width: 760px; width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(20, 30, 25, .22); padding: 18px 20px; display: flex; gap: 14px 20px; align-items: center; }
.consent-inner p { margin: 0; font-size: .92rem; line-height: 1.5; }
.consent-inner strong { color: var(--brand); }
.consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 640px) {
  .consent { left: 10px; right: 10px; bottom: 10px; }
  .consent-inner { flex-direction: column; align-items: stretch; padding: 16px; }
  .consent-actions .btn { flex: 1; }
}

/* Telefona josla apakšā (Zvanīt / Pieteikt apskati) — tikai šauriem ekrāniem */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(247, 245, 239, .96); backdrop-filter: saturate(1.4) blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(20, 30, 25, .08); }
  .callbar[hidden] { display: none; }
  .callbar .btn { flex: 1; padding: 12px 10px; }
  body:has(.callbar) .site-footer { padding-bottom: 110px; }
}
