/* „Витрината“ — обща основа за вариантите B2–B4. Цветовете идват от токените на всяка тема. */
:root {
  --ground: #0D0B0A;
  --ground-rgb: 13, 11, 10;
  --surface-rgb: 13, 11, 10;
  --text: #F3EBDD;
  --muted: #B8AB97;
  --line: rgba(243, 235, 221, .16);
  --glass: rgba(255, 244, 225, .06);
  --accent: #F1C21B;          /* headline emphasis */
  --btn: #F1C21B;             /* primary action */
  --btn-hover: #FFD23A;
  --btn-ink: #1C1406;
  --btn-shadow: rgba(0, 0, 0, .55);
  --led-on: #FF3344;
  --hero-filter: brightness(.74) contrast(1.1) saturate(1.08);
  --tint: transparent;
  --tint-blend: normal;
  --display: "Oranienbaum", "Times New Roman", serif;
  --ui: "Golos Text", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;
  --gut: clamp(16px, 4vw, 56px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--muted) var(--ground); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 1.0625rem/1.6 var(--ui); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
::selection { background: var(--btn); color: var(--btn-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn); color: var(--btn-ink); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.top { position: absolute; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; gap: 28px; padding: 18px var(--gut); }
.top__logo img { height: 46px; width: auto; }
.top__nav { display: flex; gap: 26px; font: 500 1rem/1 var(--ui); }
.top__nav a { text-decoration: none; padding: 10px 0; opacity: .88; transition: opacity .2s ease-out; }
.top__nav a:hover { opacity: 1; text-decoration: underline; }


/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; isolation: isolate; overflow: hidden; }
/* background film: two stacked clips that cross-fade; the poster holds the frame until (and unless) video plays */
.hero__media { position: absolute; inset: 0; z-index: -2; background: var(--ground) url("img/hero-poster.jpg") 50% 50% / cover no-repeat; }
@media (max-aspect-ratio: 4/5) { .hero__media { background-image: url("img/hero-poster-v.jpg"); } }
.hero__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.8s cubic-bezier(.45,0,.55,1); }
.hero__vid.is-on { opacity: 1; }
.hero__media { filter: var(--hero-film, var(--hero-filter)); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  linear-gradient(90deg, rgba(var(--ground-rgb), .82) 0%, rgba(var(--ground-rgb), .5) 38%, rgba(var(--ground-rgb), .12) 72%),
  linear-gradient(180deg, rgba(var(--ground-rgb), .55) 0%, transparent 20%, transparent 55%, rgba(var(--ground-rgb), .7) 86%, var(--ground) 100%); }
.hero__copy { align-self: end; padding: 140px var(--gut) clamp(48px, 9vh, 104px); max-width: 1180px; }
.hero__t { margin: 0; font: 400 clamp(3.2rem, 8.6vw, 6rem)/.9 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.hero__t em { font-style: normal; color: var(--accent); }
.hero__lead { margin: 22px 0 0; max-width: 40ch; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--muted); }
.hero__act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__where { margin: 22px 0 0; color: var(--muted); font-size: .9375rem; }
.hero__where .sep { margin: 0 .35em; opacity: .6; }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 12px 22px; border-radius: 999px; font: 600 1.0625rem/1 var(--ui); text-decoration: none; transition: background-color .2s ease-out, color .2s ease-out, transform .2s ease-out, box-shadow .2s ease-out; }
.btn:active { transform: translateY(1px); }
.btn--sign { background: var(--btn); color: var(--btn-ink); box-shadow: 0 10px 24px -10px var(--btn-shadow); }
.btn--sign:hover { background: var(--btn-hover); }
.btn--line { color: var(--text); box-shadow: inset 0 0 0 1px currentColor; }
.btn--line:hover { background: var(--text); color: var(--ground); }

.h2 { margin: 0; font: 400 clamp(2.5rem, 5.4vw, 4.5rem)/.95 var(--display); letter-spacing: -.015em; text-wrap: balance; }

/* Shelf strip */
.shelf { padding: clamp(72px, 9vw, 128px) 0 clamp(56px, 7vw, 96px); }
.shelf__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px 24px; padding: 0 var(--gut) 28px; }
.shelf__head p { grid-column: 1; margin: 0; color: var(--muted); }
.shelf__nav { grid-column: 2; grid-row: 1 / 3; display: flex; gap: 10px; }
.round { all: unset; cursor: pointer; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); color: var(--text); transition: background-color .2s ease-out; }
.round:hover { background: var(--glass); }
.round:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.strip { list-style: none; margin: 0; padding: 0 var(--gut) 8px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); cursor: grab; scrollbar-width: thin; scrollbar-color: var(--muted) transparent; }
.strip.is-drag { cursor: grabbing; scroll-snap-type: none; }
.strip.is-drag img { pointer-events: none; }
.strip li { flex: 0 0 auto; width: clamp(220px, 22vw, 320px); scroll-snap-align: start; }
.strip li.wide { width: clamp(300px, 34vw, 480px); }
.strip figure { margin: 0; }
.strip img { width: 100%; height: clamp(300px, 34vw, 440px); object-fit: cover; border-radius: 4px; user-select: none; -webkit-user-drag: none; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.strip li:hover img { transform: translateY(-4px); }
.strip figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; color: var(--muted); font: 400 .75rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.strip figcaption b { font: 400 1.375rem/1.1 var(--display); text-transform: none; letter-spacing: 0; color: var(--text); }

/* Categories */
.cats { padding: clamp(40px, 6vw, 80px) var(--gut); max-width: 1440px; margin: 0 auto; }
.cats .h2 { margin-bottom: 28px; }
.cats__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cats__list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 120px; align-items: center; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cats__list h3 { margin: 0; font: 400 clamp(1.9rem, 3.6vw, 3rem)/1 var(--display); }
.cats__list p { margin: 0; color: var(--muted); }
.cats__list img { grid-column: 3; grid-row: 1; width: 120px; height: 84px; object-fit: cover; border-radius: 3px; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.cats__list li:hover img { transform: scale(1.06); }

/* Window / visit */
.window { position: relative; margin-top: clamp(56px, 8vw, 112px); min-height: 92svh; display: grid; align-items: end; isolation: isolate; }
.window__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: var(--hero-filter); }
.window::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--ground-rgb), .95) 0%, rgba(var(--ground-rgb), .72) 40%, rgba(var(--ground-rgb), .08) 76%); }
.window__card { padding: clamp(32px, 5vw, 72px) var(--gut); max-width: 640px; display: grid; gap: 18px; }
.window__addr { margin: 0; font: 400 clamp(2rem, 3.6vw, 3rem)/1 var(--display); color: var(--accent); }
.hours { border-collapse: collapse; width: 100%; max-width: 440px; }
.hours th, .hours td { padding: 12px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-family: var(--mono); font-size: .9375rem; }
.hours tr.is-today th { color: var(--accent); }
.hours tr.is-today th::before { content: "днес · "; font: 400 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.window__status { margin: 0; display: flex; align-items: center; gap: 10px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
[data-status-state="open"] .dot { background: var(--btn); }
[data-status-state="closed"] .dot { background: var(--led-on); }

.foot { padding: 48px var(--gut) 56px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.foot img { width: min(280px, 70vw); }
.foot p { margin: 0; text-align: right; }

@media (max-width: 960px) {
  .top__nav { display: none; }
  .cats__list li { grid-template-columns: minmax(0, 1fr) 96px; }
  .cats__list p { grid-column: 1; }
  .cats__list img { grid-column: 2; grid-row: 1 / 3; width: 96px; height: 96px; }
}
@media (max-width: 640px) {
  .top { padding-top: 12px; gap: 12px; flex-wrap: wrap; }
  .top__logo img { height: 34px; }
  .hero__copy { padding-top: 120px; }
  .hero__t { font-size: clamp(2.9rem, 13.5vw, 3.6rem); }
  .hero__act .btn { flex: 1 1 100%; justify-content: center; }
  .hero__where .sep { display: none; }
  .hero__where > .nw:first-child { display: block; margin-bottom: 2px; }
  .hero::before { background: linear-gradient(180deg, rgba(var(--ground-rgb), .6) 0%, rgba(var(--ground-rgb), .2) 22%, rgba(var(--ground-rgb), .35) 42%, rgba(var(--ground-rgb), .88) 70%, var(--ground) 100%); }
  .shelf__nav { display: none; }
  .shelf__head { grid-template-columns: 1fr; }
  .window { min-height: 0; padding-top: 52vw; }
  .window::before { background: linear-gradient(180deg, rgba(var(--ground-rgb), .05) 0%, rgba(var(--ground-rgb), .85) 40%, rgba(var(--ground-rgb), .97) 70%); }
  .window__img { height: 70vw; bottom: auto; }
  .foot { flex-direction: column; align-items: flex-start; }
  .foot p { text-align: left; }
}
