:root {
  --bg: #faf7f2;
  --ink: #1c1a17;
  --muted: #7a746b;
  --line: #e5dfd5;
  --accent: #9a6b3f;
  --gold: #c9a45e;
  --brand-green: #023721;  /* piktogrammas zaļais no autora zīmola plāksnes */
  --cream: #f4ead8;
  /* Old Standard TT ir tikai 400 un 700 — displeja tekstiem lietojam 400 */
  --surface: #faf7f2;   /* fons mobilajai izvēlnei un atvērtai galvenei */
  --serif: 'Old Standard TT', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

.is-hidden { display: none !important; }

/* ===== Intro ===== */
.intro {
  position: fixed; inset: 0; z-index: 100;
  background: #0a0908;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 1.2s ease;
}
.intro.is-fading { opacity: 0; pointer-events: none; }
.intro__bg {
  position: absolute; inset: -40px; /* kompensē blur malas */
  width: calc(100% + 80px); height: calc(100% + 80px);
  object-fit: cover;
  /* stiprāks izplūdums un tuvāks spilgtums — lai kadra malas pāriet fonā bez lēciena */
  filter: blur(26px) brightness(0.82) saturate(1.35);
  transform: scale(1.05);
}
/* Intro kadrs tiek palielināts, līdz aizņem pēc iespējas vairāk ekrāna,
   bet ne vairāk kā par 20 % apgriežot pašu attēlu (160vh = 1,2 × dabiskais platums).
   Tāpēc platekrāna logā joslas paliek šauras, un neviena aina netiek pārgriezta uz pusēm. */
.intro__video {
  position: absolute; inset: 0; margin: auto;
  width: min(100%, 160vh); height: 100%; object-fit: cover;
}
/* Kur joslas tomēr paliek, mala izgaist 28 px platā pārejā — bez asas līnijas. */
@media (min-aspect-ratio: 4/3) {
  .intro__video {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  }
}
/* Planšetē portreta režīmā horizontālais video citādi tiktu apgriezts uz pusi,
   tāpēc te to ievieto veselu un izgaišana ir augšā un apakšā. */
@media (max-aspect-ratio: 4/3) and (min-aspect-ratio: 0.7) {
  .intro__video {
    width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  }
}
/* Telefonā vertikālā versija aizņem visu ekrānu — joslu nav, tāpēc arī izgaišana nav vajadzīga. */
@media (max-aspect-ratio: 0.7) {
  .intro__video {
    width: 100%; height: 100%; object-fit: cover;
    -webkit-mask-image: none; mask-image: none;
  }
}
.intro__overlay {
  position: absolute; inset: 0;
  background: rgba(8, 6, 4, 0);
  transition: background 1.5s ease;
}
.intro.is-titled .intro__overlay { background: rgba(8, 6, 4, 0.66); }
.intro__title {
  position: relative;
  font-family: var(--serif);
  font-weight: 500;
  /* garš teksts — mērens kegls un ierobežots platums lasāmībai */
  font-size: clamp(1.1rem, 2.4vw, 2.05rem);
  line-height: 1.5;
  max-width: 24em;
  color: #f5efe4;
  letter-spacing: 0.025em;
  text-align: center;
  padding: 0 clamp(1.5rem, 6vw, 3rem);
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 2s ease, transform 2s ease;
}
.intro.is-titled .intro__title { opacity: 1; transform: translateY(0); }
.intro__skip {
  position: absolute; bottom: 2rem; right: 2rem;
  background: none; border: 1px solid rgba(245, 239, 228, 0.4);
  color: rgba(245, 239, 228, 0.85);
  font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.12em;
  padding: 0.6rem 1.2rem; border-radius: 2rem; cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.intro__skip:hover { background: rgba(245, 239, 228, 0.12); border-color: rgba(245, 239, 228, 0.8); }

/* ===== Header ===== */
.site { min-height: 100vh; display: flex; flex-direction: column; animation: siteIn 1s ease; }
@keyframes siteIn { from { opacity: 0; } to { opacity: 1; } }

.header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem clamp(1.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px); z-index: 20;
}
/* Zīmola bloks pēc autora plāksnes 4. varianta:
   piktogramma | vertikāla svītra | BERŽINSKIS, zem tā vārds un profesija.
   Zaļš ir tikai piktogrammā — pārējais teksts paliek lapas tumšajā tonī. */
.header__brand {
  text-decoration: none; line-height: 1.1;
  display: flex; align-items: center; gap: 0.8rem;
}
.header__mark {
  width: 30px; flex: none;
  color: var(--brand-green); transition: color 0.4s ease;
}
.header__names {
  padding-left: 0.8rem;
  border-left: 1px solid rgba(120, 112, 100, 0.35);
  transition: border-color 0.4s ease;
}
.header__logo {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
  color: var(--ink); letter-spacing: 0.16em; text-transform: uppercase;
  display: block; transition: color 0.4s ease;
}
.header__tagline {
  display: block; margin-top: 0.3rem;
  font-size: 0.55rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); transition: color 0.4s ease;
}
.header__tagline span { display: block; }
.header__role { margin-top: 0.12rem; }
.header__nav { display: flex; gap: 2.2rem; white-space: nowrap; }
.header__nav a {
  color: var(--muted); text-decoration: none; font-size: 0.85rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding-bottom: 3px; border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.header__nav a:hover, .header__nav a.is-active { color: var(--ink); border-color: var(--accent); }

/* Uz darbvirsmas: navigācija centrā, valoda un intro pa labi, grozs malā */
.header__menu {
  display: flex; align-items: center; flex: 1;
  gap: 0.9rem; margin-left: clamp(1rem, 3vw, 2.5rem);
}
.header__nav { margin-inline: auto; }
.header__actions { display: flex; align-items: center; gap: 0.9rem; margin-left: 0.9rem; }
.header__scrim { display: none; }
/* pogas krāsa seko lapas galvenei, tāpat kā grozam */
.burger { display: none; color: var(--ink); }
.site[data-page="home"] .header .burger { color: var(--ink); }
.site[data-page="home"] .header.is-solid .burger { color: var(--cream); }
.site[data-page="book"] .header .burger { color: #f2ede4; }
.cart-btn {
  position: relative; background: none; border: none; cursor: pointer;
  color: var(--ink); padding: 0.4rem; display: flex;
}
.cart-btn__count {
  position: absolute; top: -2px; right: -4px;
  background: var(--accent); color: #fff;
  font-size: 0.62rem; font-weight: 500;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
/* ===== Valodu pārslēgs ===== */
.lang { display: flex; align-items: center; }
.lang button {
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.14em; color: var(--muted);
  padding: 0.35rem 0.5rem; position: relative;
  transition: color 0.25s ease;
}
.lang button + button::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 1px; height: 10px; margin-top: -5px;
  background: currentColor; opacity: 0.35;
}
.lang button:hover,
.lang button.is-active { color: var(--ink); }
.lang button.is-active::after {
  content: ''; position: absolute; left: 0.5rem; right: 0.5rem; bottom: 0.05rem;
  height: 1px; background: var(--accent);
}

.replay-btn {
  display: flex; align-items: center; gap: 0.45rem;
  background: none; border: 1px solid var(--line); color: var(--muted);
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.5rem 0.95rem; border-radius: 2rem; cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}
.replay-btn:hover { color: var(--ink); border-color: var(--accent); }

/* ===== Caurspīdīga galvene virs sākumlapas foto ===== */
.site[data-page="home"] .header {
  position: fixed; left: 0; right: 0;
  background: transparent; backdrop-filter: none;
  border-bottom-color: transparent;
  transition: background 0.5s ease, border-color 0.5s ease, padding 0.5s ease, backdrop-filter 0.5s ease;
}
/* virs gaišā studijas foto teksts ir tumšs */
.site[data-page="home"] .header .header__logo { color: var(--ink); }
.site[data-page="home"] .header .header__tagline { color: var(--muted); }
.site[data-page="home"] .header .header__nav a { color: rgba(28, 26, 23, 0.7); }
.site[data-page="home"] .header .header__nav a:hover,
.site[data-page="home"] .header .header__nav a.is-active { color: var(--ink); border-color: var(--accent); }
.site[data-page="home"] .header .cart-btn { color: var(--ink); }
.site[data-page="home"] .header .lang button { color: rgba(28, 26, 23, 0.55); }
.site[data-page="home"] .header .lang button:hover,
.site[data-page="home"] .header .lang button.is-active { color: var(--ink); }
.site[data-page="home"] .header .lang button.is-active::after { background: var(--accent); }
.site[data-page="home"] .header .replay-btn { color: rgba(28, 26, 23, 0.7); border-color: rgba(28, 26, 23, 0.25); }
.site[data-page="home"] .header .replay-btn:hover { color: var(--ink); border-color: var(--accent); }

/* Aizritinot garām hero, sākas tumšā zāle — galvene pārslēdzas uz tumšu */
.site[data-page="home"] .header.is-solid {
  background: rgba(20, 16, 11, 0.9); backdrop-filter: blur(10px);
  border-bottom-color: rgba(201, 164, 94, 0.14);
}
.site[data-page="home"] .header.is-solid .header__logo { color: var(--cream); }
.site[data-page="home"] .header.is-solid .header__tagline { color: rgba(244, 234, 216, 0.6); }
/* uz tumša fona zaļš pazustu — piktogramma paliek gaiša, kā autora 2. un 6. variantā */
.site[data-page="home"] .header.is-solid .header__mark { color: var(--cream); }
.site[data-page="home"] .header.is-solid .header__names { border-left-color: rgba(244, 234, 216, 0.3); }
.site[data-page="home"] .header.is-solid .header__nav a { color: rgba(244, 234, 216, 0.72); }
.site[data-page="home"] .header.is-solid .header__nav a:hover,
.site[data-page="home"] .header.is-solid .header__nav a.is-active { color: var(--cream); border-color: var(--gold); }
.site[data-page="home"] .header.is-solid .cart-btn { color: var(--cream); }
.site[data-page="home"] .header.is-solid .lang button { color: rgba(244, 234, 216, 0.6); }
.site[data-page="home"] .header.is-solid .lang button:hover,
.site[data-page="home"] .header.is-solid .lang button.is-active { color: var(--cream); }
.site[data-page="home"] .header.is-solid .lang button.is-active::after { background: var(--gold); }
.site[data-page="home"] .header.is-solid .replay-btn { color: rgba(244, 234, 216, 0.8); border-color: rgba(244, 234, 216, 0.35); }

/* ===== Main ===== */
main { flex: 1; padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 4rem); max-width: 1280px; width: 100%; margin: 0 auto; }

.page-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem); letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
}
.page-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 2.5rem; }

/* ===== Sākumlapa: pilnekrāna hero ===== */
main[data-page="home"] { padding: 0; max-width: none; }

.hero-full {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; overflow: hidden;
  background: #100c08;
}
.hero-full picture { display: contents; }
.hero-full__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
  animation: heroZoom 30s ease-in-out infinite alternate;
}
/* Foto variants tiek izvēlēts pēc ekrāna proporcijām — sk. <picture> sākumlapā */
@media (max-aspect-ratio: 1.45) { .hero-full__img { object-position: center 46%; } }
@media (max-aspect-ratio: 0.85) { .hero-full__img { object-position: center 50%; } }
@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1.1); } }

/* foto ir gaišs (balta studija) — tāpēc arī plīvurs ir gaišs */
.hero-full__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 18%,
    rgba(255, 255, 255, 0) 52%, rgba(255, 255, 255, 0.82) 78%, #ffffff 100%);
}
/* foto ir simetrisks — teksts stāv centrā uz baltās grīdas */
.hero-full__content {
  position: relative; width: 100%; max-width: 1560px; margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem) clamp(2rem, 6vh, 3.5rem);
  text-align: center;
}
.hero-full__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 3.1rem); line-height: 1.1;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); text-shadow: 0 2px 26px rgba(255, 255, 255, 0.85);
  margin-bottom: clamp(1.1rem, 2.6vh, 1.8rem);
}
/* flex kolonna, lai negatīvās malas nesaplūst un rindstarpa paliek precīza */
.hero-full__title { display: flex; flex-direction: column; align-items: center; }
.hero-full__title .line {
  display: block; overflow: hidden;
  /* atkāpe, lai maska neapgriež burtu astes (J), komatus un garumzīmes */
  padding: 0.1em 0.08em 0.2em;
  margin: -0.1em -0.08em -0.2em;
}
.hero-full__title .line > span {
  display: block;
  animation: lineUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-full__title .line:nth-child(2) > span { animation-delay: 0.16s; }
@keyframes lineUp { from { transform: translateY(110%); } to { transform: none; } }

.btn-outline {
  display: inline-block; position: relative; overflow: hidden;
  border: 1px solid rgba(244, 234, 216, 0.45); color: #f4ead8;
  text-decoration: none; background: transparent;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase;
  padding: 1.05rem 2.8rem;
  transition: border-color 0.45s ease, color 0.45s ease;
  animation: fadeUp 1.2s ease 0.55s both;
}
.btn-outline::before {
  content: ''; position: absolute; inset: 0; background: var(--gold);
  transform: translateY(101%); transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); z-index: -1;
}
.btn-outline { z-index: 0; }
.btn-outline:hover { border-color: var(--gold); color: #16120c; }
.btn-outline:hover::before { transform: none; }
/* variants gaišam fonam — sākumlapas foto */
.btn-outline--ink { border-color: rgba(28, 26, 23, 0.4); color: var(--ink); }
.btn-outline--ink::before { background: var(--ink); }
.btn-outline--ink:hover { border-color: var(--ink); color: var(--cream); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Ritināšanas mājiens */
.hero-full__hint {
  position: absolute; right: clamp(1.5rem, 5vw, 4rem); bottom: clamp(3.5rem, 11vh, 7rem);
  display: flex; align-items: center; gap: 0.9rem;
  color: rgba(28, 26, 23, 0.5); font-size: 0.6rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  animation: fadeUp 1.2s ease 1s both;
}
.hero-full__hint i { display: block; width: 54px; height: 1px; background: rgba(28, 26, 23, 0.3); position: relative; overflow: hidden; }
.hero-full__hint i::after {
  content: ''; position: absolute; inset: 0; background: var(--gold);
  animation: hintSweep 2.6s ease-in-out infinite;
}
@keyframes hintSweep { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }
@media (max-width: 760px) { .hero-full__hint { display: none; } }

/* ===== Zāle: stāsts un darbi uz spodrās grīdas (turpina tumšo ainu) ===== */
.hall {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 0%, #241c13 0%, #16110b 55%, #100c07 100%);
  padding: clamp(6rem, 14vh, 9rem) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 8vh, 5rem);
}
/* mīksta pāreja no gaišā studijas foto uz tumšo zāli */
.hall::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 130px;
  z-index: -2; pointer-events: none;
  background: linear-gradient(to bottom, #ffffff 0%, rgba(255, 255, 255, 0.55) 40%, rgba(255, 255, 255, 0) 100%);
}
/* silta gaisma no augšas, kā no arkas hero foto */
.hall__ambient {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(closest-side at 50% -8%, rgba(255, 216, 158, 0.16), transparent 70%);
}
/* gaismas loks, kas seko kursoram */
.hall__spot {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 40%), rgba(255, 208, 140, 0.15), transparent 68%);
  mix-blend-mode: screen; opacity: 0; transition: opacity 0.6s ease;
}
.hall.is-lit .hall__spot { opacity: 1; }

/* grīdas līnija zem darbiem */
.hall::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  z-index: -2; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(60, 42, 22, 0.28) 45%, rgba(0, 0, 0, 0.45));
}

/* --- Ievads: asimetrisks, nevis centrēts --- */
.hall__intro {
  max-width: 1180px; margin: 0 auto clamp(3rem, 8vh, 5.5rem);
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: start;
}
.hall__eyebrow {
  display: block; margin-bottom: 1rem;
  font-size: 0.6rem; letter-spacing: 0.38em; text-transform: uppercase; color: var(--gold);
}
.hall__eyebrow::before {
  content: ''; display: inline-block; width: 34px; height: 1px; margin-right: 0.9rem;
  vertical-align: middle; background: var(--gold); opacity: 0.6;
}
.hall__title {
  font-family: var(--serif); font-weight: 500; line-height: 1.08;
  font-size: clamp(2rem, 4vw, 3.4rem); color: #f5ecdb;
}
.hall__body p { color: rgba(244, 234, 216, 0.6); line-height: 1.9; font-size: 0.97rem; }
.hall__body p + p { margin-top: 1.1rem; }
.hall__drop::first-letter {
  float: left; font-family: var(--serif); font-size: 3.5em; line-height: 0.8;
  padding: 0.06em 0.14em 0 0; color: var(--gold);
}

/* --- Darbi --- */
.hall__works {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2.6rem); align-items: start;
}
.work { position: relative; cursor: pointer; margin: 0; }
/* pacēlums un parallakss tikai rāmim ar atspulgu — plāksnītes paliek vienā līnijā */
.work__stage { transform: translateY(calc(var(--lift, 0px) + var(--shift, 0px))); }
.work__frame {
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.55s ease;
}
.work:hover .work__frame { transform: rotate(0deg) translateY(-10px) scale(1.015); filter: brightness(1.08); }

/* atspulgs uz grīdas — rāda apgrieztu rāmja apakšu */
.work__mirror {
  position: relative; overflow: hidden; aspect-ratio: 2.4;
  margin-top: 5px; opacity: 0.3; filter: blur(1.4px);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 72%);
          mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 72%);
  transition: opacity 0.55s ease;
}
.work__mirror-in { transform: scaleY(-1) rotate(calc(-1 * var(--tilt, 0deg))); }
.work:hover .work__mirror { opacity: 0.42; }

/* muzeja plāksnīte */
.work__plate { margin-top: clamp(0.6rem, 1.6vh, 1.2rem); text-align: center; }
.work__name {
  display: block; font-family: var(--serif); font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: rgba(245, 236, 219, 0.82); transition: color 0.4s ease;
}
.work__meta {
  display: block; margin-top: 0.3rem;
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(201, 164, 94, 0.65); transition: color 0.4s ease;
}
.work:hover .work__name { color: #fbf4e6; }
.work:hover .work__meta { color: var(--gold); }

/* --- Poga ar matu līnijām abās pusēs --- */
/* Autora emocionālais paraksts — noslēdz sākumlapu klusi, bez uzsvara */
.motto {
  max-width: 1180px; margin: clamp(3.5rem, 9vh, 6rem) auto 0;
  text-align: center; font-family: var(--serif);
  font-size: clamp(0.82rem, 1.5vw, 1rem);
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 760px) {
  .motto { letter-spacing: 0.2em; font-size: 0.78rem; }
}

.hall__cta {
  max-width: 1180px; margin: clamp(3rem, 8vh, 5.5rem) auto 0;
  display: flex; align-items: center; gap: clamp(1rem, 4vw, 2.5rem);
}
.hall__cta::before, .hall__cta::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, rgba(201, 164, 94, 0.32), transparent);
}
.hall .btn-outline { animation: none; } /* parādās kopā ar .reveal */

@media (max-width: 860px) {
  .hall__intro { grid-template-columns: 1fr; gap: 1.6rem; }
  .hall__works { grid-template-columns: 1fr; gap: 2.5rem; max-width: 460px; }
  .work__stage { transform: none !important; }
  .work__mirror { aspect-ratio: 3.2; }
}
.btn {
  display: inline-block; background: var(--ink); color: #fff;
  border: none; cursor: pointer; text-decoration: none;
  font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.95rem 2.4rem; border-radius: 2rem;
  transition: background 0.3s;
}
.btn:hover { background: var(--accent); }
.btn--ghost { background: none; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { background: none; border-color: var(--accent); color: var(--accent); }
.btn--full { width: 100%; text-align: center; }

.home-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; margin-top: 3.5rem; }
.home-strip .art { aspect-ratio: 1/1; }
.home-strip__item { cursor: pointer; }
.home-strip__item .frame { transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.home-strip__item:hover .frame { transform: translateY(-6px) rotate(0.5deg); }
.home-strip__item:nth-child(2):hover .frame { transform: translateY(-6px) rotate(-0.5deg); }

/* ===== Vecmeistaru rāmis ===== */
.frame {
  position: relative;
  padding: clamp(10px, 1.4vw, 16px);
  background:
    linear-gradient(135deg, #8a6a2f 0%, #d9b95c 18%, #f3e3a3 32%, #b08d3e 50%, #e8d28a 68%, #7a5c26 88%, #a8853c 100%);
  border-radius: 3px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 244, 200, 0.55),
    inset 0 0 0 3px rgba(90, 66, 24, 0.45),
    0 1px 2px rgba(28, 26, 23, 0.25),
    0 14px 34px -14px rgba(28, 26, 23, 0.4);
}
.frame::before { /* iekšējā zelta līste */
  content: '';
  position: absolute; inset: 6px; pointer-events: none;
  border: 1px solid rgba(255, 246, 210, 0.7);
  outline: 1px solid rgba(80, 58, 20, 0.5);
  outline-offset: 1px;
  border-radius: 2px;
  z-index: 2;
}
.frame__mat { /* paspartū */
  background: #f6f1e6;
  padding: clamp(8px, 1.2vw, 14px);
  box-shadow: inset 0 1px 4px rgba(28, 26, 23, 0.22);
  position: relative;
}
.frame__mat::after { /* smalka līnija ap darbu */
  content: '';
  position: absolute; inset: clamp(4px, 0.7vw, 8px); pointer-events: none;
  border: 1px solid rgba(154, 107, 63, 0.35);
}
.frame .art { border-radius: 0; }
/* darbs paspartū ietvarā redzams pilnībā — nekas netiek nogriezts */
.art__img {
  display: block; width: 100%; height: 100%;
  object-fit: contain; background: #f6f1e6;
}
.frame--ornate .frame__corner {
  position: absolute; width: 34px; height: 34px; z-index: 3;
  color: #6e5220; opacity: 0.9; pointer-events: none;
  filter: drop-shadow(0 1px 1px rgba(255, 240, 190, 0.6));
}
.frame__corner--tl { top: -7px; left: -7px; }
.frame__corner--tr { top: -7px; right: -7px; transform: rotate(90deg); }
.frame__corner--br { bottom: -7px; right: -7px; transform: rotate(180deg); }
.frame__corner--bl { bottom: -7px; left: -7px; transform: rotate(270deg); }

/* ===== Lapas pāreja ===== */
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
main.page-enter { animation: pageIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ===== Atklāšanās ritinot ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-inview { opacity: 1; transform: none; }
/* elementiem, kam transform jau aizņemts (piem. parallakss) — tikai caurspīdīgums */
.reveal-fade { opacity: 0; transition: opacity 0.9s ease; }
.reveal-fade.is-inview { opacity: 1; }

/* Lēna "elpošana" mākslas darbiem */
@keyframes artDrift {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}
.art svg, .art img { transition: transform 0.6s ease; }
.card:hover .frame .art svg { animation: artDrift 6s ease-in-out infinite; }

/* ===== Galerijas siena: pelnu pelēks apmetums ar plankumiem un graudu ===== */
.site[data-page="gallery"] {
  --surface: #efedE8;
  background-color: #f2f0ec;
  background-image:
    /* 1. smalks graudiņš — filtra apgabals precīzi pa flīzi, lai nav šuvju */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E"),
    /* 2. lieli mākoņveida plankumi — viena flīze uz visu ekrānu, bez atkārtojuma */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='1400'%3E%3Cfilter id='c' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='1400' height='1400' filter='url(%23c)' opacity='0.55'/%3E%3C/svg%3E"),
    /* 3. plašās gaismas un ēnas zonas */
    radial-gradient(58% 42% at 16% 20%, rgba(255, 255, 255, 0.95), transparent 62%),
    radial-gradient(52% 38% at 82% 14%, rgba(178, 174, 167, 0.55), transparent 64%),
    radial-gradient(46% 40% at 60% 54%, rgba(255, 255, 255, 0.85), transparent 60%),
    radial-gradient(54% 46% at 22% 76%, rgba(172, 168, 161, 0.5), transparent 66%),
    radial-gradient(44% 34% at 92% 78%, rgba(255, 255, 255, 0.8), transparent 62%),
    radial-gradient(38% 30% at 48% 96%, rgba(168, 164, 157, 0.45), transparent 64%);
  background-size: 260px 260px, 100% 100%, auto, auto, auto, auto, auto, auto;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: fixed;
  background-blend-mode: soft-light, multiply, normal, normal, normal, normal, normal, normal;
}
/* galvene — vienlaidu sienas tonis, lai zem tās teksts neizspīd cauri */
.site[data-page="gallery"] .header {
  background: #efedE8; backdrop-filter: none;
  border-bottom-color: rgba(120, 112, 100, 0.16);
}
.site[data-page="gallery"] .footer { border-top-color: rgba(120, 112, 100, 0.16); }

/* ===== Izvēles lauks (kartīšu lapas filtri) ===== */
.sort__field { position: relative; display: inline-flex; align-items: center; }
.sort__field::after {
  content: ''; position: absolute; right: 0.55rem; top: 50%; margin-top: -2px;
  width: 6px; height: 6px; border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted);
  transform: rotate(45deg) translate(-1px, -1px); pointer-events: none;
}
.sort__field select {
  appearance: none; -webkit-appearance: none;
  background: none; border: 1px solid var(--line); border-radius: 2rem;
  font-family: var(--sans); font-size: 0.72rem; color: var(--ink);
  padding: 0.5rem 2rem 0.5rem 1rem; cursor: pointer;
  transition: border-color 0.25s ease;
}
.sort__field select:hover { border-color: var(--accent); }
.sort__field select:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

/* ===== 3D karuselis: darbi lidinās telpā ===== */
/* pilnā ekrāna platumā, ārā no `main` iekšējām malām */
.cover {
  position: relative; /* bultiņas tagad novietojas pret sadaļu, ne pret skatuvi */
  --vw: calc(100vw - var(--sbw, 0px));
  width: var(--vw); margin-left: calc(50% - var(--vw) / 2);
  margin-top: clamp(0.5rem, 2vh, 1.5rem); margin-bottom: clamp(2rem, 6vh, 4rem);
}

.cover__stage {
  position: relative;
  min-height: 320px; /* precīzo augstumu uzstāda syncCoverHeight() */
  perspective: 1700px; perspective-origin: 50% 50%;
  touch-action: pan-y; cursor: grab;
  /* sānu darbi neizstiepj lapu; pie malām tie izgaist, nevis tiek nocirsti */
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.cover__stage:active { cursor: grabbing; }
.cover__track { position: absolute; inset: 0; transform-style: preserve-3d; }

/* Katram darbam sava forma: augstums visiem vienāds, platums seko proporcijai.
   Tā rāmji ir dažādi, bet skatuve nelēkā, pārslēdzoties starp tiem. */
.cover__item {
  --art-h: clamp(200px, 46vh, 460px);
  position: absolute; top: 50%; left: 50%;
  width: auto; /* platumu nosaka pats darbs */
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.6s ease, filter 0.6s ease;
  cursor: pointer;
}
.cover__item.is-active { cursor: zoom-in; }
/* visiem darbiem vienāds augstums, platums pēc proporcijas — kā uz sienas */
.cover__item .art {
  aspect-ratio: auto;
  height: var(--art-h);
  width: calc(var(--art-h) * var(--ratio, 1));
}
.cover__float { position: relative; animation: levitate 6.5s ease-in-out infinite; }
@keyframes levitate {
  0%, 100% { transform: translateY(-8px); }
  50%      { transform: translateY(8px); }
}
/* ēna uz grīdas pulsē pretēji lidojumam — tas rada pacēluma sajūtu */
.cover__shadow {
  position: absolute; left: 50%; bottom: -30px;
  width: 78%; height: 26px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(48, 38, 22, 0.4), transparent 70%);
  filter: blur(7px);
  animation: levitateShadow 6.5s ease-in-out infinite;
}
@keyframes levitateShadow {
  0%, 100% { opacity: 0.35; transform: translateX(-50%) scale(0.86); }
  50%      { opacity: 0.6;  transform: translateX(-50%) scale(1.06); }
}
.cover__item.is-active .frame { box-shadow: inset 0 0 0 1px rgba(255, 244, 200, 0.55), inset 0 0 0 3px rgba(90, 66, 24, 0.45), 0 30px 60px -22px rgba(28, 26, 23, 0.55); }

/* Telefonā karuselis ir smags: maska liek visu 3D ainu zīmēt blakus buferī,
   ēnas izplūdums un mūžīgā lidošana notiek katram no darbiem, bet
   backdrop-filter uz bultiņām maksā katrā kadrā. Telefonā to visu noņemam. */
@media (max-width: 760px) {
  .cover__stage { -webkit-mask-image: none; mask-image: none; }
  .cover__float { animation: none; }
  .cover__shadow { animation: none; filter: none; opacity: 0.3; }
  .cover__nav { backdrop-filter: none; background: rgba(255, 255, 255, 0.82); }
  .cover__item.is-active .frame { box-shadow: inset 0 0 0 1px rgba(255, 244, 200, 0.55), inset 0 0 0 3px rgba(90, 66, 24, 0.45); }
}

/* bultiņas */
.cover__nav {
  position: absolute; top: 50%; margin-top: -22px; z-index: 30;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(120, 112, 100, 0.25);
  color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.cover__nav svg { width: 20px; height: 20px; }
.cover__nav:hover { background: #fff; border-color: var(--accent); transform: scale(1.08); }
.cover__nav--prev { left: clamp(0.75rem, 3vw, 3rem); }
.cover__nav--next { right: clamp(0.75rem, 3vw, 3rem); }

/* apraksts zem izvēlētā darba */
.cover__info {
  max-width: 560px; margin: 0 auto; padding: 0 1.5rem; text-align: center;
}
.cover__info .btn { display: inline-block; width: auto; padding-inline: 2.6rem; }
.cover__info.is-swap { animation: infoIn 0.55s ease both; }
@keyframes infoIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.cover__cat { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.cover__title {
  font-family: var(--serif); font-weight: 600; line-height: 1.15;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin: 0.5rem 0 0.4rem;
}
.cover__size { display: block; color: var(--muted); font-size: 0.82rem; }
.cover__desc { color: #4c4640; line-height: 1.8; font-size: 0.92rem; margin: 1rem 0 1.3rem; }
/* Darbi bez cenas: klusa rinda tur, kur citiem ir summa un poga */
.cover__title--soon { color: var(--muted); font-style: italic; }
.cover__ask {
  display: block; margin-bottom: 1.1rem;
  font-family: var(--serif); font-size: 1.15rem; color: var(--muted);
}

.cover__price {
  display: block; font-family: var(--serif); font-size: 1.7rem;
  font-weight: 600; color: var(--accent); margin-bottom: 1.1rem;
}

/* lapotājs: punkti vai skaitītājs ar sliedi */
.cover__pager {
  display: flex; align-items: center; justify-content: center;
  gap: 0.7rem; margin: clamp(1.2rem, 3vh, 2rem) 0 clamp(1.2rem, 3vh, 1.8rem);
}
.cover__dot {
  width: 9px; height: 9px; border-radius: 50%; padding: 0; cursor: pointer;
  background: none; border: 1px solid rgba(120, 112, 100, 0.5);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.cover__dot:hover { border-color: var(--accent); }
.cover__dot.is-active { background: var(--accent); border-color: var(--accent); transform: scale(1.2); }
.cover__counter {
  font-family: var(--serif); font-size: 1rem; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cover__counter--total { color: var(--muted); }
.cover__rail { width: clamp(90px, 18vw, 220px); height: 1px; background: rgba(120, 112, 100, 0.3); position: relative; }
.cover__rail i { position: absolute; left: 0; top: -1px; height: 3px; background: var(--accent); transition: width 0.5s ease; }

@media (max-width: 900px) {
  .cover__item { --art-h: clamp(180px, 34vh, 320px); }
  .cover__nav { width: 38px; height: 38px; }
  .cover__desc { font-size: 0.88rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cover__float, .cover__shadow { animation: none; }
}

.art { position: relative; overflow: hidden; }
.art svg { display: block; width: 100%; height: 100%; }

@media (max-width: 760px) {
  .home-strip { grid-template-columns: 1fr; }
}

/* ===== Galvenes adaptācija šaurākiem ekrāniem ===== */
@media (max-width: 1080px) {
  .header { padding: 1.1rem clamp(1rem, 4vw, 2rem); gap: 1rem; }
  .header__nav { gap: 1.4rem; }
  .header__nav a { font-size: 0.76rem; letter-spacing: 0.1em; }
  .header__logo { font-size: 1.15rem; letter-spacing: 0.12em; }
  .header__tagline { font-size: 0.5rem; letter-spacing: 0.18em; }
  .header__mark { width: 26px; }
  .header__brand { gap: 0.6rem; }
  .header__names { padding-left: 0.6rem; }
}
@media (max-width: 880px) {
  .header__tagline { display: none; }
  .header__names { padding-left: 0.55rem; }
  .replay-btn { padding: 0.45rem 0.7rem; font-size: 0.62rem; letter-spacing: 0.1em; }
  .header__actions { gap: 0.6rem; }
}
/* ===== Šaurākiem ekrāniem: izvēlne aiz pogas ===== */
@media (max-width: 940px) {
  .header { position: relative; }
  .header__actions { margin-left: auto; }

  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 34px; height: 34px; padding: 0; cursor: pointer;
    background: none; border: none;
  }
  .burger span {
    display: block; height: 1px; width: 22px; background: currentColor;
    transition: transform 0.35s ease, opacity 0.25s ease;
  }
  .header.is-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .header.is-open .burger span:nth-child(2) { opacity: 0; }
  .header.is-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* panelis izlaižas no galvenes apakšas */
  .header__menu {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 0 clamp(1.5rem, 5vw, 2.5rem);
    background: var(--surface); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, padding 0.4s ease;
  }
  .header.is-open .header__menu {
    max-height: 70vh; opacity: 1;
    padding-top: 0.6rem; padding-bottom: 1.4rem;
    /* zemā ekrānā (ainavas režīmā) izvēlni var ritināt */
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .header__nav {
    flex-direction: column; align-items: stretch; gap: 0;
    width: 100%; margin: 0; white-space: normal;
  }
  .header__nav a {
    padding: 0.95rem 0; font-size: 0.82rem; letter-spacing: 0.16em;
    border-bottom: 1px solid var(--line);
  }
  .header__nav a:hover, .header__nav a.is-active { border-bottom-color: var(--accent); }
  /* uz tumšās grāmatas lapas gaišā līnija būtu par spilgtu */
  .site[data-page="book"] .header__nav a { border-bottom-color: rgba(240, 235, 226, 0.16); }
  .site[data-page="book"] .header__nav a.is-active { border-bottom-color: var(--gold); }
  .header__menu .lang { justify-content: center; margin-top: 1.2rem; }
  .header__menu .lang button { padding: 0.5rem 0.8rem; font-size: 0.74rem; }
  .header__menu .replay-btn { align-self: center; margin-top: 0.9rem; }

  /* atvērta izvēlne vienmēr uz blīva fona, arī virs sākumlapas caurspīdīgās galvenes */
  .header.is-open,
  .site[data-page] .header.is-open {
    background: var(--surface); backdrop-filter: none;
    border-bottom-color: transparent;
  }
  /* uz sākumlapas atvērtā izvēlnē teksts ir tumšs, tāpat kā uz gaišā foto */
  /* Sākumlapā galvene ritinot kļūst tumša ar gaišu tekstu, bet atvērtas izvēlnes
     panelis ir gaišs — tāpēc atvērtā stāvoklī visur atgriežam tumšo tekstu. */
  .site[data-page="home"] .header.is-open .burger,
  .site[data-page="home"] .header.is-open .header__logo,
  .site[data-page="home"] .header.is-open .cart-btn { color: var(--ink); }
  .site[data-page="home"] .header.is-open .header__tagline { color: var(--muted); }
  .site[data-page="home"] .header.is-open .header__mark { color: var(--brand-green); }
  .site[data-page="home"] .header.is-open .header__names { border-left-color: rgba(120, 112, 100, 0.35); }
  .site[data-page="home"] .header.is-open .header__nav a { color: rgba(28, 26, 23, 0.7); }
  .site[data-page="home"] .header.is-open .header__nav a:hover,
  .site[data-page="home"] .header.is-open .header__nav a.is-active { color: var(--ink); border-color: var(--accent); }
  .site[data-page="home"] .header.is-open .lang button { color: rgba(28, 26, 23, 0.55); }
  .site[data-page="home"] .header.is-open .lang button:hover,
  .site[data-page="home"] .header.is-open .lang button.is-active { color: var(--ink); }
  .site[data-page="home"] .header.is-open .lang button.is-active::after { background: var(--accent); }
  .site[data-page="home"] .header.is-open .replay-btn {
    color: rgba(28, 26, 23, 0.7); border-color: rgba(28, 26, 23, 0.25);
  }

  /* aizēnojums sākas zem galvenes, lai pati josla paliktu tīra */
  .header__scrim {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    height: 100vh; z-index: -1;
    background: rgba(20, 16, 11, 0.35); opacity: 0;
    /* aizvērtā stāvoklī tas nedrīkst pārtvert nevienu pieskārienu */
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .header__scrim[hidden] { display: none; }
  .header.is-open .header__scrim { opacity: 1; z-index: 25; pointer-events: auto; }

  .site[data-page="home"] .hero-full__content { padding-bottom: clamp(2.5rem, 8vh, 4rem); }

  /* retinājums saīsināts, lai virsraksti neaizņemtu visu ekrāna platumu */
  .book__insidehead p { letter-spacing: 0.1em; }
}

/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20, 17, 14, 0.55); backdrop-filter: blur(3px); animation: siteIn 0.3s ease; }
.modal__card {
  position: relative; background: var(--bg); border-radius: 10px;
  max-width: 780px; width: 100%; max-height: 90vh; overflow: auto;
  display: grid; grid-template-columns: 1fr 1fr;
  animation: modalIn 0.35s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal__art { padding: 1.6rem; display: flex; align-items: center; background: #efe8da; }
.modal__art .frame { width: 100%; }
.modal__art .art { aspect-ratio: 1/1; }
.modal__body { padding: 2.4rem 2.2rem; display: flex; flex-direction: column; }
.modal__close {
  position: absolute; top: 0.8rem; right: 1rem; background: none; border: none;
  font-size: 1.7rem; color: var(--muted); cursor: pointer; line-height: 1;
}
.modal__cat { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.modal__title { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; line-height: 1.2; }
.modal__size { color: var(--muted); font-size: 0.85rem; margin: 0.5rem 0 1rem; }
.modal__desc { color: #4c4640; line-height: 1.75; font-size: 0.95rem; }
.modal__price { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; color: var(--accent); margin: auto 0 1.2rem; padding-top: 1.5rem; }
@media (max-width: 640px) { .modal__card { grid-template-columns: 1fr; } }

/* ===== Kartīšu lapa: režģis pa kreisi, izvēlētā kartīte pa labi ===== */
.site[data-page="cards"] { --surface: #fdfcfa; background: #fdfcfa; }
.site[data-page="cards"] .header { background: rgba(253, 252, 250, 0.94); }

.cards {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.95fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: start;
}
.cards__head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.cards__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.cards__count { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.cards__sub { color: var(--muted); font-size: 0.9rem; margin: 0.5rem 0 1.6rem; max-width: 52ch; }

.cards__filters {
  display: flex; gap: clamp(0.8rem, 2vw, 1.6rem); flex-wrap: wrap; align-items: flex-end;
  padding-bottom: 1.3rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line);
}
.cards__filter { display: flex; flex-direction: column; gap: 0.4rem; }
.cards__filter > span:first-child {
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.cards__filter .sort__field select { min-width: 132px; }
.cards__clear {
  background: none; border: none; cursor: pointer; padding: 0.5rem 0;
  color: var(--accent); font-family: var(--sans); font-size: 0.75rem;
  border-bottom: 1px solid transparent; transition: border-color 0.25s ease;
}
.cards__clear:hover { border-bottom-color: var(--accent); }

.cards__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1.4rem 1.1rem; }
.cards__cell { margin: 0; cursor: pointer; }
.cards__thumb {
  aspect-ratio: 1; background: #fff; border: 1px solid var(--line);
  padding: 6px; overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.cards__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cards__cell:hover .cards__thumb { transform: translateY(-3px); box-shadow: 0 14px 26px -16px rgba(28, 26, 23, 0.4); }
.cards__cell.is-picked .cards__thumb { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
/* Pārdotā kartīte paliek redzama, bet klusāka — to vairs nevar nopirkt */
.cards__thumb { position: relative; }
.cards__cell.is-sold .cards__thumb img { filter: grayscale(0.55); opacity: 0.72; }
.cards__soldTag {
  position: absolute; left: 6px; bottom: 6px;
  padding: 0.2rem 0.45rem; background: rgba(28, 26, 23, 0.82); color: var(--cream);
  font-size: 0.52rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.cards__cell.is-sold .cards__name { color: var(--muted); }
.cards__stock--sold { color: #9a5b4a; }
.cards__cell figcaption { display: flex; align-items: baseline; gap: 0.4rem; margin-top: 0.55rem; }
.cards__code { font-size: 0.6rem; letter-spacing: 0.1em; color: var(--muted); }
.cards__name {
  font-family: var(--serif); font-size: 0.92rem; flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* numurs stāv ārpus daudzpunktes — tieši tas atšķir vienādos nosaukumus */
.cards__ord {
  flex: none; font-family: var(--serif); font-size: 0.8rem;
  color: var(--muted); letter-spacing: 0.04em;
}
.cards__cell.is-sold .cards__ord { opacity: 0.6; }

.cards__price { font-size: 0.8rem; color: var(--accent); }
.cards__empty { color: var(--muted); grid-column: 1 / -1; padding: 2rem 0; }
.cards__more { margin-top: 2rem; text-align: center; }

/* labā puse — izvēlētā kartīte, pielīp ritinot */
.cards__detail { position: sticky; top: calc(var(--header-h, 88px) + 1.5rem); }
.cards__viewer { display: flex; align-items: center; gap: clamp(0.4rem, 1.5vw, 1rem); }
.cards__stage {
  position: relative; flex: 1; min-width: 0; overflow: hidden;
  background: #fff; border: 1px solid var(--line); padding: clamp(10px, 1.6vw, 18px);
  cursor: crosshair;
}
.cards__big { display: block; width: 100%; height: auto; animation: infoIn 0.45s ease; }
.cards__lens {
  position: absolute; width: clamp(130px, 15vw, 190px); aspect-ratio: 1;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(120, 112, 100, 0.35), 0 18px 40px -12px rgba(28, 26, 23, 0.55);
  transition: opacity 0.25s ease;
}
.cards__lens.is-on { opacity: 1; }
.cards__arrow {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: none; border: 1px solid var(--line); color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.cards__arrow svg { width: 18px; height: 18px; }
.cards__arrow:hover { border-color: var(--accent); background: #fff; }
.cards__zoomhint {
  text-align: center; margin-top: 0.7rem;
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}

.cards__meta { margin-top: clamp(1rem, 3vh, 1.8rem); }
.cards__detcode { font-size: 0.62rem; letter-spacing: 0.2em; color: var(--muted); }
.cards__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0.3rem 0 0.2rem; }
.cards__dettitle { font-family: var(--serif); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
.cards__detprice { font-family: var(--serif); font-size: 1.4rem; color: var(--accent); white-space: nowrap; }
.cards__detsize { display: block; color: var(--muted); font-size: 0.8rem; }
.cards__detdesc { color: #4c4640; line-height: 1.8; font-size: 0.9rem; margin: 1rem 0 1.4rem; }
/* Rāmja izvēle — divas cenas blakus, izvēlētā iekrāsota */
.cards__opts { display: flex; gap: 0.6rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.cards__opt {
  flex: 1; min-width: 130px; padding: 0.65rem 0.9rem;
  background: none; border: 1px solid var(--line); cursor: pointer;
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); text-align: left;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.cards__opt span {
  display: block; margin-top: 0.3rem;
  font-family: var(--serif); font-size: 1rem; letter-spacing: 0;
  text-transform: none; color: var(--ink);
}
.cards__opt:hover { border-color: var(--accent); }
.cards__opt.is-on {
  border-color: var(--accent); background: rgba(201, 164, 94, 0.09); color: var(--ink);
}
.cards__opt.is-on span { color: var(--accent); }

.cards__buy { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cards__stock {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: #5c7a4a;
}
.cards__buy .btn { flex: 1; min-width: 180px; }

@media (max-width: 940px) {
  .cards { grid-template-columns: 1fr; }
  /* atkāpe, lai galvene neaizsedz kartīti, kad skats pie tās aizved */
  .cards__detail { position: static; order: -1; scroll-margin-top: calc(var(--header-h, 88px) + 1rem); }
  .cards__grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* ===== Kopijas uz tematiskā papīra =====
   Cenu kāpnes, nevis kastītes kastē: tā redz, kā cena krīt līdz ar daudzumu,
   un rinda nekad nesalūzt neglītā 3+1 režģī. Punktētā līnija starp daudzumu
   un cenu ir vecs cenrāža paņēmiens — der galerijas noskaņai. */
.copies {
  margin-top: clamp(3rem, 8vh, 5rem);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  background: #f6f2ec; border: 1px solid rgba(201, 164, 94, 0.28);
}
.copies__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem); color: var(--ink);
}
.copies__title::after {
  content: ''; display: block; width: 38px; height: 1px;
  margin-top: 0.7rem; background: var(--accent);
}
.copies__lead {
  margin-top: 1rem; color: #4c4640; line-height: 1.75;
  font-size: 0.88rem; max-width: 56ch;
}

.copies__tiers { list-style: none; margin: 1.8rem 0 1.4rem; }
.copies__tier {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: baseline; gap: 0 0.9rem;
  padding: 0.75rem 0; border-bottom: 1px solid rgba(120, 112, 100, 0.16);
}
.copies__tier:last-child { border-bottom: 0; }
.copies__qty { font-size: 0.9rem; color: var(--ink); }
.copies__lead-dots {
  border-bottom: 1px dotted rgba(120, 112, 100, 0.45);
  transform: translateY(-0.3em);
}
.copies__price {
  font-family: var(--serif); font-size: 1.3rem; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.copies__min {
  grid-column: 1 / -1; margin-top: 0.2rem;
  font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.copies__more { font-size: 0.82rem; color: var(--muted); }

/* Sertifikāta piezīme zem pirkšanas pogas */
.cover__cert, .modal__cert {
  display: block; margin-top: 0.8rem;
  font-size: 0.64rem; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--muted);
}

/* ===== Grāmatas lapa: tumši zils un zelts, kā uz vākiem ===== */
/* Lapa ir gaiša; tumši zils paliek augšdaļai un kājenei — kā grāmatas vākiem */
.site[data-page="book"] {
  --navy: #262d3b;
  --navy-deep: #1b212c;
  --leaf: #d8a94e;
  --surface: #1b212c;
  background: #faf8f4;
}
.site[data-page="book"] .header {
  background: rgba(27, 33, 44, 0.92);
  border-bottom-color: rgba(216, 169, 78, 0.16);
}
.site[data-page="book"] .header .header__logo { color: #f2ede4; }
.site[data-page="book"] .header .header__tagline { color: rgba(240, 235, 226, 0.55); }
.site[data-page="book"] .header .header__mark { color: #f2ede4; }
.site[data-page="book"] .header .header__names { border-left-color: rgba(240, 235, 226, 0.28); }
.site[data-page="book"] .header .header__nav a { color: rgba(240, 235, 226, 0.66); }
.site[data-page="book"] .header .header__nav a:hover,
.site[data-page="book"] .header .header__nav a.is-active { color: #f2ede4; border-color: var(--leaf); }
.site[data-page="book"] .header .cart-btn { color: #f2ede4; }
.site[data-page="book"] .header .lang button { color: rgba(240, 235, 226, 0.55); }
.site[data-page="book"] .header .lang button:hover,
.site[data-page="book"] .header .lang button.is-active { color: #f2ede4; }
.site[data-page="book"] .header .lang button.is-active::after { background: var(--leaf); }
.site[data-page="book"] .header .replay-btn { color: rgba(240, 235, 226, 0.7); border-color: rgba(240, 235, 226, 0.25); }
.site[data-page="book"] .footer {
  background: var(--navy-deep); color: rgba(240, 235, 226, 0.4);
  border-top-color: rgba(216, 169, 78, 0.14);
}
.site[data-page="book"] .btn { background: var(--leaf); color: #212834; }
.site[data-page="book"] .btn:hover { background: #e8bc63; }

/* --- augšdaļa: vāks un apraksts uz tumši zila, visā ekrāna platumā --- */
.book__hero {
  --vw: calc(100vw - var(--sbw, 0px));
  width: var(--vw); margin-left: calc(50% - var(--vw) / 2);
  margin-top: calc(-1 * clamp(2rem, 5vw, 3.5rem));
  background: var(--navy-deep);
  background-image: radial-gradient(120% 90% at 30% 0%, rgba(216, 169, 78, 0.10), transparent 60%);
  padding: clamp(3rem, 8vh, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  overflow: hidden; /* dekoratīvais mirdzums neizstiepj lapu */
}
.book__heroinner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.book__coverwrap {
  position: relative; perspective: 1400px;
  display: flex; justify-content: center;
}
.book__cover {
  display: block; width: 100%; max-width: 420px; height: auto; border-radius: 3px;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 8px 20px -10px rgba(0, 0, 0, 0.6);
}
.book__glow {
  position: absolute; inset: 14% -6% -12% -6%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(216, 169, 78, 0.22), transparent 72%);
  filter: blur(14px);
}

.book__eyebrow {
  display: block; font-size: 0.6rem; letter-spacing: 0.36em;
  text-transform: uppercase; color: var(--leaf); margin-bottom: 1rem;
}
.book__title {
  font-family: var(--serif); font-weight: 400; line-height: 1.1;
  font-size: clamp(2rem, 4.2vw, 3.4rem); color: #f6f1e7;
}
.book__tagline { margin-top: 0.6rem; font-size: 0.95rem; color: rgba(240, 235, 226, 0.6); font-style: italic; }
.book__rule {
  display: block; width: 64px; height: 1px; margin: 1.6rem 0;
  background: linear-gradient(to right, var(--leaf), transparent);
}
.book__lead { font-size: 1.02rem; line-height: 1.85; color: rgba(240, 235, 226, 0.88); }
.book__body { margin-top: 1rem; line-height: 1.85; font-size: 0.93rem; color: rgba(240, 235, 226, 0.6); }

/* ===== Autora stāsts par grāmatu =====
   Priekšvārda intonācija: viena šaura sleja, plašas atkāpes, nekā vairāk. */
.bookstory {
  --vw: calc(100vw - var(--sbw, 0px));
  width: var(--vw); margin-left: calc(50% - var(--vw) / 2);
  background: var(--navy-deep);
  padding: clamp(3rem, 9vh, 6rem) clamp(1.5rem, 5vw, 4rem) clamp(3.5rem, 10vh, 7rem);
}
.bookstory__inner { max-width: 62ch; margin: 0 auto; }
.bookstory__inner p {
  font-size: clamp(0.94rem, 1.5vw, 1.02rem); line-height: 1.9;
  color: rgba(240, 235, 226, 0.72);
}
.bookstory__inner p + p { margin-top: 1.5rem; }
.bookstory__end {
  margin-top: clamp(2rem, 5vh, 3rem); padding-top: clamp(1.4rem, 3vh, 2rem);
  border-top: 1px solid rgba(216, 169, 78, 0.22);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.02rem, 1.9vw, 1.28rem) !important;
  line-height: 1.6 !important; color: #f2ede4 !important; text-align: center;
}

.book__specs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem 1.5rem; margin: 2rem 0;
  padding: 1.4rem 0; border-top: 1px solid rgba(216, 169, 78, 0.18);
  border-bottom: 1px solid rgba(216, 169, 78, 0.18);
}
.book__specs dt {
  font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(240, 235, 226, 0.4); margin-bottom: 0.3rem;
}
.book__specs dd { margin: 0; font-size: 0.9rem; color: rgba(240, 235, 226, 0.86); }

.book__buy { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.book__price { font-family: var(--serif); font-size: 2.1rem; color: var(--leaf); }
.book__buy .btn { padding-inline: 2.4rem; }
.book__note {
  display: block; margin-top: 0.9rem;
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(240, 235, 226, 0.4);
}

/* PVN piebilde pie cenas — klusa, bet neizlaista */
.book__vat {
  margin-left: 0.5rem; font-family: var(--sans);
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(240, 235, 226, 0.45); vertical-align: 0.55em;
}

/* Ziņa par otro daļu — zelta svītra, lai to pamana, bet tā nekliedz */
.book__next {
  display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap;
  margin-top: clamp(1.4rem, 3vh, 2.2rem);
  padding-left: 1rem; border-left: 2px solid rgba(201, 164, 94, 0.5);
  font-size: 0.9rem; line-height: 1.6; color: rgba(240, 235, 226, 0.72);
}
.book__nextTag {
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
}
@media (max-width: 940px) {
  .book__next { font-size: 0.85rem; }
}

/* --- lappušu šķirstīšana --- */
/* --- apakšdaļa: atvērumi uz gaiša, lai lapa nav pilnībā tumša --- */
.book__inside { padding: clamp(3rem, 8vh, 5rem) 0 clamp(1rem, 3vh, 2rem); }
.book__insidehead { text-align: center; margin-bottom: clamp(1.8rem, 5vh, 3rem); }
.book__insidehead h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--ink);
}
.book__insidehead p {
  margin-top: 0.5rem; font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}

.flip {
  position: relative; max-width: 1000px; margin: 0 auto;
  aspect-ratio: 4 / 3; perspective: 2400px; cursor: pointer;
  box-shadow: 0 40px 70px -35px rgba(40, 34, 24, 0.45);
}
.flip__base { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flip__layers { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
/* nekustīgā puse, kas paliek redzama, kamēr otra šķiras */
.flip__hold { position: absolute; top: 0; bottom: 0; width: 50%; background-size: 200% 100%; }
.flip__hold--left { left: 0; background-position: left center; }
.flip__hold--right { left: 50%; background-position: right center; }
/* pati šķiramā puse */
.flip__page {
  position: absolute; top: 0; bottom: 0; width: 50%;
  transform-style: preserve-3d; transform: rotateY(0deg);
  transition: transform 0.9s cubic-bezier(0.42, 0, 0.28, 1);
}
.flip__page--next { left: 50%; transform-origin: left center; }
.flip__page--prev { left: 0;   transform-origin: right center; }
.flip__face {
  position: absolute; inset: 0; backface-visibility: hidden;
  background-size: 200% 100%; background-repeat: no-repeat;
}
.flip__face--front { box-shadow: inset 0 0 40px -18px rgba(0, 0, 0, 0.6); }
.flip__face--back { transform: rotateY(180deg); box-shadow: inset 0 0 40px -18px rgba(0, 0, 0, 0.6); }

.flip__nav {
  position: absolute; top: 50%; margin-top: -24px; z-index: 5;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  background: var(--navy-deep); border: 1px solid rgba(216, 169, 78, 0.4);
  color: #f2ede4; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -12px rgba(27, 33, 44, 0.6);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.flip__nav svg { width: 20px; height: 20px; }
.flip__nav:hover { background: #2f3849; border-color: var(--leaf); transform: scale(1.08); }
.flip__nav--prev { left: -24px; }
.flip__nav--next { right: -24px; }

.flip__foot {
  display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 3vw, 2rem);
  margin-top: clamp(1.5rem, 4vh, 2.2rem); flex-wrap: wrap;
}
.flip__count { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.flip__count strong { font-family: var(--serif); font-size: 1.1rem; color: var(--navy); font-weight: 400; letter-spacing: 0; }
.flip__dots { display: flex; gap: 0.5rem; }
.flip__dot {
  width: 8px; height: 8px; border-radius: 50%; padding: 0; cursor: pointer;
  background: none; border: 1px solid rgba(38, 45, 59, 0.35);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.flip__dot:hover { border-color: var(--navy); }
.flip__dot.is-active { background: var(--navy); border-color: var(--navy); transform: scale(1.25); }

@media (max-width: 900px) {
  .book__heroinner { grid-template-columns: 1fr; text-align: center; }
  .book__cover { max-width: 300px; }
  .book__rule { margin-inline: auto; }
  .book__buy, .book__specs { justify-content: center; text-align: center; }
  .flip__nav--prev { left: 6px; }
  .flip__nav--next { right: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .flip__page { transition-duration: 0.2s; }
}

/* ===== Mākslinieka stāsts: ritināma izstāde ===== */
.site[data-page="about"] { --surface: #fbf9f5; background: #fbf9f5; }
.site[data-page="about"] .header { background: rgba(251, 249, 245, 0.94); }
.story { --bleed: calc(100vw - var(--sbw, 0px)); }
.story__full { width: var(--bleed); margin-left: calc(50% - var(--bleed) / 2); }

/* --- 1. Ievads --- */
.story__hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
  min-height: min(78vh, 720px);
  padding: clamp(1rem, 4vh, 3rem) 0 clamp(3rem, 8vh, 5rem);
}
.story__role {
  display: block; font-size: 0.6rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.4rem;
}
.story__name {
  font-family: var(--serif); font-weight: 400; line-height: 1.02;
  font-size: clamp(2.4rem, 6.4vw, 5.4rem); letter-spacing: 0.01em;
}
.story__lead {
  margin-top: 1.4rem; max-width: 34ch;
  font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.75; color: #4c4640;
}
.story__facts {
  display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem; margin-top: clamp(1.8rem, 4vh, 2.6rem);
  padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.story__facts dt {
  font-size: 0.56rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.35rem;
}
.story__facts dd { margin: 0; font-family: var(--serif); font-size: 1.02rem; }
.story__heroImg { position: relative; }
.story__heroImg img {
  display: block; width: 100%; height: auto; max-height: 74vh; object-fit: contain;
  object-position: bottom;
}

/* --- 2. Biogrāfija uz tumša --- */
/* neitrāls grafīts, nevis brūns — sasaucas ar portreta fonu */
.story__bio {
  width: var(--bleed); margin-left: calc(50% - var(--bleed) / 2);
  background: linear-gradient(to bottom, #202023, #26262a 55%, #202023);
  color: rgba(238, 236, 232, 0.74);
  padding: clamp(3rem, 8vh, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  overflow: hidden; /* dekoratīvais mirdzums neizstiepj lapu */
}
/* attēls un teksts vertikāli līdzsvarā — bez tukšuma zem rindkopām */
.story__bioInner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.story__bioText { max-width: 60ch; }
.story__bioText p { line-height: 1.9; font-size: 1.02rem; }
.story__bioText p + p { margin-top: 1.1rem; color: rgba(238, 236, 232, 0.55); }
.story__drop::first-letter {
  float: left; font-family: var(--serif); font-size: 3.1em; line-height: 0.9;
  margin: 0.05em 0.12em 0 0; color: var(--gold);
}
.story__second { margin: 0; order: -1; }   /* portrets pa kreisi no teksta */
.story__second img {
  display: block; width: 100%; height: auto;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.story__quote {
  max-width: 900px; margin: clamp(2.5rem, 7vh, 4rem) auto 0; text-align: center;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.15rem, 2.3vw, 1.85rem); line-height: 1.55; color: #f2e9d8;
  padding-top: clamp(2rem, 5vh, 3rem); border-top: 1px solid rgba(201, 164, 94, 0.2);
}

/* --- Sadaļu virsraksti --- */
.story__sectionHead { text-align: center; margin-bottom: clamp(2.5rem, 7vh, 4.5rem); }
.story__sectionHead h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}
.story__sectionHead p {
  margin-top: 0.6rem; font-size: 0.64rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--muted);
}

/* --- 3. Ceļš: nodaļas pa pilsētām --- */
.story__journey { padding: clamp(3.5rem, 10vh, 7rem) 0 clamp(2rem, 6vh, 4rem); }
.chap { position: relative; padding: clamp(2.5rem, 8vh, 6rem) 0; overflow: hidden; }
.chap__ghost {
  position: absolute; top: 50%; left: 50%; z-index: 0; pointer-events: none;
  transform: translate(-50%, calc(-50% + var(--shift, 0px)));
  font-family: var(--serif); text-transform: uppercase; white-space: nowrap;
  font-size: clamp(5rem, 20vw, 17rem); line-height: 1;
  color: rgba(28, 26, 23, 0.045); letter-spacing: 0.04em;
}
.chap__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.chap--flip .chap__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.chap--flip .chap__text { order: 2; }
.chap--flip .chap__shots { order: 1; }

.chap__num {
  display: block; font-size: 0.6rem; letter-spacing: 0.3em; color: var(--accent);
}
.chap__city {
  font-family: var(--serif); font-weight: 400; line-height: 1.05;
  font-size: clamp(1.9rem, 3.6vw, 3rem); margin: 0.5rem 0 0.4rem;
}
.chap__date {
  display: block; font-size: 0.64rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
}
.chap__event {
  margin-top: 1.3rem; font-family: var(--serif); font-size: 1.15rem; color: var(--ink);
}
.chap__venue { margin-top: 0.35rem; font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.chap__note { margin-top: 1rem; font-size: 0.93rem; line-height: 1.8; color: #4c4640; }
.chap__works { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.chap__workslabel {
  display: block; font-size: 0.55rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.7rem;
}
.chap__work { margin-bottom: 0.5rem; }
.chap__work em { font-family: var(--serif); font-style: normal; font-size: 1rem; }
.chap__work span { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 0.1rem; }

/* asimetrisks attēlu izkārtojums, nevis vienāds režģis */
.chap__shots {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.8rem, 2vw, 1.6rem); align-items: start;
}
/* attēli dabiskās proporcijās — plakāti un diplomi netiek apgriezti */
.chap__shot {
  margin: 0; transform: translateY(var(--shift, 0px));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.chap__shot img {
  display: block; width: 100%; height: auto;
  box-shadow: 0 22px 45px -26px rgba(40, 40, 44, 0.55);
  transition: box-shadow 0.5s ease;
}
.chap__shot:hover img { box-shadow: 0 30px 60px -26px rgba(40, 40, 44, 0.75); }
.chap__shot:nth-child(2) { margin-top: clamp(1.5rem, 5vh, 3.5rem); }
.chap__shot:nth-child(3) { margin-top: clamp(-2rem, -3vh, -1rem); }

/* ===== Pagātne: agrākās izstādes Latvijā =====
   Šīs izstādes nav notikumi ar savu plakātu un datumu, bet gan fons, uz kura
   aug pārējais stāsts. Tāpēc tās nav atsevišķas nodaļas, bet viens klusāks
   bloks nodaļu beigās: saraksts pa kreisi, divi foto pa labi. */
.past {
  max-width: 1180px; margin: clamp(4rem, 11vh, 8rem) auto 0;
  padding-top: clamp(2.5rem, 7vh, 4.5rem);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(1.8rem, 5vw, 4rem); align-items: start;
}
.past__head { grid-column: 1; }
.past__head h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.1;
}
.past__sub {
  margin-top: 0.5rem; font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
}
.past__note {
  margin-top: 1.1rem; max-width: 42ch;
  font-size: 0.9rem; line-height: 1.8; color: #4c4640;
}
.past__list {
  grid-column: 1; list-style: none; margin-top: clamp(1.6rem, 4vh, 2.6rem);
  counter-reset: past;
}
.past__item {
  counter-increment: past; position: relative;
  padding: 0.95rem 0 0.95rem 2.6rem;
  border-top: 1px solid var(--line);
}
.past__item:last-child { border-bottom: 1px solid var(--line); }
.past__item::before {
  content: counter(past, decimal-leading-zero);
  position: absolute; left: 0; top: 1.15rem;
  font-size: 0.58rem; letter-spacing: 0.12em; color: var(--accent);
}
.past__item strong {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: 1.02rem; line-height: 1.35;
}
.past__item span {
  display: block; margin-top: 0.25rem;
  font-size: 0.8rem; line-height: 1.65; color: var(--muted);
}
/* foto turas blakus sarakstam un paliek redzami, kamēr to ritina */
.past__shots {
  grid-column: 2; grid-row: 1 / span 2;
  position: sticky; top: clamp(5rem, 12vh, 8rem);
  display: grid; gap: clamp(1rem, 2.5vw, 1.8rem);
}
.past__shot { margin: 0; }
.past__shot img {
  display: block; width: 100%; height: auto;
  box-shadow: 0 22px 45px -26px rgba(40, 40, 44, 0.55);
}
.past__shot:last-child { margin-left: clamp(1rem, 4vw, 3rem); }

@media (max-width: 860px) {
  .past { grid-template-columns: 1fr; }
  .past__head, .past__list, .past__shots { grid-column: 1; }
  .past__shots { grid-row: auto; position: static; margin-top: 2rem; }
  .past__shot:last-child { margin-left: 0; }
}

/* --- 4. Apbalvojumi --- */
/* ===== Mākslas kritiķa vērtējums =====
   Sertifikāts pa kreisi kā pierādījums, citāts pa labi kā doma. */
.critic {
  max-width: 1080px; margin: clamp(4rem, 10vh, 7rem) auto;
  display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.8rem, 5vw, 4rem); align-items: center;
}
.critic__doc { margin: 0; }
.critic__doc img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line);
  box-shadow: 0 26px 50px -30px rgba(28, 26, 23, 0.5);
}
.critic__work {
  display: block; font-family: var(--serif); font-style: italic;
  font-size: 0.9rem; color: var(--muted); margin-bottom: 0.9rem;
}
.critic__text {
  font-family: var(--serif); font-size: clamp(1.02rem, 1.9vw, 1.35rem);
  line-height: 1.62; color: var(--ink);
  padding-left: clamp(1rem, 2vw, 1.6rem);
  border-left: 2px solid var(--gold);
}
.critic__who { margin-top: 1.4rem; padding-left: clamp(1rem, 2vw, 1.6rem); }
.critic__who strong {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: 1rem; color: var(--ink);
}
.critic__who span {
  display: block; margin-top: 0.25rem;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 900px) {
  .critic { grid-template-columns: 1fr; gap: 1.8rem; }
  .critic__doc { max-width: 380px; margin-inline: auto; }
}

.story__awards {
  width: var(--bleed); margin-left: calc(50% - var(--bleed) / 2);
  background: #f4f1ea;
  padding: clamp(3.5rem, 9vh, 6rem) clamp(1.5rem, 5vw, 4rem);
}
.awards {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
}
.awards__item { margin: 0; text-align: center; }
.awards__item img {
  display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(28, 26, 23, 0.28));
}
.awards__item figcaption { margin-top: 1.2rem; }
.awards__item strong {
  display: block; font-family: var(--serif); font-weight: 400; font-size: 1.25rem;
}
.awards__item span {
  display: block; margin-top: 0.3rem; font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}

/* --- 5. Gaidāmais --- */
.story__next { padding: clamp(3.5rem, 9vh, 6rem) 0; }
.next {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px dashed rgba(154, 107, 63, 0.4);
}
.next__img { margin: 0; overflow: hidden; }
.next__img img { display: block; width: 100%; height: auto; }
.next__when {
  display: inline-block; padding: 0.35rem 0.9rem; margin-bottom: 1rem;
  font-size: 0.58rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(154, 107, 63, 0.4); border-radius: 2rem;
}
.next__text h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.next__event { margin-top: 0.4rem; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.next__note { margin-top: 1rem; line-height: 1.8; font-size: 0.95rem; color: #4c4640; }

/* --- Nobeigums --- */
.story__end {
  text-align: center; padding: clamp(2rem, 6vh, 4rem) 0 clamp(3rem, 8vh, 5rem);
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.story__end .btn-outline { animation: none; }
.story__end span { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 900px) {
  .story__hero { grid-template-columns: 1fr; min-height: 0; text-align: center; }
  .story__heroImg { max-width: 340px; margin: 0 auto; }
  .story__lead { margin-inline: auto; }
  .story__facts { justify-content: center; }
  .story__bioInner { grid-template-columns: 1fr; }
  .story__second { max-width: 340px; margin-inline: auto; }
  .chap__inner, .chap--flip .chap__inner { grid-template-columns: 1fr; }
  .chap--flip .chap__text, .chap--flip .chap__shots { order: 0; }
  .next { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  /* telefonā plakāti un diplomi vienā slejā — citādi teksts uz tiem nav salasāms */
  .chap__shots { grid-template-columns: 1fr; }
  .chap__shot:nth-child(2), .chap__shot:nth-child(3) { margin-top: 0; }
  .chap__shot { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .chap__ghost, .chap__shot { transform: none !important; }
}

/* ===== Darbs mājas interjerā =====
   Telpa aizņem visu logu, darbs tajā ir īstajā mērogā. Rāmja ēna ir vienīgā
   dekorācija — pārējo dara pats attēls. */
.room {
  position: fixed; inset: 0; z-index: 85;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 3vh, 2.5rem);
  background: rgba(16, 13, 9, 0.92);
}
.room__stage {
  width: 100%;
  max-width: min(1180px, calc((100vh - 10rem) * 4 / 3));
}
.room__frame { position: relative; line-height: 0; }
.room__bg { display: block; width: 100%; height: auto; }

/* darbs: platums nāk no koda, augstums — no malu attiecības */
.room__art {
  position: absolute; transform: translate(-50%, -50%);
  line-height: 0; transition: width 0.4s ease, left 0.4s ease, top 0.4s ease;
}
.room__art img {
  display: block; width: 100%; height: auto;
  border: 0.35vw solid #fdfcfa;
  box-shadow: 0 1.2vw 2.4vw -0.8vw rgba(20, 16, 10, 0.55),
              0 0.2vw 0.5vw rgba(20, 16, 10, 0.35);
}

.room__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-top: 1.1rem;
}
.room__tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.room__tabs button {
  padding: 0.5rem 1rem; background: none; cursor: pointer;
  border: 1px solid rgba(244, 234, 216, 0.28);
  color: rgba(244, 234, 216, 0.7);
  font-family: var(--sans); font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.room__tabs button:hover { color: var(--cream); border-color: var(--gold); }
.room__tabs button.is-on {
  color: var(--cream); border-color: var(--gold); background: rgba(201, 164, 94, 0.14);
}
.room__scale {
  font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(244, 234, 216, 0.5);
}
.room__close {
  position: absolute; top: clamp(0.8rem, 2vh, 1.5rem); right: clamp(0.8rem, 2vw, 1.5rem);
  width: 42px; height: 42px; border-radius: 50%;
  background: none; border: 1px solid rgba(244, 234, 216, 0.3);
  color: var(--cream); font-size: 1.4rem; line-height: 1; cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}
.room__close:hover { border-color: var(--gold); background: rgba(201, 164, 94, 0.14); }

/* Poga «Skatīt interjerā» — otrā pēc svarīguma aiz pirkšanas, bet to
   nedrīkst nepamanīt: zelta kontūra, ikona un pilns platums. */
.btn-room {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  width: 100%; margin-top: 0.7rem; padding: 0.85rem 1rem;
  background: rgba(201, 164, 94, 0.12);
  border: 1px solid var(--accent); cursor: pointer;
  font-family: var(--sans); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-room svg {
  width: 16px; height: 16px; flex: none; color: var(--accent);
  transition: color 0.25s;
}
.btn-room:hover { background: var(--accent); color: var(--cream); }
.btn-room:hover svg { color: var(--cream); }

/* lupā fons ir tumšs — pogai jāpielāgojas */
.btn-room--onzoom {
  width: auto; margin: 1rem auto 0; padding: 0.7rem 1.4rem;
  background: rgba(201, 164, 94, 0.14);
  border-color: rgba(201, 164, 94, 0.55); color: var(--cream);
}
.btn-room--onzoom svg { color: var(--gold); }
.btn-room--onzoom:hover { background: var(--gold); color: #1c1a17; }
.btn-room--onzoom:hover svg { color: #1c1a17; }

@media (max-width: 760px) {
  .room__bar { justify-content: center; text-align: center; }
  .room__tabs button { padding: 0.45rem 0.7rem; font-size: 0.6rem; letter-spacing: 0.1em; }
  .room__art img { border-width: 1.5px; }
}

/* ===== Lupa: oriģināls pilnā ekrānā ===== */
.zoom {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.2rem; padding: clamp(1rem, 4vh, 3rem);
  background: rgba(16, 13, 9, 0.94);
  animation: siteIn 0.3s ease;
}
.zoom__holder {
  position: relative; display: flex; align-items: center; justify-content: center;
  max-width: 100%; min-height: 0; flex: 1;
}
.zoom__img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
  cursor: none; /* kursora vietā — lupa */
  animation: modalIn 0.4s ease;
}
/* pati lupa — aplis ar oriģinālu palielinājumā */
.zoom__lens {
  position: fixed; width: clamp(180px, 22vw, 280px); aspect-ratio: 1;
  border-radius: 50%; pointer-events: none;
  background-repeat: no-repeat;
  border: 1px solid rgba(244, 234, 216, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 20px 50px -12px rgba(0, 0, 0, 0.7),
              inset 0 0 30px rgba(0, 0, 0, 0.25);
}
.zoom__caption {
  text-align: center; color: rgba(244, 234, 216, 0.75); flex-shrink: 0;
}
.zoom__caption strong {
  display: block; font-family: var(--serif); font-weight: 500;
  font-size: 1.3rem; color: var(--cream); margin-bottom: 0.3rem;
}
.zoom__caption span { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; }
.zoom__close {
  position: absolute; top: clamp(0.8rem, 2vh, 1.6rem); right: clamp(0.8rem, 2vw, 1.6rem);
  width: 44px; height: 44px; border-radius: 50%;
  background: none; border: 1px solid rgba(244, 234, 216, 0.3);
  color: var(--cream); font-size: 1.6rem; line-height: 1; cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.zoom__close:hover { border-color: var(--gold); background: rgba(244, 234, 216, 0.1); }
@media (hover: none) {
  .zoom__lens { display: none; }   /* uz skārienekrāna lupas nav */
  .zoom__img { cursor: default; }
}

/* Cart drawer */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(20, 17, 14, 0.45); animation: siteIn 0.3s ease; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 92vw);
  background: var(--bg); display: flex; flex-direction: column;
  box-shadow: -20px 0 60px rgba(0,0,0,0.18);
  animation: drawerIn 0.35s ease;
}
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: none; } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1.4rem 1.6rem; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.drawer__close { background: none; border: none; font-size: 1.6rem; color: var(--muted); cursor: pointer; }
.drawer__items { flex: 1; overflow: auto; padding: 1rem 1.6rem; }
.cart-item { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.cart-item .art { width: 54px; height: 66px; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.cart-item__info { flex: 1; }
.cart-item__title { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; }
.cart-item__meta { color: var(--muted); font-size: 0.8rem; }
.cart-item__remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; }
.cart-item__remove:hover { color: var(--accent); }
.drawer__empty { color: var(--muted); text-align: center; padding: 3rem 0; }
.drawer__foot { padding: 1.4rem 1.6rem; border-top: 1px solid var(--line); }
.drawer__total { display: flex; justify-content: space-between; margin-bottom: 1rem; font-size: 1.05rem; }
.drawer__total strong { font-family: var(--serif); font-size: 1.3rem; }

/* Footer */
/* ===== Mākslinieka monogramma =====
   Attēls kalpo par masku, tāpēc zīme pieņem konteksta krāsu —
   nekur nav zaļā oriģināla, un tā iekļaujas katras lapas tonī. */
.sign {
  display: block; aspect-ratio: 480 / 776;
  background-color: currentColor;
  -webkit-mask: url(../assets/signature.png) no-repeat center / contain;
  mask: url(../assets/signature.png) no-repeat center / contain;
}

/* zem citāta biogrāfijā — kā paraksts zem teksta */
.story__sign {
  width: clamp(46px, 5.5vw, 68px);
  margin: clamp(1.8rem, 4vh, 2.8rem) auto 0;
  color: var(--gold); opacity: 0.55;
}

/* kājenē — klusa zīme virs autortiesībām */
.footer__sign { width: 26px; margin: 0 auto 0.9rem; opacity: 0.4; }

.footer { text-align: center; padding: 2rem; color: var(--muted); font-size: 0.8rem; border-top: 1px solid var(--line); }
/* uz sākumlapas kājene turpina tumšo stāsta sekciju */
.site[data-page="home"] .footer {
  background: #17120c; color: rgba(244, 234, 216, 0.45);
  border-top-color: rgba(201, 164, 94, 0.13);
}

/* Toast */
.toast {
  position: fixed; bottom: 1.6rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; font-size: 0.85rem;
  padding: 0.8rem 1.6rem; border-radius: 2rem; z-index: 70;
  opacity: 0; transition: opacity 0.3s, transform 0.3s; pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Paldies par pasūtījumu =====
   Pēc samaksas cilvēkam vajag vienu skaidru apstiprinājumu un ceļu atpakaļ,
   nevis vēl vienu lapu ar piedāvājumiem. */
.thanks {
  max-width: 44rem; margin: 0 auto;
  padding: clamp(5rem, 18vh, 10rem) var(--gut) clamp(5rem, 14vh, 8rem);
  text-align: center;
}
.thanks__mark {
  display: block; width: 72px; height: 72px; margin: 0 auto 2rem;
  opacity: 0.55;
}
.thanks h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.1;
}
.thanks__lead {
  margin-top: 1.2rem; font-size: 1.05rem; line-height: 1.75;
}
.thanks__note {
  margin: 1rem auto clamp(2.2rem, 6vh, 3.2rem); max-width: 36ch;
  font-size: 0.88rem; line-height: 1.75; color: var(--muted);
}
