/* ============================================================
   BOSFOR — shared chrome: top marquee bar + burger menu
   ============================================================ */
:root { --topbar-h: 38px; --navx-h: 66px; }

/* ---- top marquee bar (small, clean, at very top) ---- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h); z-index: 860;
  background: #000; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.topbar__track { display: inline-flex; white-space: nowrap; will-change: transform; }
.topbar__item {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-40); padding: 0; display: inline-flex; align-items: center;
}
.tb-lab {
  display: inline-flex; align-items: center; gap: 9px;
  height: var(--topbar-h); padding: 0 clamp(20px, 3vw, 44px);
  box-sizing: border-box;
}
.tb-ico {
  display: block; width: 16px; height: 16px; object-fit: contain;
  filter: brightness(0) invert(1);
}
.tb-laurel {
  display: block; height: 22px; width: auto; max-width: 120px;
  object-fit: contain; filter: brightness(0) invert(1);
}
@media (hover: hover) and (pointer: fine) {
  .tb-lab:hover .tb-ico,
  [data-award-icon="gold"] .tb-ico {
    filter: brightness(0) saturate(100%) invert(72%) sepia(48%) saturate(720%) hue-rotate(2deg) brightness(1.05);
  }
}
[data-award-icon="gold"] .tb-laurel { filter: none; }

/* ---- nav (brand + burger), sits below the bar ---- */
.navx {
  position: fixed; top: var(--topbar-h); left: 0; right: 0; height: var(--navx-h); z-index: 820;
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad);
  color: #fff;
  pointer-events: none;
}
.navx__brand, .navx__burger { mix-blend-mode: difference; }
.navx__brand, .navx__burger, .navx__right { pointer-events: auto; }
.navx__right { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 30px); }
.navx__brand { font-family: var(--serif); font-weight: 600; font-size: 23px; letter-spacing: 0.01em; display: flex; align-items: center; }
.navx__brand img { height: 40px; width: auto; display: block; }
.navx__brand bosfor-mark { display: block; height: 40px; aspect-ratio: 1535 / 1150; color: #fff; cursor: pointer; }
.navx__burger { width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 7px; }
.navx__burger span { display: block; height: 1.6px; background: #fff; transition: width .4s var(--ease), transform .4s var(--ease); }
.navx__burger span:nth-child(1) { width: 30px; }
.navx__burger span:nth-child(2) { width: 20px; }
@media (hover: hover) and (pointer: fine) { .navx__burger:hover span:nth-child(2) { width: 30px; } }
/* бургер ↔ крестик: та же кнопка морфится при открытом меню и остаётся над оверлеем.
   z-index падает обратно с задержкой — шапка (крестик + язык) видна, пока оверлей доезжает, и крестик анимируется обратно в бургер */
.navx { transition: z-index 0s linear .65s; }
.menu-open .navx { z-index: 1300; transition: z-index 0s; }
.navx__burger { transition: transform .45s var(--ease); }
.menu-open .navx__burger span { width: 30px; }
.menu-open .navx__burger span:nth-child(1) { transform: translateY(4.3px) rotate(45deg); }
.menu-open .navx__burger span:nth-child(2) { transform: translateY(-4.3px) rotate(-45deg); }
/* ховер крестика — поворот на 90° вокруг центра самого крестика (спаны прижаты вправо, поэтому origin смещён) */
.menu-open .navx__burger { transform-origin: calc(100% - 15px) center; }
@media (hover: hover) and (pointer: fine) { .menu-open .navx__burger:hover { transform: rotate(90deg); } }

/* ---- full right-side menu panel (like the film cards) ---- */
.menux {
  position: fixed; top: 0; right: 0; height: 100%; width: min(700px, 95vw); z-index: 1200;
  background: #0b0b0b; border-left: 1px solid var(--line);
  transform: translateX(102%);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(34px, 6vw, 88px);
}
.anim-ready .menux { transition: transform .85s var(--ease-in-out), box-shadow .85s var(--ease-in-out); }
.menu-open .menux { transform: none; box-shadow: -40px 0 120px rgba(0,0,0,0.8); }

.menux__backdrop { position: fixed; inset: 0; z-index: 1150; background: rgba(0,0,0,0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; pointer-events: none; }
.anim-ready .menux__backdrop { transition: opacity .6s var(--ease); }
.menu-open .menux__backdrop { opacity: 1; pointer-events: auto; }

.menux__close { position: absolute; top: 28px; right: 30px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ink-25); display: grid; place-items: center; transition: background .4s, transform .4s var(--ease); }
.menux__close:hover { background: #fff; transform: rotate(90deg); }
.menux__close span { position: absolute; width: 16px; height: 1.4px; background: #fff; }
.menux__close:hover span { background: #000; }
.menux__close span:first-child { transform: rotate(45deg); }
.menux__close span:last-child { transform: rotate(-45deg); }

.menux__links { display: flex; flex-direction: column; gap: clamp(2px, 0.6vw, 10px); }
.menux__links a { display: flex; align-items: baseline; gap: 22px; font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6.5vw, 78px); line-height: 1.04; color: var(--ink-40); padding: 6px 0; transition: color .45s var(--ease), transform .55s var(--ease); }
.menux__links a i { font-family: var(--mono); font-style: normal; font-size: 12px; letter-spacing: 0.1em; color: var(--ink-25); transition: color .4s; align-self: center; }
.menux__links a:hover, .menux__links a.is-active { color: #fff; transform: translateX(16px); }
.menux__links a:hover i, .menux__links a.is-active i { color: var(--ink-60); }

.menux__foot { position: absolute; left: clamp(34px, 6vw, 88px); right: clamp(34px,6vw,88px); bottom: 38px; display: flex; gap: 28px; flex-wrap: wrap; font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--ink-40); }
.menux__foot a:hover { color: #fff; }

/* мобиль: шапка выше — лого и бургер не прижаты к бегущей строке */
@media (max-width: 720px) { :root { --topbar-h: 34px; --navx-h: 84px; } }
/* десктоп: отступ от бегущей строки до лого/меню = 38px (равно высоте строки); navx-h сжат под этот отступ */
@media (min-width: 721px) {
  :root { --navx-h: 82px; }
  .navx { align-items: flex-start; padding-top: 38px; box-sizing: border-box; }
}

/* ---- Shared page overrides ---- */
.cat-hero { padding-top: calc(var(--topbar-h) + var(--navx-h) + clamp(34px, 6vh, 80px)) !important; }
.cat-top { height: calc(var(--topbar-h) + var(--navx-h) + clamp(20px, 4vh, 44px)); }
.cat-word { font-family: var(--serif); font-weight: 600; font-size: clamp(74px, 20.5vw, 380px); line-height: 0.8; letter-spacing: -0.02em; white-space: nowrap; }
.filters { top: calc(var(--topbar-h) + var(--navx-h)) !important; }
.j3-hero { padding-top: calc(var(--topbar-h) + var(--navx-h) + clamp(30px, 5vh, 60px)); }

/* ---- Footer — full contacts + newsletter + one-line wordmark ---- */
.footx { border-top: 1px solid var(--line); padding: clamp(50px,7vw,96px) var(--pad) 34px; }
.footx__cols { display: grid; grid-template-columns: 1fr 1fr 1fr 1.5fr; gap: clamp(26px,3.5vw,56px); align-items: start; }
.footx__col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; min-width: 0; }
.footx__col .footx__h { margin-bottom: 6px; }
.footx__col > a { font-family: var(--sans); font-size: 15px; line-height: 1.15; color: var(--ink-90); transition: color .3s var(--ease); }
.footx__col > a:hover { color: #fff; }
.footx__col .footx__line { margin-bottom: 0; gap: 3px; }
.footx__col .footx__line a { font-size: 15px; }
.footx__rule { height: 1px; background: var(--line); margin: clamp(28px,4vw,48px) 0; }
.footx__newsrow { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px,4vw,56px); align-items: start; }
.footx__col--form { align-items: stretch; }
.footx__col--form .footx__news { width: 100%; margin-top: 4px; }
.footx__meta { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; line-height: 1.6; color: var(--ink-40); max-width: 32ch; margin-top: 16px; }
.footx__h { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-40); margin-bottom: 20px; }
.footx__statement { font-family: var(--serif); font-weight: 500; font-size: clamp(19px,1.6vw,25px); line-height: 1.34; max-width: 30ch; color: var(--ink-90); }
.footx__about { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-60); }
.footx__about span { transition: transform .5s var(--ease); }
.footx__about:hover { color: #fff; }
.footx__about:hover span { transform: translateX(5px); }
.footx__line { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.footx__tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-25); }
.footx__line a { font-size: clamp(16px,1.3vw,20px); color: var(--ink-90); width: fit-content; transition: color .3s; }
.footx__line a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footx__soc { display: flex; gap: 18px; margin-top: 22px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--ink-40); }
.footx__soc a:hover { color: #fff; }
.footx__news-lead { font-size: 14px; line-height: 1.5; color: var(--ink-60); max-width: 26ch; margin-bottom: 18px; }
.footx__news { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--ink-40); padding-bottom: 12px; transition: border-color .4s; }
.footx__news:focus-within { border-color: #fff; }
.footx__news input { flex: 1; min-width: 0; background: none; border: none; color: #fff; font-family: var(--mono); font-size: 14px; letter-spacing: 0.04em; outline: none; }
.footx__news input::placeholder { color: var(--ink-40); }
.footx__news button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ink-40); display: grid; place-items: center; font-size: 15px; color: var(--ink-90); transition: background .4s, color .4s, transform .4s; }
.footx__news button:hover { background: #fff; color: #000; transform: translateX(3px); }
.footx__news-note { display: block; margin-top: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--ink-25); text-transform: uppercase; }
/* согласие на обработку перс. данных под формой подписки */
.footx__consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; cursor: pointer; font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em; line-height: 1.5; color: var(--ink-40); max-width: 36ch; transition: color .3s; }
.footx__consent-cb { appearance: none; -webkit-appearance: none; flex: none; width: 15px; height: 15px; margin-top: 1px; border: 1px solid var(--ink-40); background: transparent; cursor: pointer; position: relative; transition: background .25s var(--ease), border-color .25s var(--ease); }
.footx__consent-cb:checked { background: #fff; border-color: #fff; }
.footx__consent-cb:checked::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #000; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.footx__consent a { color: var(--ink-60); text-decoration: underline; text-underline-offset: 2px; transition: color .3s; }
.footx__consent a:hover { color: #fff; }
.footx__consent.is-err { color: #ff6b5a; }
.footx__consent.is-err .footx__consent-cb { border-color: #ff6b5a; }
.footx__consent.is-err a { color: #ff8a7a; }
.footx__consent.is-err a:hover { color: #ffb0a6; }
.footx__news button:disabled { opacity: 0.4; cursor: not-allowed; }
.footx__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.footx__news-status { display: block; margin-top: 12px; font-size: 13px; line-height: 1.45; max-width: 28ch; }
.footx__news-status[hidden] { display: none !important; }
.footx__news-status.is-ok { color: rgba(180, 220, 170, .92); }
.footx__news-status.is-err { color: rgba(255, 170, 150, .95); }
.footx__news-status.is-info { color: var(--ink-60); }
.footx__word { display: block; color: #fff; margin: 0 0 clamp(20px,2.6vw,34px); }
.footx__word img { display: block; width: 100%; height: auto; }
.footx__base { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: clamp(26px,3.4vw,46px); font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-40); }
.footx__credit { text-transform: none; letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footx__credit a { display: inline-flex; align-items: center; color: inherit; }
.footx__credit img { display: block; height: 18px; width: auto; filter: brightness(0) invert(1); opacity: .5; transition: opacity .3s; }
.footx__credit a:hover img { opacity: .9; }
@media (max-width: 860px) { .footx__cols { grid-template-columns: 1fr 1fr; } .footx__col--form { grid-column: 1 / -1; } }
@media (max-width: 540px) { .footx__cols { grid-template-columns: 1fr 1fr; } }

/* ---- club waitlist modal ---- */
html.wl-open { overflow: hidden; }
.wl {
  position: fixed; inset: 0; z-index: 1600;
  display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden;
  transition: opacity .28s ease, visibility 0s linear .28s;
}
.wl.is-in { opacity: 1; visibility: visible; transition: opacity .28s ease; }
.wl[hidden] { display: none !important; }
.wl__back { position: absolute; inset: 0; background: rgba(0,0,0,.58); }
.wl__card {
  position: relative; z-index: 1;
  width: min(560px, 100%);
  max-height: min(92vh, 780px);
  overflow: auto;
  background: #111; color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  padding: 36px 32px 30px;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
  transform: translateY(12px);
  transition: transform .28s ease;
}
.wl.is-in .wl__card { transform: none; }
.wl__x {
  position: absolute; top: 12px; right: 14px;
  width: 36px; height: 36px; border: 0; background: transparent;
  color: rgba(255,255,255,.55); font-size: 28px; line-height: 1; cursor: pointer;
}
.wl__x:hover { color: #fff; }
.wl__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(24px, 3.4vw, 32px); line-height: 1.15;
  letter-spacing: -0.01em; margin: 0 32px 12px 0;
}
.wl__text {
  margin: 0 0 26px; font-size: 15px; line-height: 1.5;
  color: rgba(255,255,255,.62);
}
.wl__form { display: grid; gap: 16px; }
.wl__field { display: grid; gap: 6px; }
.wl__lbl {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.42);
}
.wl__inp {
  width: 100%; box-sizing: border-box;
  background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.28);
  color: #fff; font: inherit; font-size: 16px; padding: 10px 0; outline: none;
}
.wl__inp:focus { border-bottom-color: #fff; }
.wl__inp::placeholder { color: rgba(255,255,255,.28); transition: opacity .15s ease, color .15s ease; }
.wl__inp:focus::placeholder { opacity: 0; color: transparent; }
.wl__hp {
  position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden;
}
.wl__consent {
  display: flex; align-items: flex-start; gap: 9px; cursor: pointer;
  font-family: var(--mono); font-size: 10px; letter-spacing: .05em;
  line-height: 1.5; color: rgba(255,255,255,.42); width: 100%; max-width: none;
  margin-top: 10px;
}
.wl__consent > span { flex: 1; min-width: 0; }
.wl__consent-cb {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 15px; height: 15px; margin-top: 1px;
  border: 1px solid rgba(255,255,255,.4); background: transparent; cursor: pointer;
  position: relative;
}
.wl__consent-cb:checked { background: #fff; border-color: #fff; }
.wl__consent-cb:checked::after {
  content: ""; position: absolute; left: 4px; top: 1px;
  width: 4px; height: 8px; border: solid #000; border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}
.wl__consent a { color: rgba(255,255,255,.62); text-decoration: underline; text-underline-offset: 2px; }
.wl__consent a:hover { color: #fff; }
.wl__consent.is-err { color: #ff6b5a; }
.wl__consent.is-err .wl__consent-cb { border-color: #ff6b5a; }
.wl__btn {
  margin-top: 4px; border: 1px solid rgba(255,255,255,.45); background: transparent;
  color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; padding: 14px 18px; cursor: pointer;
  transition: background .25s, color .25s;
}
.wl__btn:hover { background: #fff; color: #000; }
.wl__btn:disabled { opacity: .45; cursor: not-allowed; }
.wl__status { margin: 0; font-size: 13px; line-height: 1.45; }
.wl__status[hidden] { display: none !important; }
.wl__status.is-ok { color: rgba(180, 220, 170, .92); }
.wl__status.is-err { color: rgba(255, 170, 150, .95); }
.wl__status.is-info { color: rgba(255,255,255,.55); }
