@font-face {
  font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(fonts/manrope-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+2020, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(fonts/manrope-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --page: #e4e4e1;
  --canvas: #f3f3f1;
  --card: #ffffff;
  --ink: #141517;
  --ink-2: #5d6168;
  --ink-3: #9a9ea5;
  --line: #e6e6e3;
  --red: #ce202f;
  --r-lg: 28px;
  --r-md: 20px;
  --gut: clamp(16px, 2.2vw, 32px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 15px/1.5 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.frame {
  max-width: 1480px; margin: 14px auto; padding: 18px var(--gut) 28px;
  background: var(--canvas); border-radius: var(--r-lg);
  box-shadow: 0 1px 0 #fff inset, 0 20px 60px #0000000d;
}

/* ---------- glava ---------- */
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.top > * { min-width: 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .14em; font-size: 15px; }
.logo img { display: block; }
.pills { display: flex; gap: 6px; padding: 5px; background: #e9e9e6; border-radius: 999px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 18px;
  border-radius: 999px; background: var(--card); text-decoration: none; font-weight: 600; font-size: 14px;
  white-space: nowrap; transition: background .15s, color .15s;
}
.pill:hover { background: #fafafa; }
.pill.on, .pill.dark { background: var(--ink); color: #fff; }
.pill.dark:hover { background: #2a2c30; }
.pill svg { width: 17px; height: 17px; }
.pill .ext { width: 14px; height: 14px; opacity: .6; }
#pdfTop { justify-self: end; }

/* ---------- naslov ---------- */
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: clamp(22px, 3.2vw, 44px) 0 8px; }
.hero h1 { margin: 0; font-size: clamp(34px, 4.6vw, 64px); line-height: 1; font-weight: 800; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p { margin: 10px 0 0; color: var(--ink-2); font-size: 14px; }
.hero-r { text-align: right; }
.hero .big { margin: 0; font-size: clamp(34px, 4.6vw, 64px); line-height: 1; font-weight: 800; letter-spacing: -.035em; color: var(--ink); }
.hero .big small { font-size: .42em; font-weight: 700; color: var(--ink-3); margin-left: .25em; letter-spacing: -.01em; }

/* ---------- oder z revijo ---------- */
.stage {
  display: grid; grid-template-columns: minmax(140px, 190px) 1fr minmax(140px, 190px);
  gap: clamp(12px, 2vw, 28px); align-items: center; margin-top: 6px;
  background: radial-gradient(60% 55% at 50% 45%, #ffffff 0%, #ffffffb3 40%, #fff0 75%);
}
.book-wrap { position: relative; }
#book {
  display: block; width: 100%; height: clamp(520px, calc(100svh - 230px), 900px); border: 0;
  background: transparent; position: relative; z-index: 1;
}
.floor {
  position: absolute; left: 12%; right: 12%; bottom: 58px; height: 46px; z-index: 0;
  background: radial-gradient(50% 50% at 50% 50%, #0000001f, #0000 70%);
  filter: blur(6px);
}

.ads { display: grid; gap: 14px; align-content: center; }
.ad {
  display: grid; place-items: center; aspect-ratio: 16 / 11; padding: 18px;
  background: var(--card); border-radius: var(--r-md); text-decoration: none;
  box-shadow: 0 1px 2px #0000000a; transition: transform .2s, box-shadow .2s;
}
.ad img { max-width: 100%; max-height: 100%; object-fit: contain; }
a.ad:hover { transform: translateY(-2px); box-shadow: 0 10px 26px #00000014; }
.ad.free {
  background: transparent; border: 1.5px dashed #cfcfca; color: var(--ink-3);
  font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.35; box-shadow: none;
}
.ad.free:hover { border-color: var(--red); color: var(--red); transform: none; box-shadow: none; }
.ad.free svg { width: 20px; height: 20px; display: block; margin: 0 auto 6px; }
.ad-tag { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); text-align: center; font-weight: 700; }

/* ---------- kartice ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.card { background: var(--card); border-radius: var(--r-md); padding: 22px; min-height: 176px; }

.feat { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: stretch; }
.feat .k { font-size: 12.5px; color: var(--ink-2); margin: 0; }
.feat h3 { margin: 6px 0 14px; font-size: 24px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.feat .opis { margin: -6px 0 14px; font-size: 13px; color: var(--ink-2); }
.feat .pill { height: 36px; padding: 0 18px; font-size: 13px; }
.feat .vis { width: 130px; display: grid; place-items: center; }
.feat .vis img { max-width: 100%; max-height: 120px; object-fit: contain; }
.feat .vis.free { border: 1.5px dashed #d6d6d2; border-radius: 16px; color: var(--ink-3); }
.feat .vis.free svg { width: 34px; height: 34px; }


.promo { display: grid; grid-template-columns: 1fr auto; gap: 14px; }
.promo h2 { margin: 0 0 8px; font-size: 16px; line-height: 1.3; font-weight: 800; }
.promo h2 em { font-style: normal; font-weight: 500; color: var(--ink-2); }
.promo p { margin: 0 0 16px; font-size: 13px; color: var(--ink-2); }
.promo .pill { height: 36px; font-size: 13px; }
.slots { list-style: none; margin: 0; padding: 0; display: grid; align-content: center; gap: 10px; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.slots li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.dot { width: 18px; height: 18px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #0000001a; }
.d1 { background: var(--red); } .d2 { background: var(--ink); } .d3 { background: #d9d9d4; }

/* ---------- trak logotipov ---------- */
.band { margin-top: 12px; background: var(--card); border-radius: var(--r-md); overflow: hidden; }
.band-in { display: flex; gap: 48px; align-items: center; padding: 22px 32px; width: max-content; animation: trak 40s linear infinite; }
.band:hover .band-in { animation-play-state: paused; }
.band a { display: block; height: 40px; opacity: .7; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.band a:hover { opacity: 1; filter: none; }
.band img { height: 100%; width: auto; }
@keyframes trak { to { transform: translateX(-50%); } }

/* ---------- arhiv ---------- */
.archive { margin-top: 44px; }
.archive h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 16px; }
.covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.cover { text-decoration: none; display: grid; gap: 8px; font-size: 13px; }
.cover img { width: 100%; aspect-ratio: 1 / 1.414; object-fit: cover; border-radius: 6px; background: #ddd; box-shadow: 0 8px 20px #0000001f; transition: transform .2s; }
.cover:hover img { transform: translateY(-3px); }
.cover b { font-weight: 700; }
.cover span { color: var(--ink-3); }
.cover.cur img { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- noga ---------- */
.foot {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2);
}
.foot b { color: var(--ink); }
.foot a { text-decoration: none; border-bottom: 1px solid #0000002a; }
.noscript { text-align: center; }

/* ---------- manjši zasloni ---------- */
@media (max-width: 1100px) {
  .stage { grid-template-columns: minmax(0, 1fr); background: none; }
  .ads { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ads-l { order: 2; } .ads-r { order: 3; }
  .ad-tag { grid-column: 1 / -1; margin: 6px 0 0; }
  .ads-r .ad-tag { display: none; }
  .ad { aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
  .frame { margin: 0; border-radius: 0; padding-top: 12px; }
  .top { grid-template-columns: 1fr auto; row-gap: 12px; }
  .pills { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; scrollbar-width: none; justify-self: start; max-width: 100%; }
  .hero { flex-wrap: wrap; align-items: flex-start; }
  .hero-r { text-align: left; }
  .feat .vis.free { display: none; }
  .pills::-webkit-scrollbar { display: none; }
  #pdfTop { padding: 0 14px; }
  .hero { margin-top: 20px; }
  .hero-r p:not(.big) { display: none; }
  #book { height: min(82svh, 760px); margin: 0 calc(-1 * var(--gut)); width: calc(100% + 2 * var(--gut)); }
  .floor { display: none; }
  .ads { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ad { padding: 10px; border-radius: 14px; }
  .ad.free { font-size: 10.5px; }
  .ad.free svg { display: none; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .feat { grid-template-columns: 1fr; }
  .feat .vis { width: 100%; height: 90px; }
  .promo { grid-template-columns: 1fr; }
  .slots { grid-auto-flow: column; justify-content: start; }
}
@media (prefers-reduced-motion: reduce) { .band-in { animation: none; } html { scroll-behavior: auto; } }
