/* ==========================================================================
   QUBE.PRODUCTION — MASTER DESIGN SYSTEM (DESKTOP + TOUCH/MOBILE ADAPTIVE)
   ========================================================================== */

@font-face {
  font-family: 'Docker';
  src:
    local('Docker'),
    local('Docker One'),
    url('../assets/fonts/Docker.woff2') format('woff2'),
    url('../assets/fonts/Docker.ttf') format('truetype'),
    url('../assets/fonts/Docker.otf') format('opentype');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Igra Sans';
  src:
    local('Igra Sans'),
    local('IgraSans'),
    url('../assets/fonts/IgraSans.woff2') format('woff2'),
    url('../assets/fonts/IgraSans.ttf') format('truetype'),
    url('../assets/fonts/IgraSans.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-page: #0d0d10;
  --bg-card: #16161c;
  --bg-card-elev: #1d1d25;
  --ink-light: #f6f5f2;
  --ink-dark: #141418;
  --muted: #9d9da8;
  --accent: #ff3b2f;

  --font-display: 'Docker', 'Unbounded', sans-serif;
  --font-body: 'Igra Sans', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  --box-width: min(1200px, 75vw);
  --btn-radius: 25px;
  --card-radius: 28px;
  --header-h: 78px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-page);
  color: var(--ink-light);
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--ink-light);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body.lock-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font-body);
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

svg,
img,
video {
  display: block;
  max-width: 100%;
}

.art-svg {
  width: 100%;
  height: 100%;
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 999;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--btn-radius);
}
.skip-link:focus {
  top: 16px;
}

.content-box {
  width: var(--box-width);
  margin-inline: auto;
}

.seamless-section {
  position: relative;
  padding-block: clamp(32px, 3.8vw, 54px);
}

/* ==========================================================================
   ПЛАВНОЕ ПОЯВЛЕНИЕ ЭЛЕМЕНТОВ СНИЗУ-ВВЕРХ ПРИ ЗАГРУЗКЕ, СКРОЛЛЕ И СМЕНЕ СТРАНИЦЫ
   ========================================================================== */
.page-enter {
  animation: pageFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@keyframes pageFadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal-up {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--rev-delay, 0ms),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--rev-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-up.is-inview {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ==========================================================================
   ТЁМНЫЕ ТЕЙПЫ С ПРОЗРАЧНЫМ ФОНОМ И ПОКАДРОВОЙ (STOP-MOTION) АНИМАЦИЕЙ
   ========================================================================== */
.tape-heading-wrap {
  position: relative;
  display: inline-block;
  padding: 5px 24px 9px;
  z-index: 1;
}

.tape-heading-wrap::before {
  content: '';
  position: absolute;
  inset: -6px -18px -8px -18px;
  z-index: -1;
  background-image: url('../assets/tapes/dark-tape-1.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transform: rotate(var(--tape-rot, -1.2deg)) scale(1.04);
  filter: brightness(1.22) contrast(1.06) drop-shadow(0 10px 22px rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.tape-heading-wrap.tape-v1::before {
  background-image: url('../assets/tapes/dark-tape-1.png');
}
.tape-heading-wrap.tape-v2::before {
  background-image: url('../assets/tapes/dark-tape-2.png');
}
.tape-heading-wrap.tape-v3::before {
  background-image: url('../assets/tapes/dark-tape-3.png');
}

.tape-heading-wrap.is-taped::before {
  opacity: 1;
  clip-path: inset(0 0% 0 0%);
  transform: rotate(var(--tape-rot, -1.2deg)) scale(1);
}

.tape-heading-wrap.tape-anim-1.is-taped::before {
  animation: tapeStopMotionLTR var(--tape-dur, 460ms) steps(1, end) forwards;
}
.tape-heading-wrap.tape-anim-2.is-taped::before {
  animation: tapeStopMotionRTL var(--tape-dur, 460ms) steps(1, end) forwards;
}
.tape-heading-wrap.tape-anim-3.is-taped::before {
  animation: tapeStopMotionDiag var(--tape-dur, 480ms) steps(1, end) forwards;
}
.tape-heading-wrap.tape-anim-4.is-taped::before {
  animation: tapeStopMotionCenter var(--tape-dur, 450ms) steps(1, end) forwards;
}

@keyframes tapeStopMotionLTR {
  0% {
    opacity: 1;
    clip-path: inset(0 86% 0 0);
    transform: rotate(calc(var(--tape-rot, -1.2deg) - 2.4deg)) scale(1.06) translateY(-2px);
  }
  24% {
    opacity: 1;
    clip-path: inset(0 62% 0 0);
    transform: rotate(calc(var(--tape-rot, -1.2deg) + 1.5deg)) scale(1.04) translateY(1px);
  }
  50% {
    opacity: 1;
    clip-path: inset(0 36% 0 0);
    transform: rotate(calc(var(--tape-rot, -1.2deg) - 1.1deg)) scale(1.02);
  }
  76% {
    opacity: 1;
    clip-path: inset(0 12% 0 0);
    transform: rotate(calc(var(--tape-rot, -1.2deg) + 0.6deg)) scale(1.01);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0% 0 0%);
    transform: rotate(var(--tape-rot, -1.2deg)) scale(1);
  }
}

@keyframes tapeStopMotionRTL {
  0% {
    opacity: 1;
    clip-path: inset(0 0 0 86%);
    transform: rotate(calc(var(--tape-rot, 1.2deg) + 2.4deg)) scale(1.06) translateY(2px);
  }
  24% {
    opacity: 1;
    clip-path: inset(0 0 0 60%);
    transform: rotate(calc(var(--tape-rot, 1.2deg) - 1.4deg)) scale(1.04);
  }
  50% {
    opacity: 1;
    clip-path: inset(0 0 0 34%);
    transform: rotate(calc(var(--tape-rot, 1.2deg) + 1.1deg)) scale(1.02) translateY(-1px);
  }
  76% {
    opacity: 1;
    clip-path: inset(0 0 0 11%);
    transform: rotate(calc(var(--tape-rot, 1.2deg) - 0.5deg)) scale(1.01);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0% 0 0%);
    transform: rotate(var(--tape-rot, 1.2deg)) scale(1);
  }
}

@keyframes tapeStopMotionDiag {
  0% {
    opacity: 1;
    clip-path: polygon(0 0, 18% 0, 8% 100%, 0 100%);
    transform: rotate(calc(var(--tape-rot, -1deg) - 2.6deg)) scale(1.06);
  }
  25% {
    opacity: 1;
    clip-path: polygon(0 0, 46% 0, 34% 100%, 0 100%);
    transform: rotate(calc(var(--tape-rot, -1deg) + 1.6deg)) scale(1.03);
  }
  52% {
    opacity: 1;
    clip-path: polygon(0 0, 74% 0, 64% 100%, 0 100%);
    transform: rotate(calc(var(--tape-rot, -1deg) - 0.8deg)) scale(1.02);
  }
  78% {
    opacity: 1;
    clip-path: polygon(0 0, 94% 0, 88% 100%, 0 100%);
    transform: rotate(calc(var(--tape-rot, -1deg) + 0.5deg)) scale(1.01);
  }
  100% {
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: rotate(var(--tape-rot, -1deg)) scale(1);
  }
}

@keyframes tapeStopMotionCenter {
  0% {
    opacity: 1;
    clip-path: inset(0 44% 0 44%);
    transform: rotate(calc(var(--tape-rot, 0.8deg) - 2deg)) scale(1.07);
  }
  26% {
    opacity: 1;
    clip-path: inset(0 30% 0 30%);
    transform: rotate(calc(var(--tape-rot, 0.8deg) + 1.4deg)) scale(1.04);
  }
  54% {
    opacity: 1;
    clip-path: inset(0 16% 0 16%);
    transform: rotate(calc(var(--tape-rot, 0.8deg) - 0.8deg)) scale(1.02);
  }
  80% {
    opacity: 1;
    clip-path: inset(0 5% 0 5%);
    transform: rotate(calc(var(--tape-rot, 0.8deg) + 0.4deg)) scale(1.01);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0% 0 0%);
    transform: rotate(var(--tape-rot, 0.8deg)) scale(1);
  }
}

/* ==========================================================================
   ПОДЧЁРКИВАНИЯ С ЭФФЕКТОМ TRIM PATH — СТРОГО ПО РАЗМЕРУ ТЕКСТОВОГО БОКСА (1:1 PX)
   ========================================================================== */
.trim-underline-target {
  position: relative;
}

.trim-underline-svg {
  position: absolute;
  left: 0;
  top: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 6;
}

.trim-path-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: var(--tp-w, 2.4px);
  stroke-linecap: round;
  stroke-dasharray: var(--tp-len, 240px) 9999px;
  stroke-dashoffset: calc(var(--tp-len, 240px) + 8px);
  opacity: 0;
  transition: none;
}

.trim-underline-target.is-trim-in > .trim-underline-svg .trim-path-line {
  stroke-dashoffset: 0px;
  opacity: 0.98;
  transition:
    stroke-dashoffset 0.36s cubic-bezier(0.22, 1, 0.36, 1) var(--tp-delay, 0ms),
    opacity 0.06s linear var(--tp-delay, 0ms);
}

.trim-underline-target.is-trim-out > .trim-underline-svg .trim-path-line {
  stroke-dashoffset: calc(-1 * var(--tp-len, 240px) - 8px);
  opacity: 0;
  transition:
    stroke-dashoffset 0.32s cubic-bezier(0.42, 0, 0.2, 1) var(--tp-delay, 0ms),
    opacity 0.06s linear calc(0.27s + var(--tp-delay, 0ms));
}

/* ==========================================================================
   КНОПКИ — СКРУГЛЕНИЕ 25px
   ========================================================================== */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.1;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.pill-accent {
  background: var(--accent);
  color: #ffffff;
}
.pill-accent:hover {
  background: #ffffff;
  color: var(--ink-dark);
  transform: translateY(-2px);
}

.pill-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-light);
  backdrop-filter: blur(10px);
}
.pill-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* ==========================================================================
   ЕДИНАЯ ВЕРХНЯЯ ПАНЕЛЬ НАВИГАЦИИ
   ========================================================================== */
.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 130;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.nav-dock {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 8px 7px 14px;
  border-radius: 999px;
  background: rgba(18, 18, 23, 0.86);
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.52);
  max-width: 100%;
}

.dock-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px 9px;
  border-radius: var(--btn-radius);
  flex-shrink: 0;
}

.brand-logo-icon {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.brand-wordmark span {
  color: var(--accent);
}

.dock-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 4px;
  flex-shrink: 0;
}

.dock-links {
  display: flex;
  align-items: center;
  gap: 1px;
}

.dock-link {
  padding: 8px 11px 11px;
  border-radius: var(--btn-radius);
  font-size: 13px;
  color: #dcdce6;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.dock-link:hover {
  color: #ffffff;
}

.dock-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dock-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px 11px;
  border-radius: var(--btn-radius);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: var(--ink-light);
  transition: background 0.2s ease;
}
.dock-menu-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.plus-icon {
  font-size: 16px;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.25s ease;
}
body.menu-open .plus-icon {
  transform: rotate(45deg);
}

.dock-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 17px 11px;
  border-radius: var(--btn-radius);
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.dock-cta-btn:hover {
  background: #ffffff;
  color: var(--ink-dark);
}

/* Полноэкранное меню */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(13, 13, 16, 0.97);
  backdrop-filter: blur(22px);
  display: none;
  padding: calc(var(--header-h) + 20px) 20px 32px;
  overflow-y: auto;
}
body.menu-open .fullscreen-menu {
  display: flex;
}

.fs-menu-shell {
  width: var(--box-width);
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.fs-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fs-link {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 16px;
  padding: clamp(10px, 1.5vh, 16px) 12px;
  border-radius: 20px;
  transition: padding-left 0.25s ease, background 0.2s ease;
}
.fs-link-num {
  font-size: 14px;
  color: var(--muted);
}
.fs-link-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.8vw, 36px);
  text-transform: uppercase;
  line-height: 1.08;
}
.fs-link-circle {
  width: 42px;
  height: 42px;
  border-radius: var(--btn-radius);
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.fs-link:hover {
  padding-left: 24px;
  background: rgba(255, 255, 255, 0.03);
}
.fs-link:hover .fs-link-title {
  color: var(--accent);
}
.fs-link:hover .fs-link-circle {
  background: var(--accent);
  color: #fff;
  transform: rotate(-35deg);
}

.fs-menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.fs-menu-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.scrub-heading {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}
.scrub-heading em {
  font-style: normal;
  color: var(--accent);
}

/* ==========================================================================
   HERO С ШИРОКОФОРМАТНЫМ ВИДЕО + ОРБИТОЙ НА ДЕСКТОПЕ / СВАЙП-ЛЕНТОЙ НА МОБИЛЬНОМ
   ========================================================================== */
.hero-widescreen {
  position: relative;
  width: 100%;
  min-height: 104svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 16px) 0 56px;
}

.hero-video-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #0b0b0f;
}

.hero-widescreen-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.hero-video-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 13, 16, 0.72) 0%, rgba(13, 13, 16, 0.34) 45%, rgba(13, 13, 16, 0.96) 94%, var(--bg-page) 100%),
    radial-gradient(circle at 50% 46%, rgba(255, 59, 47, 0.16), transparent 60%);
}

.hero-inner-stage {
  position: relative;
  z-index: 2;
  width: min(1380px, 90vw);
  min-height: calc(100svh - 130px);
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.hero-center {
  position: relative;
  z-index: 3;
  max-width: 960px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  pointer-events: none;
}
.hero-center a,
.hero-center button,
.hero-center h1 {
  pointer-events: auto;
}

.hero-title {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.3vw, 50px);
  line-height: 1.24;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: -0.015em;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.hero-subtitle {
  margin: 0;
  max-width: 520px;
  font-size: clamp(15px, 1.15vw, 18px);
  color: #d2d2dc;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.hero-files-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.floating-case-file {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(calc(-50% + var(--ox, 0px)), calc(-50% + var(--oy, 0px)), 0);
  width: 126px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 20px;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  will-change: transform;
}

.floating-case-thumb {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.62);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.24s ease, box-shadow 0.24s ease;
}

.floating-case-label {
  font-family: var(--font-body);
  font-size: 11.5px;
  line-height: 1.2;
  text-align: center;
  color: #f0f0f6;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(13, 13, 16, 0.68);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, color 0.2s ease, transform 0.24s ease;
}

.floating-case-file:hover .floating-case-thumb,
.floating-case-file.is-selected .floating-case-thumb {
  transform: scale(1.12);
  border-color: var(--accent);
  box-shadow: 0 0 36px rgba(255, 59, 47, 0.52), 0 18px 38px rgba(0, 0, 0, 0.65);
}
.floating-case-file:hover .floating-case-label,
.floating-case-file.is-selected .floating-case-label {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(2px);
}

/* ==========================================================================
   КАРУСЕЛЬ ФОТО НА ВСЮ ШИРИНУ ЭКРАНА
   ========================================================================== */
.dg-carousel-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 24px 0;
  overflow: hidden;
  user-select: none;
}

.dg-lightleak {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  pointer-events: none;
  z-index: 3;
  filter: blur(42px);
  opacity: 0.42;
  background: linear-gradient(180deg, rgba(255, 45, 32, 0.8), rgba(255, 45, 32, 0.2), rgba(255, 45, 32, 0.75));
}
.dg-lightleak-left { left: 7%; }
.dg-lightleak-right { right: 8%; }

.dg-carousel-section::before,
.dg-carousel-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  z-index: 4;
  pointer-events: none;
}
.dg-carousel-section::before {
  top: 0;
  height: 76px;
  background: linear-gradient(to bottom, var(--bg-page) 8%, rgba(13, 13, 16, 0.8) 52%, rgba(13, 13, 16, 0) 100%);
}
.dg-carousel-section::after {
  bottom: 0;
  height: 76px;
  background: linear-gradient(to top, var(--bg-page) 8%, rgba(13, 13, 16, 0.82) 52%, rgba(13, 13, 16, 0) 100%);
}

.dg-side-fade {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to right, var(--bg-page) 0%, transparent 6%, transparent 94%, var(--bg-page) 100%);
}

.dg-track-viewport {
  position: relative;
  z-index: 2;
  width: 100%;
  cursor: grab;
}
.dg-track-viewport:active {
  cursor: grabbing;
}

.dg-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 6px 0;
  transform: translate3d(var(--dg-shift, 0px), 0, 0);
  will-change: transform;
}

.dg-still-card {
  width: clamp(190px, 15.5vw, 244px);
  aspect-ratio: 4 / 4.5;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  background: #141418;
  transition: transform 0.35s ease;
}
.dg-still-card:hover {
  transform: scale(1.03);
}

/* ==========================================================================
   ЗАГОЛОВКИ СЕКЦИЙ И ШОУРИЛ
   ========================================================================== */
.section-head-center {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 26px;
}
.section-head-center .section-heading {
  display: inline-block;
}
.section-head-left {
  max-width: 660px;
  margin-bottom: 24px;
}
.section-head-left .section-heading {
  width: fit-content;
}
.section-head-center p,
.section-head-left p {
  margin: 16px 0 0;
  font-size: clamp(14.5px, 1.1vw, 17px);
  color: var(--muted);
}

.section-heading {
  font-size: clamp(25px, 3.2vw, 44px);
}

.showreel-player-card {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #131318;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
}
.showreel-player-card > .art-svg {
  position: absolute;
  inset: 0;
  opacity: 0.85;
}

.showreel-glass-cta {
  position: relative;
  z-index: 2;
  padding: 26px 32px;
  border-radius: 28px;
  background: rgba(20, 20, 26, 0.74);
  backdrop-filter: blur(18px);
  text-align: center;
  max-width: 440px;
}
.showreel-glass-cta h3 {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 19px;
  text-transform: uppercase;
  margin: 12px 0 8px;
}
.showreel-glass-cta p {
  margin: 0 0 16px;
  font-size: 14px;
  color: #ccccd4;
}

.play-circle-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  transition: transform 0.22s ease, background 0.22s ease;
}
.play-circle-btn:hover {
  transform: scale(1.08);
  background: #ffffff;
  color: var(--ink-dark);
}

.embedded-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 3;
}

/* ==========================================================================
   ИНТЕРАКТИВНАЯ БЕНТО-СЕТКА КЛИЕНТОВ 4×4
   ========================================================================== */
.clients-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  position: relative;
}

.client-bento-cell {
  position: relative;
  aspect-ratio: 1.32 / 1;
  border-radius: 24px;
  background: #141419;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  z-index: 1;
  transition:
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.36s ease;
}

.client-bento-cell::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 30px;
  background: radial-gradient(circle, rgba(255, 59, 47, 0.58) 0%, rgba(255, 59, 47, 0) 72%);
  filter: blur(18px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.34s ease;
  pointer-events: none;
}

.clients-bento-grid.has-hover .client-bento-cell:not(.is-hovered) {
  transform: scale(0.94);
  opacity: 0.48;
}

.clients-bento-grid.has-hover .client-bento-cell.is-hovered {
  transform: scale(1.07);
  z-index: 8;
  background: #191619;
  border-color: rgba(255, 59, 47, 0.58);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.65);
}

.clients-bento-grid.has-hover .client-bento-cell.is-hovered::before {
  opacity: 1;
}

.client-wordmark {
  font-size: clamp(16px, 1.5vw, 21px);
  color: rgba(255, 255, 255, 0.46);
  letter-spacing: 0.05em;
  transition: color 0.25s ease, transform 0.28s ease;
}
.client-wordmark.st-bold { font-family: var(--font-display); font-weight: 800; }
.client-wordmark.st-serif { font-family: Georgia, 'Times New Roman', serif; letter-spacing: 0.12em; font-size: clamp(18px, 1.65vw, 24px); }
.client-wordmark.st-mono { font-family: monospace; font-weight: 700; letter-spacing: 0.08em; }
.client-wordmark.st-wide { font-family: var(--font-display); letter-spacing: 0.14em; font-size: clamp(14px, 1.25vw, 18px); }
.client-wordmark.st-light { font-weight: 400; letter-spacing: 0.1em; }

.client-bento-cell.is-hovered .client-wordmark {
  color: #ffffff;
  transform: translateY(-3px);
}

.client-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.42;
  color: #d6d6e0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, opacity 0.28s ease;
}
.client-bento-cell.is-hovered .client-note {
  max-height: 68px;
  opacity: 1;
}

.clients-mobile-more-row {
  display: none;
  justify-content: center;
  margin-top: 16px;
}

/* ==========================================================================
   НАШИ ЛУЧШИЕ РАБОТЫ — ВЕРТИКАЛЬНЫЕ ПРЕВЬЮ ПО КЛИКУ НА ВСЮ ШИРИНУ СТРАНИЦЫ + 4 ИКОНКИ ВНИЗУ
   ========================================================================== */
#best-works-section {
  padding-top: 32px;
  padding-bottom: 36px;
}

#best-works-section + .seamless-section {
  padding-top: 36px;
}

.best-works-accordion {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  height: 510px;
}

.work-acc-panel {
  position: relative;
  flex: 0 0 clamp(68px, 5.2vw, 84px);
  border-radius: 42px;
  background: #14151b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  cursor: pointer;
  transition:
    flex 0.56s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.56s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.4s ease;
}

.work-acc-panel:not(.is-expanded):hover {
  border-color: rgba(255, 255, 255, 0.32);
}

.work-acc-panel.is-expanded {
  flex: 1 1 0%;
  border-radius: 34px;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  cursor: default;
}

/* Состояние свёрнутой вертикальной превьюшки (с круглой иконкой внизу, как в референсе) */
.work-collapsed-view {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.work-acc-panel.is-expanded .work-collapsed-view {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.work-strip-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.work-strip-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72) saturate(1.15);
  transition: transform 0.45s ease, filter 0.35s ease;
}

.work-acc-panel:not(.is-expanded):hover .work-strip-cover video {
  transform: scale(1.06);
  filter: brightness(0.92) saturate(1.25);
}

.work-strip-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 18, 0.18) 0%, rgba(13, 13, 18, 0.62) 100%);
}

.work-strip-icon-badge {
  position: relative;
  z-index: 2;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f5f4f0;
  color: var(--ink-dark);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
  transition: transform 0.26s ease, background 0.25s ease, color 0.25s ease;
}

.work-acc-panel:not(.is-expanded):hover .work-strip-icon-badge {
  transform: translateY(-3px) scale(1.05);
  background: var(--accent);
  color: #ffffff;
}

.work-collapsed-mobile-meta {
  display: none;
}

.work-collapsed-mobile-plus {
  display: none;
}

/* Полная раскрытая версия выбранной истории со всеми элементами */
.work-expanded-view {
  position: absolute;
  inset: 0;
  z-index: 2;
  isolation: isolate;
  width: 640px;
  height: 100%;
  padding: clamp(20px, 2.2vw, 30px);
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: clamp(18px, 2.2vw, 28px);
  align-items: stretch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease 0.12s, visibility 0.32s ease;
}

.work-acc-panel.is-expanded .work-expanded-view {
  position: relative;
  inset: auto;
  width: 100%;
  min-width: 0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* САМЫЙ НИЖНИЙ СЛОЙ КАРТОЧКИ (z-index: 0): увеличенная сильно размытая копия превью-видео */
.work-expanded-bg-blur {
  position: absolute;
  right: -4%;
  top: 8%;
  bottom: -6%;
  width: 64%;
  z-index: 0;
  pointer-events: none;
}

.work-preview-blur-clone {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: scale(1.16);
  filter: blur(50px) saturate(1.75) brightness(1.06);
  opacity: 0.78;
  border-radius: 40px;
}

.work-exp-left {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.work-exp-topmeta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.work-slide-index {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.work-exp-cat-pill {
  padding: 5px 14px;
  border-radius: var(--btn-radius);
  background: rgba(255, 255, 255, 0.09);
  font-size: 12px;
  color: #e6e6f0;
}

.work-exp-maincopy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-slide-title {
  width: fit-content;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.25vw, 32px);
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0;
}

.work-slide-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.54;
  color: #dcdce6;
  max-width: 420px;
}

.work-slide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-tag-pill {
  height: 30px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--btn-radius);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(16, 16, 22, 0.42);
  backdrop-filter: blur(8px);
  font-size: 12px;
  line-height: 1;
  color: #ebebf2;
  white-space: nowrap;
}

/* Нижний бейдж раскрытой карточки с круглой иконкой + подписью клиента */
.work-exp-bottom-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.work-exp-bottom-badge .work-strip-icon-badge {
  width: 44px;
  height: 44px;
  background: #f5f4f0;
  color: var(--accent);
}

.work-exp-client-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
}
.work-exp-client-meta span {
  display: block;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.68);
}

.work-exp-right {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.work-exp-right-head {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.work-view-case-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
}
.work-view-case-link span:first-child {
  height: 36px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--btn-radius);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(16, 16, 22, 0.5);
  backdrop-filter: blur(8px);
  font-size: 13px;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}
.work-view-case-link span:last-child {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: grid;
  place-items: center;
  transition: transform 0.22s ease;
}
.work-view-case-link:hover span:first-child {
  background: #ffffff;
  color: var(--ink-dark);
}
.work-view-case-link:hover span:last-child {
  transform: rotate(-35deg);
}

/* Живое превью видео (строго поверх фонового размытия) */
.work-live-preview-btn {
  position: relative;
  display: block;
  flex: 1;
  width: 100%;
  min-height: 0;
  border-radius: 22px;
  overflow: hidden;
  padding: 0;
  text-align: left;
  z-index: 3;
}

.work-preview-frame {
  position: relative;
  display: block;
  z-index: 3;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #0d0e13;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.52);
}

.work-preview-main-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.work-live-preview-btn:hover .work-preview-main-video {
  transform: scale(1.035);
}

.work-open-video-pill {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  height: 34px;
  padding: 0 16px;
  border-radius: var(--btn-radius);
  background: rgba(14, 14, 19, 0.78);
  backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.22s ease, transform 0.22s ease;
}
.work-live-preview-btn:hover .work-open-video-pill {
  background: var(--accent);
  transform: translateY(-2px);
}

.work-slide-anim {
  animation: slideSwap 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes slideSwap {
  from { opacity: 0.35; transform: translate3d(0, 10px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ==========================================================================
   ФОРМАТЫ ВИДЕО С ДРОПДАУНОМ И ТЁМНЫМ ГРАДИЕНТОМ
   ========================================================================== */
.formats-collapsible-wrap {
  position: relative;
}

.formats-collapsible {
  position: relative;
  max-height: 475px;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  padding-top: 8px;
  padding-bottom: 20px;
}

.formats-collapsible-wrap.is-expanded .formats-collapsible {
  max-height: 2400px;
  padding-bottom: 14px;
}

.formats-bottom-shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(
    to top,
    var(--bg-page) 14%,
    rgba(13, 13, 16, 0.9) 52%,
    rgba(13, 13, 16, 0) 100%
  );
  transition: opacity 0.35s ease;
}

.formats-collapsible-wrap.is-expanded .formats-bottom-shade {
  opacity: 0;
}

.formats-dropdown-row {
  position: relative;
  z-index: 6;
  display: flex;
  justify-content: center;
  margin-top: -24px;
}

.formats-collapsible-wrap.is-expanded .formats-dropdown-row {
  margin-top: 16px;
}

.formats-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--btn-radius);
  background: rgba(28, 28, 36, 0.92);
  backdrop-filter: blur(14px);
  color: #ffffff;
  font-size: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  transition: background 0.22s ease, transform 0.22s ease;
}
.formats-dropdown-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.formats-chevron {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  transition: transform 0.35s ease;
}
.formats-collapsible-wrap.is-expanded .formats-chevron {
  transform: rotate(180deg);
}

.formats-cards-fan {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.format-mini-card {
  width: min(284px, 100%);
  background: var(--bg-card);
  border-radius: var(--card-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
  opacity: var(--fly-p, 1);
  transform:
    translate3d(0, calc((1 - var(--fly-p, 1)) * 56px), 0)
    rotate(calc(var(--card-tilt, 0deg) * var(--fly-p, 1)));
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.28s ease;
  will-change: transform, opacity;
}

.format-mini-card:hover {
  background: var(--bg-card-elev);
  transform: translate3d(0, -8px, 0) rotate(0deg) !important;
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.52);
}

.format-card-pill {
  align-self: center;
  padding: 5px 15px;
  border-radius: var(--btn-radius);
  background: rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #e4e4ec;
}

.format-card-title {
  align-self: center;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.15;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
}

.format-card-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
  line-height: 1.46;
}

.format-card-art {
  margin-top: auto;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.format-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.format-view-pill {
  padding: 8px 20px;
  border-radius: var(--btn-radius);
  background: rgba(255, 255, 255, 0.07);
  font-size: 13.5px;
  transition: background 0.2s ease, color 0.2s ease;
}
.format-view-arrow {
  width: 36px;
  height: 36px;
  border-radius: var(--btn-radius);
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  transition: transform 0.2s ease;
}
.format-mini-card:hover .format-view-pill {
  background: #ffffff;
  color: var(--ink-dark);
}
.format-mini-card:hover .format-view-arrow {
  transform: rotate(-35deg);
}

/* ==========================================================================
   БЛОК «ДЛЯ КОГО МЫ СНИМАЕМ» — ПАПКИ-ВКЛАДКИ СО СФЕРАМИ + ТЁМНЫЙ ГРАДИЕНТ
   ========================================================================== */
.folder-tabs-bar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.folder-tabs-fade {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.folder-tabs-fade::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 110px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to left, var(--bg-page) 6%, rgba(13, 13, 16, 0.8) 48%, rgba(13, 13, 16, 0) 100%);
}

.folder-tabs-fade.is-scrolled-left::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to right, var(--bg-page) 6%, rgba(13, 13, 16, 0.76) 46%, rgba(13, 13, 16, 0) 100%);
}

.folder-tabs-scroll {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 96px 0 4px;
}
.folder-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.folder-tab-btn {
  flex-shrink: 0;
  padding: 12px 22px;
  font-size: 14px;
  color: #cfd0dc;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  margin-bottom: 8px;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.folder-tab-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.folder-tab-btn.is-active {
  background: #181820;
  border-color: transparent;
  color: #ffffff;
  font-weight: 600;
  border-radius: 22px 22px 0 0;
  padding: 15px 26px 17px;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.folder-body-card {
  background: #181820;
  border-radius: 0 30px 30px 30px;
  padding: clamp(24px, 3.2vw, 40px);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(22px, 3.2vw, 42px);
  align-items: center;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.48);
}

.folder-body-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
}

.folder-body-copy h3 {
  width: fit-content;
  font-family: var(--font-body);
  font-size: clamp(22px, 2.5vw, 33px);
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  color: #ffffff;
}

.folder-body-copy p {
  margin: 0;
  font-size: clamp(15.5px, 1.2vw, 18px);
  line-height: 1.56;
  color: #c6c6d2;
}
.folder-body-copy p strong {
  color: #ffffff;
  font-weight: 600;
}

.folder-next-row {
  display: flex;
  justify-content: flex-end;
}

.folder-next-pill {
  width: 62px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.folder-next-pill:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.folder-video-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  overflow: hidden;
  background: #101015;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}
.folder-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   ГОРИЗОНТАЛЬНЫЕ КАРУСЕЛИ С ПЛАВНЫМ ЗАТУХАНИЕМ
   ========================================================================== */
.horiz-fade-wrap {
  position: relative;
}

.horiz-fade-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(64px, 11vw, 150px);
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(to left, var(--bg-page) 6%, rgba(13, 13, 16, 0.78) 46%, rgba(13, 13, 16, 0) 100%);
}

.horiz-fade-wrap.is-scrolled-left::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: clamp(48px, 8vw, 110px);
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(to right, var(--bg-page) 4%, rgba(13, 13, 16, 0.72) 45%, rgba(13, 13, 16, 0) 100%);
}

.cases-sub-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 22px;
}
.cases-sub-header h3 {
  width: fit-content;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 34px);
  text-transform: uppercase;
  margin: 0 0 6px;
}
.cases-sub-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 520px;
}

.cases-nav-btns {
  display: flex;
  gap: 8px;
}
.dark-round-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--btn-radius);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.dark-round-btn:hover {
  background: var(--accent);
}

.cases-horiz-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 355px);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 10px;
  padding-right: clamp(64px, 10vw, 130px);
  cursor: grab;
}
.cases-horiz-track::-webkit-scrollbar {
  display: none;
}

.case-slide-card {
  scroll-snap-align: start;
  background: var(--bg-card);
  border-radius: var(--card-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, background 0.25s ease;
}
.case-slide-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-elev);
}

.case-slide-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  overflow: hidden;
  background: #191920;
}
.case-slide-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: var(--btn-radius);
  background: rgba(15, 15, 20, 0.72);
  backdrop-filter: blur(10px);
  font-size: 11.5px;
  color: #ffffff;
}
.case-slide-dur {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: var(--btn-radius);
  background: rgba(15, 15, 20, 0.72);
  font-size: 11.5px;
  color: #dfdfe8;
}

.case-slide-body {
  padding: 2px 6px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.case-slide-body h4 {
  width: fit-content;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}
.case-slide-body p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.48;
}
.case-slide-foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: #ffffff;
}
.case-slide-foot span:last-child {
  width: 34px;
  height: 34px;
  border-radius: var(--btn-radius);
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.case-slide-card:hover .case-slide-foot span:last-child {
  background: var(--accent);
  transform: rotate(-35deg);
}

/* ==========================================================================
   КАК МЫ РАБОТАЕМ
   ========================================================================== */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.how-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.how-visual-box {
  position: relative;
  aspect-ratio: 4 / 4.2;
  border-radius: 24px;
  overflow: hidden;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.how-visual-box.bg-1 { background: linear-gradient(145deg, #2d2320 0%, #5c3a31 52%, #1d1a1b 100%); }
.how-visual-box.bg-2 { background: linear-gradient(160deg, #23242c 0%, #191a21 100%); }
.how-visual-box.bg-3 { background: linear-gradient(145deg, #1b1d24 0%, #3d2220 55%, #121318 100%); }
.how-visual-box.bg-4 { background: linear-gradient(145deg, #2a211d 0%, #4b3830 50%, #191616 100%); }

.how-num-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.glass-widget {
  width: 100%;
  border-radius: 18px;
  padding: 14px;
  background: rgba(24, 22, 22, 0.64);
  backdrop-filter: blur(16px);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.glass-confirm {
  display: flex;
  align-items: center;
  gap: 10px;
}
.glass-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.glass-confirm-text strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}
.glass-confirm-text span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
}
.glass-check {
  margin-left: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink-dark);
  font-size: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.phone-sheet-widget {
  width: 100%;
  background: #f5f4f0;
  color: var(--ink-dark);
  border-radius: 20px;
  padding: 16px 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.phone-sheet-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
}
.phone-sheet-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #3a3a42;
}
.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(36, 178, 96, 0.16);
  color: #1f9d55;
  font-size: 9px;
  display: grid;
  place-items: center;
}

.glass-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.glass-list-head {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
  padding-bottom: 5px;
}
.glass-list-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
.glass-list-row i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.glass-chart svg {
  width: 100%;
  height: 84px;
}
.glass-chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.76);
  margin-top: 4px;
}

.how-copy h3 {
  width: fit-content;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #ffffff;
}
.how-copy p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ==========================================================================
   ГОТОВЫЕ УСЛУГИ И ОТЗЫВЫ
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card-smooth {
  background: var(--bg-card);
  border-radius: var(--card-radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  transition: transform 0.25s ease, background 0.25s ease;
}
.service-card-smooth:hover {
  transform: translateY(-4px);
  background: var(--bg-card-elev);
}
.service-card-smooth.is-featured {
  background: linear-gradient(165deg, #27191a 0%, #191922 100%);
}

.service-tag-pill {
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: var(--btn-radius);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #dfdfe8;
}
.service-card-smooth.is-featured .service-tag-pill {
  background: var(--accent);
  color: #ffffff;
}

.service-card-smooth h3 {
  width: fit-content;
  font-family: var(--font-display);
  font-size: 20px;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.15;
}

.service-price-val {
  font-family: var(--font-display);
  font-size: 22px;
  color: #ffffff;
}
.service-price-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.service-summary-text {
  margin: 0;
  font-size: 14px;
  color: #ccccd4;
}

.service-metrics {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-metric-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
}
.service-metric-line span {
  color: var(--muted);
}

.service-includes {
  list-style: none;
  padding: 0;
  margin: 0 0 4px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
  color: #e2e2ea;
}
.service-includes li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.service-includes li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 600;
}

.service-card-smooth .pill-btn {
  margin-top: auto;
  width: 100%;
}

.reviews-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 380px);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
  padding-right: clamp(64px, 10vw, 130px);
}
.reviews-track::-webkit-scrollbar {
  display: none;
}

.review-card-super {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
}

.review-portrait-box {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  overflow: hidden;
  background: #1f1f26;
}
.review-portrait-box .art-svg {
  transition: transform 0.35s ease;
}
.review-card-super:hover .review-portrait-box .art-svg {
  transform: scale(1.04);
}

.review-play-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 15px;
  border-radius: var(--btn-radius);
  background: rgba(15, 15, 20, 0.76);
  backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.review-card-super:hover .review-play-badge {
  background: var(--accent);
  transform: translateY(-2px);
}

.review-person {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}
.review-quote-text {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.48;
  color: #dfdfe8;
  margin: 6px 0 8px;
}
.review-subnote {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.reviews-footer-bar {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.reviews-segments {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 320px;
}
.rev-seg {
  height: 4px;
  flex: 1;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.25s ease;
}
.rev-seg.active {
  background: var(--accent);
}
.reviews-nav-btns {
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   ПОЛНОЦЕННЫЕ СТРАНИЦЫ НАПРАВЛЕНИЯ И КЕЙСА
   ========================================================================== */
.subpage-top-offset {
  padding-top: calc(var(--header-h) + 18px);
}

.subpage-tight-section {
  padding-block: 16px;
}

.subpage-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.subpage-back-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.back-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px 11px;
  border-radius: var(--btn-radius);
  background: rgba(255, 255, 255, 0.07);
  font-size: 13.5px;
  color: #e4e4ec;
  transition: background 0.2s ease;
}
.back-pill-link:hover {
  background: rgba(255, 255, 255, 0.14);
}

.subpage-hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}

.subpage-h1 {
  width: fit-content;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 48px);
  text-transform: uppercase;
  line-height: 1.1;
  margin: 10px 0 14px;
}

.subpage-lead {
  margin: 0 0 22px;
  font-size: 16px;
  color: #ccccd6;
  line-height: 1.58;
}

.subpage-cards-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.subpage-info-card {
  background: var(--bg-card);
  border-radius: var(--card-radius);
  padding: 26px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
}
.subpage-info-card h3 {
  width: fit-content;
  font-family: var(--font-display);
  font-size: 19px;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.subpage-info-card p {
  margin: 0;
  color: #ccccd6;
  font-size: 15px;
  line-height: 1.58;
}

/* ==========================================================================
   ФУТЕР И КОМПАКТНАЯ КАПСУЛЬНАЯ КНОПКА С БОЛЬШОЙ ТОЛСТОЙ СТРЕЛКОЙ
   ========================================================================== */
.site-footer {
  padding: clamp(32px, 4.2vw, 56px) 0 34px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.footer-kicker {
  font-family: var(--font-display);
  font-size: 13.5px;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.footer-heading {
  display: inline-block;
  font-size: clamp(32px, 5vw, 70px);
}

.footer-sub {
  margin: 0;
  max-width: 500px;
  color: var(--muted);
  font-size: 15.5px;
}

.footer-capsule-cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 999px;
  background: #16161d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease;
}

.footer-capsule-label {
  padding: 15px 32px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.36);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #ffffff;
  white-space: nowrap;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.footer-capsule-arrow {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent);
  color: #111115;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.22s ease, color 0.22s ease;
}

.footer-capsule-cta:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
}
.footer-capsule-cta:hover .footer-capsule-label {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--ink-dark);
}
.footer-capsule-cta:hover .footer-capsule-arrow {
  transform: rotate(-35deg) scale(1.05);
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-nav a {
  padding-bottom: 6px;
}
.footer-nav a:hover {
  color: #ffffff;
}

/* ==========================================================================
   МОДАЛЬНЫЕ ОКНА
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 8, 11, 0.8);
  backdrop-filter: blur(18px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.is-open {
  display: flex;
}

.quicklook-window,
.detail-window {
  width: min(820px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: #222229;
  color: #ffffff;
  border-radius: 30px;
  padding: 22px 26px 28px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65);
  animation: popIn 0.24s ease;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.ql-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.ql-dots {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.ql-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  display: inline-block;
}
.ql-dot-close {
  background: var(--accent);
  transition: transform 0.18s ease;
}
.ql-dot-close:hover {
  transform: scale(1.16);
}

.ql-nav-Controls {
  display: inline-flex;
  gap: 6px;
}
.ql-step-btn,
.pill-close-btn {
  padding: 6px 14px;
  border-radius: var(--btn-radius);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #e6e6ee;
  transition: background 0.2s ease;
}
.ql-step-btn:hover,
.pill-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.ql-video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #111115;
}
.ql-video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ql-caption {
  margin-top: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.ql-caption-text {
  max-width: 500px;
}
.ql-caption-text h3 {
  width: fit-content;
  font-family: var(--font-body);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  margin: 0 0 6px;
}
.ql-caption-text p {
  margin: 0;
  font-size: 14.5px;
  color: #c7c7d1;
}

.modal-detail-head h2 {
  width: fit-content;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  text-transform: uppercase;
  margin: 10px 0 10px;
}
.modal-detail-head p {
  margin: 0 0 18px;
  color: #ccccd6;
  font-size: 15px;
}
.modal-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 20px 0 24px;
}
.modal-info-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 18px;
}
.modal-info-box h4 {
  width: fit-content;
  margin: 0 0 12px;
  font-size: 14px;
  color: #ffffff;
}

/* ==========================================================================
   ТАЧ- И МОБИЛЬНЫЙ АДАПТИВ: ДРУГАЯ МЕХАНИКА ВЗАИМОДЕЙСТВИЯ (БЕЗ ВРАЩЕНИЙ И HOVER)
   ========================================================================== */

/* 1. Устройства с сенсорным экраном (без мыши): убираем hover-трансформации, вращения и Trim Path линии */
@media (hover: none), (pointer: coarse) {
  .trim-underline-svg {
    display: none !important;
  }

  .format-mini-card {
    opacity: 1 !important;
    transform: none !important;
  }

  .pill-accent:hover,
  .pill-ghost:hover,
  .case-slide-card:hover,
  .service-card-smooth:hover,
  .formats-dropdown-btn:hover,
  .footer-capsule-cta:hover {
    transform: none !important;
  }

  .fs-link:hover .fs-link-circle,
  .work-view-case-link:hover span:last-child,
  .format-mini-card:hover .format-view-arrow,
  .case-slide-card:hover .case-slide-foot span:last-child,
  .footer-capsule-cta:hover .footer-capsule-arrow {
    transform: none !important;
  }

  .clients-bento-grid.has-hover .client-bento-cell:not(.is-hovered),
  .clients-bento-grid.has-hover .client-bento-cell.is-hovered {
    transform: none !important;
    opacity: 1 !important;
  }

  .client-bento-cell .client-wordmark {
    color: #ffffff;
    transform: none !important;
  }

  .client-bento-cell .client-note {
    max-height: none;
    opacity: 0.85;
  }

  /* Тактильный отклик на нажатие пальцем */
  .pill-btn:active,
  .floating-case-file:active,
  .format-mini-card:active,
  .work-acc-panel:not(.is-expanded):active,
  .footer-capsule-cta:active {
    transform: scale(0.98) !important;
  }
}

/* 2. Планшеты и компактные экраны (<= 1140px) */
@media (max-width: 1140px) {
  :root {
    --box-width: 92vw;
    --header-h: 68px;
  }

  .dock-links,
  .dock-divider {
    display: none;
  }

  .nav-dock {
    width: 92vw;
    justify-content: space-between;
    padding: 6px 8px 6px 14px;
  }

  /* Hero без орбитального вращения: компактный экран + горизонтальная свайп-лента историй */
  .hero-widescreen {
    min-height: auto;
    padding: calc(var(--header-h) + 28px) 0 28px;
  }

  .hero-inner-stage {
    width: 100%;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
  }

  .hero-center {
    width: 92vw;
  }

  .hero-files-layer {
    position: relative;
    inset: auto;
    width: 100%;
    pointer-events: auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 6px 4vw 12px;
    -webkit-overflow-scrolling: touch;
  }
  .hero-files-layer::-webkit-scrollbar {
    display: none;
  }

  .floating-case-file {
    position: relative;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    flex: 0 0 104px;
    width: 104px;
    scroll-snap-align: start;
    background: rgba(20, 20, 26, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 6px;
  }

  .floating-case-thumb {
    width: 78px;
    height: 78px;
    border-radius: 16px;
    transform: none !important;
  }

  .floating-case-label {
    background: transparent;
    backdrop-filter: none;
    padding: 0 2px;
    font-size: 11px;
    transform: none !important;
  }

  /* Нативный свайп фотоленты со съёмок без JS-сдвига */
  .dg-track-viewport {
    overflow-x: auto;
    scrollbar-width: none;
    padding-inline: 4vw;
    -webkit-overflow-scrolling: touch;
  }
  .dg-track-viewport::-webkit-scrollbar {
    display: none;
  }
  .dg-track {
    transform: none !important;
  }

  /* Клиенты: статичная сетка 2 колонки с сразу открытым описанием (без hover) */
  .clients-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .client-bento-cell {
    aspect-ratio: auto;
    min-height: 112px;
    padding: 16px;
    gap: 6px;
  }

  .client-wordmark {
    color: #ffffff;
    font-size: 16px;
  }

  .client-note {
    max-height: none;
    opacity: 0.82;
    font-size: 12px;
  }

  /* Наши лучшие работы на планшетах и смартфонах: вертикальный аккордеон по тапу */
  .best-works-accordion {
    flex-direction: column;
    height: auto;
    gap: 10px;
  }

  .work-acc-panel {
    flex: none;
    width: 100%;
    min-height: 72px;
    border-radius: 24px;
    transition: border-color 0.25s ease, background 0.25s ease;
  }

  .work-acc-panel.is-expanded {
    flex: none;
    border-radius: 26px;
  }

  .work-collapsed-view {
    position: relative;
    inset: auto;
    min-height: 72px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 12px 16px;
  }

  .work-acc-panel.is-expanded .work-collapsed-view {
    display: none;
  }

  .work-strip-icon-badge {
    width: 44px;
    height: 44px;
  }

  .work-collapsed-mobile-meta {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
    flex: 1;
    min-width: 0;
  }
  .work-collapsed-mobile-meta strong {
    font-family: var(--font-display);
    font-size: 14px;
    text-transform: uppercase;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .work-collapsed-mobile-meta span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
  }

  .work-collapsed-mobile-plus {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 18px;
    flex-shrink: 0;
  }

  .work-expanded-view {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    display: none;
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .work-acc-panel.is-expanded .work-expanded-view {
    display: grid;
    opacity: 1;
    visibility: visible;
  }

  .work-exp-right {
    order: -1;
    gap: 12px;
  }

  .work-expanded-bg-blur {
    left: -6%;
    right: -6%;
    top: -4%;
    bottom: auto;
    width: 112%;
    height: 58%;
  }

  .work-live-preview-btn {
    aspect-ratio: 16 / 9.5;
    flex: none;
  }

  /* Форматы без наклонов и вращений */
  .format-mini-card {
    transform: none !important;
    opacity: 1 !important;
    width: calc(50% - 10px);
  }

  .folder-body-card,
  .services-grid,
  .subpage-hero-split {
    grid-template-columns: 1fr;
  }

  .folder-video-wrap {
    order: -1;
  }

  .how-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 3. Смартфоны (<= 720px) */
@media (max-width: 720px) {
  :root {
    --box-width: 92vw;
    --header-h: 62px;
  }

  .seamless-section {
    padding-block: 22px;
  }

  .site-header {
    top: 10px;
    padding: 0 4vw;
  }

  .nav-dock {
    width: 100%;
    padding: 5px 6px 5px 12px;
  }

  .dock-menu-btn {
    padding: 8px 13px;
    font-size: 12.5px;
  }

  .dock-cta-btn span:first-child {
    display: none;
  }
  .dock-cta-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .hero-line {
    white-space: normal;
  }

  .hero-title {
    font-size: clamp(23px, 6.8vw, 32px);
    line-height: 1.22;
  }

  .tape-heading-wrap {
    padding: 4px 14px 7px;
  }
  .tape-heading-wrap::before {
    inset: -4px -10px -6px -10px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  .hero-actions .pill-btn {
    width: 100%;
    padding: 14px 20px;
  }

  .dg-still-card {
    width: 152px;
  }

  /* Шоурил на смартфоне не обрезает контент */
  .showreel-player-card {
    aspect-ratio: auto;
    min-height: 260px;
    padding: 16px;
  }
  .showreel-glass-cta {
    padding: 18px 16px;
    width: 100%;
  }
  .play-circle-btn {
    width: 50px;
    height: 50px;
    font-size: 17px;
  }

  /* В клиентах на телефоне компактно показываем первые 6 карточек + кнопку раскрытия остальных */
  .clients-bento-grid:not(.is-mobile-expanded) .client-bento-cell:nth-child(n + 7) {
    display: none;
  }
  .clients-mobile-more-row {
    display: flex;
  }
  .clients-bento-grid.is-mobile-expanded + .clients-mobile-more-row [data-expand-clients] {
    display: none;
  }

  .client-bento-cell {
    padding: 14px 12px;
    border-radius: 18px;
    min-height: 98px;
  }
  .client-wordmark {
    font-size: 13.5px !important;
    letter-spacing: 0.04em !important;
  }
  .client-note {
    font-size: 11px;
    line-height: 1.35;
  }

  /* Карточки форматов в одну ровную колонку без наклонов */
  .formats-collapsible {
    max-height: 540px;
  }
  .format-mini-card {
    width: 100%;
    padding: 18px;
    border-radius: 22px;
  }

  /* Вкладки сфер: чистый тач-свайп на всю ширину без мелких кнопок стрелок */
  .folder-tabs-bar-wrap .cases-nav-btns {
    display: none;
  }
  .folder-tabs-scroll {
    padding-right: 48px;
  }
  .folder-tab-btn {
    padding: 10px 18px;
    font-size: 13px;
  }
  .folder-tab-btn.is-active {
    padding: 12px 20px 14px;
    border-radius: 18px 18px 0 0;
  }
  .folder-body-card {
    border-radius: 0 22px 22px 22px;
    padding: 18px;
    gap: 16px;
  }

  /* Этапы работы компактнее по высоте */
  .how-grid,
  .modal-two-cols,
  .subpage-cards-2col {
    grid-template-columns: 1fr;
  }
  .how-visual-box {
    aspect-ratio: 16 / 10;
  }

  .reviews-track,
  .cases-horiz-track {
    grid-auto-columns: 84vw;
    padding-right: 12vw;
  }
  .reviews-nav-btns,
  .cases-sub-header .cases-nav-btns {
    display: none;
  }

  .footer-capsule-cta {
    padding: 8px;
    gap: 10px;
  }
  .footer-capsule-label {
    padding: 13px 22px;
    font-size: 15px;
  }
  .footer-capsule-arrow {
    width: 48px;
    height: 48px;
  }

  .modal-overlay {
    padding: 12px;
    align-items: flex-end;
  }
  .quicklook-window,
  .detail-window {
    border-radius: 24px;
    padding: 18px;
    max-height: 88dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal-up,
  .format-mini-card {
    opacity: 1 !important;
    transform: none !important;
  }
  .tape-heading-wrap::before {
    opacity: 1 !important;
    clip-path: inset(0 0 0 0) !important;
  }
}
