/* Books That Help You — статична верзија. Дизајн токени од src/app/(frontend)/globals.css */
:root {
  --ink-0: #0d0e11;
  --ink-1: #14161a;
  --ink-2: #1b1e23;
  --ink-deep: #0a0b0d;
  --fg: #eeebe4;
  --fg-strong: #f4f1ea;
  --fg-2: #b3aea3;
  --fg-3: #8c877d;
  --fg-4: #6a665d;
  --fg-soft: #dad6cc;
  --paper: #f3efe6;
  --paper-3: #e1dccf;
  --ink-text: #17181b;
  --ink-text-2: #5b5850;
  --ink-text-3: #4a4740;
  --amber: #e9b44c;
  --amber-hover: #f3c76a;
  --amber-ink: #1a1407;
  --amber-dark: #8a5a00;
  --amber-12: rgba(233, 180, 76, 0.12);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-3: rgba(255, 255, 255, 0.15);
  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
@media (min-width: 1024px) {
  html {
    scroll-padding-top: 140px;
  }
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink-0);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.menu-open {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p,
figure,
blockquote,
ul {
  margin: 0;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
::selection {
  background: rgba(233, 180, 76, 0.35);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 6px;
}
[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (max-width: 480px) {
  .container {
    padding-inline: 16px;
  }
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--amber);
  color: var(--amber-ink);
  font-weight: 600;
}
.amber {
  color: var(--amber);
}

/* ── Типографија ── */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--fg-strong);
  font-size: clamp(28px, 3.2vw, 40px);
}
.page-title {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
  font-size: clamp(34px, 4vw, 52px);
}
.lead {
  max-width: 640px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-2);
}

/* ── Копчиња ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding-inline: 22px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-lg {
  height: 56px;
  padding-inline: 28px;
  border-radius: 14px;
  font-size: 14px;
}
.btn-amber {
  background: var(--amber);
  color: var(--amber-ink);
}
.btn-amber:hover {
  background: var(--amber-hover);
}
.btn-ghost {
  border: 1px solid rgba(238, 235, 228, 0.22);
  color: var(--fg-soft);
}
.btn-ghost:hover {
  border-color: rgba(238, 235, 228, 0.5);
  color: var(--fg);
}
.btn-ink {
  background: var(--ink-text);
  color: var(--paper);
}
.btn-ink:hover {
  background: #000;
}
.btn-icon {
  width: 50px;
  padding: 0;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.surface {
  background: var(--ink-1);
  border: 1px solid rgba(238, 235, 228, 0.08);
}
.lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.75);
  border-color: rgba(233, 180, 76, 0.3);
}

/* ── Заглавие ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 14, 17, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.header-top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 14px;
}
.logo {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--amber);
  color: var(--ink-text);
}
.logo-mark.sm {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.logo-name em {
  font-weight: 500;
  color: var(--amber);
}
.logo.compact .logo-name {
  font-size: 16.5px;
}
.logo-tagline {
  display: none;
  margin-top: 5px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}
@media (min-width: 640px) {
  .logo-tagline {
    display: block;
  }
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.lang-pill {
  display: inline-flex;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: #17191e;
}
.lang-pill a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding-inline: 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-2);
}
.lang-pill a:hover {
  color: var(--fg);
}
.lang-pill a[aria-current='true'] {
  background: var(--fg);
  color: var(--ink-text);
  font-weight: 700;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-3);
  border-radius: 12px;
  color: var(--fg);
}
.header-nav {
  display: none;
  align-items: center;
  gap: 24px;
}
@media (min-width: 1024px) {
  .header-nav {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}
.main-nav {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 30px;
  min-width: 0;
  height: 46px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  height: 46px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease;
}
.main-nav a:hover {
  color: var(--amber);
}
.main-nav a[aria-current='page'] {
  border-color: var(--amber);
  color: var(--amber);
}
.ext-link {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.ext-link:hover {
  color: var(--amber);
}

/* ── Мобилно мени ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: var(--ink-0);
}
.mobile-menu-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding-inline: 16px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 8px 16px;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--serif);
  font-size: 22px;
}
.mobile-nav a:hover,
.mobile-nav a[aria-current='page'] {
  color: var(--amber);
}
.mobile-menu-foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
  padding: 20px 16px 28px;
  border-top: 1px solid var(--line);
}
.lang-wide {
  display: flex;
  gap: 8px;
}
.lang-wide a,
.menu-action {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  border: 1px solid var(--line-3);
  border-radius: 12px;
  font-size: 14px;
  color: var(--fg-soft);
}
.lang-wide a[aria-current='true'] {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--ink-text);
  font-weight: 700;
}
.menu-actions {
  display: flex;
  gap: 8px;
}
.menu-action {
  font-size: 13.5px;
}
.menu-action.square {
  flex: 0 0 46px;
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px;
  padding-top: 88px;
  padding-bottom: 96px;
}
.hero-copy {
  display: flex;
  flex: 1 1 520px;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12.5px;
  color: var(--fg-2);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--amber);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
}
.hero h1 em {
  font-weight: 400;
  color: var(--amber);
}
.hero-sub {
  max-width: 560px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--fg-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--fg-2);
}
.trust li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-art {
  position: relative;
  flex: 1 1 420px;
  min-width: 0;
  height: 540px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--ink-1);
}
.hero-floor {
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #101215;
}
.hero-cover {
  position: absolute;
}
.hero-cover.c1 {
  left: 32%;
  top: 62px;
  z-index: 2;
  width: 36%;
  filter: drop-shadow(0 44px 50px rgba(0, 0, 0, 0.7));
}
.hero-cover.c2 {
  left: 3%;
  top: 108px;
  width: 34%;
  transform: rotate(-9deg);
  filter: drop-shadow(0 34px 40px rgba(0, 0, 0, 0.6));
}
.hero-cover.c3 {
  right: 3%;
  top: 120px;
  width: 33%;
  transform: rotate(8deg);
  filter: drop-shadow(0 34px 40px rgba(0, 0, 0, 0.6));
}
.hero-label {
  position: absolute;
  right: 24px;
  bottom: 28px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: rgba(30, 33, 39, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero-label:hover {
  border-color: rgba(233, 180, 76, 0.5);
}
.hero-label small {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.hero-label span {
  font-size: 13px;
  font-weight: 600;
}
@media (max-width: 767px) {
  .hero-inner {
    gap: 40px;
    padding-top: 48px;
    padding-bottom: 64px;
  }
  .hero-sub {
    font-size: 16.5px;
  }
  .hero-art {
    height: 420px;
  }
}

/* ── Корица (без слика) ── */
.cover {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 3px 7px 7px 3px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 20px 30px -16px rgba(23, 24, 27, 0.5);
}
.cover-spine {
  width: 8%;
  border-right: 1px solid #e3dfd5;
  background: #eeebe4;
}
.cover-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 15% 11% 10%;
}
.cover-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18%;
  min-width: 16px;
  max-width: 34px;
  aspect-ratio: 1;
  border-radius: 25%;
  background: var(--ink-text);
  color: var(--amber);
}
.cover-mark svg {
  width: 62%;
  height: 62%;
}
.cover-title {
  font-family: var(--serif);
  font-size: clamp(13px, 1.4vw, 20px);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink-text);
}
.cover-rule {
  display: block;
  width: 36px;
  height: 2px;
  margin-top: 0.6em;
  background: var(--amber);
}
.cover-brand {
  font-size: 6px;
  letter-spacing: 0.2em;
  color: var(--fg-3);
}

/* ── Секции ── */
.section {
  padding-top: 72px;
  padding-bottom: 40px;
}
.section.first {
  padding-top: 56px;
}
.section.last {
  padding-bottom: 96px;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.section-head > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.more-link:hover {
  color: var(--amber);
}

.soon-card {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  padding: 44px;
  border-radius: 28px;
}
.soon-copy {
  display: flex;
  flex: 1 1 460px;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.soon-copy p {
  max-width: 600px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--fg-2);
}
.soon-shelf {
  display: flex;
  flex: 0 1 380px;
  align-items: flex-end;
  gap: 14px;
  min-width: 0;
}
.soon-shelf .cover {
  flex: 1;
  opacity: 0.9;
}
.soon-shelf .cover:nth-child(2) {
  transform: translateY(-14px);
}
.cover.blank .cover-body {
  justify-content: flex-end;
}
.cover.blank .cover-lines {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.cover.blank .cover-lines i {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: #e6e1d6;
}
.cover.blank .cover-lines i:nth-child(2) {
  width: 70%;
}
.cover.blank .cover-lines i:nth-child(3) {
  width: 45%;
  background: var(--amber);
  opacity: 0.7;
}
@media (max-width: 767px) {
  .soon-card {
    padding: 28px;
  }
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
@media (max-width: 420px) {
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.cat-card {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 20px;
  border-radius: 18px;
}
.letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--amber-12);
  font-family: var(--serif);
  font-size: 23px;
  font-style: italic;
  color: var(--amber);
}
.cat-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cat-card-foot b {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.cat-card-foot span {
  color: var(--fg-3);
}

.cat-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}
.cat-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 20px;
}
.cat-tile .letter {
  width: 48px;
  height: 48px;
  font-size: 24px;
}
.cat-tile b {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--fg-strong);
}
.cat-tile:hover b {
  color: var(--amber);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
}
.why-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 28px;
  background: var(--ink-0);
}
.why-item h3 {
  font-size: 17px;
  font-weight: 600;
}
.why-item p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-2);
}

.creator {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}
.creator.top {
  align-items: flex-start;
}
.portrait {
  position: relative;
  display: flex;
  flex: 1 1 340px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 460px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: radial-gradient(120% 90% at 30% 15%, #1d2026 0%, var(--ink-1) 55%, #0f1114 100%);
}
.portrait-mono {
  font-family: var(--serif);
  font-size: clamp(88px, 11vw, 140px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--amber);
}
.portrait-mark {
  position: absolute;
  left: 24px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}
@media (min-width: 1024px) {
  .creator.top .portrait {
    position: sticky;
    top: 150px;
  }
}
.creator-copy {
  display: flex;
  flex: 1 1 460px;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.creator-name {
  font-family: var(--serif);
  font-size: clamp(36px, 4.4vw, 52px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
}
h1.creator-name {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
}
.creator-role {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-soft);
}
.creator-bio {
  max-width: 600px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-2);
}
.creator.top .creator-bio {
  font-size: 19px;
  line-height: 1.65;
}

.nl-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.paper-card {
  display: flex;
  flex: 2 1 560px;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: 44px;
  border-radius: 28px;
  background: var(--paper);
  color: var(--ink-text);
}
.paper-card .eyebrow {
  font-weight: 700;
  color: var(--amber-dark);
}
.paper-card h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.paper-card p {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-text-3);
}
@media (max-width: 767px) {
  .paper-card {
    padding: 28px;
  }
}
.social-col {
  display: flex;
  flex: 1 1 320px;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.social-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: 24px;
}
.social-card small {
  display: block;
  font-size: 13px;
  color: var(--fg-3);
}
.social-card b {
  display: block;
  margin-top: 4px;
  font-size: 19px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ── Форми ── */
.field {
  width: 100%;
  height: 48px;
  padding-inline: 14px;
  border: 1px solid rgba(23, 24, 27, 0.18);
  border-radius: 12px;
  background: #fff;
  color: var(--ink-text);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field:focus {
  border-color: rgba(23, 24, 27, 0.6);
  box-shadow: 0 0 0 4px rgba(23, 24, 27, 0.08);
}
textarea.field {
  height: auto;
  min-height: 150px;
  padding-block: 12px;
  resize: vertical;
}
.nl-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nl-row .field {
  flex: 1 1 260px;
  min-width: 0;
  height: 54px;
  padding-inline: 18px;
  border-radius: 14px;
}
.nl-row .btn {
  height: 54px;
  padding-inline: 26px;
  border-radius: 14px;
  font-size: 13.5px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-text-2);
}
.check input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--ink-text);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink-text);
}
@media (max-width: 639px) {
  .contact-form {
    padding: 20px;
  }
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-text-3);
}
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.form-row label {
  flex: 1 1 220px;
}
.form-foot {
  display: flex;
  justify-content: flex-end;
}
.form-foot .btn {
  height: 52px;
  padding-inline: 28px;
  font-size: 13.5px;
}

/* ── Внатрешни страници ── */
.page {
  padding-top: 40px;
  padding-bottom: 96px;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-3);
}
.crumbs a:hover {
  color: var(--amber);
}
.crumbs [aria-current='page'] {
  color: var(--fg-soft);
}
.page-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 40px;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 32px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 18px;
}
.empty h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--fg-strong);
}
.empty p {
  max-width: 600px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--fg-3);
}
.empty .btn-row {
  margin-top: 6px;
}
.empty .nl-form {
  width: 100%;
  max-width: 620px;
  margin-top: 6px;
}
.empty .check {
  color: var(--fg-3);
}
.empty .check input {
  accent-color: var(--amber);
}
.empty .field {
  border-color: rgba(238, 235, 228, 0.14);
  background: #17191e;
  color: var(--fg);
}
.empty .field:focus {
  border-color: rgba(233, 180, 76, 0.6);
  box-shadow: 0 0 0 4px rgba(233, 180, 76, 0.12);
}
.subhead {
  margin: 48px 0 18px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--fg-strong);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding-inline: 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--fg-soft);
}
.chips a:hover {
  border-color: rgba(233, 180, 76, 0.5);
  color: var(--fg);
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
}
.contact-list {
  display: flex;
  flex: 1 1 340px;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.contact-list h2 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--fg-strong);
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 18px;
}
a.contact-row:hover {
  border-color: rgba(233, 180, 76, 0.3);
}
.contact-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--amber-12);
  color: var(--amber);
}
.contact-row small {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.contact-row b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.contact-note {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--fg-3);
}
.contact-form-col {
  flex: 1.4 1 440px;
  min-width: 0;
}

.prose {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.8;
  color: #cfcac0;
}
.prose > * + * {
  margin-top: 1em;
}
.prose h2 {
  margin-top: 1.6em;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--fg-strong);
}
.prose ul {
  padding-left: 1.4em;
  list-style: disc;
}
.prose li + li {
  margin-top: 0.4em;
}
.prose a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.meta {
  font-size: 13px;
  color: var(--fg-3);
}

.notfound {
  display: flex;
  min-height: 60vh;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding-block: 96px;
}
.notfound .big {
  font-family: var(--serif);
  font-size: 96px;
  font-style: italic;
  line-height: 1;
  color: var(--amber);
}
.notfound h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  color: var(--fg-strong);
}
.notfound p {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-2);
}
.notfound p span {
  color: var(--fg-3);
}

/* ── Подножје ── */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-deep);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-top: 72px;
  padding-bottom: 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}
.footer-col.brand {
  gap: 18px;
}
.footer-col.brand p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-3);
}
.footer-col h2 {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-4);
}
.footer-col a,
.footer-col .row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-2);
  overflow-wrap: anywhere;
}
.footer-col a:hover {
  color: var(--amber);
}
.footer-col .ic {
  flex-shrink: 0;
  color: var(--amber);
}
.lang-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.lang-text a {
  color: var(--fg-3);
}
.lang-text a:hover {
  color: var(--fg);
}
.lang-text a[aria-current='true'] {
  color: var(--amber);
}
.lang-text span {
  color: #4a4740;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-4);
}
.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-bottom nav a {
  color: var(--fg-3);
}
.footer-bottom nav a:hover {
  color: var(--amber);
}
.creator.top {
  margin-top: 32px;
}

/* ── Мали екрани: заглавието мора да собере лого + MK/EN + мени ── */
.logo {
  min-width: 0;
  flex-shrink: 1;
}
@media (max-width: 479px) {
  .header-top {
    gap: 10px;
  }
  .header-actions {
    gap: 8px;
  }
  .logo {
    gap: 10px;
  }
  .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .logo-name {
    font-size: 16px;
    line-height: 1.15;
  }
  .lang-pill a {
    height: 32px;
    padding-inline: 10px;
  }
  .icon-btn {
    width: 42px;
    height: 42px;
  }
}
@media (max-width: 359px) {
  .logo-name {
    font-size: 14.5px;
  }
  .lang-pill a {
    padding-inline: 8px;
  }
}

/* ── Фотографија на креаторот ── */
.portrait.photo {
  aspect-ratio: 832 / 887;
  background: var(--ink-1);
}
.portrait.photo picture,
.portrait.photo img {
  display: block;
  width: 100%;
  height: 100%;
}
.portrait.photo img {
  object-fit: cover;
}
.creator-bio.long {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Избор на јазик (13 јазици) ── */
.lang-menu {
  position: relative;
}
.lang-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding-inline: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: #17191e;
  color: var(--fg);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.lang-menu summary::-webkit-details-marker {
  display: none;
}
.lang-menu summary svg:first-child {
  color: var(--amber);
}
.lang-menu[open] summary {
  border-color: rgba(233, 180, 76, 0.5);
}
.lang-menu[open] summary svg:last-child {
  transform: rotate(180deg);
}
.lang-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  width: 340px;
  padding: 8px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--ink-1);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.75);
}
.lang-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--fg-soft);
}
.lang-list a b {
  flex: 0 0 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--fg-3);
}
.lang-list a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
}
.lang-list a[aria-current='true'] {
  background: var(--amber-12);
  color: var(--amber);
}
.lang-list a[aria-current='true'] b {
  color: var(--amber);
}
@media (max-width: 479px) {
  .lang-menu summary {
    height: 40px;
    padding-inline: 10px;
  }
  .lang-list {
    position: fixed;
    top: 70px;
    right: 16px;
    left: 16px;
    width: auto;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }
}
.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.lang-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 4px 6px;
  border: 1px solid var(--line-3);
  border-radius: 12px;
  font-size: 13.5px;
  text-align: center;
  color: var(--fg-soft);
}
.lang-grid a[aria-current='true'] {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--ink-text);
  font-weight: 700;
}
.mobile-menu {
  overflow-y: auto;
}
.mobile-nav {
  overflow: visible;
}
.footer-col .lang-text {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.main-nav {
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar {
  display: none;
}
.main-nav a {
  flex-shrink: 0;
  white-space: nowrap;
}
.cover-title {
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Хинди и кинески: Литерата/Онест за латиница, Noto за останатите знаци */
html[lang='hi'] {
  --serif: 'Literata', 'Noto Serif Devanagari', Georgia, serif;
  --sans: 'Onest', 'Noto Sans Devanagari', system-ui, sans-serif;
}
html[lang|='zh'] {
  --serif: 'Literata', 'Noto Serif SC', 'Songti SC', serif;
  --sans: 'Onest', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
html[lang='hi'] em,
html[lang|='zh'] em,
html[lang='hi'] .portrait-mono,
html[lang|='zh'] .portrait-mono {
  font-style: normal;
}
html[lang='hi'] .hero h1,
html[lang|='zh'] .hero h1 {
  line-height: 1.25;
}

/* ── Книги (books.py) ── */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.book-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.book-card:hover {
  border-color: rgba(233, 180, 76, 0.3);
  box-shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.75);
}
.book-art {
  display: block;
  padding: 28px 18% 22px;
  background: radial-gradient(120% 90% at 50% 0%, var(--ink-2) 0%, var(--ink-1) 70%);
}
.book-art img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 3px 7px 7px 3px;
  box-shadow: 0 20px 30px -16px rgba(0, 0, 0, 0.7);
  transition: transform 0.25s ease;
}
.book-art .cover {
  transition: transform 0.25s ease;
}
.book-card:hover .book-art img,
.book-card:hover .book-art .cover {
  transform: translateY(-4px);
}
.book-art .cover {
  container-type: inline-size;
}
.book-art .cover-title {
  font-size: 10.5cqi; /* по ширината на корицата, за долгите зборови да не се кршат */
  overflow-wrap: break-word;
  hyphens: auto;
}
.book-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line);
}
.book-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.book-meta a:hover {
  color: var(--amber);
}
.book-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--fg-strong);
  overflow-wrap: anywhere;
}
.book-title a:hover {
  color: var(--amber);
}
.book-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-2);
}
.book-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}
.book-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg-strong);
}
.book-buy .btn {
  height: 42px;
  padding-inline: 16px;
  border-radius: 10px;
}
@media (max-width: 480px) {
  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .book-art {
    padding: 18px 14% 14px;
  }
  .book-info {
    padding: 14px;
  }
  .book-title {
    font-size: 16px;
  }
  .book-desc {
    display: none;
  }
  .book-buy .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Страница на книга (/books/<slug>/) ── */
.book-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin-top: 8px;
}
.bd-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 28px;
  border-radius: 22px;
  background: radial-gradient(120% 90% at 50% 0%, var(--ink-2) 0%, var(--ink-1) 70%);
  border: 1px solid var(--line);
}
.bd-cover {
  margin: 0;
}
.bd-cover a {
  display: block;
  border-radius: 3px 8px 8px 3px;
  overflow: hidden;
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.85);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bd-cover a:hover,
.bd-cover a:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 30px 48px -22px rgba(0, 0, 0, 0.9);
}
.bd-cover img {
  display: block;
  width: 100%;
  height: auto;
}
.bd-cover figcaption {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--fg-3);
}
.bd-hint {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
  text-align: center;
  color: var(--fg-4);
}
.bd-title {
  margin: 10px 0 8px;
  font-family: var(--serif);
  font-size: clamp(32px, 4.2vw, 46px);
  font-weight: 600;
  line-height: 1.08;
  color: var(--fg-strong);
}
.bd-sub {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  line-height: 1.4;
  color: var(--fg-2);
}
.bd-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.bd-facts li {
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg-3);
}
.bd-facts b {
  font-weight: 600;
  color: var(--fg-strong);
}
.bd-about h2,
.pb-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}
.bd-about p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-2);
}
.price-box {
  margin-top: 26px;
  padding: 24px;
  border-radius: 18px;
}
.pb-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--fg-strong);
}
.pb-main small {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--fg-3);
}
.pb-conv {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 20px 0 8px;
}
.pb-conv label {
  font-size: 14px;
  color: var(--fg-2);
}
.pb-select {
  height: 44px;
  max-width: 100%;
  padding: 0 38px 0 14px;
  border: 1px solid var(--line-3);
  border-radius: 10px;
  background: var(--ink-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23e9b44c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--fg-strong);
  font: inherit;
  font-size: 15px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.pb-select:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
.pb-select option {
  background: var(--ink-1);
  color: var(--fg-strong);
}
.pb-out {
  font-size: 24px;
  font-weight: 700;
  color: var(--amber);
  white-space: nowrap;
}
.pb-note {
  margin: 6px 0 20px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg-3);
}
.pb-buy {
  width: 100%;
  justify-content: center;
  gap: 10px;
}
@media (max-width: 900px) {
  .book-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 480px) {
  .bd-gallery {
    gap: 12px;
    padding: 16px;
  }
  .pb-main {
    font-size: 36px;
  }
  .pb-conv {
    align-items: stretch;
    flex-direction: column;
  }
  .pb-select {
    width: 100%;
  }
}

/* ── Донации: „Донирај“ во менито ── */
.main-nav a.nav-donate,
.mobile-nav a.nav-donate {
  gap: 7px;
  color: var(--amber);
}
.main-nav a.nav-donate svg,
.mobile-nav a.nav-donate svg {
  flex-shrink: 0;
}
.main-nav a.nav-donate:hover {
  color: var(--amber-hover);
}

/* ── Донации: Топ 10 донатори ── */
.donors-band {
  padding-top: 20px;
}
.donors-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 20px 20px;
  border: 1px solid rgba(233, 180, 76, 0.24);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(233, 180, 76, 0.08), rgba(233, 180, 76, 0.02) 70%), var(--ink-1);
}
.donors-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.donors-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--amber-12);
  color: var(--amber);
}
.donors-copy {
  flex: 1;
  min-width: 0;
}
.donors-copy h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--fg-strong);
}
.donors-copy p {
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fg-3);
}
.donors-btn {
  flex-shrink: 0;
  height: 44px;
  padding-inline: 18px;
}
.donor-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.donor {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 54px;
  padding: 0 12px 0 7px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}
.donor-rank {
  display: inline-flex;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--fg-2);
}
.donor-name {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--fg);
}
.donor.r1 .donor-rank {
  background: var(--amber);
  color: var(--amber-ink);
}
.donor.r2 .donor-rank {
  background: #d6d2c8;
  color: #1b1c1f;
}
.donor.r3 .donor-rank {
  background: #c4884f;
  color: #1d1307;
}
.donor.r1:not(.free) {
  border-color: rgba(233, 180, 76, 0.45);
}
.donor.free {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.14);
  background: transparent;
}
.donor.free .donor-name {
  font-weight: 500;
  color: var(--fg-4);
}
@media (max-width: 1023px) {
  /* На помали екрани листата се лизга хоризонтално. */
  .donors-band .donor-list {
    display: flex;
    overflow-x: auto;
    margin-inline: -20px;
    padding-inline: 20px;
    scroll-padding-inline: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 28px), transparent);
  }
  .donors-band .donor-list::-webkit-scrollbar {
    display: none;
  }
  .donors-band .donor {
    flex: 0 0 auto;
    min-width: 184px;
    max-width: 260px;
    scroll-snap-align: start;
  }
}
@media (max-width: 599px) {
  .donors-band {
    padding-top: 14px;
  }
  .donors-card {
    padding: 16px 16px 18px;
  }
  .donors-band .donor-list {
    margin-inline: -16px;
    padding-inline: 16px;
    scroll-padding-inline: 16px;
  }
  .donors-head {
    flex-wrap: wrap;
  }
  .donors-copy h2 {
    font-size: 19px;
  }
  .donors-btn {
    width: 100%;
  }
}

/* ── Донации: страница ── */
.donate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-areas:
    'letter donors'
    'accounts accounts';
  gap: 24px;
  align-items: start;
}
.donate-letter {
  grid-area: letter;
  gap: 16px;
}
.donate-letter p {
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.7;
}
.donate-seed {
  padding-left: 16px;
  border-left: 3px solid var(--amber);
  font-family: var(--serif);
  font-size: 21px !important;
  font-style: italic;
  line-height: 1.45 !important;
  color: var(--ink-text) !important;
}
.donate-sign {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 20px !important;
  font-style: italic;
  font-weight: 500;
  color: var(--ink-text) !important;
}
.donate-accounts {
  grid-area: accounts;
}
.donate-accounts .subhead {
  margin-top: 24px;
}
.donate-donors {
  grid-area: donors;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border-radius: 24px;
}
.donor-list.vertical {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
@media (max-width: 1180px) and (min-width: 900px), (max-width: 459px) {
  .donor-list.vertical {
    grid-template-columns: minmax(0, 1fr);
  }
}
.donate-jump {
  margin-top: 6px;
}
.donors-join {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.donors-join h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-strong);
}
.donors-join p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-3);
}
.donors-join a {
  color: var(--amber);
  overflow-wrap: anywhere;
}
.donors-join a:hover {
  text-decoration: underline;
}
.acc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.acc-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border-radius: 20px;
}
.acc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.acc-cur {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 40px;
  border-radius: 10px;
  background: var(--amber);
  color: var(--amber-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.acc-head h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--fg-strong);
}
.acc-head small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--fg-3);
}
.acc-rows {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.acc-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.acc-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.acc-row dt {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.acc-row dd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0;
}
.acc-stack {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.acc-stack small {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--fg-3);
}
.acc-val {
  flex: 1;
  min-width: 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
  color: var(--fg);
}
.acc-val.mono {
  font-family: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;
  font-size: 15.5px;
  letter-spacing: 0.02em;
  color: var(--fg-strong);
}
.copy-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding-inline: 10px;
  border: 1px solid var(--line-3);
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-soft);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.copy-btn:hover {
  border-color: rgba(233, 180, 76, 0.55);
  color: var(--amber);
}
.copy-ok {
  display: none;
}
.copy-btn.done {
  border-color: rgba(233, 180, 76, 0.6);
  background: var(--amber-12);
  color: var(--amber);
}
.copy-btn.done .copy-ic {
  display: none;
}
.copy-btn.done .copy-ok {
  display: inline-flex;
}
@media (max-width: 1100px) {
  .acc-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}
@media (max-width: 899px) {
  .donate-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'letter'
      'accounts'
      'donors';
  }
  .donate-accounts .subhead {
    margin-top: 8px;
  }
}
@media (max-width: 479px) {
  .acc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .acc-card {
    padding: 18px 16px;
  }
  .donate-donors {
    padding: 18px 16px;
  }
  .copy-txt {
    display: none;
  }
  .copy-btn {
    width: 38px;
    height: 38px;
    justify-content: center;
    padding: 0;
  }
}
.mobile-nav a.nav-donate svg {
  width: 20px;
  height: 20px;
}

/* Име + износ и валута (две линии) */
.donor-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.donor-amt {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--amber);
}
/* Ред со знаменцето и името. */
.donor-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.donor-flag {
  display: inline-flex;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.donor-flag svg {
  display: block;
  width: auto;
  height: 13px;
}
/* Ознака за валутата: евра сино, долари зелено, денари злато. */
.cur {
  display: inline-block;
  margin-left: 5px;
  padding: 0 5px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.02em;
  vertical-align: 1px;
}
.cur-eur {
  background: rgba(91, 141, 239, 0.18);
  color: #a9c2f8;
}
.cur-usd {
  background: rgba(79, 191, 122, 0.17);
  color: #8be0a8;
}
.cur-mkd {
  background: rgba(233, 180, 76, 0.14);
  color: var(--amber);
}
/* Имиња: 1. место злато, 2. сребро, 3. бронза, другите бели. */
.donor.r1:not(.free) .donor-name,
.donor.r2:not(.free) .donor-name,
.donor.r3:not(.free) .donor-name {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.donor.r1:not(.free) .donor-name {
  color: #f2c14e;
  background-image: linear-gradient(180deg, #ffe9a3 0%, #f2c14e 50%, #c9921a 100%);
}
.donor.r2:not(.free) .donor-name {
  color: #d3d8de;
  background-image: linear-gradient(180deg, #ffffff 0%, #c9ced5 55%, #9aa2ab 100%);
}
.donor.r3:not(.free) .donor-name {
  color: #d08a4c;
  background-image: linear-gradient(180deg, #f6c08e 0%, #d08a4c 55%, #a1622b 100%);
}
.donor:not(.r1):not(.r2):not(.r3):not(.free) .donor-name {
  color: #ffffff;
}

/* ── Акциска цена и избор на јазик на книгата (books.py: old_price, languages) ── */
.book-art {
  position: relative;
}
.sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e5243b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.8);
}
.book-price .old,
.pb-old {
  margin-right: 4px;
  font-weight: 500;
  color: var(--fg-3);
  text-decoration-line: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(229, 36, 59, 0.9);
}
.book-price .old {
  font-size: 15px;
}
.pb-old {
  font-size: 26px;
}
.pb-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pb-sale {
  padding: 3px 9px;
  border-radius: 999px;
  background: #e5243b;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.pb-langs {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}
.pb-langs legend {
  margin-bottom: 10px;
  padding: 0;
  font-size: 14px;
  color: var(--fg-2);
}
.pb-lang-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pb-lang {
  position: relative;
  flex: 1 1 140px;
}
.pb-lang input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.pb-lang span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-3);
  border-radius: 10px;
  background: var(--ink-2);
  color: var(--fg-2);
  font-size: 15px;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.pb-lang input:hover + span {
  border-color: rgba(233, 180, 76, 0.5);
}
.pb-lang input:checked + span {
  border-color: var(--amber);
  background: var(--amber-12);
  color: var(--fg-strong);
  box-shadow: inset 0 0 0 1px var(--amber);
}
.pb-lang input:focus-visible + span {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
.pb-lang-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--fg-3);
}
@media (max-width: 480px) {
  .sale-badge {
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    font-size: 10.5px;
  }
  .pb-old {
    font-size: 22px;
  }
}

/* ── Понуда: која било книга на кој било јазик по истата цена (shop.py: OFFER) ── */
.offer-band {
  padding-top: 28px;
}
.offer-card {
  --red: #e5243b;
  --red-ink: #ff4a5c;
  position: relative;
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr) auto;
  grid-template-areas:
    "stamp head act"
    "stamp body act";
  align-items: center;
  column-gap: 34px;
  row-gap: 10px;
  padding: 26px 32px 26px 26px;
  overflow: hidden;
  border: 1px solid rgba(229, 36, 59, 0.5);
  border-radius: 22px;
  background:
    radial-gradient(120% 140% at 0% 50%, rgba(229, 36, 59, 0.22), rgba(229, 36, 59, 0) 55%),
    linear-gradient(180deg, rgba(229, 36, 59, 0.08), rgba(229, 36, 59, 0.02)),
    var(--ink-1);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4) inset, 0 24px 60px -36px rgba(229, 36, 59, 0.55);
}
.offer-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(255, 74, 92, 0.28);
  border-radius: 16px;
  pointer-events: none;
}
.offer-stamp {
  grid-area: stamp;
  position: relative;
  width: 196px;
  height: 196px;
  color: var(--red-ink);
  transform: rotate(-12deg);
  animation: stamp-in 0.6s cubic-bezier(0.2, 0.9, 0.25, 1.15) 0.25s both;
  filter: drop-shadow(0 0 18px rgba(229, 36, 59, 0.35));
}
.stamp-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  font-family: var(--sans);
  text-transform: uppercase;
}
@keyframes stamp-in {
  0% {
    opacity: 0;
    transform: rotate(-24deg) scale(1.7);
  }
  70% {
    opacity: 1;
    transform: rotate(-11deg) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: rotate(-12deg) scale(1);
  }
}
.offer-head {
  grid-area: head;
  align-self: end;
  min-width: 0;
}
.offer-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.offer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}
.offer-title {
  font-family: var(--serif);
  font-size: clamp(23px, 2.35vw, 31px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--fg-strong);
  text-wrap: balance;
}
.offer-body {
  grid-area: body;
  align-self: start;
  min-width: 0;
}
.offer-text {
  max-width: 640px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
}
.offer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.offer-langs li {
  padding: 3px 9px;
  border: 1px solid rgba(255, 74, 92, 0.32);
  border-radius: 999px;
  background: rgba(229, 36, 59, 0.08);
  font-size: 12px;
  line-height: 1.5;
  color: var(--fg-soft);
}
.offer-langs li.more {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  font-weight: 700;
}
.offer-act {
  grid-area: act;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.btn-red {
  background: var(--red, #e5243b);
  color: #fff;
  box-shadow: 0 12px 28px -14px rgba(229, 36, 59, 0.9);
}
.btn-red:hover {
  background: #f23a50;
}
.offer-mail {
  font-size: 13px;
  color: var(--fg-3);
}
.offer-mail a {
  color: var(--fg-soft);
  text-decoration: underline;
  text-decoration-color: rgba(255, 74, 92, 0.6);
  text-underline-offset: 3px;
}
.offer-mail a:hover {
  color: #fff;
}
@media (max-width: 1100px) {
  .offer-card {
    grid-template-columns: 170px minmax(0, 1fr);
    grid-template-areas:
      "stamp head"
      "stamp body"
      "stamp act";
    column-gap: 28px;
  }
  .offer-stamp {
    width: 170px;
    height: 170px;
  }
  .offer-act {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 18px;
    margin-top: 8px;
    text-align: left;
  }
}
@media (max-width: 640px) {
  .offer-band {
    padding-top: 22px;
  }
  .offer-card {
    grid-template-columns: 116px minmax(0, 1fr);
    grid-template-areas:
      "stamp head"
      "body body"
      "act act";
    column-gap: 16px;
    row-gap: 14px;
    padding: 20px 18px 22px;
  }
  .offer-stamp {
    width: 116px;
    height: 116px;
    align-self: center;
    filter: drop-shadow(0 0 10px rgba(229, 36, 59, 0.35));
  }
  .offer-head {
    align-self: center;
  }
  .offer-eyebrow {
    font-size: 11px;
    letter-spacing: 0.08em;
  }
  .offer-title {
    font-size: 20px;
  }
  .offer-text {
    font-size: 14.5px;
  }
  .offer-langs {
    gap: 5px;
    margin-top: 12px;
  }
  .offer-langs li {
    padding: 2px 8px;
    font-size: 11.5px;
  }
  .offer-act {
    flex-direction: column;
    align-items: stretch;
    margin-top: 0;
    text-align: center;
  }
  .offer-act .btn {
    white-space: normal;
    height: auto;
    min-height: 54px;
    padding-block: 12px;
    text-align: center;
  }
}

/* Црвено поле „ЗА ИСТА ЦЕНА“ (build.py: anylang_box) — горе и долу на страницата на книгата и на „Книги“.
   Истата црвена како печатот на почетната. */
.anylang {
  --red: #e5243b;
  --red-ink: #ff4a5c;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0 4px;
  padding: 14px 18px 14px 14px;
  border: 2px dashed rgba(255, 74, 92, 0.8);
  border-radius: 14px;
  background:
    radial-gradient(120% 160% at 0% 50%, rgba(229, 36, 59, 0.2), rgba(229, 36, 59, 0) 60%),
    rgba(229, 36, 59, 0.08);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-soft);
}
.anylang p {
  margin: 0;
  min-width: 0;
}
.anylang b {
  color: var(--red-ink);
  font-weight: 700;
}
.anylang a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 74, 92, 0.75);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.anylang a:hover {
  text-decoration-color: #fff;
}
.al-seal {
  flex: none;
  display: grid;
  place-content: center;
  width: 78px;
  height: 78px;
  border: 3px double var(--red-ink);
  border-radius: 50%;
  color: var(--red-ink);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-12deg);
  box-shadow: 0 0 0 4px rgba(229, 36, 59, 0.1), 0 0 18px rgba(229, 36, 59, 0.3);
}
.al-seal span {
  display: block;
}
.price-box .anylang {
  margin: 0 0 18px;
}
.anylang-list {
  margin: 0 0 28px;
  max-width: 860px;
}
@media (max-width: 640px) {
  /* на телефон печатот лебди лево, а текстот тече и под него, за е-поштата да не се крши */
  .anylang {
    display: block;
    padding: 12px 14px 12px 12px;
    font-size: 14px;
  }
  .anylang::after {
    content: "";
    display: block;
    clear: both;
  }
  .al-seal {
    float: left;
    width: 62px;
    height: 62px;
    margin: 2px 12px 4px 0;
    font-size: 9px;
  }
}

/* ───────────── Бројач на посети најдолу на страницата ───────────── */
.visits {
  display: flex;
  justify-content: center;
  padding: 34px 0 8px;
}
.visits[hidden] {
  display: none;
}
.visits-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(460px, 100%);
  padding: 26px 30px 24px;
  border: 1px solid rgba(233, 180, 76, 0.38);
  border-radius: 22px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(233, 180, 76, 0.14), transparent 60%),
    linear-gradient(160deg, rgba(28, 27, 36, 0.92), rgba(10, 11, 16, 0.92));
  box-shadow: 0 24px 60px -28px #000, inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
}
.visits-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(233, 180, 76, 0.16);
  border-radius: 17px;
  pointer-events: none;
}
.visits-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.visits-num {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: var(--amber);
  background: linear-gradient(180deg, #fff3cf 0%, #f0c464 45%, #c48a2c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 34px rgba(233, 180, 76, 0.18);
}
.visits-orn {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 12px;
  color: var(--amber);
  font-size: 13px;
}
.visits-orn i {
  display: block;
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 180, 76, 0.7), transparent);
}

/* ───────────── Лист за добредојде ───────────── */
html.welcome-open {
  overflow: hidden;
}
.welcome {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 18px;
  perspective: 1600px;
}
.welcome-backdrop {
  position: absolute;
  inset: 0;
  /* Лесно затемнување: околу листот и понатаму се гледа вселената, без црна завеса.
     Без замаглување (backdrop-filter), бидејќи замаглувањето на 3D сцената во секоја слика
     е тешко за графичката картичка и на некои компјутери дава црно. */
  background: radial-gradient(75% 65% at 50% 45%, rgba(8, 9, 20, 0.14), rgba(5, 6, 12, 0.5));
  opacity: 0;
  transition: opacity 0.7s ease;
}
.welcome.on .welcome-backdrop {
  opacity: 1;
}
.welcome-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(620px, 100%);
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  overflow: hidden;
  border-radius: 4px 4px 6px 6px;
  color: #2a2116;
  background:
    radial-gradient(130% 80% at 50% 0%, rgba(255, 255, 255, 0.75), transparent 55%),
    radial-gradient(90% 60% at 100% 100%, rgba(196, 150, 70, 0.16), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(170, 120, 50, 0.12), transparent 60%),
    linear-gradient(175deg, #fdf8ec 0%, #f6edd6 60%, #efe2c3 100%);
  box-shadow:
    0 50px 110px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(201, 160, 80, 0.55),
    0 0 80px rgba(233, 180, 76, 0.22);
  transform-origin: 50% 100%;
  transform: translate3d(0, 90px, -120px) rotateX(48deg) rotateZ(-4deg) scale(0.9);
  opacity: 0;
  transition: transform 1.25s cubic-bezier(0.16, 0.84, 0.2, 1), opacity 0.6s ease;
}
.welcome.on .welcome-sheet {
  transform: none;
  opacity: 1;
}
.welcome.off .welcome-sheet {
  transform: translate3d(0, -60px, -80px) rotateX(-18deg) scale(0.94);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.55s ease;
}
.welcome.off .welcome-backdrop {
  opacity: 0;
  transition: opacity 0.6s ease 0.1s;
}
/* Мојата фотографија со логото: воден знак низ целиот лист, зад текстот. */
.welcome-mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  opacity: 0.5;
  filter: saturate(1.08) contrast(1.02);
  pointer-events: none;
}
/* Светол слој: посилен зад текстот, послаб кон рабовите, за сликата да се гледа во боја, а текстот да се чита. */
.welcome-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 16% at 50% 80%, rgba(253, 248, 236, 0.42), rgba(253, 248, 236, 0) 100%),
    radial-gradient(62% 58% at 50% 54%, rgba(253, 248, 236, 0.6), rgba(253, 248, 236, 0.34) 62%, rgba(253, 248, 236, 0.08) 100%),
    linear-gradient(180deg, rgba(253, 248, 236, 0.3), rgba(253, 248, 236, 0.12) 40%, rgba(253, 248, 236, 0.3));
  pointer-events: none;
}
.welcome-body p,
.welcome-eyebrow,
.welcome-closing,
.welcome-name,
.welcome-role {
  text-shadow: 0 0 2px rgba(255, 251, 240, 0.95), 0 0 10px rgba(255, 251, 240, 0.9), 0 0 22px rgba(255, 251, 240, 0.7);
}
.welcome-title {
  filter: drop-shadow(0 0 10px rgba(255, 251, 240, 0.95));
}
.welcome-frame {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(176, 135, 55, 0.6);
  box-shadow: inset 0 0 0 4px rgba(253, 248, 236, 0.4), inset 0 0 0 5px rgba(176, 135, 55, 0.35);
  pointer-events: none;
}
/* Мек златен сјај што еднаш поминува преку листот. */
.welcome-shine {
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 236, 180, 0.55) 50%, transparent 58%);
  transform: translateX(-60%);
  pointer-events: none;
}
.welcome.on .welcome-shine {
  animation: welcome-shine 2.2s ease 1s 1 both;
}
@keyframes welcome-shine {
  to { transform: translateX(60%); }
}
.welcome-bar {
  position: absolute;
  top: 22px;
  right: 22px;
  left: 22px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.welcome-bar > * {
  pointer-events: auto;
}
.welcome-lang {
  position: relative;
}
.welcome-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(176, 135, 55, 0.55);
  border-radius: 999px;
  background: rgba(255, 252, 243, 0.85);
  color: #4a3714;
  font: 600 14px/1 var(--sans);
  cursor: pointer;
  box-shadow: 0 6px 18px -10px rgba(80, 55, 10, 0.5);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.welcome-lang-btn:hover,
.welcome-lang-btn[aria-expanded='true'] {
  border-color: #b0873a;
  background: #fffaf0;
}
.welcome-lang-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  width: 300px;
  max-width: calc(100vw - 80px);
  padding: 8px;
  border: 1px solid rgba(176, 135, 55, 0.5);
  border-radius: 16px;
  background: #fffaf0;
  box-shadow: 0 24px 50px -20px rgba(60, 40, 5, 0.55);
}
.welcome-lang-list[hidden] {
  display: none;
}
.welcome-lang-list button {
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #3b2c12;
  font: 500 14px/1.2 var(--sans);
  text-align: left;
  cursor: pointer;
}
.welcome-lang-list button:hover,
.welcome-lang-list button:focus-visible {
  background: rgba(233, 180, 76, 0.2);
  outline: none;
}
.welcome-lang-list button[aria-selected='true'] {
  background: linear-gradient(180deg, #f3c76a, #e0a83e);
  color: #1a1407;
  font-weight: 700;
}
.welcome-x {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(176, 135, 55, 0.55);
  border-radius: 50%;
  background: rgba(255, 252, 243, 0.85);
  color: #4a3714;
  cursor: pointer;
  box-shadow: 0 6px 18px -10px rgba(80, 55, 10, 0.5);
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}
.welcome-x:hover {
  transform: rotate(90deg);
  background: #2a2116;
  color: #f6dfa3;
}
.welcome-lang-btn:focus-visible,
.welcome-x:focus-visible,
.welcome-cta:focus-visible {
  outline: 2px solid #b0873a;
  outline-offset: 3px;
}
.welcome-body {
  position: relative;
  z-index: 2;
  overflow-y: auto;
  padding: 84px clamp(26px, 7vw, 64px) 40px;
  text-align: center;
  transition: opacity 0.22s ease, filter 0.22s ease;
}
.welcome-sheet:focus {
  outline: none;
}
@media (max-width: 560px) {
  .welcome-body {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 56px, #000 84px);
    mask-image: linear-gradient(to bottom, transparent 0, transparent 56px, #000 84px);
  }
}
@media (max-width: 700px) {
  .visits {
    padding-bottom: 76px;
  }
}
.welcome-body.swap {
  opacity: 0;
  filter: blur(3px);
}
.welcome-eyebrow {
  margin: 0;
  font: 700 11.5px/1.4 var(--sans);
  letter-spacing: 0.34em;
  color: #a37a2c;
}
.welcome-title {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(40px, 8vw, 62px);
  font-weight: 600;
  line-height: 1.05;
  color: #3a2a0c;
  background: linear-gradient(180deg, #6b4a12 0%, #b5832e 55%, #8a5f17 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.welcome-orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 14px 0 18px;
  color: #b5832e;
  font-size: 14px;
}
.welcome-orn i {
  display: block;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #b5832e, transparent);
}
.welcome-body p {
  margin: 0 auto;
  max-width: 34em;
}
.welcome-lead {
  font-family: var(--serif);
  font-size: clamp(17px, 2.2vw, 19.5px);
  font-style: italic;
  line-height: 1.65;
  color: #33270f;
}
.welcome-thanks,
.welcome-par,
.welcome-books {
  margin-top: 14px !important;
  font-family: var(--serif);
  font-size: clamp(15.5px, 2vw, 17px);
  line-height: 1.7;
  color: #3d3220;
}
.welcome-thanks {
  padding: 14px 18px;
  border-top: 1px solid rgba(176, 135, 55, 0.35);
  border-bottom: 1px solid rgba(176, 135, 55, 0.35);
  color: #4a3412;
}
.welcome-sign {
  margin-top: 22px;
}
.welcome-closing {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: #5a4826;
}
.welcome-name {
  margin-top: 4px !important;
  font-family: var(--serif);
  font-size: clamp(24px, 3.6vw, 30px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #8a5f17;
}
.welcome-role {
  margin-top: 2px !important;
  font: 600 11px/1.5 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8c7550;
}
.welcome-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  min-height: 50px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #f6d283, #e2a945 55%, #c98d2c);
  color: #1d1406;
  font: 700 15px/1.2 var(--sans);
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 14px 30px -14px rgba(120, 75, 10, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.welcome-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -14px rgba(120, 75, 10, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
/* Деловите на текстот влегуваат еден по еден, откако листот ќе слета. */
.welcome-body > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.welcome.on .welcome-body > * {
  opacity: 1;
  transform: none;
}
.welcome.on .welcome-body > :nth-child(1) { transition-delay: 0.55s; }
.welcome.on .welcome-body > :nth-child(2) { transition-delay: 0.65s; }
.welcome.on .welcome-body > :nth-child(3) { transition-delay: 0.75s; }
.welcome.on .welcome-body > :nth-child(4) { transition-delay: 0.85s; }
.welcome.on .welcome-body > :nth-child(5) { transition-delay: 1s; }
.welcome.on .welcome-body > :nth-child(6) { transition-delay: 1.15s; }
.welcome.on .welcome-body > :nth-child(7) { transition-delay: 1.3s; }
.welcome.on .welcome-body > :nth-child(8) { transition-delay: 1.45s; }
.welcome-sheet[data-script='deva'] .welcome-body p,
.welcome-sheet[data-script='deva'] .welcome-title {
  font-family: 'Noto Serif Devanagari', 'Noto Sans Devanagari', var(--serif);
}
/* Македонскиот и српскиот курзив ги менува облиците на т, п, г и д: тука текстот останува исправен. */
.welcome-sheet[data-lang='mk'] .welcome-motto,
.welcome-sheet[data-lang='sr'] .welcome-motto,
.welcome-sheet[data-script='deva'] .welcome-motto,
.welcome-sheet[data-script='han'] .welcome-motto,
.welcome-sheet[data-lang='mk'] .welcome-lead,
.welcome-sheet[data-lang='mk'] .welcome-name,
.welcome-sheet[data-lang='mk'] .welcome-closing,
.welcome-sheet[data-lang='sr'] .welcome-lead,
.welcome-sheet[data-lang='sr'] .welcome-name,
.welcome-sheet[data-lang='sr'] .welcome-closing,
.welcome-sheet[data-script='deva'] .welcome-lead,
.welcome-sheet[data-script='deva'] .welcome-name,
.welcome-sheet[data-script='deva'] .welcome-closing,
.welcome-sheet[data-script='han'] .welcome-lead,
.welcome-sheet[data-script='han'] .welcome-name,
.welcome-sheet[data-script='han'] .welcome-closing {
  font-style: normal;
}
.welcome-sheet[data-script='han'] .welcome-body p,
.welcome-sheet[data-script='han'] .welcome-title {
  font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', var(--serif);
}
@media (max-width: 560px) {
  .welcome {
    padding: 10px;
  }
  .welcome-sheet {
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
  }
  .welcome-bar {
    top: 18px;
    right: 18px;
    left: 18px;
  }
  .welcome-body {
    padding-top: 74px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-sheet,
  .welcome.off .welcome-sheet {
    transform: none;
    transition: opacity 0.3s ease;
  }
  .welcome-body > * {
    transform: none;
    transition: opacity 0.3s ease;
  }
  .welcome.on .welcome-shine {
    animation: none;
  }
}


/* ───────────── Пораката со мојот глас: копче „Слушај ме“ на листот за добредојде ───────────── */
.welcome-voice-wrap {
  display: flex;
  justify-content: center;
  margin: -4px 0 16px;
}
.welcome-voice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 18px 6px 7px;
  border: 1px solid rgba(150, 100, 25, 0.35);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 249, 232, 0.96), rgba(247, 228, 182, 0.96));
  color: #3a2706;
  font: 700 14px/1.2 var(--sans);
  letter-spacing: 0.03em;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 10px 24px -14px rgba(120, 75, 10, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.welcome-voice[hidden] { display: none; }
.welcome-voice:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -14px rgba(120, 75, 10, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.8); }
.welcome-voice:focus-visible { outline: 2px solid #b5832e; outline-offset: 3px; }
.wv-ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f6d283, #e2a945 55%, #c98d2c);
  color: #1d1406;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.wv-ico svg { margin-left: 1px; }
.welcome-voice.playing .wv-ico svg { margin-left: 0; }
/* Тенка линија долу покажува колку од пораката е изговорено. */
.welcome-voice::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #c98d2c, #f6d283);
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.welcome-voice.playing::after { opacity: 1; }
.wv-bars {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.wv-bars i {
  display: block;
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: #b5832e;
  transform-origin: bottom;
  animation: wv-bar 0.9s ease-in-out infinite;
}
.wv-bars i:nth-child(2) { animation-delay: -0.25s; }
.wv-bars i:nth-child(3) { animation-delay: -0.5s; }
.wv-bars i:nth-child(4) { animation-delay: -0.7s; }
.welcome-voice.playing .wv-bars { display: inline-flex; }
@keyframes wv-bar {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}
/* Кога гласот не смее да тргне сам: копчето благо светнува и повикува на клик. */
.welcome-voice.invite { animation: wv-invite 1.8s ease-in-out 3; }
@keyframes wv-invite {
  0%, 100% { box-shadow: 0 10px 24px -14px rgba(120, 75, 10, 0.7), 0 0 0 0 rgba(226, 169, 69, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.8); }
  50% { box-shadow: 0 10px 24px -14px rgba(120, 75, 10, 0.7), 0 0 0 10px rgba(226, 169, 69, 0), inset 0 1px 0 rgba(255, 255, 255, 0.8); }
}
@media (prefers-reduced-motion: reduce) {
  .wv-bars i, .welcome-voice.invite { animation: none; }
}


/* Подолгата порака: пасуси и истакната мисла на крајот. */
.welcome-text > p { margin: 0; }
.welcome-thanks { margin-top: 18px !important; margin-bottom: 4px !important; }
.welcome-motto {
  margin: 22px auto 0 !important;
  max-width: 30em;
  font-family: var(--serif);
  font-size: clamp(18px, 2.4vw, 21px);
  font-style: italic;
  font-weight: 600;
  line-height: 1.45;
  color: #6e4510;
  text-shadow: 0 0 2px rgba(255, 251, 240, 1), 0 0 10px rgba(255, 251, 240, 0.95), 0 0 24px rgba(255, 251, 240, 0.85);
}
.welcome-motto::before,
.welcome-motto::after {
  content: "✦";
  display: inline-block;
  margin: 0 10px;
  font-size: 0.6em;
  font-style: normal;
  vertical-align: 0.25em;
  color: #b5832e;
}

/* ════════════════════════════════════════════════════════════════════════════
   Books That Help You: вселена со златни полици.
   Се додава над site.css. Основниот изглед (без класата .webgl) е убавата рамна
   страница за уреди без WebGL. Класата .webgl ја вклучува 3D вселената.
   ════════════════════════════════════════════════════════════════════════════ */
:root {
  --space-0: #05060b;
  --gold: #e9b44c;
  --gold-soft: #f1cf8a;
  --gold-line: rgba(233, 180, 76, 0.28);
  --glass-bg: linear-gradient(140deg, rgba(22, 24, 36, 0.72), rgba(10, 11, 18, 0.62));
  --glass-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9), 0 2px 0 rgba(255, 255, 255, 0.05) inset;
  --mx: 0;
  --my: 0;
}
html {
  background: var(--space-0);
}
/* Рамна вселена за уреди без WebGL: маглина и ѕвезди од CSS, без слики. */
body {
  background:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 62%, rgba(255, 255, 255, 0.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 32%, #ffe9c4 50%, transparent 51%),
    radial-gradient(1px 1px at 61% 78%, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 73% 22%, #cfe0ff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 56%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 84%, rgba(255, 255, 255, 0.75) 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 8%, rgba(255, 255, 255, 0.9) 50%, transparent 51%),
    radial-gradient(60% 34% at 18% 22%, rgba(110, 60, 190, 0.26), transparent 70%),
    radial-gradient(52% 30% at 82% 62%, rgba(40, 90, 200, 0.24), transparent 70%),
    radial-gradient(40% 22% at 55% 40%, rgba(233, 180, 76, 0.12), transparent 70%),
    var(--space-0);
  background-size: 520px 520px, 610px 610px, 700px 700px, 480px 480px, 560px 560px, 640px 640px, 590px 590px, 450px 450px, 100% 1400px, 100% 1600px, 100% 1200px, auto;
  background-attachment: scroll;
}
.webgl body {
  background: transparent;
}
#universe {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}
/* Неподвижна слика од истата вселена под 3D сцената. Се гледа од првиот миг, додека графичката картичка
   ги подготвува ефектите, па екранот никогаш не е црн. 3D сцената влегува врз неа меко, по првата нацртана слика. */
.sky {
  display: none;
}
.webgl .sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  background: var(--space-0) url(/img/universe-bg.webp) 50% 50% / cover no-repeat;
  pointer-events: none;
}
.webgl #universe {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.webgl.ready #universe {
  opacity: 1;
}
main,
.site-footer {
  position: relative;
  z-index: 1;
}
main {
  transition: opacity 0.26s ease;
}
.pjax-out main {
  opacity: 0;
}

/* ───────────── стакло со златна линија ───────────── */
.glass,
.surface,
.donors-card,
.price-box {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--gold-line);
  box-shadow: var(--glass-shadow);
}
.why-item,
.bd-gallery,
.portrait {
  background: linear-gradient(160deg, rgba(20, 22, 32, 0.6), rgba(8, 9, 14, 0.5));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.gold-line {
  display: block;
  width: 56px;
  height: 1px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--gold), rgba(233, 180, 76, 0));
}

/* ───────────── мени што лебди над просторот ───────────── */
.site-header {
  top: 12px;
  width: min(1320px, calc(100% - 24px));
  margin: 12px auto 0;
  border: 1px solid var(--gold-line);
  border-radius: 24px;
  background: linear-gradient(140deg, rgba(24, 26, 40, 0.66), rgba(9, 10, 16, 0.58));
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 34px 60px -34px rgba(0, 0, 0, 0.95), 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 0 0 1px rgba(0, 0, 0, 0.35);
  /* благо поместување со глувчето: менито лебди како стаклена плоча во просторот */
  transform: perspective(1400px) translate3d(calc(var(--mx) * -7px), calc(var(--my) * -4px), 0) rotateX(calc(var(--my) * 1.6deg)) rotateY(calc(var(--mx) * -1.6deg));
  transition: opacity 0.5s ease;
  will-change: transform;
}
.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 32%);
  pointer-events: none;
}
.site-header .container {
  position: relative;
  z-index: 1;
}
/* Содржината што се лизга под менито тивко се губи во темнината, наместо да ѕирка над него. */
.webgl body::before {
  content: '';
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 39;
  height: 104px;
  background: linear-gradient(180deg, rgba(5, 6, 11, 0.96) 0%, rgba(5, 6, 11, 0.8) 38%, rgba(5, 6, 11, 0) 100%);
  pointer-events: none;
}
.reading body::before {
  opacity: 0;
}
.main-nav a {
  color: var(--gold-soft);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6);
}
.main-nav a:hover,
.main-nav a[aria-current='page'] {
  color: #fff3d6;
}
.logo-name {
  color: #f6ecd6;
}
/* Знакот на страницата: златното дрво на знаењето со отворената книга (од логото BOOKS THAT HELP YOU). */
.logo-mark,
.logo-mark.sm {
  width: 50px;
  height: 50px;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(233, 180, 76, 0.35));
}
@media (max-width: 560px) {
  .logo-mark,
  .logo-mark.sm {
    width: 42px;
    height: 42px;
  }
}
@media (min-width: 1180px) {
  /* На широк екран менито е една стаклена лента: знак, линкови, јазик. */
  .site-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 34px;
    padding: 10px 26px;
  }
  .site-header .header-top {
    display: contents;
  }
  .site-header .header-nav {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .site-header .header-actions {
    grid-column: 3;
    grid-row: 1;
  }
  .site-header .main-nav {
    gap: 26px;
  }
  .webgl .hero .pill {
    display: none;
  }
}
/* Избор на јазик: заоблен 3D елемент. */
.lang-menu summary {
  height: 44px;
  padding-inline: 14px;
  border: 1px solid rgba(233, 180, 76, 0.45);
  background: radial-gradient(120% 140% at 30% 0%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 46%), linear-gradient(160deg, #2a2516, #100e08);
  color: var(--gold-soft);
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 -6px 12px -6px rgba(233, 180, 76, 0.35) inset;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.lang-menu summary:hover,
.lang-menu[open] summary {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 14px 26px -10px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 0 18px rgba(233, 180, 76, 0.35);
}
.lang-list {
  border-color: var(--gold-line);
  background: linear-gradient(150deg, rgba(22, 24, 36, 0.96), rgba(9, 10, 16, 0.96));
}
.mobile-menu {
  background: rgba(6, 7, 12, 0.94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--gold-line);
  background: linear-gradient(180deg, rgba(8, 9, 14, 0.55), rgba(5, 6, 11, 0.9));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* ───────────── почетен дел ───────────── */
.hero-inner {
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 0;
  text-align: center;
}
.hero-copy {
  flex: 0 1 900px;
  align-items: center;
  gap: 16px;
}
.hero .pill {
  align-self: center;
  padding: 6px 13px;
  border-color: var(--gold-line);
  background: rgba(10, 11, 18, 0.5);
  color: var(--gold-soft);
}
.hero h1 {
  font-size: clamp(30px, 3.5vw, 50px);
  line-height: 1.12;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.75);
}
.hero h1 em {
  background: linear-gradient(100deg, #f8dea0, #e9b44c 45%, #fff0c8 70%, #d39a2e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 640px;
  font-size: 16px;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.8);
}
.hero-actions,
.hero .trust {
  justify-content: center;
}
.hero-actions .btn-lg {
  height: 48px;
  padding-inline: 22px;
  font-size: 13px;
}
.hero .trust {
  margin-top: 0;
  font-size: 13px;
}
.stage-section {
  padding: 26px 0 30px;
}
.stage-head {
  margin-bottom: 0;
}
.stage-head .section-title {
  font-size: clamp(22px, 2vw, 28px);
}
.section-title,
.page-title,
.subhead {
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.7);
}
.eyebrow {
  color: var(--gold);
}
.btn-amber {
  background: linear-gradient(160deg, #f6d48a, #e0a53a 55%, #c98f25);
  box-shadow: 0 12px 26px -12px rgba(233, 180, 76, 0.75), 0 1px 0 rgba(255, 255, 255, 0.45) inset;
}
.btn-amber:hover {
  background: linear-gradient(160deg, #fbe2a6, #eab54e 55%, #d59b2f);
}
.btn-ghost {
  border-color: var(--gold-line);
  background: rgba(10, 11, 18, 0.45);
  color: var(--gold-soft);
}
.btn-ghost:hover {
  border-color: rgba(233, 180, 76, 0.7);
  color: #fff3d6;
}

/* ───────────── категории (клик ги прераспоредува полиците) ───────────── */
.cat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 6px;
  padding: 6px;
  border-radius: 999px;
}
.cat-bar a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding-inline: 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-soft);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.cat-bar a:hover {
  background: rgba(233, 180, 76, 0.14);
}
.cat-bar a[aria-current='page'] {
  background: linear-gradient(160deg, #f6d48a, #d59b2f);
  color: var(--amber-ink);
}
@media (max-width: 719px) {
  .cat-bar {
    border-radius: 22px;
  }
}

/* ───────────── полици: рамна верзија (без WebGL) ───────────── */
.shelves {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 28px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 1099px) {
  .shelves {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 719px) {
  .shelves {
    grid-template-columns: minmax(0, 1fr);
  }
}
.shelf-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.book-hit {
  display: block;
  width: min(74%, 290px);
  border-radius: 6px;
  /* златна полица под книгата */
  filter: drop-shadow(0 26px 22px rgba(0, 0, 0, 0.7));
}
.book-hit img,
.book-hit .cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px 8px 8px 4px;
  box-shadow: -6px 0 0 -2px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.shelf-cell::before {
  content: '';
  order: 1;
  width: 92%;
  height: 12px;
  margin-top: -16px;
  border-radius: 3px;
  border-top: 2px solid var(--gold);
  background: linear-gradient(180deg, #17171c, #08080b);
  box-shadow: 0 2px 0 rgba(233, 180, 76, 0.5), 0 22px 30px -10px rgba(0, 0, 0, 0.9), 0 -40px 60px -20px rgba(255, 200, 120, 0.22);
}
.shelf-title {
  order: 2;
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  color: #f6ecd6;
}
.shelf-info {
  order: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 22px 22px 20px;
  border-radius: 20px;
}
.si-title {
  display: none;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  color: #fbeccb;
}
.si-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: #e9dfc8;
}
.si-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 6px;
}
.si-buy .btn {
  height: 44px;
  margin-left: auto;
}
.si-buy .book-price {
  font-size: 24px;
  color: #fff3d6;
}
.si-buy .book-price .old {
  margin-right: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-3);
}
.si-sale {
  padding: 4px 9px;
  border-radius: 999px;
  background: #e5243b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.si-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-soft);
}
.si-more:hover {
  color: #fff;
}
.shelf-info .book-meta a:hover {
  color: var(--gold);
}
.stage-single {
  display: block;
  padding: 28px;
}
.stage-single .shelf-cell::before {
  width: 80%;
}

/* ───────────── полици: 3D верзија ─────────────
   Полето ја задржува својата висина во страницата, а над него стои вистинската 3D полица.
   Зоната за клик и насловот ги следат книгите на екранот (ги поместува main.js). */
.webgl .shelves {
  gap: 0;
  max-width: 1080px;
  margin: 0 auto;
}
.webgl .shelf-cell {
  display: block;
  height: clamp(360px, 50vh, 600px);
}
@media (min-width: 1560px) {
  /* На многу широк екран: четири полици во ред, пак една до друга. */
  .webgl .shelves {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1440px;
  }
}
.webgl .shelf-cell::before {
  display: none;
}
@media (min-width: 1100px) {
  /* средната колона е малку пониско: полиците не стојат во рамна мрежа */
  .webgl .shelves .shelf-cell:nth-child(2n) {
    top: 5vh;
  }
  .webgl .shelves {
    padding-bottom: 5vh;
  }
}
@media (min-width: 720px) and (max-width: 1099px) {
  .webgl .shelves .shelf-cell:nth-child(2n) {
    top: 5vh;
  }
  .webgl .shelves {
    padding-bottom: 5vh;
  }
}
.webgl .book-hit {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 0;
  height: 0;
  filter: none;
  opacity: 0;
  cursor: none;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}
.webgl .shelf-cell.is-live .book-hit {
  opacity: 1;
}
.webgl .book-hit img,
.webgl .book-hit .cover {
  width: 100%;
  height: 100%;
  opacity: 0;
  box-shadow: none;
}
.webgl .book-hit:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 8px;
  border-radius: 10px;
  box-shadow: 0 0 0 12px rgba(233, 180, 76, 0.12), 0 0 34px rgba(233, 180, 76, 0.45);
}
.webgl .shelf-title {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  padding-inline: 8px;
  opacity: 0;
  pointer-events: none;
  font-size: clamp(15px, 1.25vw, 19px);
  letter-spacing: 0.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 0 30px rgba(0, 0, 0, 0.8);
  will-change: transform;
}
.webgl .shelf-title span {
  display: inline-block;
  max-width: 320px;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1), color 0.4s ease;
}
.webgl .shelf-cell.is-hover .shelf-title span {
  color: var(--gold-soft);
  transform: translateY(6px);
}
.webgl .shelf-cell:not(.is-live) .shelf-title {
  opacity: 0 !important;
}
/* Кога една книга е на средината, насловите на другите се тргаат за да не стојат преку неа. */
.webgl.book-hover .shelf-title {
  opacity: 0 !important;
  transition: opacity 0.3s ease;
}
/* Опис: се појавува дури кога покажувачот ќе дојде над книгата (или при допир, или со Tab). */
.webgl .shelf-info {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 36;
  width: 344px;
  max-width: calc(100vw - 32px);
  padding: 24px 24px 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: linear-gradient(150deg, rgba(26, 24, 30, 0.74), rgba(9, 9, 14, 0.7));
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.95), 0 0 60px -20px rgba(233, 180, 76, 0.25), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
.webgl .shelf-info > * {
  transform: translateY(10px);
  transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.webgl .shelf-cell.is-hover .shelf-info {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.45s ease 0.12s, visibility 0s;
}
.webgl .shelf-cell.is-hover .shelf-info > * {
  transform: none;
  transition-delay: 0.12s;
}
.webgl .si-title {
  display: block;
}
.webgl .stage-single {
  padding: 0;
  border: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.webgl .stage-single .shelf-cell {
  height: clamp(460px, 72vh, 760px);
}
@media (min-width: 901px) {
  .webgl .stage-single {
    position: sticky;
    top: 130px;
  }
}
@media (max-width: 719px) {
  /* На телефон првиот екран е кус, за првата полица да се види веднаш. */
  .webgl .hero .pill,
  .webgl .hero .trust {
    display: none;
  }
  .webgl .hero-inner {
    padding-top: 26px;
  }
  .webgl .hero-sub {
    font-size: 15px;
  }
  .webgl .stage-section {
    padding-top: 14px;
  }
}
@media (max-width: 759px) {
  /* На телефон описот е лист одоздола: прв допир го отвора, втор допир ја отвора книгата. */
  .webgl .shelf-info {
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    max-width: none;
    border-radius: 22px;
    transform: none !important;
  }
  .webgl .shelf-cell {
    height: clamp(420px, 62vh, 620px);
    scroll-snap-align: center;
  }
}

/* Зона над книгата на средината на екранот (ја поставува main.js). */
.focus-zone {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 37;
  display: none;
  cursor: none;
  touch-action: pan-y;
}
/* Златен прстен околу покажувачот над книга. */
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 95;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(233, 180, 76, 0.55), 0 0 6px rgba(233, 180, 76, 0.5) inset;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cursor-ring::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--gold-soft);
}
html:has(.book-hit:hover) .cursor-ring,
html:has(.focus-zone:hover) .cursor-ring {
  opacity: 1;
}
@media (hover: none) {
  .cursor-ring {
    display: none;
  }
}

/* ───────────── страница на книга ───────────── */
.book-detail .bd-info {
  padding: 30px;
  border: 1px solid var(--gold-line);
  border-radius: 24px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--glass-shadow);
}
@media (max-width: 480px) {
  .book-detail .bd-info {
    padding: 20px 16px;
  }
}
.bd-info .price-box {
  background: rgba(8, 9, 14, 0.45);
  box-shadow: none;
}
.prose,
.lead,
.creator-bio {
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.75);
}
.legal .prose,
main > .container.page > .prose {
  padding: 30px;
  border: 1px solid var(--gold-line);
  border-radius: 22px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* ───────────── екран за вчитување ───────────── */
.loader {
  display: none;
}
.webgl .loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: radial-gradient(46% 34% at 50% 46%, rgba(10, 11, 22, 0.62) 0%, rgba(5, 6, 11, 0.12) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}
.webgl.loading .loader {
  opacity: 1;
  pointer-events: auto;
}
.loader-stars {
  display: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1px 1px at 20% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 60%, rgba(255, 255, 255, 0.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 80%, #ffe9c4 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 15%, #cfe0ff 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 45%, rgba(255, 255, 255, 0.7) 50%, transparent 51%);
  background-size: 260px 260px, 340px 340px, 420px 420px, 300px 300px, 380px 380px;
  animation: loader-twinkle 3.2s ease-in-out infinite alternate;
}
.loader-core {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.loader-mark {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 0 22px rgba(233, 180, 76, 0.5));
  animation: loader-float 2.4s ease-in-out infinite;
}
.loader-mark img {
  display: block;
  width: 100%;
  height: 100%;
}
.loader-name {
  font-family: var(--serif);
  font-size: 26px;
  color: #f6ecd6;
}
.loader-name em {
  color: var(--gold);
}
.loader-bar {
  width: 170px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(233, 180, 76, 0.18);
}
.loader-bar i {
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: loader-run 1.3s ease-in-out infinite;
}
.loader-text {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
}
@keyframes loader-run {
  from { transform: translateX(-110%); }
  to { transform: translateX(280%); }
}
@keyframes loader-float {
  50% { transform: translateY(-7px); }
}
@keyframes loader-twinkle {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

/* ───────────── читач: копчиња околу отворената книга ───────────── */
html.reading {
  overflow: hidden;
}
.reading main,
.reading .site-footer,
.reading .site-header {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.reader {
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.reader.on {
  opacity: 1;
}
.reader-stage {
  position: absolute;
  inset: 0;
  cursor: grab;
  touch-action: none;
}
.reader-stage:active {
  cursor: grabbing;
}
.reader-top {
  position: absolute;
  top: 18px;
  right: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}
.reader-title {
  min-width: 0;
  overflow: hidden;
  font-family: var(--serif);
  font-size: clamp(15px, 1.5vw, 20px);
  color: var(--gold-soft);
  text-overflow: ellipsis;
  text-shadow: 0 2px 16px #000;
  white-space: nowrap;
}
.reader-tools {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}
.r-tool,
.reader-nav {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(26, 26, 36, 0.8), rgba(8, 9, 14, 0.75));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--gold-soft);
  box-shadow: 0 14px 30px -14px #000, 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.3s ease;
}
.r-tool:hover,
.reader-nav:hover {
  border-color: var(--gold);
  color: #fff;
  transform: scale(1.06);
}
.r-tool .mute {
  display: none;
}
.r-tool.muted .wave {
  display: none;
}
.r-tool.muted .mute {
  display: inline;
}
.reader-nav {
  position: absolute;
  top: 50%;
  width: 54px;
  height: 54px;
  margin-top: -27px;
}
.reader-nav.prev {
  left: 18px;
}
.reader-nav.next {
  right: 18px;
}
.reader-nav:disabled {
  opacity: 0.25;
  pointer-events: none;
}
.reader-count {
  position: absolute;
  bottom: 96px;
  left: 50%;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--fg-2);
  text-shadow: 0 1px 10px #000;
  transform: translateX(-50%);
}
.reader-bar {
  position: absolute;
  bottom: 22px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 22px;
  transform: translateX(-50%);
}
.reader-bar .btn {
  height: 46px;
  padding-inline: 20px;
}
.reader-lang {
  position: relative;
}
.reader-lang-list {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  width: 320px;
  max-width: calc(100vw - 24px);
  padding: 8px;
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(22, 24, 36, 0.97), rgba(9, 10, 16, 0.97));
  transform: translateX(-50%);
}
.reader-lang-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--fg-soft);
}
.reader-lang-list a b {
  width: 26px;
  font-size: 11px;
  color: var(--fg-3);
}
.reader-lang-list a:hover {
  background: rgba(233, 180, 76, 0.12);
}
.reader-lang-list a[aria-current='true'] {
  background: rgba(233, 180, 76, 0.16);
  color: var(--gold-soft);
}
@media (max-width: 640px) {
  .reader-bar {
    right: 10px;
    bottom: 12px;
    left: 10px;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    transform: none;
  }
  .reader-bar .btn {
    flex: 1 1 auto;
    height: 44px;
    padding-inline: 10px;
    font-size: 11.5px;
    letter-spacing: 0.03em;
  }
  .reader-nav {
    top: auto;
    bottom: 84px;
    width: 46px;
    height: 46px;
  }
  .reader-count {
    bottom: 98px;
  }
  .reader-top {
    top: 10px;
    right: 10px;
    left: 12px;
  }
  .r-tool {
    width: 42px;
    height: 42px;
  }
}

/* ───────────── намалено движење и мали екрани: менито не се навалува ───────────── */
@media (prefers-reduced-motion: reduce), (max-width: 1023px) {
  .site-header {
    transform: none;
  }
}

/* ───────────── книга на средината: текстот на страницата се повлекува за да не стои преку неа ───────────── */
.webgl .hero,
.webgl .stage-head,
.webgl .page-head,
.webgl .cat-bar,
.webgl .anylang-list,
.webgl .crumbs,
.webgl .donors-band,
.webgl .offer-band,
.webgl .subhead,
.webgl .chips {
  transition: opacity 0.35s ease;
}
.webgl.book-hover .hero,
.webgl.book-hover .stage-head,
.webgl.book-hover .page-head,
.webgl.book-hover .cat-bar,
.webgl.book-hover .anylang-list,
.webgl.book-hover .crumbs,
.webgl.book-hover .donors-band,
.webgl.book-hover .offer-band,
.webgl.book-hover .subhead,
.webgl.book-hover .chips {
  opacity: 0.06;
}

/* ───────────── златна бројка: колку книги има во категоријата ───────────── */
.cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  margin-inline-start: 10px;
  border-radius: 999px;
  background: radial-gradient(120% 140% at 30% 20%, #fff2c4 0%, #f3cd72 32%, #d79a2b 68%, #a8701a 100%);
  box-shadow: 0 0 0 1px rgba(255, 228, 160, 0.55) inset, 0 0 14px rgba(233, 180, 76, 0.45), 0 2px 6px rgba(0, 0, 0, 0.35);
  font-family: var(--sans, 'Onest', system-ui, sans-serif);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1;
  color: #2a1a02;
  text-shadow: 0 1px 0 rgba(255, 245, 210, 0.6);
  vertical-align: middle;
}
.cat-count.is-empty {
  background: rgba(233, 180, 76, 0.08);
  box-shadow: 0 0 0 1px rgba(233, 180, 76, 0.32) inset;
  color: rgba(241, 207, 138, 0.55);
  text-shadow: none;
}
.cat-bar a .cat-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  margin-inline-start: 8px;
  font-size: 12px;
}
.cat-bar a[aria-current='page'] .cat-count {
  background: #2a1a02;
  box-shadow: 0 0 0 1px rgba(255, 228, 160, 0.4) inset;
  color: #f6d48a;
  text-shadow: none;
}
.chips a .cat-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  margin-inline-start: 8px;
  font-size: 12px;
}
.page-title .cat-count {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  margin-inline-start: 16px;
  font-size: 20px;
  transform: translateY(-4px);
}
.cat-tile .cat-count {
  min-width: 34px;
  height: 34px;
  margin-inline-start: auto;
  font-size: 16px;
}
.cat-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.cat-card-top .cat-count {
  min-width: 32px;
  height: 32px;
  font-size: 15px;
}

/* ── Музика со пијано: копче долу лево (во отворената книга истото копче е горе меѓу алатките) ── */
.r-tool[hidden] {
  display: none;
}
.music-fab {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 45;
  width: 48px;
  height: 48px;
}
.music-fab:not(.muted) {
  border-color: var(--gold);
  color: #fff;
  box-shadow: 0 14px 30px -14px #000, 0 0 0 4px rgba(233, 180, 76, 0.14), 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}
.music-fab:not(.muted) svg {
  animation: music-pulse 2.4s ease-in-out infinite;
}
@keyframes music-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.reading .music-fab,
.menu-open .music-fab {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .music-fab:not(.muted) svg { animation: none; }
}
