/* ============================================================
   DUGA20 PRODUCTION · КИНОКОМПАНИЯ И ВИДЕОПРОИЗВОДСТВО
   Стиль: A24 Films / Sreda TV (Brutalist Cinema Minimalism)
   Палитра: строгий монохром (Deep Black, Graphite, Pure White)
   Фактура: 35mm Film Grain / Noise Overlay
   Геометрия: рубленые прямые грани (border-radius: 0), 1px рамки
   Анимация: кинематографичные микроанимации при наведении
   ============================================================ */

:root {
  /* Базовый монохром */
  --bg-main: #060608;
  --bg-surface: #0B0B0E;
  --bg-card: #101014;
  --bg-card-hover: #16161B;
  
  --white: #FFFFFF;
  --white-90: rgba(255, 255, 255, 0.90);
  --white-70: rgba(255, 255, 255, 0.70);
  --white-50: rgba(255, 255, 255, 0.50);
  --white-30: rgba(255, 255, 255, 0.30);
  --white-15: rgba(255, 255, 255, 0.15);
  --white-08: rgba(255, 255, 255, 0.08);

  --border: rgba(255, 255, 255, 0.14);
  --border-light: rgba(255, 255, 255, 0.28);
  --border-active: #FFFFFF;

  --black: #000000;
  --error: #FF3B30;

  /* Геометрия: строго рубленые прямые грани */
  --radius: 0px;
  --pill: 0px;

  /* Типографика */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;

  /* Плавность */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.35s;
}

/* Сброс */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0 !important; /* Рубленые грани */
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg-main);
  color: var(--white);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) #060608;
}

/* Ультратонкий архитектурный скроллбар */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: #060608;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--white);
}

body {
  background: var(--bg-main);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--white);
  color: var(--black);
}

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

a {
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
a:hover {
  text-decoration: none;
  opacity: 0.8;
}

.container {
  width: min(1320px, 92%);
  margin: 0 auto;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--white);
}

/* ============================================================
   ПЛЁНОЧНЫЙ ШУМ (Film Grain Noise Overlay)
   ============================================================ */
.noise-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
  opacity: 0.052;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ============================================================
   КНОПКИ (A24 / Sreda Monochromatic Invert)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--white-50);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
  min-height: 48px;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn-primary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-dark {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--white-70);
}
.btn-ghost:hover {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}

.btn-frost {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border);
  color: var(--white);
  backdrop-filter: blur(12px);
}
.btn-frost:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 0.14em;
  min-height: 40px;
}

.btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  background: transparent !important;
  color: var(--white-50) !important;
  border-color: var(--white-15) !important;
}

/* ============================================================
   ШАПКА (Site Header)
   ============================================================ */
.scroll-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--white);
  z-index: 101;
  transition: width 0.08s linear;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(6, 6, 8, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.timecode-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: rgba(6, 6, 8, 0.7);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--white);
}
.timecode-badge .tc-prefix {
  color: var(--white-50);
  font-weight: 700;
}
.timecode-badge .tc-val {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 6px 14px;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.logo:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  opacity: 1;
}
.logo .brand-highlight {
  color: var(--white);
  font-weight: 800;
}
.logo .logo-sub {
  color: var(--white-50);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  color: var(--white-70);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s var(--ease);
}
.main-nav a:hover {
  color: var(--white);
  opacity: 1;
}
.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-phone {
  color: var(--white-70);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.header-phone:hover {
  color: var(--white);
  opacity: 1;
}

.burger {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  transition: border-color var(--duration) var(--ease);
}
.burger:hover {
  border-color: var(--white);
}

/* ============================================================
   ГЛАВНЫЙ ЭКРАН (Hero / Cinema Stage)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border);
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-main);
  filter: contrast(1.05) brightness(0.85);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 6, 8, 0.65) 0%, rgba(6, 6, 8, 0.2) 30%),
    linear-gradient(180deg, rgba(6, 6, 8, 0) 45%, rgba(6, 6, 8, 0.75) 80%, rgba(6, 6, 8, 0.98) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 180px 0 100px;
  text-align: left;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--white-90);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(6, 6, 8, 0.6);
  padding: 8px 16px;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.hero-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--white);
}

.hero h1 {
  font-size: clamp(40px, 7.5vw, 98px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin-bottom: 28px;
  text-transform: uppercase;
  max-width: 18ch;
}

.hero-lead {
  max-width: 680px;
  margin: 0 0 40px;
  color: var(--white-70);
  font-size: clamp(16px, 1.8vw, 20px);
  letter-spacing: -0.015em;
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white-90);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 24px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  transition: all var(--duration) var(--ease);
}
.hero-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
  opacity: 1;
}

.scroll-hint {
  position: absolute;
  right: 5%;
  bottom: 30px;
  z-index: 3;
  color: var(--white-50);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-left: 1px solid var(--border);
  padding-left: 14px;
}

/* ============================================================
   БЕСКОНЕЧНАЯ БЕГУЩАЯ СТРОКА (A24 Marquee Tape)
   ============================================================ */
.marquee-strip {
  background: var(--bg-main);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
  padding: 14px 0;
}
.marquee-track {
  display: inline-flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}
.marquee-track.reverse {
  animation: marquee-rev 40s linear infinite;
}
.marquee-strip:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-track span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-50);
}

@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
@keyframes marquee-rev {
  0% { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* ============================================================
   СТРИП ПОКАЗАТЕЛЕЙ (Architectural Metrics Grid)
   ============================================================ */
.metrics-strip {
  background: var(--bg-main);
  color: var(--white);
  padding: 0;
  border-bottom: 1px solid var(--border);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--border);
}

.metric-item {
  border-right: 1px solid var(--border);
  padding: 44px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--bg-main);
  transition: background var(--duration) var(--ease);
}
.metric-item:hover {
  background: var(--bg-surface);
}

.metric-val {
  font-family: var(--font-mono);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.metric-val span {
  color: var(--white-50);
  font-size: 0.7em;
  margin-left: 2px;
}

.metric-lbl {
  color: var(--white-50);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  line-height: 1.4;
}

/* ============================================================
   СЕКЦИИ И ЗАГОЛОВКИ (Editorial Headings)
   ============================================================ */
.section {
  padding: 120px 0;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.section.tinted {
  background: var(--bg-surface);
}
.section.dark {
  background: var(--bg-main);
}

.sec-head {
  text-align: left;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sec-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white-50);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.sec-kicker::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--white);
}

.sec-title {
  font-size: clamp(32px, 4.5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.sec-sub {
  color: var(--white-70);
  max-width: 720px;
  font-size: 17px;
  line-height: 1.6;
}

/* ============================================================
   ПОРТФОЛИО / КАТАЛОГ РАБОТ (A24 / Sreda Showcase)
   ============================================================ */
.works-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.filters {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  width: fit-content;
}

.filter-btn {
  padding: 10px 22px;
  cursor: pointer;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  color: var(--white-50);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all var(--duration) var(--ease);
}
.filter-btn:last-child {
  border-right: none;
}
.filter-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}
.filter-btn.active {
  color: var(--black);
  background: var(--white);
}

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  background: var(--bg-main);
}
.view-btn {
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  color: var(--white-50);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 18px;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.view-btn:last-child {
  border-right: none;
}
.view-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.view-btn.active {
  background: var(--white);
  color: var(--black);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  transition: all 0.3s ease;
}

/* Режим горизонтальной киноленты (Click & Drag Filmstrip) */
.works-grid.reel-view {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 24px;
  padding: 10px 4px 30px;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.works-grid.reel-view:active {
  cursor: grabbing;
}
.works-grid.reel-view .work-card {
  flex: 0 0 clamp(360px, 45vw, 620px);
  min-width: 340px;
}
.works-grid.reel-view .work-card.featured {
  grid-column: auto;
  flex: 0 0 clamp(440px, 55vw, 760px);
}
.works-grid.reel-view .work-media {
  aspect-ratio: 21 / 10;
}

.work-card {
  position: relative;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              transform var(--duration) var(--ease);
  overflow: hidden;
}

/* Микроанимация рамки при наведении */
.work-card:hover {
  border-color: var(--white);
  box-shadow: 0 0 0 1px var(--white), 0 20px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(-4px);
}

.work-media {
  position: relative;
  overflow: hidden;
  background: #000000;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--border);
}

.work-card.featured {
  grid-column: span 2;
}
.work-card.featured .work-media {
  aspect-ratio: 21 / 10;
}

.work-media video,
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
  filter: brightness(0.92) contrast(1.05);
}

/* Zoom видео и постера при наведении */
.work-card:hover .work-media video,
.work-card:hover .work-media img {
  transform: scale(1.05);
  filter: brightness(1) contrast(1.08);
}

/* Бейджи метаданных A24 */
.work-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.meta-tag {
  background: rgba(6, 6, 8, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border: 1px solid var(--border);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Планшетка Play в стиле кино-хлопушки */
.play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: 2;
  background: rgba(6, 6, 8, 0.35);
}

.play-badge span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(6, 6, 8, 0.9);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--white);
  backdrop-filter: blur(14px);
  transform: scale(0.94);
  transition: transform 0.3s var(--ease);
}

.work-card:hover .play-badge {
  opacity: 1;
}
.work-card:hover .play-badge span {
  transform: scale(1);
}

.work-meta {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  background: var(--bg-card);
}

.work-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.work-line {
  color: var(--white-50);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.work-title {
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  transition: color 0.2s ease;
}
.work-card:hover .work-title {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.work-desc {
  color: var(--white-70);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 4px;
}

/* ============================================================
   НАПРАВЛЕНИЯ ПРОИЗВОДСТВА (Services Grid)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--border);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              background var(--duration) var(--ease),
              transform var(--duration) var(--ease);
  position: relative;
}

.service-card:hover {
  border-color: var(--white);
  box-shadow: 0 0 0 1px var(--white);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.service-icon {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--white);
  border: 1px solid var(--border);
  padding: 4px 10px;
  width: fit-content;
  background: rgba(255, 255, 255, 0.04);
}

.service-card h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.service-card p {
  color: var(--white-70);
  font-size: 14.5px;
  flex: 1;
  line-height: 1.6;
}

.service-price {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 8px;
}
.service-price small {
  display: block;
  color: var(--white-50);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* ============================================================
   ПРОИЗВОДСТВЕННЫЙ ПАЙПЛАЙН (Architecture of Pipeline)
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.about-text {
  position: sticky;
  top: 100px;
}

.about-text p {
  color: var(--white-70);
  margin-bottom: 24px;
  font-size: 17px;
  line-height: 1.6;
}
.about-text p b {
  color: var(--white);
  font-weight: 600;
}

.pipeline {
  margin-top: 40px;
  border-left: 1px solid var(--border);
  padding-left: 32px;
  display: grid;
  gap: 32px;
}

.pipe-step {
  position: relative;
  padding-bottom: 8px;
  transition: opacity 0.35s ease;
  opacity: 0.6;
}
.pipe-step.active,
.pipe-step:hover {
  opacity: 1;
}

.pipe-step::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 6px;
  width: 9px;
  height: 9px;
  background: var(--bg-main);
  border: 1px solid var(--white);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.pipe-step.active::before {
  background: var(--white);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.pipe-step b {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.pipe-step span {
  color: var(--white-70);
  font-size: 14.5px;
  line-height: 1.5;
}

.gear-card {
  background: var(--bg-card);
  padding: 36px;
  border: 1px solid var(--border);
}
.gear-card h3 {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}
.gear-card ul {
  list-style: none;
  display: grid;
  gap: 14px;
}
.gear-card li {
  color: var(--white-70);
  font-size: 14.5px;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.gear-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--white-50);
  font-family: var(--font-mono);
}
.gear-card .gear-note {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--white-50);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
}

/* ============================================================
   КАЛЬКУЛЯТОР ЗАКАЗА (Brutalist Minimalist Calculator)
   ============================================================ */
.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.calc-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px;
}

.calc-block + .calc-block {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.calc-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.calc-label output {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  font-feature-settings: "tnum";
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.type-option {
  position: relative;
}
.type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  height: 100%;
  background: var(--bg-main);
  min-height: 94px;
}
.type-card b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
  color: var(--white-90);
}
.type-card span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--white-50);
  font-feature-settings: "tnum";
}

.type-card:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.03);
}

.type-option input:checked + .type-card {
  border-color: var(--white);
  box-shadow: 0 0 0 1px var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.type-option input:checked + .type-card b {
  color: var(--white);
}

.opt-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.opt-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  background: var(--bg-main);
}
.opt-item:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.opt-item input {
  accent-color: var(--white);
  width: 16px;
  height: 16px;
  flex: none;
}
.opt-item .opt-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--white-90);
}
.opt-item .opt-price {
  margin-left: auto;
  color: var(--white-50);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Слайдеры */
input[type="range"] {
  width: 100%;
  accent-color: var(--white);
  height: 24px;
  cursor: pointer;
  background: transparent;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--bg-main);
}
.switch-row .sw-text b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}
.switch-row .sw-text span {
  color: var(--white-50);
  font-size: 13px;
}

.switch {
  position: relative;
  width: 48px;
  height: 26px;
  flex: none;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}
.switch .track {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--border);
  transition: background var(--duration) var(--ease);
}
.switch .thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--white-50);
  transition: transform var(--duration) var(--ease), background var(--duration) var(--ease);
}
.switch input:checked ~ .track {
  background: var(--white);
}
.switch input:checked ~ .thumb {
  transform: translateX(22px);
  background: var(--black);
}

.calc-summary {
  position: sticky;
  top: 90px;
  background: var(--bg-card);
  padding: 40px;
  border: 1px solid var(--border);
}

.calc-price {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
}

#calc-days {
  display: block;
  color: var(--white-50);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 10px;
}

.calc-breakdown {
  margin: 28px 0;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: grid;
  gap: 12px;
}

.calc-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
  color: var(--white-70);
}
.calc-line b {
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.calc-summary .btn {
  width: 100%;
}

.calc-note {
  color: var(--white-50);
  font-size: 12px;
  margin-top: 18px;
  line-height: 1.5;
}

/* ============================================================
   КОНТАКТЫ И ФОРМА ЗАЯВКИ (152-ФЗ РФ)
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: start;
}

.lead-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-70);
}
.field label i {
  color: var(--white);
  font-style: normal;
}

.field input,
.field select,
.field textarea {
  background: var(--bg-main);
  border: 1px solid var(--border);
  padding: 14px 18px;
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  width: 100%;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--white);
  box-shadow: 0 0 0 1px var(--white);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--white-30);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ffffff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

.agree {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--white-70);
  line-height: 1.5;
}
.agree input {
  accent-color: var(--white);
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex: none;
}
.agree a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.agree a:hover {
  opacity: 1;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.form-status {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.form-status.ok {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border: 1px solid var(--white);
}
.form-status.err {
  color: var(--error);
  border: 1px solid var(--error);
  padding: 8px 14px;
}

.contact-card {
  background: var(--bg-card);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: 1px solid var(--border);
}
.contact-card h3 {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

.contact-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-line span {
  color: var(--white-50);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.contact-line b,
.contact-line a {
  font-size: 16px;
  color: var(--white);
  font-weight: 600;
}

.contact-messengers {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--white);
  background: var(--bg-main);
  transition: all var(--duration) var(--ease);
}
.chip:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  opacity: 1;
}

.contact-hours {
  color: var(--white-50);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

/* ============================================================
   МОДАЛЬНЫЕ ОКНА (Monochrome Cinema Modals)
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(6, 6, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.modal.open {
  display: flex;
}

.modal-box {
  width: min(1040px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--bg-card);
  border: 1px solid var(--white);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  animation: modalEnter 0.3s var(--ease);
}

@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.97) translateY(10px); }
  to { opacity: 1; transform: none; }
}

.modal-video {
  aspect-ratio: 16 / 9;
  background: #000000;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.modal-video video {
  width: 100%;
  height: 100%;
}

.modal-body {
  padding: 30px 36px 36px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  background: var(--bg-card);
}
.modal-body h3 {
  font-size: 24px;
  margin-top: 8px;
}
.modal-body p {
  color: var(--white-70);
  font-size: 15px;
  margin-top: 10px;
  max-width: 68ch;
  line-height: 1.6;
}

.modal-close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--white);
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 16px;
  flex: none;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}
.modal-close:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

/* Модальное окно политики конфиденциальности */
.privacy-modal-box {
  max-width: 860px;
  padding: 44px;
  background: var(--bg-card);
  border: 1px solid var(--white);
  max-height: 85vh;
  overflow-y: auto;
}
.privacy-modal-box h2 {
  font-size: 26px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.privacy-modal-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--white-70);
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 20px;
}
.privacy-modal-body p {
  margin-bottom: 16px;
}
.privacy-modal-body b {
  color: var(--white);
}

/* ============================================================
   ПЛАШКА СОГЛАСИЯ НА COOKIES (152-ФЗ РФ)
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  z-index: 180;
  background: rgba(11, 11, 14, 0.96);
  color: var(--white);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.cookie-banner.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cookie-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--white-70);
  flex: 1;
  max-width: 900px;
}
.cookie-text b {
  color: var(--white);
}
.cookie-text a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.btn-cookie-accept {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  font-size: 12px;
  padding: 10px 22px;
  min-height: 42px;
}
.btn-cookie-accept:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-cookie-essential {
  background: transparent;
  color: var(--white-70);
  border-color: var(--border);
  font-size: 12px;
  padding: 10px 18px;
  min-height: 42px;
}
.btn-cookie-essential:hover {
  border-color: var(--white);
  color: var(--white);
}

/* ============================================================
   ТОСТ УВЕДОМЛЕНИЙ
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 210;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  background: var(--bg-card);
  border: 1px solid var(--white);
  color: var(--white);
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  transition: all 0.28s var(--ease);
  max-width: min(92vw, 560px);
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.err {
  border-color: var(--error);
  color: var(--error);
}

/* ============================================================
   ПОДВАЛ САЙТА (Architectural Footer)
   ============================================================ */
.site-footer {
  background: var(--bg-main);
  color: var(--white);
  padding: 60px 0 50px;
  border-top: 1px solid var(--border);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-copy {
  color: var(--white-50);
  font-size: 13px;
  font-family: var(--font-mono);
}
.footer-copy b {
  color: var(--white);
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--white-50);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-nav a:hover {
  color: var(--white);
  opacity: 1;
}

/* ============================================================
   ПЛАВНОЕ ПОЯВЛЕНИЕ (Reveal)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   АДАПТИВНОСТЬ ПОД МОБИЛЬНЫЕ УСТРОЙСТВА
   ============================================================ */
@media (max-width: 1080px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-layout { grid-template-columns: minmax(0, 1fr); }
  .calc-summary { position: static; }
  .about-grid, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-item:nth-child(2) { border-right: none; }

  /* Мобильная навигация */
  .main-nav, .header-phone { display: none; }
  .burger { display: block; }

  .site-header.open {
    background: rgba(6, 6, 8, 0.98);
  }
  .site-header.open .main-nav {
    display: flex;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 64px);
    height: calc(100svh - 64px);
    flex-direction: column;
    gap: 0;
    padding: 30px 6%;
    background: rgba(6, 6, 8, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    overflow-y: auto;
    z-index: 99;
    border-top: 1px solid var(--border);
  }
  .site-header.open .main-nav a {
    padding: 20px 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--border);
    color: var(--white);
  }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 18px;
  }
  .cookie-actions {
    flex-direction: column;
    gap: 10px;
  }
  .cookie-actions .btn {
    width: 100%;
  }
  .modal-body {
    flex-direction: column;
  }
  .modal-close {
    order: -1;
    align-self: flex-end;
  }
}

@media (max-width: 640px) {
  .container { width: min(100%, 92%); }
  .works-grid { grid-template-columns: 1fr; }
  .work-card.featured { grid-column: span 1; }
  .work-card.featured .work-media { aspect-ratio: 16 / 10; }
  .services-grid { grid-template-columns: 1fr; }
  .form-grid, .type-grid, .opt-list { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-item { border-right: none; }
  .hero-content { padding: 140px 0 80px; }
  .header-cta .btn { display: none; }
  .logo .logo-sub { display: none; }
  .calc-panel { padding: 24px; }
  .calc-summary { padding: 24px; }
  .lead-form { padding: 24px; }
  .contact-card { padding: 24px; }
  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-nav {
    flex-direction: column;
    gap: 14px;
  }
}
