/* =====================================================================
   ДЖЕБ — Boxing Dnipro · demo
   ===================================================================== */

:root {
  /* палітра */
  --ink: #0a0a0b;
  --ink-2: #111113;
  --ink-3: #1b1b1e;
  --paper: #f4f3f0;
  --mute: #8b8b90;
  --dim: #55555a;
  --line: rgba(244, 243, 240, 0.12);
  --line-strong: rgba(244, 243, 240, 0.28);
  --red: #e2002e;
  --red-deep: #99001f;

  /* шрифти */
  --f-display: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --f-body: "Onest", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  /* сітка */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1560px;
  --header-h: 76px;

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-jab: cubic-bezier(0.7, 0, 0.1, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

::selection { background: var(--red); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

/* ---------- утиліти ---------- */

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--red);
}

.accent { color: var(--red); font-style: normal; }

/* ---------- фото / заглушки ---------- */

.media {
  position: relative;
  overflow: hidden;
  background: var(--ink-3);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media.is-empty {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(244, 243, 240, 0.035) 14px 15px),
    var(--ink-3);
}
.media.is-empty::before {
  content: "фото → " attr(data-missing);
  z-index: 1;
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--dim);
}

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

.btn {
  --h: 60px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 28px;
  height: var(--h);
  padding: 0 26px 0 30px;
  background: var(--red);
  color: var(--paper);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-jab);
  z-index: -1;
}
.btn i {
  font-style: normal;
  font-size: 18px;
  transition: transform 0.45s var(--ease-jab);
}
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: scaleX(1); }
.btn:hover i { transform: translateX(6px); }

.btn--sm { --h: 44px; gap: 16px; padding: 0 18px 0 20px; font-size: 12px; }
.btn--lg { --h: 72px; gap: 40px; padding: 0 30px 0 36px; font-size: 15px; }

/* ---------- шапка ---------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.header.is-scrolled {
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text b {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.02em;
}
.brand__text small {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 4px;
}

.logo {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 20px;
  overflow: hidden;
}
.logo.has-img { background: transparent; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo--sm { width: 38px; height: 38px; font-size: 16px; }

.nav { display: flex; gap: 36px; }
.nav a {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-jab);
}
.nav a:hover { color: var(--paper); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* =====================================================================
   1. HERO
   ===================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 40px) var(--gutter) clamp(40px, 6vh, 72px);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  z-index: 0;
}
.hero__media img {
  object-position: 60% 30%;
  filter: grayscale(0.55) contrast(1.08) brightness(0.9);
  transform: scale(1.12);
  transition: transform 2.2s var(--ease), opacity 1.2s var(--ease);
  opacity: 0;
}
.is-loaded .hero__media img { transform: scale(1); opacity: 1; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(10, 10, 11, 0.55) 30%, rgba(10, 10, 11, 0) 65%),
    linear-gradient(0deg, var(--ink) 0%, rgba(10, 10, 11, 0) 45%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.hero__eyebrow { margin-bottom: clamp(20px, 3vh, 36px); }

.hero__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(88px, 14.5vw, 260px);
  line-height: 0.8;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* padding зверху — щоб не обрізались Й, Ї */
.line { display: block; overflow: hidden; padding: 0.1em 0 0.04em; margin-top: -0.1em; }
.line__in {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(0.15s + var(--i) * 0.12s);
}
.is-loaded .hero__title .line__in { transform: none; }

/* другий рядок зсунутий праворуч — асиметрія */
.hero__title .line:nth-child(2) { padding-left: 0.5em; }

.hero__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: end;
  column-gap: 40px;
  margin-top: clamp(28px, 4vh, 48px);
}

/* «Джеб» — червона лінія, що вистрілює */
.jab {
  grid-column: 1 / -1;
  display: block;
  height: 2px;
  margin-bottom: 28px;
  background: linear-gradient(90deg, var(--red) 0 38%, var(--line-strong) 38% 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease-jab) 0.75s;
}
.is-loaded .jab { transform: scaleX(1); }

.hero__copy {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease) 1s, transform 0.9s var(--ease) 1s;
}
.hero__bottom .btn {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease) 1.1s, transform 0.9s var(--ease) 1.1s, color 0.35s var(--ease);
}
.is-loaded .hero__copy,
.is-loaded .hero__bottom .btn { opacity: 1; transform: none; }

.hero__text {
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 500;
  max-width: 28ch;
}

.promo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--mute);
}
.promo__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(226, 0, 46, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(226, 0, 46, 0.55); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(226, 0, 46, 0); }
}

.hero__meta {
  position: absolute;
  z-index: 1;
  right: var(--gutter);
  top: calc(var(--header-h) + 32px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 243, 240, 0.55);
}

/* =====================================================================
   СЕКЦІЇ
   ===================================================================== */

.section {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(96px, 14vh, 180px) var(--gutter) 0;
}

.section__head {
  display: grid;
  gap: 22px;
  margin-bottom: clamp(48px, 7vh, 88px);
}
.section__head--split {
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
}

.section__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(56px, 7vw, 120px);
  line-height: 0.86;
  text-transform: uppercase;
}

.section__aside {
  max-width: 30ch;
  color: var(--mute);
  font-size: 15px;
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* =====================================================================
   2. НАПРЯМКИ
   ===================================================================== */

.dir-list { border-bottom: 1px solid var(--line); }

.dir { border-top: 1px solid var(--line); }

.dir__link {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 48px;
  align-items: center;
  gap: 32px;
  padding: clamp(18px, 2.6vh, 30px) 0;
}

/* червоний «удар» зліва */
.dir__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: clamp(28px, 4vw, 64px);
  height: 4px;
  margin-top: -2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-jab);
}

.dir__thumb { display: none; }

.dir__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(48px, 7.4vw, 128px);
  line-height: 0.9;
  text-transform: uppercase;
  transition: transform 0.55s var(--ease-jab), color 0.4s var(--ease);
}

.dir__meta {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: right;
  transition: color 0.4s var(--ease);
}

.dir__arrow {
  justify-self: end;
  font-size: 26px;
  color: var(--dim);
  transform: rotate(-45deg);
  transition: transform 0.45s var(--ease-jab), color 0.4s var(--ease);
}

.dir-list:hover .dir__title { color: var(--dim); }
.dir__link:hover::before,
.dir__link:focus-visible::before { transform: scaleX(1); }
.dir__link:hover .dir__title,
.dir__link:focus-visible .dir__title {
  color: var(--paper);
  transform: translateX(clamp(44px, 5.5vw, 88px));
}
.dir__link:hover .dir__meta { color: var(--paper); }
.dir__link:hover .dir__arrow { color: var(--red); transform: rotate(0deg); }

/* прев'ю за курсором */
.dir-preview {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: clamp(220px, 20vw, 320px);
  aspect-ratio: 4 / 5;
  pointer-events: none;
  clip-path: inset(50% 0 50% 0);
  transition: clip-path 0.55s var(--ease-jab);
  will-change: transform;
}
.dir-preview img { filter: grayscale(0.3) contrast(1.05); transform: scale(1.15); transition: transform 0.8s var(--ease); }
.dir-preview.is-on { clip-path: inset(0 0 0 0); }
.dir-preview.is-on img { transform: scale(1); }

/* =====================================================================
   3. РОЗКЛАД
   ===================================================================== */

.week {
  border-top: 1px solid var(--line-strong);
}

.week__row {
  display: grid;
  grid-template-columns: minmax(200px, 1.6fr) repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.week__row > * {
  padding: 22px 16px;
  border-left: 1px solid var(--line);
}
.week__row > :first-child { border-left: 0; padding-left: 0; }

.week__corner,
.week__day {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--mute);
}
.week__day { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.week__day small {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--red);
}
.week__day.is-today { color: var(--paper); }

.week__group {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(36px, 3.4vw, 56px);
  line-height: 0.9;
  text-transform: uppercase;
  padding-top: 30px !important;
  padding-bottom: 30px !important;
}
.week__group small {
  display: block;
  margin-top: 10px;
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--red);
}

.week__cell {
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease);
}
.week__cell.is-today { background: rgba(244, 243, 240, 0.03); }
.week__cell time {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(28px, 2.5vw, 42px);
  letter-spacing: 0.01em;
  position: relative;
}
.week__cell.has-time { position: relative; }
.week__cell.has-time::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-jab);
}
.week__cell.has-time:hover { background: var(--ink-3); }
.week__cell.has-time:hover::before { transform: scaleX(1); }
.week__cell.is-today.has-time::before { transform: scaleX(1); }

.week__empty {
  width: 14px;
  height: 1px;
  background: var(--dim);
}

.week-mobile { display: none; }

/* ---------- абонементи ---------- */

.prices {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
  gap: clamp(32px, 5vw, 96px);
  margin-top: clamp(96px, 14vh, 160px);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prices__promo {
  margin-top: 22px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(40px, 4vw, 64px);
  line-height: 0.92;
  text-transform: uppercase;
}
.prices__text { margin-top: 18px; color: var(--mute); max-width: 30ch; }

.prices__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  align-self: start;
}

.price {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: clamp(24px, 2.4vw, 40px);
  background: var(--ink);
  transition: background 0.4s var(--ease), opacity 1s var(--ease), transform 1s var(--ease);
}
.price::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-jab);
}
.price:hover { background: var(--ink-2); }
.price:hover::before,
.price--featured::before { transform: scaleX(1); }
.price--featured { background: var(--ink-2); }

.price__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.price__badge {
  padding: 5px 9px;
  border: 1px solid var(--red);
  color: var(--paper);
  font-size: 10px;
}

.price__title {
  margin-top: 20px;
  font-size: 20px;
  font-weight: 500;
}

.price__value {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: auto;
  padding-top: 48px;
  font-family: var(--f-display);
  line-height: 0.8;
}
.price__value b {
  font-weight: 900;
  font-size: clamp(96px, 9vw, 160px);
  letter-spacing: -0.01em;
}
.price__value span {
  font-weight: 600;
  font-size: 28px;
  color: var(--mute);
  text-transform: uppercase;
}
.price--featured .price__value span { color: var(--red); }

.price__note { margin-top: 14px; color: var(--mute); font-size: 14px; }

.price__cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.price__cta i { font-style: normal; font-size: 18px; transition: transform 0.4s var(--ease-jab), color 0.3s; }
.price__cta:hover i { transform: translateX(6px); color: var(--red); }

/* =====================================================================
   4. ФІНАЛЬНИЙ CTA
   ===================================================================== */

.final {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(140px, 22vh, 260px) var(--gutter) clamp(80px, 12vh, 140px);
  overflow: hidden;
}

.final__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(96px, 17vw, 300px);
  line-height: 0.8;
  text-transform: uppercase;
}
.final__title .line:nth-child(2) {
  display: flex;
  align-items: center;
  gap: 0.12em;
}
/* червона лінія-«джеб», що вистрілює з кінця заголовка */
.final__title .line:nth-child(2)::after {
  content: "";
  flex: 1;
  height: 0.05em;
  min-height: 4px;
  margin-top: -0.04em;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease-jab) 0.5s;
}
.final__title .line__in { transition-delay: calc(var(--i) * 0.12s); }
.final__title.is-in .line__in { transform: none; }
.final__title.is-in .line:nth-child(2)::after { transform: scaleX(1); }
.final__title.reveal { opacity: 1; transform: none; }

.final__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-top: clamp(40px, 6vh, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.final__text {
  font-size: clamp(18px, 1.6vw, 24px);
  max-width: 26ch;
  color: var(--mute);
}

/* ---------- footer ---------- */

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--dim);
}

/* =====================================================================
   ADAPTIVE
   ===================================================================== */

@media (max-width: 1100px) {
  .nav { display: none; }
  .hero__media { width: 75%; }
  .prices { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .week { display: none; }
  .week-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
  }
  .wm { background: var(--ink); padding: 22px 18px; }
  .wm__name {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 36px;
    line-height: 0.9;
    text-transform: uppercase;
  }
  .wm__name small {
    display: block;
    margin-top: 8px;
    font-family: var(--f-mono);
    font-weight: 400;
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--red);
  }
  .wm__list { margin-top: 18px; }
  .wm__list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-top: 1px solid var(--line);
  }
  .wm__list span {
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--mute);
  }
  .wm__list time { font-family: var(--f-display); font-weight: 600; font-size: 28px; line-height: 1; }
  .wm__list li.is-today span { color: var(--red); }

  .section__head--split { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 680px) {
  :root { --header-h: 64px; }

  .brand__text small { display: none; }
  .logo { width: 40px; height: 40px; }

  .hero {
    align-items: flex-end;
    padding-top: 0;
    padding-bottom: 32px;
  }
  .hero__media { width: 100%; bottom: 30%; }
  .hero__media img { object-position: 70% 20%; }
  .hero__media::after {
    background: linear-gradient(0deg, var(--ink) 0%, rgba(10, 10, 11, 0.35) 45%, rgba(10, 10, 11, 0.15) 100%);
  }
  .hero__title { font-size: 19vw; }
  .hero__title .line:nth-child(2) { padding-left: 0; }
  .hero__bottom { grid-template-columns: 1fr; row-gap: 28px; }
  .hero__bottom .btn { width: 100%; justify-content: space-between; }
  .hero__meta { display: none; }

  .dir__link {
    grid-template-columns: 64px minmax(0, 1fr) 24px;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 6px;
    padding: 16px 0;
  }
  .dir__link::before { display: none; }
  .dir__thumb {
    display: block;
    grid-row: 1 / 3;
    width: 64px;
    height: 80px;
  }
  .dir__thumb.is-empty::before { display: none; }
  .dir__thumb img { filter: grayscale(0.4); }
  .dir__title { font-size: clamp(34px, 10vw, 48px); align-self: end; }
  .dir__meta { grid-column: 2; grid-row: 2; text-align: left; font-size: 10px; }
  .dir__arrow { grid-column: 3; grid-row: 1 / 3; align-self: center; font-size: 20px; }
  .dir-list:hover .dir__title { color: var(--paper); }
  .dir__link:hover .dir__title { transform: none; }

  .week-mobile { grid-template-columns: 1fr; }

  .prices__cards { grid-template-columns: 1fr; }
  .price { min-height: 0; }
  .price__value { padding-top: 40px; }

  .final__title { font-size: 22vw; }
  .final__bottom { flex-direction: column; align-items: stretch; }
  .final__bottom .btn { justify-content: space-between; }

  .footer { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
   МОДАЛЬНА ФОРМА ЗАЯВКИ
   ===================================================================== */

body.modal-open { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.modal.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.35s var(--ease);
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 7, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  padding: clamp(28px, 5vw, 44px);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.4s var(--ease-jab);
}
.modal.is-open .modal__panel { transform: none; }

.modal__panel::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 3px;
  background: var(--red);
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--mute);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease-jab);
}
.modal__close:hover { color: var(--paper); border-color: var(--red); transform: rotate(90deg); }

.modal__title {
  margin-top: 18px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 0.95;
  text-transform: uppercase;
}
.modal__text { margin-top: 12px; color: var(--mute); font-size: 14px; }

.lead-form { margin-top: 28px; display: grid; gap: 18px; }

.field { display: grid; gap: 8px; }
.field__label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.field__input {
  width: 100%;
  height: 50px;
  padding: 0 4px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 16px;
  border-radius: 0;
  transition: border-color 0.3s var(--ease);
}
.field__input::placeholder { color: var(--dim); }
.field__input:focus { outline: none; border-color: var(--red); }

.field__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%);
  background-position: right 8px top 22px, right 2px top 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field__select option { background: var(--ink-2); color: var(--paper); }

.lead-form__submit {
  justify-content: space-between;
  width: 100%;
  margin-top: 8px;
}

.modal__note {
  margin-top: 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--dim);
}

.modal__success { padding: 20px 0 8px; }
.modal__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--red);
  border-radius: 50%;
  margin-bottom: 20px;
}
.modal__check::after {
  content: "";
  width: 18px;
  height: 10px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg) translateY(-2px);
}
.modal__success h3 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 34px);
  text-transform: uppercase;
}
.modal__success p { margin-top: 10px; color: var(--mute); }

@media (max-width: 520px) {
  .modal { padding: 0; align-items: flex-end; }
  .modal__panel { max-width: none; max-height: 92vh; }
}

/* =====================================================================
   ADMIN — службова сторінка заявок (не для клієнта)
   ===================================================================== */

.admin-page { min-height: 100vh; }

.admin__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.admin__title { margin-right: auto; }
.admin__title h1 {
  margin-top: 6px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 48px);
  text-transform: uppercase;
  line-height: 0.9;
}

.admin__actions { display: flex; gap: 12px; }
.admin__btn {
  height: 44px;
  padding: 0 20px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--paper);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.admin__btn:hover { border-color: var(--paper); }
.admin__btn--danger { color: var(--mute); }
.admin__btn--danger:hover { color: var(--red); border-color: var(--red); }

.admin__main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--gutter) 100px;
}

.admin__hint {
  max-width: 70ch;
  margin-bottom: 36px;
  padding: 16px 18px;
  background: var(--ink-2);
  border-left: 2px solid var(--red);
  color: var(--mute);
  font-size: 13px;
  line-height: 1.6;
}
.admin__hint a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

.admin__empty {
  padding: 60px 0;
  color: var(--mute);
  font-size: 15px;
}
.admin__empty a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

.admin__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin__table th {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.admin__table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.admin__table tbody tr { transition: background 0.25s var(--ease); }
.admin__table tbody tr:hover { background: var(--ink-2); }
.admin__table a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

.admin__del {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--dim);
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.admin__del:hover { color: var(--red); border-color: var(--red); }

@media (max-width: 720px) {
  .admin__table thead { display: none; }
  .admin__table, .admin__table tbody, .admin__table tr, .admin__table td { display: block; width: 100%; }
  .admin__table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .admin__table td { border-bottom: none; padding: 4px 0; }
  .admin__table td:first-child { font-family: var(--f-mono); font-size: 11px; color: var(--mute); }
  .admin__del { margin-top: 8px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    animation: none !important;
  }
}
