/**
 * Energo Prom — main styles (BEM)
 * Design: industrial-professional, dark navy + amber accent
 */

/* ==========================================================================
   Variables
   ========================================================================== */

:root {
  --color-bg: #0f1419;
  --color-bg-alt: #161d27;
  --color-bg-card: #1c2532;
  --color-bg-muted: #121820;
  --color-surface: #232f3e;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #e8edf4;
  --color-text-muted: #94a3b8;
  --color-primary: #f59e0b;
  --color-primary-hover: #fbbf24;
  --color-primary-dark: #d97706;
  --color-accent: #3b82f6;
  --color-success: #22c55e;
  --font-family:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 40px rgba(245, 158, 11, 0.15);
  --container-max: 1200px;
  --header-height: 72px;
  --transition: 0.25s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body.nav-open,
html.nav-open,
body.lightbox-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-hover);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5em;
  line-height: 1.25;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--color-primary);
  color: var(--color-bg);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

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

.container--narrow {
  max-width: 840px;
}

.main {
  min-height: 60vh;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-bg);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-bg);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
  border-color: transparent;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-text);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(15, 20, 25, 0.97);
  border-bottom: 1px solid var(--color-border);
}

.site-header-wrap.is-open {
  z-index: 500;
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 1 auto;
  min-width: 0;
  gap: 12px;
}

.site-header__overlay {
  display: none;
}

.site-header__nav,
.header__nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.site-header__nav-inner,
.header__nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Legacy class support */
.site-header,
.header {
  background: transparent;
  border: none;
}

.main,
.footer {
  position: relative;
  z-index: 1;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text);
  min-width: 0;
}

.logo:hover {
  color: var(--color-text);
}

.logo__img {
	display: block;
	width: auto;
	height: 56px;
	max-width: min(340px, 68vw);
	object-fit: contain;
}

.logo--footer .logo__img {
	height: 48px;
	max-width: 300px;
}

.logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-dark)
  );
  border-radius: var(--radius-sm);
  font-size: 22px;
  box-shadow: var(--shadow-glow);
}

.logo__text {
  display: flex;
  flex-direction: column;
}

.logo__name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo__tagline {
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.header__nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__menu-item {
  margin: 0;
}

.header__menu-link {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition:
    color var(--transition),
    background var(--transition);
}

.header__menu-link:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
}

.header__menu-item--has-dropdown {
  position: relative;
}

.header__submenu,
.header__menu .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 300px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: rgba(15, 20, 25, 0.98);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 110;
}

.header__menu-item--has-dropdown::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 8px;
}

.header__menu-item--has-dropdown:hover > .header__submenu,
.header__menu-item--has-dropdown:hover > .sub-menu,
.header__menu-item--has-dropdown:focus-within > .header__submenu,
.header__menu-item--has-dropdown:focus-within > .sub-menu {
  display: block;
}

.header__submenu-item,
.header__submenu .menu-item {
  margin: 0;
}

.header__submenu-link,
.header__submenu a {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition:
    color var(--transition),
    background var(--transition);
}

.header__submenu-link:hover,
.header__submenu a:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
}

.header__cta {
  flex-shrink: 0;
}

.burger,
.site-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-left: 12px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.burger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.burger[aria-expanded="true"] .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger__line:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 70% 20%,
      rgba(245, 158, 11, 0.12) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 50% at 20% 80%,
      rgba(59, 130, 246, 0.08) 0%,
      transparent 50%
    ),
    linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  overflow: hidden;
}

.hero__scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-scene__grid {
  position: absolute;
  inset: -40px;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 95%);
  animation: hero-scene-grid-drift 36s linear infinite;
}

.hero-scene__wire {
  position: absolute;
  color: rgba(148, 163, 184, 0.22);
  opacity: 0.7;
  will-change: transform;
}

.hero-scene__wire--1 {
  top: 18%;
  right: -4%;
  width: min(420px, 55vw);
  animation: hero-scene-wire-1 30s ease-in-out infinite;
}

.hero-scene__wire--2 {
  bottom: 8%;
  left: -2%;
  width: min(300px, 42vw);
  animation: hero-scene-wire-2 34s ease-in-out infinite;
}

.hero-scene__wire-flow {
  stroke-dasharray: 6 10;
  animation: hero-scene-flow 10s linear infinite;
}

.hero-scene__item {
  position: absolute;
  will-change: transform;
}

.hero-scene__item--ktp {
  top: 14%;
  right: 8%;
  animation: hero-scene-move-ktp 28s ease-in-out infinite;
}

.hero-scene__item--blueprint {
  bottom: 16%;
  right: 18%;
  animation: hero-scene-move-blueprint 34s ease-in-out infinite;
  animation-delay: -8s;
}

.hero-scene__item--lines {
  top: 42%;
  left: 4%;
  animation: hero-scene-move-lines 26s ease-in-out infinite;
  animation-delay: -14s;
}

.hero-scene__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 150px;
  padding: 16px 18px 14px;
  color: rgba(148, 163, 184, 0.5);
  background: linear-gradient(
    145deg,
    rgba(22, 29, 39, 0.55) 0%,
    rgba(15, 20, 25, 0.35) 100%
  );
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
  animation: hero-scene-card-bob 9s ease-in-out infinite;
}

.hero-scene__icon {
  width: 76px;
  height: auto;
}

.hero-scene__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.4;
  color: rgba(148, 163, 184, 0.42);
}

.hero-scene__item--ktp .hero-scene__card {
  animation-delay: 0s;
}

.hero-scene__item--blueprint .hero-scene__card {
  animation-delay: -3s;
}

.hero-scene__item--lines .hero-scene__card {
  animation-delay: -5s;
}

.hero-scene__pulse {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.12);
  will-change: transform, opacity;
}

.hero-scene__pulse--1 {
  top: 28%;
  right: 24%;
  width: 120px;
  height: 120px;
  animation: hero-scene-pulse-1 8s ease-in-out infinite;
}

.hero-scene__pulse--2 {
  bottom: 22%;
  left: 16%;
  width: 90px;
  height: 90px;
  animation: hero-scene-pulse-2 10s ease-in-out infinite;
  animation-delay: -4s;
}

@keyframes hero-scene-grid-drift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(48px, 48px, 0);
  }
}

@keyframes hero-scene-move-ktp {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-8deg);
  }

  25% {
    transform: translate3d(-28px, 16px, 0) rotate(-4deg);
  }

  50% {
    transform: translate3d(-14px, -22px, 0) rotate(-11deg);
  }

  75% {
    transform: translate3d(22px, -10px, 0) rotate(-5deg);
  }
}

@keyframes hero-scene-move-blueprint {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(6deg);
  }

  30% {
    transform: translate3d(24px, -18px, 0) rotate(3deg);
  }

  60% {
    transform: translate3d(-18px, -12px, 0) rotate(9deg);
  }

  85% {
    transform: translate3d(-10px, 20px, 0) rotate(4deg);
  }
}

@keyframes hero-scene-move-lines {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-5deg);
  }

  20% {
    transform: translate3d(20px, 12px, 0) rotate(-2deg);
  }

  45% {
    transform: translate3d(34px, -16px, 0) rotate(-8deg);
  }

  70% {
    transform: translate3d(-12px, -20px, 0) rotate(-3deg);
  }
}

@keyframes hero-scene-card-bob {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -6px, 0) scale(1.02);
  }
}

@keyframes hero-scene-wire-1 {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0.55;
  }

  33% {
    transform: translate3d(-36px, 18px, 0) rotate(2deg);
    opacity: 0.8;
  }

  66% {
    transform: translate3d(24px, -14px, 0) rotate(-1deg);
    opacity: 0.65;
  }
}

@keyframes hero-scene-wire-2 {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0.5;
  }

  40% {
    transform: translate3d(30px, -20px, 0) rotate(-2deg);
    opacity: 0.75;
  }

  75% {
    transform: translate3d(-20px, 12px, 0) rotate(1deg);
    opacity: 0.6;
  }
}

@keyframes hero-scene-pulse-1 {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.85);
    opacity: 0.3;
  }

  45% {
    transform: translate3d(-18px, 22px, 0) scale(1.12);
    opacity: 0;
  }
}

@keyframes hero-scene-pulse-2 {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.85);
    opacity: 0.28;
  }

  45% {
    transform: translate3d(24px, -16px, 0) scale(1.1);
    opacity: 0;
  }
}

@keyframes hero-scene-flow {
  0% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: -64;
  }
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.35;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
}

.hero__label {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 720px;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-text-muted);
  max-width: 640px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__perks {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 640px;
}

.hero__perk {
  position: relative;
  padding-left: 28px;
  color: var(--color-text-muted);
  font-size: 15px;
}

.hero__perk::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.hero__stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-card {
  padding: 20px 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  min-width: 200px;
}

.stat-card__value {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.stat-card__label {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 80px 0;
}

.section--muted {
  background: var(--color-bg-muted);
}

.section--page {
  padding-top: 48px;
}

.section__header {
  margin-bottom: 48px;
  max-width: 640px;
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section__title--center {
  text-align: center;
}

.section__lead {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 640px;
}

.section__lead--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section__footer {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Page Hero
   ========================================================================== */

.page-hero {
  padding: 48px 0 64px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.page-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 800px;
}

.page-hero__subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 720px;
  line-height: 1.7;
}

.breadcrumbs {
  margin-bottom: 24px;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  font-size: 14px;
  color: var(--color-text-muted);
}

.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  opacity: 0.5;
}

.breadcrumbs__item a {
  color: var(--color-text-muted);
}

.breadcrumbs__item a:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   Split Block
   ========================================================================== */

.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split-block--reverse {
  direction: rtl;
}

.split-block--reverse > * {
  direction: ltr;
}

.media-card {
  position: relative;
  min-height: 320px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.media-card--placeholder {
  background:
    linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg-card) 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.02) 10px,
      rgba(255, 255, 255, 0.02) 20px
    );
}

.media-card--about {
  background: linear-gradient(160deg, #1a2332 0%, #0f1419 100%);
}

.media-card--design {
  background: linear-gradient(160deg, #1e2a3a 0%, #141c28 100%);
}

.media-card--photo {
  padding: 0;
  min-height: 0;
  display: block;
  background: var(--color-bg-card);
}

.media-card--contain {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 24px;
  background: linear-gradient(160deg, #1a2332 0%, #0f1419 100%);
}

.media-card__photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-card__photo--contain {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 260px;
  aspect-ratio: auto;
  object-fit: contain;
}

.media-card--photo .media-card__caption {
  position: relative;
  inset: auto;
  margin: 0;
  border-radius: 0;
}

.media-card--contain .media-card__caption {
  position: static;
  background: transparent;
  margin-top: 12px;
}

.media-card__logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.media-card__caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--color-text-muted);
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-sm);
  text-align: center;
}

.feature-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.feature-list__item {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--color-text-muted);
}

.feature-list__item::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.feature-list--columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px 32px;
  max-width: 960px;
  margin: 0 auto;
}

.section__cta-link {
  margin-top: 32px;
  text-align: center;
}

.page-hero--orem {
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, rgba(59, 130, 246, 0.06) 100%);
}

.info-cards--stack {
  grid-template-columns: 1fr;
  margin-top: 0;
}

/* ==========================================================================
   Grid
   ========================================================================== */

.grid {
  display: grid;
  gap: 24px;
}

.grid--services {
  grid-template-columns: repeat(3, 1fr);
}

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

.grid--advantages {
  grid-template-columns: repeat(4, 1fr);
}

.grid--gallery {
  grid-template-columns: repeat(4, 1fr);
}

.grid--steps-cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid--cases {
  grid-template-columns: repeat(3, 1fr);
}

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

.grid--results {
  grid-template-columns: repeat(4, 1fr);
}

/* ==========================================================================
   Service Card
   ========================================================================== */

.service-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.service-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card__icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.service-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card__text {
  flex: 1;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-card__link {
  align-self: flex-start;
}

/* ==========================================================================
   Advantage Card
   ========================================================================== */

.advantage-card {
  padding: 28px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.advantage-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.advantage-card__text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Steps
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  list-style: none;
  counter-reset: none;
}

.steps__item {
  position: relative;
  padding: 24px 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.steps__num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: rgba(245, 158, 11, 0.25);
  margin-bottom: 12px;
  line-height: 1;
}

.steps__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.steps__text {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-item {
  margin: 0;
}

.gallery-item--photo-only .gallery-item__img {
  aspect-ratio: 1;
}

.gallery-item--photo-only .gallery-zoom,
.gallery-item--photo-only .gallery-zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item__img {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.gallery-item__img--1 {
  background: linear-gradient(135deg, #2a3544, #1a2332);
}
.gallery-item__img--2 {
  background: linear-gradient(135deg, #253040, #151d28);
}
.gallery-item__img--3 {
  background: linear-gradient(135deg, #2e3a4a, #1c2532);
}
.gallery-item__img--4 {
  background: linear-gradient(135deg, #243040, #141c26);
}

.gallery-item__caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
}

/* ==========================================================================
   CTA Block
   ========================================================================== */

.section--cta {
  background: linear-gradient(
    180deg,
    var(--color-bg) 0%,
    var(--color-bg-alt) 100%
  );
}

.cta-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.cta-block--compact {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 40px 48px;
}

.cta-block__title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-block__text {
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.cta-block__aside {
  align-self: center;
}

.contact-cta {
  padding: 32px;
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.contact-cta__lead {
  margin: 0 0 24px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.contact-cta__list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.contact-cta__item {
  margin-bottom: 20px;
}

.contact-cta__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.contact-cta__value {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
}

.contact-cta__value--phone {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
}

.contact-cta__value--plain {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
}

.contact-cta__hours {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.contact-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-cta--page {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px;
}

.contacts-hub {
  max-width: 920px;
  margin: 0 auto;
}

.contacts-hub__shell {
  position: relative;
  padding: 48px;
  background: linear-gradient(
    160deg,
    rgba(28, 37, 50, 0.98) 0%,
    rgba(15, 20, 25, 0.98) 100%
  );
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.contacts-hub__shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-primary),
    transparent
  );
}

.contacts-hub__header {
  max-width: 620px;
  margin: 0 auto 32px;
  text-align: center;
}

.contacts-hub__badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
}

.contacts-hub__title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
}

.contacts-hub__lead {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.contacts-hub__phone-block {
  margin-bottom: 28px;
  padding: 28px 24px;
  text-align: center;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.contacts-hub__phone-label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contacts-hub__phone {
  display: inline-block;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.contacts-hub__phone:hover {
  color: var(--color-primary-hover);
}

.contacts-hub__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.contacts-hub__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  padding: 22px 18px;
  text-align: center;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.contacts-hub__item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  color: var(--color-primary);
  background: rgba(245, 158, 11, 0.1);
  border-radius: 50%;
}

.contacts-hub__label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contacts-hub__value {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-text);
  text-decoration: none;
  word-break: break-word;
}

.contacts-hub__value--plain {
  margin: 0;
}

.contacts-hub__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.contacts-page {
  max-width: 960px;
  margin: 0 auto;
}

.section--contacts {
  padding-top: 48px;
}

.contacts-page__meta {
  list-style: none;
  max-width: 640px;
  margin: 32px auto 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ==========================================================================
   Trust block
   ========================================================================== */

.section--trust {
  padding-top: 0;
}

.trust-block {
  padding: 48px 40px;
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.trust-block__header {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
  gap: 40px;
  align-items: start;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
}

.trust-block__label {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.trust-block__label::after {
  content: "";
  flex: 1;
  min-width: 48px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(245, 158, 11, 0.8),
    rgba(245, 158, 11, 0)
  );
}

.trust-block__title {
  margin: 0 0 20px;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust-block__accent {
  color: var(--color-primary);
}

.trust-block__lead {
  margin: 0;
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.trust-block__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.trust-block__logo {
  width: min(100%, 220px);
  height: auto;
  margin: 0 auto 16px;
}

.trust-block__brand-tag {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.trust-block__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
}

.trust-stat {
  position: relative;
  padding: 0 24px;
  text-align: center;
}

.trust-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 0;
  width: 1px;
  height: calc(100% - 16px);
  background: var(--color-border);
}

.trust-stat__icon,
.trust-feature__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.trust-block__icon {
  width: 48px;
  height: 48px;
}

.trust-stat__value {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary);
}

.trust-stat__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.trust-stat__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.trust-block__features {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.trust-feature {
  text-align: center;
}

.trust-feature__title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.trust-feature__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Conversion blocks
   ========================================================================== */

.section--inline-cta {
  padding: 48px 0;
}

.inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 36px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.inline-cta__title {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

.inline-cta__text {
  margin: 0;
  max-width: 560px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.inline-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.stats-grid--compact {
  margin-top: 32px;
}

.stats-grid__item {
  padding: 20px;
  text-align: center;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.stats-grid__value {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.stats-grid__label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
}

.stats-grid__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.risk-list {
  list-style: none;
  margin: 32px auto 24px;
  padding: 0;
  max-width: 720px;
  display: grid;
  gap: 12px;
}

.risk-list__item {
  position: relative;
  padding: 14px 18px 14px 44px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  color: var(--color-text);
}

.risk-list__item::before {
  content: "×";
  position: absolute;
  left: 16px;
  top: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f87171;
}

.risk-list__footer {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.comparison__col {
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
}

.comparison__col--solo {
  background: rgba(0, 0, 0, 0.2);
}

.comparison__col--pro {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: var(--shadow-glow);
}

.comparison__heading {
  margin: 0 0 20px;
  font-size: 1.125rem;
}

.comparison__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.comparison__item {
  position: relative;
  padding-left: 28px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.comparison__item--bad::before,
.comparison__item--good::before {
  position: absolute;
  left: 0;
  font-weight: 700;
}

.comparison__item--bad::before {
  content: "×";
  color: #f87171;
}

.comparison__item--good::before {
  content: "✓";
  color: var(--color-primary);
}

.guarantee-list {
  list-style: none;
  margin: 32px auto 0;
  padding: 0;
  max-width: 720px;
  display: grid;
  gap: 12px;
}

.guarantee-list__item {
  position: relative;
  padding-left: 28px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.guarantee-list__item::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.faq {
  margin-top: 32px;
  display: grid;
  gap: 12px;
}

.faq__item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq__question {
  padding: 18px 48px 18px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--color-primary);
}

.faq__item[open] .faq__question::after {
  content: "−";
}

.faq__answer {
  padding: 0 20px 18px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.faq__answer p {
  margin: 0;
}

.grid--cases-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-example {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.case-example__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.case-example__media .gallery-zoom {
  height: 100%;
}

.case-example__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-example__body {
  padding: 20px;
}

.case-example__title {
  margin: 0 0 12px;
  font-size: 1.0625rem;
}

.case-example__row {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.case-example__row span {
  color: var(--color-text);
  font-weight: 600;
}

/* ==========================================================================
   Contacts
   ========================================================================== */

.contacts__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.contacts__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.contacts__link:hover {
  color: var(--color-primary);
  border-color: rgba(245, 158, 11, 0.3);
}

.contacts__link--phone {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}

.contacts__hours,
.contacts__address {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 4px 0 0;
}

.contacts--footer .contacts__list {
  flex-direction: column;
  gap: 8px;
}

.contacts--footer .contacts__link {
  background: transparent;
  border: none;
  padding: 0;
}

.contacts--cta .contacts__list {
  margin-bottom: 0;
}

/* ==========================================================================
   Lead Form
   ========================================================================== */

.lead-form__field {
  margin-bottom: 16px;
}

.lead-form__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text-muted);
}

.lead-form__input,
.lead-form__textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}

.lead-form__input:focus,
.lead-form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.lead-form__textarea {
  resize: vertical;
  min-height: 100px;
}

.lead-form__submit {
  width: 100%;
  margin-top: 8px;
}

.lead-form__note {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 12px 0 0;
}

/* ==========================================================================
   Step Card, Info Card, Case Card, etc.
   ========================================================================== */

.step-card {
  padding: 28px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 16px;
  font-weight: 800;
  color: var(--color-bg);
  background: var(--color-primary);
  border-radius: 50%;
  margin-bottom: 16px;
}

.step-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card__text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.info-card {
  padding: 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.info-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.info-card__text {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

.content-block__lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 800px;
}

.content-block__lead--center {
  text-align: center;
  margin: 0 auto;
}

.case-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.case-card__img {
	aspect-ratio: 16/10;
	background: var(--color-surface);
}

.case-card__img--photo {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.case-card .gallery-zoom {
	aspect-ratio: 16/10;
}

.case-card .gallery-zoom img {
	height: auto;
}

.gallery-item__img--photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ==========================================================================
   Hologram background
   ========================================================================== */

.holo-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.holo-bg__item {
  position: absolute;
  will-change: transform, opacity;
}

.holo-bg__item--ktp {
  top: 8%;
  left: 4%;
}

.holo-bg__item--blueprint {
  top: 18%;
  right: 5%;
}

.holo-bg__item--lines {
  top: 52%;
  right: 8%;
}

.holo-bg__item--ktp.holo-bg__item--ghost {
  top: auto;
  left: auto;
  bottom: 14%;
  right: 6%;
}

.holo-bg__item--blueprint.holo-bg__item--ghost {
  top: auto;
  left: auto;
  bottom: 28%;
  left: 3%;
}

.holo-bg__item--lines.holo-bg__item--ghost {
  top: 38%;
  left: 2%;
}

.holo-bg__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 168px;
  max-width: 220px;
  padding: 18px 20px 16px;
  color: rgba(148, 163, 184, 0.42);
  background: linear-gradient(
    145deg,
    rgba(22, 29, 39, 0.72) 0%,
    rgba(15, 20, 25, 0.55) 100%
  );
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: var(--radius-md);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 12px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(2px);
  animation: holo-card-float var(--holo-duration, 24s) ease-in-out infinite;
  animation-delay: var(--holo-delay, 0s);
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.holo-bg__item--ghost .holo-bg__card {
  color: rgba(148, 163, 184, 0.28);
  background: linear-gradient(
    145deg,
    rgba(22, 29, 39, 0.45) 0%,
    rgba(15, 20, 25, 0.35) 100%
  );
  border-color: rgba(148, 163, 184, 0.06);
  animation-name: holo-card-float-ghost;
}

.holo-bg__icon {
  width: 88px;
  height: auto;
  opacity: 0.85;
}

.holo-bg__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.38);
}

.holo-bg__item--ghost .holo-bg__label {
  color: rgba(148, 163, 184, 0.24);
}

@keyframes holo-card-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -12px, 0);
  }
}

@keyframes holo-card-float-ghost {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.94);
  }

  50% {
    transform: translate3d(0, -9px, 0) scale(0.94);
  }
}

.holo-bg.is-scrolling .holo-bg__card {
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 16px 48px rgba(0, 0, 0, 0.22);
}

@media (max-width: 992px) {
  .holo-bg__item--ghost {
    display: none;
  }

  .holo-bg__card {
    min-width: 140px;
    max-width: 180px;
    padding: 14px 16px 12px;
  }

  .holo-bg__icon {
    width: 72px;
  }

  .holo-bg__label {
    font-size: 10px;
  }
}

@media (max-width: 768px) {
  .holo-bg__item--ktp {
    top: 6%;
    left: -2%;
  }

  .holo-bg__item--blueprint {
    top: 14%;
    right: -4%;
  }

  .holo-bg__item--lines {
    top: auto;
    bottom: 18%;
    right: -2%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .holo-bg__card,
  .hero-scene__item,
  .hero-scene__card,
  .hero-scene__grid,
  .hero-scene__wire,
  .hero-scene__wire-flow,
  .hero-scene__pulse {
    animation: none;
  }
}

/* ==========================================================================
   Gallery zoom & lightbox
   ========================================================================== */

.gallery-zoom {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  text-align: left;
  font: inherit;
  color: inherit;
}

.gallery-zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-zoom:hover img,
.gallery-zoom:focus-visible img {
  transform: scale(1.03);
}

.gallery-zoom__hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 999px;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.gallery-zoom:hover .gallery-zoom__hint,
.gallery-zoom:focus-visible .gallery-zoom__hint {
  opacity: 1;
}

.gallery-item__img .gallery-zoom {
  min-height: 100%;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.gallery-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 1200px);
  max-height: 92vh;
}

.gallery-lightbox__figure {
  margin: 0;
}

.gallery-lightbox__img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 82vh;
  margin: 0 auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.gallery-lightbox__caption {
  margin: 12px 0 0;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.gallery-lightbox__counter {
  position: absolute;
  top: -44px;
  left: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(15, 20, 25, 0.85);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.gallery-lightbox__nav:hover,
.gallery-lightbox__nav:focus-visible {
  background: rgba(245, 158, 11, 0.92);
  border-color: rgba(245, 158, 11, 0.95);
  transform: scale(1.05);
}

.gallery-lightbox__nav--prev {
  left: -64px;
}

.gallery-lightbox__nav--next {
  right: -64px;
}

.gallery-lightbox__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(15, 20, 25, 0.85);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* ==========================================================================
   Scroll jump buttons
   ========================================================================== */

.scroll-jump {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scroll-jump__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 50%;
  background: rgba(15, 20, 25, 0.92);
  color: var(--color-primary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition),
    opacity var(--transition);
}

.scroll-jump__btn:hover,
.scroll-jump__btn:focus-visible {
  background: var(--color-primary);
  color: #111;
  transform: translateY(-2px);
}

.scroll-jump.is-at-top .scroll-jump__btn--up,
.scroll-jump.is-at-bottom .scroll-jump__btn--down {
  opacity: 0.45;
  pointer-events: none;
}

.case-card__img--1 {
  background: linear-gradient(135deg, #2a3544, #1a2332);
}
.case-card__img--2 {
  background: linear-gradient(135deg, #253545, #151d28);
}
.case-card__img--3 {
  background: linear-gradient(135deg, #2e3a4a, #1c2532);
}

.case-card__body {
  padding: 20px;
}

.case-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.case-card__text {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.55;
}

/* ==========================================================================
   Timeline (TU page)
   ========================================================================== */

.timeline {
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
}

.timeline__item {
  position: relative;
  padding-left: 40px;
  padding-bottom: 32px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline__item:last-child::before {
  display: none;
}

.timeline__marker {
  position: absolute;
  left: 0;
  top: 4px;
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.timeline__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline__text {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  line-height: 1.6;
}

.timeline__time {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(245, 158, 11, 0.12);
  padding: 4px 10px;
  border-radius: 100px;
}

.doc-item {
  padding: 28px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.doc-item__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.doc-item__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.doc-item__list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.doc-item__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

.result-card {
  padding: 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
}

.result-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.result-card__text {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.55;
}

/* ==========================================================================
   Contacts Page
   ========================================================================== */

.map-block__embed {
  display: block;
  width: 100%;
  height: 360px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.map-block__region--below {
  margin: 16px 0 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.map-block__placeholder {
  position: relative;
  min-height: 360px;
  background: linear-gradient(135deg, #1a2532 0%, #0f1419 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.map-block__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
}

.map-block__text {
  font-size: 14px;
  color: var(--color-text-muted);
  max-width: 400px;
  margin-bottom: 12px;
}

.map-block__region {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 64px 0 32px;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-top: 16px;
  max-width: 320px;
}

.footer__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.footer__menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__menu li {
  margin-bottom: 8px;
}

.footer__menu a {
  font-size: 14px;
  color: var(--color-text-muted);
}

.footer__menu a:hover {
  color: var(--color-primary);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.footer__copy,
.footer__region {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
}

.logo--footer .logo__name {
  font-size: 16px;
}

/* ==========================================================================
   Page Content (fallback)
   ========================================================================== */

.page-content__title {
  font-size: 2rem;
  margin-bottom: 24px;
}

.page-content__body {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .grid--services,
  .grid--advantages,
  .grid--gallery,
  .grid--results {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .split-block {
    grid-template-columns: 1fr;
  }

  .split-block--reverse {
    direction: ltr;
  }

  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .stat-card {
    flex: 1;
    min-width: 140px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-block {
    grid-template-columns: 1fr;
  }

  .contacts-hub__grid {
    grid-template-columns: 1fr;
  }

  .trust-block__header {
    grid-template-columns: 1fr;
  }

  .trust-block__brand {
    max-width: 360px;
    margin: 0 auto;
  }

  .trust-block__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }

  .trust-stat:nth-child(2n)::after {
    display: none;
  }

  .trust-stat:nth-child(odd)::after {
    display: block;
  }

  .trust-block__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid,
  .comparison,
  .grid--cases-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header__row {
    position: relative;
    z-index: 502;
  }

  .site-header__bar {
    width: 100%;
    position: relative;
    z-index: 504;
  }

  .burger,
  .site-header__toggle {
    display: flex;
    position: relative;
    z-index: 505;
  }

  .logo__img {
    max-width: min(240px, calc(100vw - 88px));
  }

  .site-header__overlay {
    display: block;
    position: fixed;
    inset: 0;
    top: var(--header-height);
    z-index: 499;
    border: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity var(--transition),
      visibility var(--transition);
  }

  .site-header__overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-header__nav,
  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 501;
    display: block;
    margin-left: 0;
    padding: 20px 0 32px;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    transform: translate3d(100%, 0, 0);
    transition: transform var(--transition);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    pointer-events: none;
    -webkit-overflow-scrolling: touch;
  }

  .site-header__nav.is-open,
  .header__nav.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }

  .site-header__nav-inner,
  .header__nav-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 0 20px;
  }

  .header__menu {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-bottom: 20px;
  }

  .header__menu-link {
    padding: 14px 16px;
    font-size: 16px;
  }

  .header__menu-item--has-dropdown::before {
    display: none;
  }

  .header__submenu,
  .header__menu .sub-menu {
    display: block;
    position: static;
    min-width: 0;
    margin: 0 0 8px;
    padding: 0 0 0 12px;
    background: transparent;
    border: none;
    border-left: 2px solid var(--color-border);
    border-radius: 0;
    box-shadow: none;
  }

  .header__submenu-link,
  .header__submenu a {
    padding: 10px 16px;
    font-size: 14px;
  }

  .header__cta {
    width: 100%;
    text-align: center;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .hero-scene__item--blueprint,
  .hero-scene__wire--2 {
    display: none;
  }

  .hero-scene__item--ktp {
    top: 8%;
    right: -4%;
  }

  .hero-scene__item--lines {
    top: auto;
    bottom: 10%;
    left: -6%;
  }

  .hero-scene__card {
    min-width: 128px;
    padding: 12px 14px;
  }

  .hero-scene__icon {
    width: 60px;
  }

  .hero-scene__label {
    font-size: 9px;
  }

  .section {
    padding: 56px 0;
  }

  .grid--services,
  .grid--services-full,
  .grid--advantages,
  .grid--gallery,
  .grid--cases,
  .grid--docs,
  .grid--results,
  .grid--steps-cards {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .cta-block,
  .cta-block--compact {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }

  .contacts-hub__shell {
    padding: 28px 20px;
  }

  .contacts-hub__grid {
    grid-template-columns: 1fr;
  }

  .contacts-hub__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .gallery-lightbox__close {
    top: 8px;
    right: 8px;
    background: rgba(15, 20, 25, 0.95);
  }

  .gallery-lightbox__counter {
    top: 16px;
    left: 16px;
  }

  .gallery-lightbox__nav {
    width: 42px;
    height: 42px;
    margin-top: -21px;
  }

  .gallery-lightbox__nav--prev {
    left: 8px;
  }

  .gallery-lightbox__nav--next {
    right: 8px;
  }

  .scroll-jump {
    right: 14px;
    bottom: 16px;
  }

  .scroll-jump__btn {
    width: 44px;
    height: 44px;
  }

  .cta-block--compact .btn {
    width: 100%;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
  }

  .hero__stats {
    flex-direction: column;
  }

  .contacts-page__actions {
    flex-direction: column;
  }

  .contacts-page__actions .btn {
    width: 100%;
  }

  .trust-block {
    padding: 32px 20px;
  }

  .trust-block__stats {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .trust-stat::after {
    display: none !important;
  }

  .trust-stat {
    padding: 0;
  }

  .trust-block__features {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contacts-page__meta {
    grid-template-columns: 1fr;
  }

  .inline-cta {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px;
  }

  .inline-cta__actions {
    flex-direction: column;
  }

  .inline-cta__actions .btn {
    width: 100%;
  }

  .stats-grid,
  .comparison,
  .grid--cases-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .btn--lg {
    padding: 14px 24px;
  }
}
