@import url("../fonts/fonts.css");

/* ===================================================================
   TJAŠA FAJDIGA — design system
   Display: Playfair Display · UI/body: Inter
   =================================================================== */

:root {
  /* colour */
  --ink:          #0b0b0c;
  --ink-2:        #121214;
  --ink-3:        #1a1a1e;
  --ink-4:        #232329;
  --cream:        #f7f5f1;
  --cream-2:      #efece6;
  --text:         #e9e7e3;
  --muted:        #a5a29c;
  --muted-dark:   #6b6862;
  --accent:       #c8a96a;
  --line-light:   rgba(255, 255, 255, .13);
  --line-dark:    rgba(11, 11, 12, .13);

  /* type */
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* metrics */
  --container: 1240px;
  --container-narrow: 820px;
  --gutter: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --section-y: clamp(72px, 9vw, 132px);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --t: .45s var(--ease);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.72;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--ink); }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); position: relative; }
.section--light { background: var(--cream); color: var(--ink); }
.section--mid   { background: var(--ink-2); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); }
h2 { font-size: clamp(2rem, 3.9vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 2.1vw, 1.75rem); }
h4 { font-size: 1.1rem; }
p  { margin: 0 0 1.15em; }
/* body text justified everywhere; hyphenation keeps the spacing even */
p, .prose li { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
:is(.sechead--center, .hero, .servicecard, .band, .center, .cookie-banner, .cookie-modal) p { text-align: inherit; }
/* phones: a column this narrow leaves gaping word spaces when justified, so align left */
@media (max-width: 600px) { p, .prose li { text-align: left; } :is(.sechead--center, .hero, .servicecard, .band, .center, .cookie-banner, .cookie-modal) p { text-align: inherit; } }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 600; color: #fff; }
.section--light strong, .section--light b { color: var(--ink); }
em { font-style: italic; }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1em;
}
.section--light .eyebrow { color: #96762f; }

.sechead { margin-bottom: clamp(32px, 4vw, 52px); }
.sechead > :last-child { margin-bottom: 0; }
.sechead--center { text-align: center; max-width: 720px; margin-inline: auto; }
.sechead h2 { margin: 0; }

.display-caps {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 500;
}
.lede { font-size: clamp(1.05rem, 1.45vw, 1.2rem); color: #fff; font-weight: 400; }
.section--light .lede { color: var(--ink); }
.muted { color: var(--muted); }
.section--light .muted { color: var(--muted-dark); }
.tagline {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 500;
  letter-spacing: .02em;
  color: #fff;
}
.section--light .tagline { color: var(--ink); }
.prose > * + h3 { margin-top: 2em; }
.prose ul { margin: 0 0 1.15em; padding-left: 1.15em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--accent); }

.rule { height: 1px; background: var(--line-light); border: 0; margin: clamp(44px, 6vw, 72px) 0; }
.section--light .rule { background: var(--line-dark); }

/* ---------- buttons (pill) ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, .45);
  display: inline-flex;
  align-items: center;
  gap: .62em;
  padding: .92em 2em;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.btn:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn--solid { --btn-bg: var(--cream); --btn-fg: var(--ink); --btn-bd: var(--cream); }
.btn--solid:hover { --btn-bg: #fff; --btn-bd: #fff; }
.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.btn--dark:hover { --btn-bg: #000; --btn-bd: #000; }
.btn--onlight { --btn-fg: var(--ink); --btn-bd: rgba(11, 11, 12, .35); }
.btn--onlight:hover { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.btn--sm { padding: .72em 1.5em; font-size: .7rem; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--muted); --btn-bd: var(--line-light); }
.btn--ghost:hover { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .4); transform: none; }
.btn .arr { transition: transform var(--t); }
.btn:hover .arr { transform: translateX(3px); }

.linkline {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  padding-bottom: .3em;
  transition: border-color var(--t), color var(--t), gap var(--t);
}
.linkline:hover { border-color: var(--accent); color: var(--accent); gap: .85em; }
.section--light .linkline { color: var(--ink); border-color: rgba(11, 11, 12, .3); }
.section--light .linkline:hover { color: #96762f; border-color: #96762f; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background var(--t), box-shadow var(--t), padding var(--t);
  padding-block: 20px;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent);
  opacity: 1;
  transition: opacity var(--t);
  pointer-events: none;
}
.site-header.is-stuck {
  background: rgba(11, 11, 12, .92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line-light);
  padding-block: 13px;
}
.site-header.is-stuck::before { opacity: 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.brand {
  display: block;
  flex: none;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: .01em;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}
.brand--footer { font-size: 1.9rem; margin-bottom: .55em; }

.nav { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 30px); }
.nav a {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
  transition: color var(--t);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .nav-lang {
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius-pill);
  padding: .5em 1.05em;
  font-size: .68rem;
}
.nav .nav-lang::after { display: none; }
.nav .nav-lang:hover { background: #fff; color: var(--ink); border-color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.nav-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: #fff;
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  /* a backdrop-filter on the header would trap the fixed menu inside the header's
     box (it becomes the containing block), so drop it while the menu is open */
  .site-header.nav-open {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 90px 24px 40px;
    flex-direction: column;
    justify-content: center;
    justify-content: safe center;
    gap: 6px;
    background: rgba(11, 11, 12, .985);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t), visibility var(--t);
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a { font-size: 1rem; letter-spacing: .2em; padding: 14px 0; }
  .nav .nav-lang { margin-top: 18px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero--short { min-height: 78svh; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,.12) 38%, rgba(0,0,0,.55) 100%);
}
.hero__inner { padding-block: 140px 110px; }
.hero h1 {
  text-transform: uppercase;
  letter-spacing: .055em;
  color: #fff;
  margin-bottom: .34em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .35);
}
.hero__sub {
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
  font-weight: 400;
  margin-bottom: 2.2em;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .6);
}
.hero .btn { --btn-bd: rgba(255,255,255,.6); }
/* play button on the right of the hero → opens the promo video */
.hero__play {
  position: absolute;
  right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  bottom: clamp(36px, 7vh, 72px);
  display: inline-flex; align-items: center; gap: 14px;
  padding: 0; background: none; border: 0;
  color: #fff; cursor: pointer;
}
.hero__play-ring {
  width: 64px; height: 64px; flex: none;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, .25);
  backdrop-filter: blur(4px);
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t);
}
.hero__play-ring svg { width: 20px; height: 20px; margin-left: 3px; fill: currentColor; }
.hero__play-label { font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.hero__play:hover .hero__play-ring, .hero__play:focus-visible .hero__play-ring { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: scale(1.06); }
.hero__play:focus-visible { outline: none; }
@media (max-width: 760px) {
  .hero__play { right: 50%; transform: translateX(50%); bottom: auto; top: calc(100% - 190px); }
  .hero__play-ring { width: 54px; height: 54px; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: .64rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

/* ---------- split ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}
.split--media-right { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
.split__media img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.split__media--tall img { aspect-ratio: 3 / 4; }
/* media column exactly as tall as the column next to it */
.split--stretch { align-items: stretch; }
.split--stretch .split__media { position: relative; min-height: 340px; }
.split--stretch .split__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
@media (max-width: 860px) {
  .split, .split--media-right { grid-template-columns: 1fr; }
  /* stacked: let the photo keep its own proportions */
  .split--stretch .split__media { position: static; min-height: 0; }
  .split--stretch .split__media img { position: static; height: auto; }
  .split__media { order: 1; }
}

/* ---------- cards ---------- */
.cards { display: grid; gap: 18px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--auto { grid-template-columns: repeat(6, 1fr); }
.cards__item--2 { grid-column: span 2; }
.cards__item--3 { grid-column: span 3; }
.cards__item--6 { grid-column: span 6; }
@media (max-width: 900px) { .cards--3, .cards--2, .cards--auto { grid-template-columns: 1fr; } .cards--auto > * { grid-column: auto; } }

.card {
  background: var(--ink-3);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: .55em;
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.section--light .card { background: var(--ink); border-color: transparent; color: var(--text); }
.section--light .card h3 { color: #fff; }
a.card:hover, .card--link:hover { background: var(--ink-4); border-color: rgba(255,255,255,.26); transform: translateY(-4px); }
.card h3 { margin: 0; text-transform: uppercase; letter-spacing: .05em; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.card__meta { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 0 0 .3em; }
.card__desc { font-size: .95rem; color: var(--muted); margin: 0; }
.card .linkline { margin-top: auto; padding-top: 1.4em; align-self: flex-start; }

/* nav-style service cards (home) */
.servicecard { text-align: center; align-items: center; gap: .3em; padding-block: clamp(34px, 4vw, 52px); }
.servicecard h3 { font-family: var(--sans); font-weight: 500; letter-spacing: .14em; font-size: 1rem; }
.servicecard p { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0; }

/* ---------- offer rows (open a dialog) ---------- */
/* the hover glow below bleeds 1000px each side; clip it at the section so it never widens the page on phones */
.section--clip { overflow-x: hidden; overflow-x: clip; }
.offers { border-top: 1px solid var(--line-light); }
.section--light .offers { border-color: var(--line-dark); }
.offer {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 40px);
  padding: clamp(22px, 2.6vw, 32px) 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-light);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: padding var(--t);
}
.section--light .offer { border-color: var(--line-dark); }
.offer::before {
  content: "";
  position: absolute;
  inset: 0 -1000px;
  z-index: -1;
  background: linear-gradient(90deg, rgba(200, 169, 106, .09), transparent 62%);
  opacity: 0;
  transition: opacity var(--t);
}
.offer:hover, .offer:focus-visible { padding-inline: clamp(10px, 1.4vw, 20px); outline: none; }
.offer:hover::before, .offer:focus-visible::before { opacity: 1; }
.offer:focus-visible .offer__title { color: var(--accent); }

.offer__label { display: flex; flex-direction: column; gap: .34em; min-width: 0; }
.offer__num { font-size: .66rem; font-weight: 500; letter-spacing: .22em; color: var(--accent); }
.offer__title {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.16;
  transition: color var(--t);
}
.offer__tag { font-size: .88rem; line-height: 1.5; color: var(--muted); font-weight: 400; }
.section--light .offer__tag { color: var(--muted-dark); }
.offer__cat { text-transform: uppercase; color: var(--muted); }
.offer__excerpt { font-size: .9rem; line-height: 1.6; color: var(--muted); font-weight: 400; max-width: 62ch; margin-top: .3em; }
.section--light .offer__excerpt, .section--light .offer__cat { color: var(--muted-dark); }
.offer__icon {
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.section--light .offer__icon { border-color: var(--line-dark); }
/* gold "Več o ponudbi" button, so it stands out */
.offer__icon, .section--light .offer__icon { background: var(--accent); border-color: var(--accent); color: var(--ink); box-shadow: 0 6px 18px rgba(200, 169, 106, .25); }
.offer__icon--text { width: auto; padding: 0 20px 0 22px; display: inline-flex; align-items: center; gap: 12px; }
.offer__more { font-family: var(--sans); font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
/* mobile: button drops below the text, label stays visible */
@media (max-width: 600px) {
  .offer { flex-direction: column; align-items: flex-start; gap: 18px; }
  .offer__label { width: 100%; }
}
.offer__icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t); }
.offer:hover .offer__icon, .offer:focus-visible .offer__icon { background: #fff; color: var(--ink); border-color: #fff; }
.section--light .offer:hover .offer__icon, .section--light .offer:focus-visible .offer__icon { background: var(--ink); color: #fff; border-color: var(--ink); }
.offer:hover .offer__icon svg, .offer:focus-visible .offer__icon svg { transform: translateX(2px); }

/* ---------- dialog ---------- */
.modal {
  padding: 0;
  border: 0;
  background: none;
  width: min(780px, calc(100vw - 2 * var(--gutter)));
  max-width: none;
  max-height: calc(100dvh - clamp(24px, 6vh, 72px));
  color: var(--text);
  overflow: visible;
}
.modal::backdrop { background: rgba(5, 5, 7, .74); }
.modal--video { width: min(1100px, calc(100vw - 2 * var(--gutter))); }
.modal--video .modal__card { background: #000; }
.modal__video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.modal__video iframe, .modal__video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal--video .modal__x { top: -56px; right: 0; background: rgba(0, 0, 0, .5); border-color: rgba(255, 255, 255, .35); }
@supports (backdrop-filter: blur(1px)) {
  .modal::backdrop { background: rgba(5, 5, 7, .62); backdrop-filter: blur(7px) saturate(.85); }
}
.modal__card {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - clamp(24px, 6vh, 72px));
  overflow: hidden;
  background: linear-gradient(180deg, #17171c, #0f0f12);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  box-shadow: 0 48px 110px -32px rgba(0, 0, 0, .9), 0 2px 0 rgba(255, 255, 255, .04) inset;
}
.modal__card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 169, 106, .85), transparent);
  pointer-events: none;
}
.modal__head {
  padding: clamp(30px, 3.6vw, 46px) clamp(24px, 3.6vw, 48px) clamp(20px, 2.4vw, 28px);
  padding-right: clamp(70px, 8vw, 96px);
  border-bottom: 1px solid var(--line-light);
}
.modal__num { margin: 0 0 .9em; font-size: .66rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.modal__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.14;
}
.modal__tag { margin: .7em 0 0; font-size: .95rem; color: var(--muted); }
.modal__body {
  padding: clamp(24px, 2.8vw, 34px) clamp(24px, 3.6vw, 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  font-size: 1rem;
  line-height: 1.8;
}
.modal__body { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.modal__body::-webkit-scrollbar { width: 8px; }
.modal__body::-webkit-scrollbar-track { background: transparent; }
.modal__body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
.modal__body::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .3); background-clip: content-box; }
.modal__card:focus { outline: none; }
.modal__body > *:first-child { margin-top: 0; }
.modal__body > *:last-child { margin-bottom: 0; }
.modal__img { margin: 1.6em 0; }
.modal__img img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }
.modal__body > h4 { font-family: var(--sans); font-size: .95rem; font-weight: 600; letter-spacing: .02em; margin: 1.8em 0 .55em; }
.modal__foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: clamp(18px, 2.2vw, 24px) clamp(24px, 3.6vw, 48px) clamp(24px, 3.2vw, 40px);
  border-top: 1px solid var(--line-light);
  background: rgba(255, 255, 255, .02);
}
.modal__foot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 32px;
  background: linear-gradient(rgba(16, 16, 19, 0), rgba(16, 16, 19, .95));
  pointer-events: none;
}
.modal__x {
  position: absolute;
  top: clamp(16px, 1.8vw, 22px);
  right: clamp(16px, 1.8vw, 22px);
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
@media (max-width: 560px) {
  .modal__x { width: 38px; height: 38px; }
  .modal__head { padding-right: 68px; }
  .modal__num { font-size: .6rem; letter-spacing: .18em; }
}
.modal__x::before, .modal__x::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 1.5px;
  background: currentColor;
}
.modal__x::before { transform: rotate(45deg); }
.modal__x::after  { transform: rotate(-45deg); }
.modal__x:hover { background: #fff; color: var(--ink); border-color: #fff; transform: rotate(90deg); }
.modal__x:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* window background: "Ozadje okna" (black is the default above) */
.modal--mid .modal__card { background: linear-gradient(180deg, var(--ink-4), var(--ink-3)); }
.modal--mid .modal__foot::before { background: linear-gradient(rgba(26, 26, 30, 0), rgba(26, 26, 30, .95)); }

.modal--light { color: var(--ink); }
.modal--light .modal__card { background: var(--cream); border-color: var(--line-dark); box-shadow: 0 48px 110px -32px rgba(0, 0, 0, .7); }
.modal--light .modal__num { color: #96762f; }
.modal--light .modal__tag { color: var(--muted-dark); }
.modal--light .modal__head { border-color: var(--line-dark); }
.modal--light .modal__foot { border-color: var(--line-dark); background: rgba(11, 11, 12, .03); }
.modal--light .modal__foot::before { background: linear-gradient(rgba(247, 245, 241, 0), rgba(247, 245, 241, .95)); }
.modal--light strong, .modal--light b { color: var(--ink); }
.modal--light .modal__body { scrollbar-color: rgba(11, 11, 12, .25) transparent; }
.modal--light .modal__body::-webkit-scrollbar-thumb { background: rgba(11, 11, 12, .2); background-clip: content-box; }
.modal--light .modal__x { border-color: var(--line-dark); background: rgba(11, 11, 12, .04); color: var(--ink); }
.modal--light .modal__x:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.modal--light .btn--solid { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.modal--light .btn--solid:hover { --btn-bg: #000; --btn-bd: #000; }
.modal--light .btn--ghost { --btn-fg: var(--muted-dark); --btn-bd: var(--line-dark); }
.modal--light .btn--ghost:hover { --btn-fg: var(--ink); --btn-bd: rgba(11, 11, 12, .4); }

@keyframes modal-bg { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(22px) scale(.975); } to { opacity: 1; transform: none; } }
@keyframes modal-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(10px) scale(.99); } }
.modal[open]::backdrop { animation: modal-bg .34s var(--ease) both; }
.modal[open] .modal__card { animation: modal-in .44s var(--ease) both; }
.modal.is-closing[open]::backdrop { animation: modal-bg .2s var(--ease) reverse both; }
.modal.is-closing[open] .modal__card { animation: modal-out .2s var(--ease) both; }

/* ---------- events ---------- */
.events { display: flex; flex-direction: column; }
.event {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 3vw, 38px) 0;
  border-bottom: 1px solid var(--line-light);
}
.section--light .event { border-color: var(--line-dark); }
.event:first-child { border-top: 1px solid var(--line-light); }
.section--light .event:first-child { border-color: var(--line-dark); }
.event__when { font-size: .92rem; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); }
.event__what { display: flex; flex-direction: column; gap: .3em; }
.event__title { font-family: var(--display); font-size: clamp(1.3rem, 1.9vw, 1.6rem); font-weight: 500; line-height: 1.2; color: #fff; letter-spacing: .01em; }
.section--light .event__title { color: var(--ink); }
.event__venue { font-size: 1rem; color: var(--muted); }
.event__link {
  margin-top: .35em;
  font-size: .86rem;
  letter-spacing: .02em;
  color: var(--muted-dark);
  word-break: break-word;
}
.event--link { color: inherit; cursor: pointer; transition: padding var(--t), background var(--t); }
.event--link:hover, .event--link:focus-visible { padding-inline: clamp(10px, 1.4vw, 20px); background: rgba(255, 255, 255, .035); outline: none; }
.section--light .event--link:hover, .section--light .event--link:focus-visible { background: rgba(11, 11, 12, .04); }
.event--link:hover .event__title, .event--link:focus-visible .event__title { color: var(--accent); }
.event--link:hover .event__link { color: var(--accent); }
.event__arrow {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-light); border-radius: var(--radius-pill);
  transition: background var(--t), color var(--t), border-color var(--t);
}
.event__arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t); }
.event--link:hover .event__arrow svg, .event--link:focus-visible .event__arrow svg { transform: translateX(2px); }
.section--light .event__arrow { border-color: var(--line-dark); }
.event--link:hover .event__arrow, .event--link:focus-visible .event__arrow { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.section--light .event__link { color: var(--muted-dark); }
.section--light .event__venue { color: var(--muted-dark); }
/* events beside an image (home page): a step smaller to fit the narrower column */
.split .event { grid-template-columns: 228px minmax(0, 1fr) auto; gap: 20px; padding: 24px 0; }
.split .event__when { font-size: .8rem; letter-spacing: .1em; }
.split .event__title { font-size: clamp(1.1rem, 1.4vw, 1.3rem); }
.split .event__venue { font-size: .92rem; }
@media (max-width: 760px) {
  .event, .split .event { grid-template-columns: 1fr; gap: 8px; align-items: start; padding: 22px 0; }
  .event.event--link, .event.event--link:hover, .event.event--link:focus-visible { position: relative; padding: 22px 60px 22px 0; background: none; }
  .event--link .event__arrow { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; }
}
.events__empty { padding: 34px 0; color: var(--muted); }

/* ---------- statement band ---------- */
.band {
  background: var(--ink-3);
  text-align: center;
  padding-block: clamp(46px, 6vw, 76px);
}
.band p {
  font-family: var(--display);
  font-size: clamp(1.3rem, 3.1vw, 2.3rem);
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #fff;
  margin: 0;
}

/* ---------- testimonials ---------- */
.quote {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15em;
  padding: clamp(28px, 3.2vw, 42px);
  background: var(--ink-3);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
}
.section--light .quote { background: #fff; border-color: var(--line-dark); color: var(--ink); }
.quote__mark {
  font-family: var(--display);
  font-size: 2.9rem;
  line-height: .55;
  height: .55em;
  color: var(--accent);
  opacity: .5;
}
.quote__text { margin: 0; font-size: 1rem; line-height: 1.82; }
.quote__by {
  margin-top: auto;
  padding-top: 1.1em;
  display: flex;
  flex-direction: column;
  gap: .5em;
  border-top: 1px solid var(--line-light);
}
.section--light .quote__by { border-color: var(--line-dark); }
.quote__name { font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.section--light .quote__name { color: #96762f; }
.quote__role { font-size: .85rem; line-height: 1.55; color: var(--muted); }
.section--light .quote__role { color: var(--muted-dark); }

/* ---------- carousel ---------- */
.carousel { position: relative; }
.carousel__viewport {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
  align-items: stretch;
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__viewport > * { scroll-snap-align: start; }
.carousel__viewport:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: var(--radius); }
@media (min-width: 760px)  { .carousel__viewport { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (min-width: 1120px) { .carousel__viewport { grid-auto-columns: calc((100% - 40px) / 3); } }
@media (prefers-reduced-motion: reduce) { .carousel__viewport { scroll-behavior: auto; } }

.carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(26px, 3vw, 38px);
}
.carousel__arrow {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-pill);
  background: none;
  color: var(--text);
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t), opacity var(--t);
}
.section--light .carousel__arrow { border-color: var(--line-dark); color: var(--ink); }
.carousel__arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.carousel__arrow:hover:not(:disabled) { background: #fff; color: var(--ink); border-color: #fff; }
.carousel__arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.carousel__arrow:disabled { opacity: .3; cursor: default; }

.carousel__dots { display: flex; align-items: center; gap: 10px; }
.carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid var(--muted);
  border-radius: var(--radius-pill);
  background: none;
  cursor: pointer;
  transition: width var(--t), background var(--t), border-color var(--t);
}
.carousel__dot[aria-current="true"] { width: 30px; background: var(--accent); border-color: var(--accent); }
.carousel__dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- logo marquee ---------- */
.marquee-rows { display: grid; gap: clamp(22px, 2.8vw, 38px); margin-top: clamp(42px, 5vw, 68px); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.marquee__track { display: flex; width: max-content; gap: clamp(42px, 5vw, 76px); align-items: center; animation: slide 62s linear infinite; }
.marquee__track--rev { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee img {
  height: 42px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .5;
  transition: opacity var(--t);
  flex: none;
}
.marquee img:hover { opacity: 1; }
.marquee .wordmark {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  white-space: nowrap;
  flex: none;
  transition: color var(--t);
}
.marquee .wordmark:hover { color: #fff; }

/* ---------- article teaser ---------- */
.articles { display: grid; gap: 18px; }
/* gold press section */
.section--gold {
  position: relative;
  isolation: isolate;
  color: var(--ink);
  background:
    radial-gradient(60% 120% at 15% 0%, rgba(230, 200, 140, .18), transparent 60%),
    radial-gradient(50% 100% at 90% 100%, rgba(40, 28, 8, .30), transparent 65%),
    linear-gradient(115deg, #7f6434 0%, #957844 25%, #a88a52 40%, #957844 58%, #866a38 78%, #957844 100%);
}
/* fine diagonal sheen, like brushed metal */
.section--gold::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 6px);
  pointer-events: none;
}
.article-card {
  background: rgba(255, 250, 235, .14);
  color: var(--ink);
  border: 1px solid rgba(11, 11, 12, .28);
  border-radius: var(--radius);
  padding: clamp(28px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: .5em;
  align-items: flex-start;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.article-card:hover { background: rgba(255, 250, 235, .26); border-color: rgba(11, 11, 12, .5); transform: translateY(-4px); }
.article-card .card__meta { color: rgba(11, 11, 12, .62); font-weight: 500; }
.article-card h3 { margin: 0; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); }
.article-card p { color: rgba(11, 11, 12, .8); font-size: .97rem; max-width: 60ch; }
.article-card .linkline { color: var(--ink); border-color: rgba(11, 11, 12, .45); margin-top: .6em; }
.article-card:hover .linkline { color: var(--ink); border-color: var(--ink); gap: .85em; }

/* ---------- contact / form ---------- */
.formwrap {
  background: var(--ink-3);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 34px);
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: .74rem;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: .6em;
}
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .95em 1.3em;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-family: var(--sans);
  font-size: .97rem;
  font-weight: 300;
  transition: border-color var(--t), background var(--t);
}
.field textarea { border-radius: var(--radius); resize: vertical; min-height: 150px; }
.field input::placeholder, .field textarea::placeholder { color: #6e6b66; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, .07);
}
/* the message after sending */
.form-ok, .form-err {
  margin: 0 0 20px;
  padding: 1em 1.3em;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  line-height: 1.6;
  text-align: left;
}
.form-ok  { background: rgba(200, 169, 106, .12); border: 1px solid rgba(200, 169, 106, .55); color: var(--text); }
.form-ok::before { content: "✓"; color: var(--accent); font-weight: 600; margin-right: .6em; }
.form-err { background: rgba(214, 92, 92, .1); border: 1px solid rgba(214, 92, 92, .5); color: #f0c9c9; }
.field__err { display: block; margin-top: .5em; font-size: .82rem; color: #e59a9a; }
.form-status:empty { display: none; }
button[type="submit"]:disabled { opacity: .6; cursor: progress; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a5a29c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.3em center;
  padding-right: 3em;
  cursor: pointer;
}
.field select option { background: var(--ink-3); color: var(--text); }
.fieldrow { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 680px) { .fieldrow { grid-template-columns: 1fr; } }

.consent { display: flex; gap: 13px; align-items: flex-start; margin: 20px 0 24px; font-size: .85rem; color: var(--muted); line-height: 1.6; }
.consent input { flex: none; width: 19px; height: 19px; margin-top: 2px; accent-color: var(--accent); cursor: pointer; }
.consent a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.form-note { margin-top: 18px; font-size: .84rem; color: var(--muted); }
.form-note[hidden] { display: none; }

/* contact index list (kontakt page) */
.contactlist { border-top: 1px solid var(--line-light); }
.contactlist__row { border-bottom: 1px solid var(--line-light); padding: clamp(22px, 2.6vw, 30px) 0; }
.contactlist__row h3 { margin: 0 0 .2em; text-transform: uppercase; letter-spacing: .05em; font-size: clamp(1.1rem, 1.7vw, 1.4rem); }
.contactlist__row p { color: var(--muted); font-size: .95rem; margin: 0 0 1em; }
.contactlist__direct { padding-top: clamp(22px, 2.6vw, 30px); display: flex; flex-direction: column; gap: .8em; }
.contactlist__direct .eyebrow { margin: 0 0 .4em; }
.contactlist__direct a { display: inline-flex; align-items: center; gap: .7em; color: #fff; transition: color var(--t); }
.contactlist__direct a:hover { color: var(--accent); }
.contactlist__direct svg { flex: none; opacity: .65; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); border-top: 1px solid var(--line-light); padding-block: clamp(48px, 5vw, 72px) 30px; }
/* phones: leave room under the legal links for the round cookie button */
@media (max-width: 760px) { .site-footer { padding-bottom: 90px; } }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; margin-bottom: 44px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.site-footer h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.2em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .62em; font-size: .88rem; }
.site-footer a:hover { color: var(--accent); }
.site-footer p { font-size: .93rem; color: var(--muted); }
.socials { display: flex; gap: 12px; margin-top: 1.4em; }
.socials a {
  width: 40px; height: 40px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-pill);
  display: grid; place-items: center;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.socials a:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* social icons in the header */
.socials--header { margin-top: 0; gap: 8px; flex: none; }
.socials--header a {
  width: 31px; height: 31px;
  border-color: rgba(255, 255, 255, .28);
  color: rgba(255, 255, 255, .82);
}
.socials--header svg { width: 14px; height: 14px; }
@media (max-width: 1040px) {
  .socials--header { margin-top: 26px; gap: 14px; }
  .socials--header a { width: 46px; height: 46px; }
  .socials--header svg { width: 17px; height: 17px; }
}
.footer-bottom {
  border-top: 1px solid var(--line-light);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--muted-dark);
}
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }


/* ---------- utilities ---------- */
.stack-sm > * + * { margin-top: 1.1em; }
.mt-l { margin-top: clamp(30px, 4vw, 52px); }
.mt-m { margin-top: clamp(20px, 2.6vw, 32px); }
.center { text-align: center; }
.center .btn { margin-inline: auto; }
.maxw { max-width: 72ch; }
.skip {
  position: absolute; left: -9999px;
  background: #fff; color: var(--ink);
  padding: 12px 20px; border-radius: var(--radius-pill); z-index: 200;
}
.skip:focus { left: 16px; top: 16px; }

/* a multi-colour mark keeps its colours — painted white it would be a blob */
.marquee img.is-colour { filter: none; opacity: .85; }
.marquee img.is-colour:hover { opacity: 1; }
/* with a short description under it, the tag reads as the row's bold line */
.offer__label:has(.offer__excerpt) .offer__tag { color: #fff; font-weight: 500; }
.section--light .offer__label:has(.offer__excerpt) .offer__tag { color: var(--ink); }

/* ---------- cookie consent ---------- */
.cookie-banner, .cookie-banner * { box-sizing: border-box; }
.cookie-banner {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 200;
  width: min(380px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 22px 22px 18px;
  background: rgba(17, 17, 19, .97);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
  font-size: .86rem;
  color: var(--muted);
  animation: cookie-in .5s var(--ease);
}
.cookie-banner[hidden] { display: none; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(16px); } }
.cookie-banner p { margin: 0; }
.cookie-banner__title { font-family: var(--display); font-style: italic; font-size: 1.2rem; color: #fff; margin-bottom: 6px !important; }
.cookie-banner__text { line-height: 1.55; }
.cookie-banner__actions { display: flex; gap: 10px; margin-top: 16px; }
.cookie-banner__actions .btn { flex: 1; justify-content: center; padding-left: .8em; padding-right: .8em; }
.cookie-banner__more { display: block; margin-top: 12px; text-align: center; font-size: .78rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__more:hover { color: #fff; }
@media (max-width: 600px) {
  .cookie-banner {
    left: 0; right: 0; bottom: 0;
    width: 100%;
    max-height: 85vh;
    border-radius: 0;
    border-width: 1px 0 0;
    padding: 20px 20px calc(18px + env(safe-area-inset-bottom));
  }
}
.section + .section--cookies { padding-top: 0; }

.cookie-fab {
  position: fixed;
  left: 20px; bottom: 20px;
  z-index: 190;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  background: rgba(17, 17, 19, .92);
  color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  cursor: pointer;
  transition: transform var(--t), border-color var(--t), color var(--t);
  animation: cookie-in .4s var(--ease);
}
.cookie-fab[hidden] { display: none; }

/* preferences dialog */
.cookie-lock, .cookie-lock body { overflow: hidden; }
.cookie-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.cookie-modal[hidden] { display: none; }
.cookie-modal, .cookie-modal * { box-sizing: border-box; }
.cookie-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .65); backdrop-filter: blur(3px); animation: cookie-fade .3s ease; }
@keyframes cookie-fade { from { opacity: 0; } }
.cookie-modal__box {
  position: relative;
  width: min(620px, 100%);
  max-height: min(86vh, 820px);
  display: flex; flex-direction: column;
  background: #111113;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  color: var(--muted);
  font-size: .9rem;
  outline: none;
  animation: cookie-in .4s var(--ease);
}
.cookie-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 14px; border-bottom: 1px solid var(--line-light); }
.cookie-modal__title { margin: 0; font-family: var(--display); font-style: italic; font-size: 1.45rem; color: #fff; }
.cookie-modal__x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-light); background: none; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.cookie-modal__x:hover { border-color: rgba(255, 255, 255, .4); }
.cookie-modal__body { padding: 18px 24px; overflow-y: auto; }
.cookie-modal__intro { margin: 0 0 16px; line-height: 1.6; }
.cookie-modal__more { text-align: left; margin-top: 16px; }
.cookie-modal__foot { display: flex; gap: 10px; padding: 16px 24px 20px; border-top: 1px solid var(--line-light); }
.cookie-modal__foot .btn { flex: 1; justify-content: center; padding-left: .8em; padding-right: .8em; }

.cookie-group { border: 1px solid var(--line-light); border-radius: var(--radius-sm); margin-bottom: 10px; }
.cookie-group__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; }
.cookie-group__toggle { flex: 1; display: flex; align-items: center; gap: 12px; padding: 0; background: none; border: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.cookie-group__toggle strong { display: block; color: #fff; font-weight: 500; font-size: .95rem; }
.cookie-group__toggle small { display: block; font-size: .76rem; color: var(--muted-dark); margin-top: 2px; }
.cookie-group__chev { color: var(--accent); font-size: 1.2rem; line-height: 1; transition: transform var(--t); }
.cookie-group__toggle[aria-expanded="true"] .cookie-group__chev { transform: rotate(90deg); }
.cookie-group__body { padding: 0 16px 6px; border-top: 1px solid var(--line-light); }
.cookie-group__desc { margin: 12px 0 4px; font-size: .84rem; line-height: 1.55; }
.cookie-group__empty { margin: 8px 0 12px; font-size: .82rem; color: var(--muted-dark); font-style: italic; }
.cookie-always { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.cookie-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-light); }
.cookie-group__desc + .cookie-item { border-top: 0; }
.cookie-item__main { min-width: 0; }
.cookie-item code { color: #fff; font-size: .82rem; overflow-wrap: anywhere; }
.cookie-item p { margin: 3px 0 0; font-size: .8rem; line-height: 1.5; }
.cookie-item__meta { color: var(--muted-dark); }

/* on/off switch */
.cookie-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; cursor: pointer; }
.cookie-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.cookie-switch span { position: absolute; inset: 0; border-radius: 999px; background: #2a2a2e; border: 1px solid var(--line-light); transition: background var(--t), border-color var(--t); }
.cookie-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #8d8a85; transition: transform var(--t), background var(--t); }
.cookie-switch input:checked + span { background: var(--accent); border-color: var(--accent); }
.cookie-switch input:checked + span::after { transform: translateX(20px); background: #fff; }
.cookie-switch input:indeterminate + span { background: rgba(200, 169, 106, .45); border-color: var(--accent); }
.cookie-switch input:indeterminate + span::after { transform: translateX(10px); background: #fff; }
.cookie-switch input:disabled { cursor: not-allowed; }
.cookie-switch input:disabled + span { opacity: .55; }
.cookie-switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cookie-switch--sm { width: 38px; height: 22px; }
.cookie-switch--sm span::after { width: 14px; height: 14px; }
.cookie-switch--sm input:checked + span::after { transform: translateX(16px); }

@media (max-width: 600px) {
  .cookie-modal { padding: 0; place-items: end stretch; }
  .cookie-modal__box { width: 100%; max-height: 92vh; border-radius: 0; border-width: 1px 0 0; }
  .cookie-modal__head, .cookie-modal__body { padding-left: 18px; padding-right: 18px; }
  .cookie-modal__foot { flex-direction: column; padding: 14px 18px calc(16px + env(safe-area-inset-bottom)); }
  .cookie-modal__foot .btn--solid { order: -1; }
}
.cookie-fab:hover { transform: translateY(-2px) rotate(-12deg); border-color: rgba(200, 169, 106, .6); color: #fff; }
.cookie-fab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 600px) {
  .cookie-fab { left: 14px; bottom: 14px; width: 42px; height: 42px; }
}

.footer-cookie-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: inherit; opacity: inherit;
}
.footer-cookie-btn:hover { color: #fff; }

.cookie-table { margin-top: 28px; border-top: 1px solid var(--line-light); font-size: .92rem; }
.cookie-table__row {
  display: grid;
  grid-template-columns: 1.5fr 2fr .7fr 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-light);
  align-items: start;
}
.cookie-table__row--head { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); padding: 12px 0; }
.cookie-table code { font-size: .82rem; color: #fff; overflow-wrap: anywhere; }
.cookie-table small { display: block; margin-top: 4px; font-size: .78rem; }
.cookie-tag { display: inline-block; padding: .3em .8em; border-radius: var(--radius-pill); border: 1px solid var(--line-light); font-size: .72rem; white-space: nowrap; }
.cookie-tag--necessary { color: var(--accent); border-color: rgba(200, 169, 106, .45); }
.section--light .cookie-table, .section--light .cookie-table__row { border-color: var(--line-dark); }
.section--light .cookie-table code { color: var(--ink); }
@media (max-width: 720px) {
  .cookie-table__row { grid-template-columns: 1fr; gap: 6px; }
  .cookie-table__row--head { display: none; }
  .cookie-table__row > span[data-label]::before {
    content: attr(data-label); display: block; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px;
  }
}
