/* =====================================================================
   Первый Знак — типография, сайт-визитка
   Палитра: графит / жёлтый амбр / огненно-красный
   ===================================================================== */

:root {
  --bg: #0b0b0c;
  --bg-2: #141417;
  --ink: #0a0a0a;
  --paper: #f5f1ea;
  --paper-2: #ebe4d6;
  --muted: #8a8a90;
  --line: rgba(255,255,255,0.08);
  --line-dark: rgba(0,0,0,0.10);

  --yellow: #ffc20e;
  --yellow-2: #ffd84a;
  --red: #ea1f1f;
  --red-2: #ff4a2a;

  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1240px;
  --shadow-card: 0 10px 40px rgba(0,0,0,.35);

  --ff-head: "PT Sans Narrow", "PT Sans", "Arial Narrow", system-ui, sans-serif;
  --ff-display: "PT Sans", "Arial", system-ui, sans-serif;
  --ff-body: "PT Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  font-size: 17px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- TOPBAR ----- */
.topbar {
  background: #000;
  color: #b9b9bd;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  white-space: nowrap;
  overflow: hidden;
}
.tb-item a { color: var(--yellow-2); }
.tb-item a:hover { color: #fff; }
.tb-dot { color: #555; }
.tb-right { margin-left: auto; }

@media (max-width: 720px) {
  .topbar-inner { font-size: 13px; height: 44px; }
  .topbar-inner .tb-item:not(.tb-right):not(:first-child),
  .topbar-inner .tb-dot { display: none; }
  .tb-item a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 6px;
  }
}

/* ----- HEADER ----- */
.header {
  background: #0b0b0c;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.logo-badge {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .35));
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.logo-sub { font-size: 11px; color: #9a9a9f; letter-spacing: .3px; text-transform: lowercase; }

.nav { display: flex; gap: 28px; justify-self: center; }
.nav a {
  color: #d8d8dc;
  font-weight: 500;
  font-size: 15px;
  padding: 6px 0;
  position: relative;
}
.nav a:hover { color: #fff; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--yellow);
  transition: right .25s;
}
.nav a:hover::after { right: 0; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.phone {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .3px;
  color: #fff;
}
.phone:hover { color: var(--yellow); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  position: relative;
}
.burger span {
  display: block;
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: #fff;
  transition: transform .25s, top .25s, opacity .2s;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .header-inner { gap: 12px; height: 64px; }
  .nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: #0b0b0c;
    flex-direction: column;
    gap: 0;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .3s ease, opacity .2s ease, visibility 0s linear .3s, padding .3s ease;
    border-bottom: 1px solid var(--line);
    z-index: 45;
    justify-self: stretch;
  }
  .nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
    width: 100%;
  }
  body.nav-open .nav {
    max-height: 80vh;
    padding: 4px 20px 16px;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: max-height .3s ease, opacity .2s ease, visibility 0s, padding .3s ease;
  }
  .burger { display: block; }
  .phone { display: none; }
  .header-cta .btn { display: none; }
  .logo-badge { width: 40px; height: 40px; font-size: 17px; }
  .logo-name { font-size: 17px; letter-spacing: .3px; }
  .logo-sub { display: none; }
  .logo { gap: 10px; }
}

@media (max-width: 420px) {
  .logo-name { font-size: 15px; }
}

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn-lg { padding: 16px 26px; font-size: 16px; border-radius: 12px; }
.btn-accent {
  background: var(--yellow);
  color: #141414;
  box-shadow: 0 8px 30px rgba(255,194,14,.35);
}
.btn-accent:hover { background: var(--yellow-2); transform: translateY(-1px); }
.btn-accent:active { transform: translateY(0); }
.btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.25);
  background: transparent;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.05); }

/* ----- HERO ----- */
.hero {
  position: relative;
  color: #fff;
  background: #000;
  overflow: hidden;
  padding: 28px 0 24px;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: -10% 0 -10% 0;
  display: block;
  will-change: transform;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .28;
  filter: saturate(.85) contrast(1.05);
  transform: scale(1.08);
}
.hero-tint {
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 600px at 78% 5%, rgba(255,194,14,.18), transparent 60%),
    radial-gradient(900px 500px at 8% 90%, rgba(234,31,31,.16), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.72) 55%, #000 100%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 35%, transparent 80%);
  opacity: .55;
}

/* decorative slabs */
.slab {
  position: absolute;
  font-family: var(--ff-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}
.slab-a {
  top: 8%; left: -3%;
  font-size: clamp(80px, 14vw, 200px);
  color: rgba(255,194,14,.06);
  -webkit-text-stroke: 2px rgba(255,194,14,.18);
}
.slab-b {
  bottom: 10%; right: -2%;
  font-size: clamp(120px, 18vw, 260px);
  color: rgba(234,31,31,.05);
  -webkit-text-stroke: 2px rgba(234,31,31,.20);
  transform: rotate(-8deg);
}
.slab-c {
  top: 22%; right: 6%;
  font-size: clamp(20px, 1.6vw, 26px);
  color: rgba(255,255,255,.18);
  letter-spacing: 4px;
}
.slab-d {
  bottom: 32%; left: 4%;
  font-size: clamp(20px, 1.6vw, 26px);
  color: rgba(255,194,14,.32);
  letter-spacing: 4px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 8px;
  padding-bottom: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 360px);
  gap: 48px;
  align-items: start;
}
.hero-logo { align-self: start; margin-top: -8px; }
@media (max-width: 980px) {
  .hero-logo { align-self: center; margin-top: 0; }
}
.hero-content { min-width: 0; }
/* ===== hero-logo: animated brand mark ===== */
.hero-logo {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  margin-left: auto;
  /* the whole composition, gently floating */
  animation: heroLogoFloat 7s ease-in-out infinite;
  perspective: 1200px;
  /* tilt vars updated by JS on mousemove */
  --tx: 0deg; --ty: 0deg;
}
@media (max-width: 980px) {
  .hero-logo { margin: 0 auto; max-width: 320px; }
}
@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* soft bloom */
.hl-bloom {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 50% 50%, rgba(234,31,31,.30) 0%, rgba(234,31,31,0) 55%),
    radial-gradient(circle at 50% 50%, rgba(255,194,14,.18) 0%, rgba(255,194,14,0) 70%);
  filter: blur(12px);
  animation: heroLogoBloom 4s ease-in-out infinite;
  z-index: 0;
}
@keyframes heroLogoBloom {
  0%, 100% { opacity: .65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

/* radial rays burst */
.hl-rays {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  animation: hlRaysFade 1.6s ease-out .3s both;
}
.hl-rays span {
  position: absolute;
  left: 50%; top: 50%;
  width: 2px; height: 50%;
  margin-left: -1px;
  background: linear-gradient(to top, rgba(255,194,14,0) 0%, rgba(255,194,14,.55) 60%, rgba(255,194,14,0) 100%);
  transform-origin: bottom center;
  animation: hlRayShoot 1.2s cubic-bezier(.2,.7,.2,1) .3s both;
}
.hl-rays span:nth-child(1)  { transform: translateY(-100%) rotate(0deg); }
.hl-rays span:nth-child(2)  { transform: translateY(-100%) rotate(30deg); }
.hl-rays span:nth-child(3)  { transform: translateY(-100%) rotate(60deg); }
.hl-rays span:nth-child(4)  { transform: translateY(-100%) rotate(90deg); }
.hl-rays span:nth-child(5)  { transform: translateY(-100%) rotate(120deg); }
.hl-rays span:nth-child(6)  { transform: translateY(-100%) rotate(150deg); }
.hl-rays span:nth-child(7)  { transform: translateY(-100%) rotate(180deg); }
.hl-rays span:nth-child(8)  { transform: translateY(-100%) rotate(210deg); }
.hl-rays span:nth-child(9)  { transform: translateY(-100%) rotate(240deg); }
.hl-rays span:nth-child(10) { transform: translateY(-100%) rotate(270deg); }
.hl-rays span:nth-child(11) { transform: translateY(-100%) rotate(300deg); }
.hl-rays span:nth-child(12) { transform: translateY(-100%) rotate(330deg); }
@keyframes hlRayShoot {
  0% { height: 0%; opacity: 0; }
  60% { height: 60%; opacity: 1; }
  100% { height: 50%; opacity: 0; }
}
@keyframes hlRaysFade {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* rotating decorative rings */
.hl-ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
}
.hl-ring-outer { animation: hlSpin 36s linear infinite; }
.hl-ring-inner { animation: hlSpin 24s linear infinite reverse; }
@keyframes hlSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.hl-ring-text {
  font-family: var(--ff-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 4px;
  fill: rgba(255,194,14,.85);
  text-transform: uppercase;
}

/* corner ticks frame */
.hl-corners {
  position: absolute;
  inset: -4%;
  width: 108%; height: 108%;
  z-index: 2;
  pointer-events: none;
  animation: hlCornersIn 1.2s cubic-bezier(.2,.7,.2,1) .8s both;
}
@keyframes hlCornersIn {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* the mark itself */
.hl-mark {
  position: absolute;
  inset: 8%;
  z-index: 3;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform-style: preserve-3d;
  transform:
    rotateX(var(--ty))
    rotateY(var(--tx));
  transition: transform .25s ease-out;
  animation: hlMarkIn 1.1s cubic-bezier(.2,.9,.25,1.15) .15s both;
  filter: drop-shadow(0 18px 40px rgba(234,31,31,.35));
}
.hl-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
@keyframes hlMarkIn {
  0%   { opacity: 0; transform: scale(.4) rotate(-30deg); }
  60%  { opacity: 1; transform: scale(1.05) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* shine sweep across the mark */
.hl-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}
.hl-shine::before {
  content: "";
  position: absolute;
  top: -50%; left: -75%;
  width: 60%; height: 200%;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(255,255,255,.6) 50%,
    transparent 70%);
  transform: translateX(-50%) rotate(20deg);
  animation: hlShine 5.5s ease-in-out 2s infinite;
  mix-blend-mode: overlay;
}
@keyframes hlShine {
  0%   { transform: translateX(-30%) rotate(20deg); opacity: 0; }
  10%  { opacity: .9; }
  60%  { transform: translateX(220%) rotate(20deg); opacity: 0; }
  100% { transform: translateX(220%) rotate(20deg); opacity: 0; }
}

/* respect reduced motion: keep static, no spinning, no float */
@media (prefers-reduced-motion: reduce) {
  .hero-logo, .hl-bloom, .hl-ring-outer, .hl-ring-inner,
  .hl-rays, .hl-rays span, .hl-shine::before, .hl-mark {
    animation: none !important;
  }
  .hl-mark { opacity: 1; transform: none; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #e4e4e7;
  margin-bottom: 18px;
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(4px);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 12px var(--yellow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.85); }
}

.hero-title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(42px, 8vw, 104px);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: -.5px;
  margin: 0 0 28px;
}
.hero-title .hero-line { display: block; }
.hero-title .hero-accent { color: var(--yellow); }
.hero-title .hl {
  background: var(--red);
  color: #fff;
  padding: 0 12px;
  display: inline-block;
  transform: skew(-6deg);
  box-shadow: 0 8px 30px rgba(234,31,31,.35);
}

.hero-lead {
  max-width: 640px;
  font-size: 19px;
  color: #cfcfd4;
  margin: 0 0 36px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; margin-bottom: 0; }
.hero-side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 28px;
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-side { display: contents; }
  .hero-logo { order: 1; }
  .hero-content { order: 2; }
  .hero-meta { order: 3; }
}

.btn-magnetic { position: relative; overflow: hidden; }
.btn-magnetic::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .8s ease;
}
.btn-magnetic:hover::before { transform: translateX(100%); }
.btn-magnetic > span { position: relative; z-index: 1; }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
}
.hero-meta div { min-width: 0; align-items: center; }
.hero-meta b { font-size: 26px; }
.hero-meta span { font-size: 13px; line-height: 1.25; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta b {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}
.hero-meta span { color: #9a9a9f; font-size: 14px; margin-top: 6px; }

@media (max-width: 640px) {
  .hero-meta b { font-size: 26px; }
  .hero-meta span { font-size: 12px; }
  .slab-a, .slab-b { display: none; }
}

/* reveal animation: opacity + translate-y, controlled by .is-visible */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* marquee */
.marquee {
  position: relative;
  background: var(--yellow);
  color: #111;
  overflow: hidden;
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
}
.marquee-thin {
  background: #0b0b0c;
  color: var(--yellow);
  border-top: 0;
  border-bottom: 1px solid rgba(255,194,14,.15);
}
.marquee-track {
  display: flex;
  gap: 28px;
  padding: 16px 0;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
  will-change: transform;
}
.marquee-thin .marquee-track {
  font-size: 14px;
  letter-spacing: 3px;
  padding: 10px 0;
  animation-duration: 55s;
}
.marquee-track span { flex: 0 0 auto; }
.marquee-reverse { animation-direction: reverse; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ----- SECTION HEAD ----- */
.eyebrow {
  display: inline-block;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.eyebrow-light { color: var(--yellow); }
.section-head { margin-bottom: 32px; max-width: 820px; }
.section-title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -.5px;
  margin: 0 0 16px;
}
.section-lead { color: #555; font-size: 18px; margin: 0; }

/* ----- SERVICES ----- */
.services { padding: 64px 0; background: var(--paper); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}
.service {
  padding: 40px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  position: relative;
  overflow: hidden;
  transition: background .25s;
}
.service:nth-child(2n) { border-right: 0; }
.service:nth-child(n+3) { border-bottom: 0; }
.service::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: var(--yellow);
  transform: translateY(100%);
  transition: transform .25s;
}
.service:hover { background: #fafaf7; }
.service:hover::before { transform: translateY(0); }
.service-num {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--red);
  margin-bottom: 20px;
}
.service h3 {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 28px;
  text-transform: uppercase;
  margin: 0 0 14px;
  letter-spacing: -.3px;
}
.service p { color: #4a4a4f; margin: 0 0 20px; }
.service ul { list-style: none; padding: 0; margin: 0; }
.service li {
  padding: 8px 0;
  border-top: 1px dashed var(--line-dark);
  font-size: 15px;
  color: #2b2b2e;
}
.service li:first-child { border-top: 0; }

@media (max-width: 780px) {
  .services { padding: 48px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service { border-right: 0 !important; border-bottom: 1px solid var(--line-dark); padding: 32px 24px; }
  .service:last-child { border-bottom: 0; }
  .service h3 { font-size: 24px; }
}

/* ----- WORKS ----- */
.works { padding: 64px 0; background: var(--paper-2); }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.filter {
  padding: 12px 20px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.15);
  background: transparent;
  color: #2b2b2e;
  font-weight: 500;
  font-size: 14px;
  transition: all .2s;
}
.filter:hover { border-color: #000; }
.filter.is-active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  aspect-ratio: 4 / 3;
  transition: transform .25s, box-shadow .25s;
}
.card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s, opacity .3s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.card:hover img { transform: scale(1.05); opacity: .85; }
.card-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px;
  color: #fff;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.75) 100%);
  transform: translateY(10%);
  transition: transform .25s;
}
.card:hover .card-info { transform: translateY(0); }
.tag {
  display: inline-block;
  font-family: var(--ff-head);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 6px;
}
.card h4 {
  margin: 0;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 19px;
  text-transform: uppercase;
}

.card[hidden] { display: none; }

/* ----- RATING ----- */
.rating { background: var(--paper-2); padding: 48px 0; }
.rating-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 50px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  box-shadow: 0 10px 40px rgba(0,0,0,.06);
}
.rating-score { text-align: center; }
.rating-num {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 92px;
  line-height: 1;
  color: var(--red);
  letter-spacing: -2px;
}
.rating-stars {
  display: inline-flex;
  gap: 4px;
  margin-top: 8px;
}
.rating-stars span {
  width: 22px; height: 22px;
  background: var(--yellow);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.rating-stars span.half {
  background: linear-gradient(90deg, var(--yellow) 50%, #e6e0d0 50%);
}
.rating-src { color: var(--muted); font-size: 13px; margin-top: 10px; }

.rating-copy { display: flex; flex-direction: column; align-items: flex-start; }
.rating-copy .eyebrow { color: var(--red); }
.rating-title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 38px);
  text-transform: uppercase;
  margin: 0 0 14px;
  letter-spacing: -.3px;
  line-height: 1.05;
}
.rating-copy p { margin: 0 0 22px; color: #4a4a4f; }

@media (max-width: 780px) {
  .rating-inner { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; text-align: center; }
  .rating-copy { align-items: center; }
  .rating-num { font-size: 72px; }
}

/* ----- PRODUCTION ----- */
.production {
  padding: 64px 0;
  background: var(--ink);
  color: #f2f2f2;
}
.production .section-title { color: #fff; }
.production-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
}
.production-copy p { color: #b8b8bf; font-size: 17px; }
.production-list { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.production-list > div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 15px;
}
.production-list b {
  font-family: var(--ff-head);
  color: var(--yellow);
  flex: 0 0 auto;
}
.production-media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.production-media picture {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: #222;
}
.production-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s;
}
.production-media picture:hover img { transform: scale(1.04); }

@media (max-width: 900px) {
  .production-inner { grid-template-columns: 1fr; gap: 40px; }
  .production { padding: 48px 0; }
}

/* ----- WHY US ----- */
.why { padding: 64px 0; background: var(--paper); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.08); }
.why-num {
  font-family: var(--ff-head);
  font-size: 72px;
  line-height: 1;
  color: var(--yellow);
  display: block;
  margin-bottom: 14px;
  opacity: .9;
}
.why-card h3 {
  font-family: var(--ff-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 19px;
  margin: 0 0 10px;
}
.why-card p { color: #52525a; font-size: 15px; margin: 0; }

@media (max-width: 960px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }

/* ----- CTA / FORM ----- */
.cta { background: #0b0b0c; color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.cta::before {
  content: "";
  position: absolute;
  right: -100px; top: -100px;
  width: 360px; height: 360px;
  background: var(--red);
  border-radius: 50%;
  filter: blur(120px);
  opacity: .35;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.cta-copy .section-title { color: #fff; }
.cta-copy p { color: #b9b9c0; font-size: 17px; }
.cta-contacts { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.cta-contact {
  display: flex;
  flex-direction: column;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  transition: color .2s;
}
.cta-contact:hover { color: var(--yellow); }
.cta-contact span { color: #9a9a9f; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.cta-contact b {
  font-family: var(--ff-head);
  font-size: 24px;
  font-weight: 600;
  margin-top: 4px;
}

.form {
  background: #141417;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 13px; color: #b8b8bf; }
.field input, .field textarea {
  font: inherit;
  color: #fff;
  background: #0b0b0c;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--yellow);
  background: #0e0e10;
}
.field textarea { resize: vertical; min-height: 90px; }
/* File picker (matches the look of input/textarea) */
.file-field { display: flex; flex-direction: column; gap: 8px; }
.file-drop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 16px;
  background: #0b0b0c;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #d8d8dc;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
  transition: border-color .2s, background .2s, color .2s;
}
.file-drop:hover,
.file-drop.is-drag,
.file-drop:focus-within { border-color: var(--yellow); background: #0e0e10; color: #fff; }
.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-drop-empty,
.file-drop-selected {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.file-drop-empty { justify-content: center; }
.file-drop-selected { justify-content: flex-start; }
.file-drop-selected[hidden] { display: none; }
.file-drop-icon { font-size: 18px; flex: 0 0 auto; }
.file-drop-text strong { font-weight: 700; color: #fff; }
.file-drop-text em { font-style: normal; color: var(--yellow); }
.file-name {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f5f1ea;
}
.file-clear {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  color: #d8d8dc;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.file-clear:hover { border-color: var(--red); color: #fff; background: var(--red); }
.file-hint { font-size: 12px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #9a9a9f; }
.check input { margin-top: 3px; accent-color: var(--yellow); }
.form .btn { margin-top: 6px; }
.form-status { font-size: 14px; margin: 6px 0 0; }
.form-status.ok { color: var(--yellow); }
.form-status.err { color: #ff8080; }

@media (max-width: 900px) {
  .cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .cta { padding: 48px 0; }
}

/* ----- CONTACTS ----- */
.contacts { padding: 64px 0; background: var(--paper); }
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.contacts-card {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 24px;
}
.contacts-card h3 {
  font-family: var(--ff-head);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin: 0 0 10px;
}
.contacts-card p {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.45;
}
.contacts-card a { color: var(--ink); border-bottom: 2px solid var(--yellow); }
.contacts-card a:hover { color: var(--red); }
.muted { color: var(--muted); font-size: 14px; }

.map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: #fff;
}
.map iframe { display: block; border: 0; filter: grayscale(.2) contrast(1.02); }

@media (max-width: 900px) { .contacts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .contacts-grid { grid-template-columns: 1fr; } }

/* ----- FOOTER ----- */
.footer { background: #000; color: #9a9a9f; padding: 40px 0 30px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand b { color: #fff; font-family: var(--ff-head); text-transform: uppercase; letter-spacing: .5px; display: block; }
.footer-brand span { font-size: 13px; }
.footer-nav { display: flex; gap: 8px 24px; justify-self: center; flex-wrap: wrap; justify-content: center; }
.footer-nav a {
  color: #c8c8cc;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
}
.footer-nav a:hover { color: var(--yellow); }
.footer-copy { display: flex; flex-direction: column; text-align: right; font-size: 13px; justify-self: end; }

@media (max-width: 780px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .footer-brand, .footer-copy { justify-self: center; text-align: center; }
}

/* ----- SERVICE CARD CROSS-LINKS (homepage) ----- */
.service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 18px 0 0 !important;
  padding-top: 14px;
  border-top: 1px dashed var(--line-dark);
}
.service-link-primary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  color: #0a0a0a;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 2px solid var(--yellow);
  transition: color .15s, border-color .15s;
}
.service-link-primary:hover { color: var(--red); border-bottom-color: var(--red); }
.service-link-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  color: #555;
  font-size: 14px;
  border-bottom: 1px dotted #999;
  transition: color .15s, border-color .15s;
}
.service-link-secondary:hover { color: #0a0a0a; border-bottom-color: #0a0a0a; }

/* ----- HOMEPAGE FAQ SECTION ----- */
.faq-section {
  background: var(--paper);
  padding: 64px 0;
}
.faq-section .section-head { text-align: left; margin-bottom: 28px; }
.faq-section .section-lead a:hover { color: var(--red); }
.faq-section .svc-faq { margin-top: 8px; }
@media (max-width: 780px) {
  .faq-section { padding: 48px 0; }
}

/* ========================================================================
   EPIC HERO — переиспользуемый плакатный hero для подстраниц
   ======================================================================== */
.epic-hero {
  position: relative;
  background: #0a0a0c;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(60px, 9vw, 130px) 0 clamp(60px, 9vw, 100px);
}

/* Слой-фон: фото или сплошной */
.epic-hero-bg {
  position: absolute;
  inset: -10% 0 -10% 0;
  z-index: 0;
  pointer-events: none;
}
.epic-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .35;
  filter: saturate(.8) contrast(1.05);
  transform: scale(1.06);
}
/* Тинт-градиенты + bottom-fade */
.epic-hero-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(1100px 600px at 78% 5%, rgba(255,194,14,.16), transparent 60%),
    radial-gradient(900px 500px at 8% 90%, rgba(234,31,31,.16), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.72) 55%, #0a0a0c 100%);
  pointer-events: none;
}
/* Сетка, маскированная радиально */
.epic-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 35%, transparent 80%);
  opacity: .55;
  pointer-events: none;
}

/* Декоративные большие тексты-плакаты */
.epic-slab {
  position: absolute;
  z-index: 1;
  font-family: var(--ff-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  will-change: transform;
}
.epic-slab-y {
  font-size: clamp(80px, 14vw, 220px);
  color: rgba(255,194,14,.06);
  -webkit-text-stroke: 2px rgba(255,194,14,.20);
}
.epic-slab-r {
  font-size: clamp(80px, 14vw, 200px);
  color: rgba(234,31,31,.05);
  -webkit-text-stroke: 2px rgba(234,31,31,.22);
}
.epic-slab-mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: clamp(13px, 1.2vw, 18px);
  letter-spacing: 4px;
  color: rgba(255,194,14,.45);
  font-weight: 600;
}
.epic-slab-thin {
  font-size: clamp(18px, 1.6vw, 26px);
  color: rgba(255,255,255,.18);
  letter-spacing: 4px;
}

/* Контент-слой — на верхнем z-index */
.epic-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: end;
}

/* Гигантская цифра-якорь */
.epic-megafigure {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(180px, 30vw, 460px);
  line-height: .82;
  letter-spacing: -.04em;
  color: var(--yellow);
  margin: 0;
  text-shadow: 0 12px 60px rgba(255,194,14,.22);
}
.epic-megafigure.is-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--yellow);
}
.epic-megafigure.is-red-bg {
  display: inline-block;
  color: #fff;
  background: var(--red);
  padding: 0 .12em;
  transform: skew(-6deg);
  text-shadow: 0 14px 50px rgba(234,31,31,.45);
}

.epic-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e4e4e7;
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(4px);
  margin-bottom: 14px;
}
.epic-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 12px var(--yellow);
}

.epic-hero-title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 76px);
  line-height: .96;
  text-transform: uppercase;
  letter-spacing: -.5px;
  margin: 8px 0 18px;
  color: #fff;
  max-width: 18ch;
}
.epic-hero-title .hl {
  background: var(--red);
  color: #fff;
  padding: 0 12px;
  display: inline-block;
  transform: skew(-6deg);
  box-shadow: 0 8px 30px rgba(234,31,31,.35);
}
.epic-hero-title .hl-y {
  color: var(--yellow);
}

.epic-hero-lead {
  max-width: 580px;
  font-size: clamp(15px, 1.4vw, 18px);
  color: #cfcfd4;
  margin: 0 0 24px;
  line-height: 1.55;
}

.epic-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Меточная мета-строка под hero */
.epic-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-family: var(--ff-head);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9a9a9f;
}
.epic-hero-meta b { color: var(--yellow); margin-right: 6px; }

/* Двухколоночный layout: текст слева, мега-цифра/визуал справа */
.epic-hero-inner.two-cols {
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 40px;
}
@media (max-width: 900px) {
  .epic-hero-inner.two-cols { grid-template-columns: 1fr; }
}

/* Layout: фото-сцена (вынос фото на правую часть с тенями) */
.epic-hero-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  border: 2px solid var(--yellow);
}
.epic-hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.epic-hero-photo .lb-tick { position: absolute; }

/* Мозаика фото на фоне (для портфолио hero) */
.epic-mosaic {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 6px;
  padding: 6px;
  pointer-events: none;
}
.epic-mosaic .epic-mosaic-cell {
  background-position: center;
  background-size: cover;
  filter: grayscale(.4) brightness(.6) contrast(.95);
  opacity: .55;
}

/* respect reduced motion: статичная композиция, без параллакс-сдвигов */
@media (prefers-reduced-motion: reduce) {
  .epic-slab, .epic-hero-bg, .epic-mosaic-cell, .epic-megafigure {
    transform: none !important;
  }
}

/* Mobile: уменьшаем все слабы и убираем некоторые */
@media (max-width: 720px) {
  .epic-hero { padding: 56px 0 48px; }
  .epic-megafigure { font-size: 36vw; }
  .epic-hero-title { font-size: clamp(30px, 9vw, 48px); }
  .epic-slab-y, .epic-slab-r { font-size: 26vw; }
  .epic-mosaic { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, 1fr); }
}

/* ========================================================================
   LIGHTBOX — кастомная плакатная галерея
   ======================================================================== */
body.lb-locked { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  /* hidden initially, .is-open shows it */
}
.lightbox.is-open { display: flex; }

.lb-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 80% 5%, rgba(255,194,14,.18), transparent 60%),
    radial-gradient(700px 500px at 12% 95%, rgba(234,31,31,.18), transparent 60%),
    rgba(11,11,12,.96);
  cursor: zoom-out;
  animation: lbFadeIn .25s ease-out both;
}
.lb-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 35%, transparent 80%);
  opacity: .4;
}

@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbFigureIn {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes lbCaptionIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.lb-close {
  position: absolute;
  top: 22px; right: 22px;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 3;
  transition: background .2s, border-color .2s, transform .2s, color .2s;
}
.lb-close:hover { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(90deg); }
.lb-close:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

.lb-counter {
  position: absolute;
  top: 28px; left: 28px;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  z-index: 3;
}
.lb-counter .lb-num { color: var(--yellow); font-size: 22px; line-height: 1; }
.lb-counter .lb-slash { color: rgba(255,255,255,.35); font-size: 18px; }
.lb-counter .lb-total { color: rgba(255,255,255,.55); font-size: 14px; }

.lb-figure {
  position: relative;
  z-index: 2;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: min(92vw, 1280px);
  max-height: 86vh;
  animation: lbFigureIn .35s cubic-bezier(.2,.8,.25,1) .05s both;
}
.lb-frame {
  position: relative;
  background: #000;
  border: 2px solid var(--yellow);
  box-shadow:
    0 30px 80px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,194,14,.25);
  max-height: calc(86vh - 92px);
  overflow: hidden;
}
.lb-img {
  display: block;
  max-width: 100%;
  max-height: calc(86vh - 92px);
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  opacity: 0;
  transition: opacity .35s ease-out;
}
.lb-img.is-loaded { opacity: 1; }

/* Угловые тики поверх фрейма */
.lb-tick {
  position: absolute;
  width: 24px; height: 24px;
  border-color: var(--yellow);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
}
.lb-tick-tl { top: -8px; left: -8px; border-top-width: 3px; border-left-width: 3px; }
.lb-tick-tr { top: -8px; right: -8px; border-top-width: 3px; border-right-width: 3px; }
.lb-tick-bl { bottom: -8px; left: -8px; border-bottom-width: 3px; border-left-width: 3px; }
.lb-tick-br { bottom: -8px; right: -8px; border-bottom-width: 3px; border-right-width: 3px; }

.lb-caption {
  margin-top: 22px;
  padding-left: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: lbCaptionIn .35s cubic-bezier(.2,.8,.25,1) .15s both;
}
.lb-caption .lb-tag {
  font-family: var(--ff-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--yellow);
}
.lb-caption .lb-title {
  font-family: var(--ff-head);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.3px;
  line-height: 1.05;
  color: #fff;
  margin: 0;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: var(--yellow);
  color: #0a0a0a;
  border: 0;
  border-radius: 50%;
  font-size: 38px;
  line-height: 1;
  font-weight: 400;
  font-family: var(--ff-head);
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
  transition: background .2s, transform .2s;
}
.lb-nav:hover { background: var(--yellow-2); transform: translateY(-50%) scale(1.08); }
.lb-nav:active { transform: translateY(-50%) scale(.96); }
.lb-nav:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.lb-nav span { transform: translateY(-2px); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }

.lb-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255,255,255,.08);
  z-index: 2;
}
.lb-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--yellow);
  transition: width .35s cubic-bezier(.2,.8,.25,1);
}

/* Mobile */
@media (max-width: 720px) {
  .lb-figure { max-width: 100vw; }
  .lb-frame { max-height: calc(80vh - 130px); }
  .lb-img { max-height: calc(80vh - 130px); }
  .lb-nav {
    width: 48px; height: 48px;
    font-size: 30px;
    bottom: 88px;
    top: auto;
    transform: none;
  }
  .lb-nav:hover, .lb-nav:active { transform: scale(1.04); }
  .lb-prev { left: 20px; }
  .lb-next { right: 20px; }
  .lb-counter { top: 18px; left: 20px; font-size: 11px; }
  .lb-counter .lb-num { font-size: 18px; }
  .lb-close { top: 14px; right: 14px; width: 44px; height: 44px; }
  .lb-caption { margin-top: 14px; padding: 0 24px; }
  .lb-caption .lb-title { font-size: 18px; }
  .lb-figure { padding-bottom: 0; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  .lb-bg, .lb-figure, .lb-caption, .lb-img, .lb-progress-bar { animation: none !important; transition: none !important; }
  .lb-img { opacity: 1; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  * { transition-duration: .01ms !important; }
}
