/* ==========================================================================
   StalDayZ — базові стилі
   Палітра: бітум, бетон, охра попереджувальної фарби, окисла бірюза Прип'яті
   Шрифти: Oswald (заголовки) + IBM Plex Sans (текст) + IBM Plex Mono (дані)
   ========================================================================== */

:root {
  /* колір */
  --bg:        #15130F;
  --bg-2:      #1B1813;
  --panel:     #221E17;
  --panel-2:   #2A251C;
  --line:      #3A3327;
  --line-soft: #2B2620;
  --bone:      #E8E1D3;
  --muted:     #9B9083;
  --dim:       #6E655B;
  --ochre:     #E3A427;
  --rust:      #B4522A;
  --teal:      #56C7BC;
  --blood:     #8E2B1C;

  /* сітка */
  --container: 1140px;
  --gap:       clamp(16px, 2.4vw, 28px);
  --section-y: clamp(64px, 9vw, 118px);

  /* типографіка */
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body:    "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* зріз кутів «ящика» */
  --notch: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: default;
}

/* текст лишається виділюваним як завжди — тільки курсор над ним не стає рискою.
   Посилання й кнопки мають свій cursor: pointer (нижче й по всьому файлу), тож
   рука на них лишається. */
a, button {
  cursor: pointer;
}

/* зерно плівки поверх усього */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--ochre); color: #14110C; }

:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 3px;
}

/* --------------------------------------------------------------- прелоадер
   Тільки на index.html — тримає завісу, доки не підвантажиться фонове
   відео героя. Логіка вмикання/вимикання — initPreloader() у site.js. */

body.is-loading { overflow: hidden; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity .6s ease, visibility .6s ease;
}

.preloader::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 0 24px;
  text-align: center;
}

.preloader__logo {
  font-family: var(--display);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bone);
}
.preloader__logo b { color: var(--ochre); font-weight: 700; }

.preloader__bar {
  width: min(280px, 60vw);
  height: 3px;
  background: var(--line);
  clip-path: var(--notch);
  overflow: hidden;
}
.preloader__fill {
  height: 100%;
  width: 0%;
  background: var(--ochre);
  transition: width .25s linear;
}

.preloader__pct {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--muted);
}
.preloader__pct span { color: var(--bone); }

.preloader__hint {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
}

@media (prefers-reduced-motion: reduce) {
  .preloader { transition: none; }
  .preloader__fill { transition: none; }
}

/* --------------------------------------------------------------- типографіка */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
}

.t-hero {
  font-weight: 700;
  font-size: clamp(52px, 15vw, 138px);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.t-h2 {
  font-size: clamp(30px, 5.6vw, 54px);
  letter-spacing: -0.01em;
  line-height: .95;
}

.t-h3 {
  font-size: clamp(18px, 2.4vw, 21px);
  letter-spacing: .01em;
}

.lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: #CFC6B7;
  line-height: 1.6;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.muted { color: var(--muted); }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------- каркас */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(18px, 5vw, 36px);
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(44px, 6vw, 76px); }
.section--alt { background: var(--bg-2); }

/* лінія-сітка карти на фоні секцій */
.section--grid::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
}

.section > .container { position: relative; z-index: 1; }

/* небезпечна стрічка */
.tape {
  height: 9px;
  background: repeating-linear-gradient(
    -45deg,
    var(--ochre) 0 14px,
    #14110C 14px 28px
  );
  opacity: .85;
}

.hr {
  height: 1px;
  background: var(--line-soft);
  border: 0;
  margin: 0;
}

/* --------------------------------------------------------------- шапка сектора */

.sector {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 22px;
}

.sector__id  { color: var(--ochre); white-space: nowrap; }
.sector__loc { color: var(--muted); white-space: nowrap; }
.sector__rule { flex: 1; height: 1px; background: var(--line); min-width: 12px; }
.sector__dose { white-space: nowrap; color: var(--dim); }

@media (max-width: 620px) {
  .sector__dose { display: none; }
}

/* --------------------------------------------------------------- кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 26px;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn--primary {
  background: var(--ochre);
  color: #14110C;
}
.btn--primary:hover { background: #F2B534; transform: translateY(-2px); }

.btn--ghost {
  border-color: var(--line);
  color: var(--bone);
}
.btn--ghost:hover { border-color: var(--ochre); color: var(--ochre); }

.btn--sm { padding: 10px 18px; font-size: 13px; }

/* --------------------------------------------------------------- хедер */

.hdr {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(21,19,15,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.hdr__in {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 62px;
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.brand b { color: var(--ochre); font-weight: 700; }
.brand span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--dim);
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }

.nav a {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 8px 11px;
  transition: color .16s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ochre); }
.nav a.btn--primary, .nav a.btn--primary:hover { color: #14110C; }

.hdr .btn { margin-left: 10px; }

.burger {
  margin-left: auto;
  display: none;
  width: 42px;
  height: 38px;
  background: none;
  border: 1px solid var(--line);
  color: var(--bone);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger span, .burger span::before, .burger span::after {
  content: "";
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after  { position: absolute; top: 6px; }

@media (max-width: 940px) {
  .burger { display: inline-flex; }
  .hdr .btn { display: none; }
  .nav {
    position: fixed;
    inset: 62px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 18px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px clamp(18px, 5vw, 36px); font-size: 13px; border-bottom: 1px solid var(--line-soft); }
  .nav .btn { display: inline-flex; margin: 14px clamp(18px, 5vw, 36px) 0; }
}

/* --------------------------------------------------------------- герой */

.hero {
  position: relative;
  padding-block: clamp(56px, 11vw, 110px) clamp(44px, 7vw, 80px);
  overflow: hidden;
}

/* фонове фото/відео з Зони — заблюрене й затемнене, щоб текст читався */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__media img,
.hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(21,19,15,.72) 38%, rgba(21,19,15,.42) 100%),
    linear-gradient(to right, rgba(21,19,15,.68) 0%, rgba(21,19,15,.22) 48%);
}

.hero__bg {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
}
.hero__bg i {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
}
.hero__bg i:nth-child(1) {
  width: 46vw; height: 46vw; left: -8vw; bottom: -6vw;
  background: rgba(227,164,39,.16);
  animation: drift 26s ease-in-out infinite alternate;
}
.hero__bg i:nth-child(2) {
  width: 38vw; height: 38vw; right: -6vw; top: 4vw;
  background: rgba(86,199,188,.11);
  animation: drift 34s ease-in-out infinite alternate-reverse;
}
.hero__bg i:nth-child(3) {
  width: 28vw; height: 28vw; left: 42%; bottom: 12%;
  background: rgba(180,82,42,.13);
  animation: drift 21s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(5vw,-4vw,0) scale(1.16); }
}

/* скан-лінії */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .35;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.32) 0 1px, transparent 1px 3px);
}

.hero__in { position: relative; z-index: 2; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 26px;
  border: 1px solid rgba(227,164,39,.3);
  padding: 6px 12px;
}
.hero__eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--ochre);
  border-radius: 50%;
  animation: blip 2.4s ease-in-out infinite;
}
@keyframes blip { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.hero h1 { margin-bottom: 8px; }
.hero h1 em {
  font-style: normal;
  color: var(--ochre);
  -webkit-text-stroke: 0;
}

.hero__tagline {
  font-family: var(--mono);
  font-size: clamp(11px, 2.4vw, 14px);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 30px;
}

.hero__lead { margin-bottom: 34px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }

/* панель статусу */
.status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1px solid var(--line);
  background: rgba(34,30,23,.7);
}
.status__cell {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}
.status__cell:last-child { border-right: 0; }
.status__k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 7px;
}
.status__v {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--bone);
  display: flex;
  align-items: center;
  gap: 10px;
  word-break: break-all;
}
.status__v b { color: var(--teal); font-weight: 500; }

.copy {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 4px 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .16s, border-color .16s;
}
.copy:hover { color: var(--ochre); border-color: var(--ochre); }
.copy.is-done { color: var(--teal); border-color: var(--teal); }

@media (max-width: 640px) {
  .status__cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .status__cell:last-child { border-bottom: 0; }
}

/* --------------------------------------------------------------- «ящики» */

.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--3 { grid-template-columns: 1fr; } }

.crate {
  background: var(--line);
  clip-path: var(--notch);
  padding: 1px;
  transition: background-color .2s ease, transform .2s ease;
}
.crate:hover { background: var(--ochre); transform: translateY(-3px); }

.crate__body {
  background: var(--panel);
  clip-path: var(--notch);
  padding: 26px 24px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.crate__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 14px;
}
.crate__body h3 { margin-bottom: 10px; }
.crate__body p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }

/* локації — великі картки-вітрини */
.loc-card { margin-bottom: clamp(30px, 4.5vw, 52px); }
.loc-card:last-child { margin-bottom: 0; }

.loc-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-2);
  overflow: hidden;
}
.loc-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(16,14,11,.9) 0%, rgba(16,14,11,.25) 45%, transparent 72%);
}

.loc-card__idx {
  position: absolute;
  top: clamp(14px, 2.4vw, 22px);
  left: clamp(14px, 2.4vw, 22px);
  z-index: 2;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--ochre);
  background: rgba(16,14,11,.6);
  border: 1px solid rgba(227,164,39,.35);
  padding: 5px 10px;
}

.loc-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: clamp(18px, 3.4vw, 34px);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
}

/* локація ще не побудована - імітуємо фото попереджувальною стрічкою замість справжнього кадру */
.loc-card__media--soon {
  background-image: repeating-linear-gradient(-45deg, rgba(227,164,39,.35) 0 18px, rgba(20,17,12,.92) 18px 36px);
}
.loc-card__soon {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 4.6vw, 46px);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bone);
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
  transform: rotate(-4deg);
}
.loc-card__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 52px);
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: var(--bone);
  margin: 0;
  line-height: 1;
}

.loc-card__desc {
  color: var(--muted);
  font-size: 16px;
  padding-top: 18px;
}

.loc__rad {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  padding: 3px 8px;
  border: 1px solid currentColor;
  text-transform: uppercase;
}
.rad--low  { color: var(--teal); }
.rad--mid  { color: var(--ochre); }
.rad--high { color: var(--rust); }
.rad--max  { color: var(--blood); }

/* кроки */
.steps { counter-reset: step; display: grid; gap: 2px; }
.step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  background: var(--panel);
  padding: 22px 24px;
  align-items: start;
}
.step__n {
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  color: var(--line);
  transition: color .2s ease;
}
.step:hover .step__n { color: var(--ochre); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }

@media (max-width: 520px) {
  .step { grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 16px; }
  .step__n { font-size: 26px; }
}

/* галерея */
.shots {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.shot {
  aspect-ratio: 16 / 10;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* FAQ */
.faq { border-top: 1px solid var(--line-soft); }
.faq details {
  border-bottom: 1px solid var(--line-soft);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  position: relative;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(16px, 2.6vw, 19px);
  text-transform: uppercase;
  letter-spacing: .01em;
  transition: color .16s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ochre); }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 20px;
  color: var(--ochre);
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  color: var(--muted);
  font-size: 15.5px;
  padding: 0 0 22px;
}

/* фінальний заклик */
.cta {
  text-align: center;
  padding-block: clamp(64px, 10vw, 128px);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(227,164,39,.18), transparent 62%);
  pointer-events: none;
}
.cta .container { position: relative; z-index: 1; }
.cta h2 { margin-bottom: 18px; }
.cta .lead { margin: 0 auto 30px; }
.cta__row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* --------------------------------------------------------------- підвал */

.ftr {
  background: #100E0B;
  border-top: 1px solid var(--line-soft);
  padding-block: 52px 30px;
}
.ftr__grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  margin-bottom: 40px;
}
@media (max-width: 760px) {
  .ftr__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .ftr__grid { grid-template-columns: 1fr; gap: 28px; }
}
.ftr h4 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--dim);
  margin-bottom: 14px;
}
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ftr ul a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14.5px;
  transition: color .16s ease;
}
.ftr ul a:hover { color: var(--ochre); }
.ftr__note { color: var(--dim); font-size: 14px; max-width: 40ch; }
.ftr__bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
}

/* --------------------------------------------------------------- дозиметр */

.dose {
  position: fixed;
  z-index: 70;
  left: 20px;
  bottom: 20px;
  width: 168px;
  background: rgba(16,14,11,.9);
  border: 1px solid var(--line);
  padding: 11px 13px 12px;
  backdrop-filter: blur(6px);
  font-family: var(--mono);
  transition: opacity .3s ease, transform .3s ease;
}
.dose[hidden] { display: none; }
.dose.is-faded { opacity: 0; transform: translateY(6px); pointer-events: none; }

.dose__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}
.dose__label {
  font-size: 8.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
}
.dose__tick {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--dose-color, var(--teal));
  animation: tick var(--tick, 1.4s) steps(1) infinite;
}
@keyframes tick { 0%, 45% { opacity: 1; } 46%, 100% { opacity: .12; } }

.dose__val {
  font-size: 21px;
  line-height: 1;
  color: var(--dose-color, var(--teal));
  letter-spacing: -.01em;
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 9px;
}
.dose__val small {
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--dim);
}

.dose__bar {
  height: 3px;
  background: var(--line-soft);
  overflow: hidden;
}
.dose__fill {
  height: 100%;
  width: 0%;
  background: var(--dose-color, var(--teal));
  transition: width .25s linear, background-color .5s ease;
}

.dose__zone {
  margin-top: 8px;
  font-size: 8.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 720px) {
  .dose {
    left: auto;
    right: 12px;
    bottom: 12px;
    width: 132px;
    padding: 9px 10px 10px;
  }
  .dose__val { font-size: 17px; }
}

/* --------------------------------------------------------------- мініатюри в картках */

.crate__thumb,
.feature-row__media,
.news-slide__thumb {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-2);
}
.crate__thumb { aspect-ratio: 16 / 10; }

/* курсор-підказка «можна приблизити» (значок-стрілочка на фото галереї прибрано за проханням) */
.zoomable { cursor: zoom-in; }

/* --------------------------------------------------------------- «поверхи» лору (текст/фото почергово) */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4.5vw, 60px);
  align-items: center;
  padding-block: clamp(30px, 4.5vw, 46px);
  border-bottom: 1px solid var(--line-soft);
}
.feature-row:first-of-type { padding-top: 0; }
.feature-row:last-of-type { border-bottom: 0; padding-bottom: 0; }

.feature-row__media { aspect-ratio: 16 / 9; }
.feature-row--reverse .feature-row__media { order: -1; }

.feature-row__text p:first-child { margin-top: 0; }

@media (max-width: 760px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row--reverse .feature-row__media { order: 0; }
}

/* --------------------------------------------------------------- лайтбокс (приближення фото) */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 6vw, 64px);
  background: rgba(10,9,7,.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34,30,23,.92);
  border: 1px solid var(--line);
  color: var(--bone);
  font-size: 20px;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease;
}
.lightbox__close:hover { color: var(--ochre); border-color: var(--ochre); }

/* --------------------------------------------------------------- новини (ротатор) */

.news-rotator {
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}
/* Усі слайди лежать в одній клітинці сітки, тож висота трека = висота найвищого слайда й
   НЕ стрибає при зміні новини (раніше неактивні слайди були display:none). */
.news-rotator__track { display: grid; }
.news-slide {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  transition: opacity .5s ease, visibility 0s linear .5s;
  text-decoration: none;
  color: inherit;
}
.news-slide.is-active {
  visibility: visible;
  opacity: 1;
  transition: opacity .5s ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .news-slide, .news-slide.is-active { transition: none; }
}

.news-slide__thumb {
  width: 100%;
  aspect-ratio: 21 / 9;
}
@media (max-width: 640px) {
  .news-slide__thumb { aspect-ratio: 4 / 3; }
}
.news-slide__body {
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.news-slide__date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ochre);
}
.news-slide__body h3 { margin: 0; font-size: clamp(22px, 3.4vw, 34px); }
.news-slide__body p { color: var(--muted); font-size: 16px; margin: 0; }

.news-rotator__dots {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--line-soft);
}
.news-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: var(--line);
  cursor: pointer;
}
.news-dot.is-active { background: var(--ochre); }

/* --------------------------------------------------------------- поява при скролі */

.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .8s ease-out, transform .8s ease-out;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------- режим заглушок
   Відкрий будь-яку сторінку з ?stubs=1 — усі незаповнені місця підсвітяться.
   ------------------------------------------------------------------------- */

.show-stubs [data-stub] {
  position: relative;
  outline: 1px dashed var(--rust);
  outline-offset: 3px;
}
.show-stubs [data-stub]::before {
  content: "ЗАГЛУШКА";
  position: absolute;
  top: -9px;
  left: 0;
  z-index: 5;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .14em;
  background: var(--rust);
  color: #14110C;
  padding: 1px 5px;
  pointer-events: none;
}

/* --------------------------------------------------------------- сторінки-заготовки */

.page-head { padding-block: clamp(48px, 8vw, 92px) clamp(28px, 4vw, 48px); }
.page-head h1 {
  font-size: clamp(38px, 9vw, 76px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}

.wip {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: clamp(28px, 5vw, 44px);
  display: grid;
  gap: 14px;
  justify-items: start;
}
.wip__k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rust);
}

.tier { display: flex; flex-direction: column; height: 100%; }
.tier__price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: var(--ochre);
  margin: 4px 0 16px;
}
.tier ul {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 15px;
}
.tier ul li { padding-left: 18px; position: relative; }
.tier ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--ochre);
}
.tier .btn { margin-top: auto; align-self: stretch; }

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
}
.field input, .field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--bone);
  font-family: var(--body);
  font-size: 15px;
  padding: 12px 14px;
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ochre); outline: none; }

/* --- лайтбокс: стрілки й лічильник (гортання галереї) --- */
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34,30,23,.92);
  border: 1px solid var(--line);
  color: var(--bone);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease;
}
.lightbox__nav[hidden] { display: none; }
.lightbox__nav:hover { color: var(--ochre); border-color: var(--ochre); }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }
.lightbox__count {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--muted);
}
.lightbox__count[hidden] { display: none; }
@media (max-width: 640px) {
  .lightbox__nav { width: 40px; height: 56px; font-size: 28px; }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
}

/* --- ротатор новин: стрілки (позицію по вертикалі ставить JS - посередині фото) --- */
.news-rotator { position: relative; }
.news-arrow {
  position: absolute;
  top: 25%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(21,19,15,.72);
  border: 1px solid var(--line);
  color: var(--bone);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.news-arrow:hover { color: var(--ochre); border-color: var(--ochre); background: rgba(21,19,15,.9); }
.news-arrow--prev { left: 10px; }
.news-arrow--next { right: 10px; }
.news-rotator:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }
@media (max-width: 640px) {
  .news-arrow { width: 36px; height: 52px; font-size: 26px; }
  .news-arrow--prev { left: 6px; }
  .news-arrow--next { right: 6px; }
}
