/* ===========================================================
   МегаВатт — Электромонтаж под ключ
   Премиальная тёмная тема со световыми акцентами
   =========================================================== */

/* ============== Переменные ============== */
:root {
  --c-bg: #07080a;
  --c-bg-2: #0c0e12;
  --c-bg-3: #11141a;
  --c-graphite: #1a1d24;
  --c-graphite-2: #232730;
  --c-line: rgba(255, 216, 107, 0.08);
  --c-line-strong: rgba(255, 216, 107, 0.18);

  --c-text: #e8e9ec;
  --c-text-mute: #8b8f99;
  --c-text-dim: #5a5e68;

  --c-accent: #ffd86b;
  --c-accent-2: #f7a531;
  --c-accent-soft: rgba(255, 216, 107, 0.15);
  --c-accent-glow: rgba(255, 216, 107, 0.45);

  --shadow-glow: 0 0 60px rgba(255, 216, 107, 0.25);
  --shadow-card: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --shadow-deep: 0 40px 80px -30px rgba(0, 0, 0, 0.9);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --container: 1280px;
  --pad: clamp(20px, 4vw, 40px);

  --t-fast: 0.25s ease;
  --t-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Нет сдвига контента при появлении полосы прокрутки после прелоадера */
  scrollbar-gutter: stable;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  position: relative;
  min-height: 100vh;
}

body.is-loading {
  overflow: hidden;
}

/* Пока идёт загрузка — первый экран скрыт, чтобы не было «мигания» перед анимацией входа */
body.is-loading .hero__badge,
body.is-loading .hero__title,
body.is-loading .hero__subtitle,
body.is-loading .hero__actions,
body.is-loading .hero__features,
body.is-loading .hero__scroll,
body.is-loading .hero__visual {
  opacity: 0;
}

body.is-loading .scroll-bulb {
  opacity: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 15px;
}

/* Клавиатурная доступность: видимый фокус без «обрезки» в overflow:hidden карточках */
:focus {
  outline: none;
}

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

.btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--c-bg),
    0 0 0 4px var(--c-accent),
    0 10px 30px -8px rgba(255, 216, 107, 0.45);
}

.btn--ghost:focus-visible {
  box-shadow: 0 0 0 2px var(--c-accent), 0 0 22px rgba(255, 216, 107, 0.2);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
}

.burger:focus-visible {
  outline-offset: 4px;
  border-radius: 12px;
}

.modal__close:focus-visible {
  outline-offset: 3px;
}

@media (hover: none) {

  a:active,
  button:active,
  .btn:active {
    opacity: 0.92;
  }
}

/* ============== ЕДИНЫЙ БЕСШОВНЫЙ ФОН ============== */
/* body::before — большое полотно с золотыми пятнами, расставленными
   по всей высоте сайта. Скроллится вместе со страницей, поэтому
   разные участки светятся в разных местах — нет видимых границ
   между секциями. */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  /* Координаты в пикселях, а не процентах — пятна не сжимаются на коротких
       страницах и не сходятся в полосу на стыке hero и следующей секции. */
  background:
    radial-gradient(circle 520px at 15% 200px, rgba(255, 216, 107, 0.10), transparent 55%),
    radial-gradient(circle 600px at 88% 600px, rgba(247, 165, 49, 0.07), transparent 55%),
    radial-gradient(circle 500px at 22% 1100px, rgba(255, 216, 107, 0.07), transparent 55%),
    radial-gradient(circle 700px at 82% 1700px, rgba(247, 165, 49, 0.06), transparent 55%),
    radial-gradient(circle 600px at 14% 2400px, rgba(255, 216, 107, 0.07), transparent 55%),
    radial-gradient(circle 560px at 86% 3100px, rgba(247, 165, 49, 0.05), transparent 55%),
    radial-gradient(circle 620px at 24% 3900px, rgba(255, 216, 107, 0.06), transparent 55%),
    radial-gradient(circle 680px at 78% 4700px, rgba(247, 165, 49, 0.05), transparent 55%),
    radial-gradient(circle 540px at 18% 5500px, rgba(255, 216, 107, 0.05), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* Глобальная световая сетка — fixed, без масок и виньеток,
   поэтому идёт сплошным полотном через всю страницу */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 216, 107, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 216, 107, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

/* ============== Утилиты ============== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: calc(var(--pad) + var(--safe-left));
  padding-right: calc(var(--pad) + var(--safe-right));
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
  z-index: 2;
}

.section {
  padding: clamp(80px, 12vw, 140px) 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

/* ============== Общая «сцена» секций ============== */
/* Декоративный слой только с движущимися элементами: бегущие линии
   и плавающие искры. Никаких локальных glow-пятен и виньеток —
   они создавали видимые границы на стыке секций. */
.section__scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.section__scene-line {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--c-accent-glow), transparent);
  opacity: 0;
  animation: sceneLineSlide 9s linear infinite;
}

@keyframes sceneLineSlide {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }

  20% {
    opacity: 0.55;
  }

  80% {
    opacity: 0.55;
  }

  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

.section__scene-spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 8px var(--c-accent);
  opacity: 0;
  animation: sceneSparkFloat 7s ease-in-out infinite;
}

@keyframes sceneSparkFloat {

  0%,
  100% {
    opacity: 0;
    transform: translateY(0) scale(0.4);
  }

  50% {
    opacity: 0.7;
    transform: translateY(-30px) scale(1);
  }
}

/* Hero уже имеет собственный фон — отключаем общую сцену, чтобы не двоилось */
.hero .section__scene {
  display: none;
}

/* Контейнер контента поверх декоративного слоя */
.container {
  z-index: 2;
}

.section__header {
  max-width: 780px;
  margin: 0 auto clamp(40px, 6vw, 80px);
  text-align: center;
}

.section__pre {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  padding: 8px 16px;
  border: 1px solid var(--c-line-strong);
  border-radius: 100px;
  background: var(--c-accent-soft);
  margin-bottom: 24px;
}

.section__title {
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  text-wrap: balance;
}

.section__desc {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--c-text-mute);
  margin: 0;
  line-height: 1.6;
}

.text-glow {
  position: relative;
  color: var(--c-accent);
  text-shadow:
    0 0 20px rgba(255, 216, 107, 0.5),
    0 0 40px rgba(255, 216, 107, 0.3);
}

/* AOS — мягкое стартовое состояние, чтобы не было «вспышки» при первой загрузке */
[data-aos] {
  will-change: opacity, transform;
}

/* ============== Кнопки ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn--large {
  padding: 18px 34px;
  font-size: 15px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-2) 100%);
  color: #1a1208;
  box-shadow: 0 10px 30px -8px rgba(255, 216, 107, 0.5);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fff5c2 0%, var(--c-accent) 100%);
  opacity: 0;
  transition: opacity var(--t-base);
}

.btn--primary>* {
  position: relative;
  z-index: 2;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(255, 216, 107, 0.65);
}

.btn--primary:hover::before {
  opacity: 1;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--c-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  background: rgba(255, 216, 107, 0.08);
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.btn--full {
  width: 100%;
}

/* ============== PRELOADER ============== */
.preloader {
  position: fixed;
  inset: 0;
  padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #1a1200 0%, var(--c-bg) 70%);
  opacity: 0;
  transition: opacity 1s ease;
}

.preloader__bg.is-lit {
  opacity: 1;
}

.preloader__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 2;
}

.preloader__bulb-wrap {
  position: relative;
  width: 120px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader__bulb {
  width: 120px;
  height: 180px;
  filter: drop-shadow(0 0 0 rgba(255, 215, 0, 0));
  transition: filter 1.2s ease;
}

.preloader__bulb.is-glowing {
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 50px rgba(255, 200, 0, 0.4));
}

.preloader__glow-ring {
  position: absolute;
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 1.5s ease;
  pointer-events: none;
}

.preloader__glow-ring.is-active {
  opacity: 1;
}

.preloader__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.preloader__text.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.preloader__brand {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--c-text);
}

.preloader__tagline {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--c-accent);
  text-transform: uppercase;
}

.preloader__canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.preloader__canvas.is-active {
  opacity: 1;
}

.bulb-glass {
  transition: opacity 1s ease;
}

.bulb-filament {
  transition: opacity 0.8s ease, stroke 0.8s ease;
}

.bulb-sparks {
  transition: opacity 0.3s ease;
}

.bulb-glow {
  transition: opacity 1s ease;
}

/* ============== ХЕДЕР ============== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: max(18px, var(--safe-top));
  padding-bottom: 18px;
  padding-left: 0;
  padding-right: 0;
  transition: all var(--t-base);
}

.header.is-scrolled {
  background: rgba(7, 8, 10, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-line);
  padding-top: max(12px, var(--safe-top));
  padding-bottom: 12px;
}

.header__container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}

.header__container>.logo {
  justify-self: start;
  min-width: 0;
}

.header__container>.nav {
  justify-self: center;
}

.header__tools {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: clamp(10px, 1.4vw, 16px);
  flex-shrink: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.logo__image {
  display: block;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: left center;
}

.logo--header .logo__image {
  height: 60px;
  filter: drop-shadow(0 2px 12px rgba(255, 198, 64, 0.2));
  transition: height var(--t-base), filter var(--t-fast), transform var(--t-fast);
}

.header.is-scrolled .logo--header .logo__image {
  height: 52px;
}

.logo--header:hover .logo__image {
  filter: drop-shadow(0 2px 18px rgba(255, 198, 64, 0.35));
  transform: translateY(-1px);
}

.logo--footer .logo__image {
  height: 60px;
  max-width: 168px;
}

.nav {
  display: flex;
  gap: clamp(16px, 2.1vw, 32px);
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-mute);
  position: relative;
  transition: color var(--t-fast);
}

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

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--c-accent);
  transition: width var(--t-fast);
}

.nav__link:hover::after {
  width: 100%;
}

/* Выпадающее меню «Услуги» */
.nav__dropdown {
  position: relative;
}

/* Невидимый «мост» под кнопкой «Услуги» —
   чтобы при движении курсора к панели hover не слетал.
   Активен всегда (не зависит от pointer-events панели). */
.nav__dropdown::after {
  content: '';
  position: absolute;
  left: -10px;
  right: -10px;
  top: 100%;
  height: 26px;
  pointer-events: auto;
}

.nav__dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-mute);
  position: relative;
  transition: color var(--t-fast);
}

.nav__dropdown-btn:hover,
.nav__dropdown:focus-within .nav__dropdown-btn {
  color: var(--c-text);
}

.nav__dropdown-btn::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--c-accent);
  transition: width var(--t-fast);
}

.nav__dropdown:hover .nav__dropdown-btn::after,
.nav__dropdown:focus-within .nav__dropdown-btn::after {
  width: 100%;
}

.nav__dropdown-icon {
  flex-shrink: 0;
  opacity: 0.65;
  transition: transform var(--t-fast);
}

.nav__dropdown:hover .nav__dropdown-icon,
.nav__dropdown:focus-within .nav__dropdown-icon {
  transform: rotate(180deg);
}

.nav__dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 240px;
  margin-top: 18px;
  padding: 8px;
  background: rgba(14, 16, 20, 0.92);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 216, 107, 0.04) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease,
    transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Декоративная стрелка-каретка к кнопке */
.nav__dropdown-panel::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: rgba(14, 16, 20, 0.92);
  border-top: 1px solid var(--c-line);
  border-left: 1px solid var(--c-line);
  transform: rotate(45deg);
  border-top-left-radius: 3px;
  pointer-events: none;
}

.nav__dropdown:hover .nav__dropdown-panel,
.nav__dropdown:focus-within .nav__dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav__dropdown-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px 11px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-mute);
  border-radius: 10px;
  transition: color var(--t-fast), background var(--t-fast), padding var(--t-fast);
}

.nav__dropdown-link::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity var(--t-fast), transform var(--t-fast);
}

.nav__dropdown-link:hover {
  color: var(--c-text);
  background: rgba(255, 216, 107, 0.08);
  padding-left: 16px;
}

.nav__dropdown-link:hover::before,
.nav__dropdown-link.is-current::before {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 10px rgba(255, 216, 107, 0.6);
}

/* ============== Переключатель языка ============== */
.lang-switch {
  --lang-pad: 4px;

  position: relative;
  display: inline-flex;
  align-items: stretch;
  width: 96px;
  padding: var(--lang-pad);
  background: rgba(26, 29, 36, 0.55);
  border: 1px solid var(--c-line);
  border-radius: 100px;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.lang-switch__btn {
  position: relative;
  z-index: 2;
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  padding: 7px 0;
  border: none;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--c-text-mute);
  background: transparent;
  border-radius: 100px;
  transition: color var(--t-fast);
  cursor: pointer;
  user-select: none;
  line-height: 1;
}

.lang-switch__btn:hover {
  color: var(--c-text);
}

.lang-switch__btn.is-active {
  color: #1a1208;
}

.lang-switch__pill {
  position: absolute;
  z-index: 1;
  top: var(--lang-pad);
  bottom: var(--lang-pad);
  left: var(--lang-pad);
  width: calc(50% - var(--lang-pad));
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
  border-radius: 100px;
  box-shadow: 0 6px 18px -6px rgba(255, 216, 107, 0.55);
  transition: transform 0.32s cubic-bezier(0.34, 1.2, 0.64, 1);
  pointer-events: none;
  will-change: transform;
}

.lang-switch[data-active="en"] .lang-switch__pill,
.lang-switch[data-active="uz"] .lang-switch__pill {
  transform: translateX(100%);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  transition: all var(--t-fast);
  border-radius: 2px;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(clamp(112px, 11vw, 140px) + var(--safe-top)) 0 calc(clamp(56px, 7vw, 80px) + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}

.hero--has-scroll {
  padding-bottom: calc(clamp(72px, 8vw, 96px) + var(--safe-bottom));
}

/* Бесшовный переход hero → следующая секция: только мягкое золотое
   свечение по центру, без заливки чистым фоном (иначе видна полоса). */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 260px;
  background: radial-gradient(ellipse 80% 100% at 50% 100%, rgba(255, 216, 107, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 2;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  /* Низ hero медленно угасает за пределы секции — без резкого края */
  mask-image: linear-gradient(to bottom, black 0%, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 80%, transparent 100%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 216, 107, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 216, 107, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 70%, transparent 100%);
}

.hero__lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__lines span {
  position: absolute;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--c-accent-glow), transparent);
  opacity: 0.5;
  animation: lineSlide 8s linear infinite;
}

.hero__lines span:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}

.hero__lines span:nth-child(2) {
  left: 30%;
  animation-delay: 1.6s;
}

.hero__lines span:nth-child(3) {
  left: 55%;
  animation-delay: 3.2s;
}

.hero__lines span:nth-child(4) {
  left: 75%;
  animation-delay: 4.8s;
}

.hero__lines span:nth-child(5) {
  left: 90%;
  animation-delay: 6.4s;
}

@keyframes lineSlide {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }

  20% {
    opacity: 0.8;
  }

  80% {
    opacity: 0.8;
  }

  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

.hero__particles {
  position: absolute;
  inset: 0;
}

.hero__particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 8px var(--c-accent);
  opacity: 0;
  animation: particleFloat 6s ease-in-out infinite;
}

@keyframes particleFloat {

  0%,
  100% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }

  50% {
    opacity: 0.8;
    transform: translateY(-30px) scale(1);
  }
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.hero__glow--1 {
  width: clamp(340px, 44vw, 600px);
  height: clamp(340px, 44vw, 600px);
  background: radial-gradient(circle, var(--c-accent), transparent 70%);
  top: clamp(-180px, -14vw, -90px);
  right: clamp(-140px, -8vw, -30px);
  animation: glowMove 8s ease-in-out infinite alternate;
}

.hero__glow--2 {
  width: clamp(260px, 30vw, 420px);
  height: clamp(260px, 30vw, 420px);
  background: radial-gradient(circle, var(--c-accent-2), transparent 70%);
  bottom: clamp(-120px, -8vw, -35px);
  left: clamp(-130px, -8vw, -40px);
  opacity: 0.3;
  animation: glowMove 10s ease-in-out infinite alternate-reverse;
}

@keyframes glowMove {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(40px, 40px) scale(1.1);
  }
}

.hero__container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(26px, 4vw, 60px);
  align-items: center;
  z-index: 3;
}

.hero__content {
  position: relative;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 216, 107, 0.06);
  border: 1px solid var(--c-line-strong);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text);
  margin-bottom: 28px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 10px var(--c-accent);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

.hero__title {
  font-size: clamp(36px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 24px;
  text-wrap: balance;
}

.hero__subtitle {
  font-size: clamp(15px, 1.4vw, 19px);
  color: var(--c-text-mute);
  line-height: 1.6;
  margin: 0 0 40px;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  gap: clamp(10px, 1.5vw, 14px);
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 56px);
}

.hero__features {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  flex-wrap: wrap;
  padding-top: clamp(18px, 2.4vw, 32px);
  border-top: 1px solid var(--c-line);
}

.hero__features li {
  font-size: 13px;
  color: var(--c-text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__features strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--c-accent);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(255, 216, 107, 0.4);
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__bulb {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__bulb-svg {
  width: 80%;
  height: 80%;
  filter: drop-shadow(0 0 60px rgba(255, 216, 107, 0.5));
  animation: bulbFloat 6s ease-in-out infinite;
}

.hero__bulb-aura {
  animation: auraPulse 3s ease-in-out infinite;
}

@keyframes bulbFloat {

  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-15px) rotate(2deg);
  }
}

@keyframes auraPulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 0.85;
  }
}

.hero__bulb-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__bulb-rings span {
  position: absolute;
  border: 1px solid var(--c-line-strong);
  border-radius: 50%;
  animation: ringExpand 4s linear infinite;
}

.hero__bulb-rings span:nth-child(1) {
  width: 90%;
  height: 90%;
  animation-delay: 0s;
}

.hero__bulb-rings span:nth-child(2) {
  width: 70%;
  height: 70%;
  animation-delay: 1.3s;
}

.hero__bulb-rings span:nth-child(3) {
  width: 50%;
  height: 50%;
  animation-delay: 2.6s;
}

@keyframes ringExpand {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.hero__bulb-sparks {
  position: absolute;
  inset: 0;
}

.hero__bulb-sparks span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--c-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--c-accent);
  animation: sparkOrbit 4s linear infinite;
}

.hero__bulb-sparks span:nth-child(1) {
  animation-delay: 0s;
}

.hero__bulb-sparks span:nth-child(2) {
  animation-delay: -0.7s;
}

.hero__bulb-sparks span:nth-child(3) {
  animation-delay: -1.4s;
}

.hero__bulb-sparks span:nth-child(4) {
  animation-delay: -2.1s;
}

.hero__bulb-sparks span:nth-child(5) {
  animation-delay: -2.8s;
}

.hero__bulb-sparks span:nth-child(6) {
  animation-delay: -3.5s;
}

@keyframes sparkOrbit {
  0% {
    transform: rotate(0) translateX(var(--spark-orbit-radius, 180px)) rotate(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: rotate(360deg) translateX(var(--spark-orbit-radius, 180px)) rotate(-360deg);
    opacity: 0;
  }
}

.hero__scroll {
  position: relative;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 48px);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--c-text-dim);
  z-index: 4;
  flex-shrink: 0;
  pointer-events: none;
}

.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--c-accent), transparent);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--c-accent);
  animation: scrollLineRun 2s linear infinite;
}

@keyframes scrollLineRun {
  0% {
    top: -50%;
  }

  100% {
    top: 100%;
  }
}

/* ============== УСЛУГИ ============== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  padding: 32px 28px;
  background: linear-gradient(180deg, rgba(26, 29, 36, 0.6), rgba(12, 14, 18, 0.6));
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  transition: all var(--t-base);
  overflow: hidden;
  isolation: isolate;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 216, 107, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-base);
  z-index: -1;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--c-accent), transparent 50%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--t-base);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--c-line-strong);
  box-shadow: var(--shadow-card);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover::after {
  opacity: 1;
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--c-accent-soft), rgba(255, 216, 107, 0.05));
  border: 1px solid var(--c-line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--c-accent);
  transition: all var(--t-base);
}

.service-card:hover .service-card__icon {
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
  color: #1a1208;
  box-shadow: 0 0 30px rgba(255, 216, 107, 0.45);
  transform: rotate(-6deg) scale(1.08);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.service-card__desc {
  font-size: 14px;
  color: var(--c-text-mute);
  margin: 0;
  line-height: 1.55;
}

.service-card__arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  color: var(--c-text-dim);
  font-size: 22px;
  transition: all var(--t-base);
}

.service-card:hover .service-card__arrow {
  color: var(--c-accent);
  transform: translate(4px, -4px);
}

/* ============== РАБОТЫ ============== */
.works__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
  padding: 8px;
  background: rgba(26, 29, 36, 0.4);
  border: 1px solid var(--c-line);
  border-radius: 100px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 12px;
}

.works__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-mute);
  border-radius: 100px;
  transition: all var(--t-fast);
}

.works__tab:hover {
  color: var(--c-text);
  background: rgba(255, 255, 255, 0.04);
}

.works__tab.is-active {
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
  color: #1a1208;
  box-shadow: 0 8px 20px -6px rgba(255, 216, 107, 0.5);
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.work-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--c-bg-3);
  border: 1px solid var(--c-line);
  transition: all var(--t-base);
}

.work-card.is-hidden {
  display: none;
}

.work-card.is-fading {
  opacity: 0;
  transform: scale(0.95);
}

.work-card.is-visible {
  opacity: 1;
  transform: scale(1);
}

.work-card__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  filter: grayscale(0.3) brightness(0.85);
}

.work-card:hover .work-card__media img {
  transform: scale(1.08);
  filter: grayscale(0) brightness(1);
}

.work-card__overlay {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(7, 8, 10, 0.95) 0%, rgba(7, 8, 10, 0.4) 50%, transparent 80%);
  transform: translateY(20%);
  transition: transform var(--t-base);
}

.work-card:hover .work-card__overlay {
  transform: translateY(0);
}

.work-card__cat {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-accent);
  background: var(--c-accent-soft);
  border: 1px solid var(--c-line-strong);
  border-radius: 100px;
  margin-bottom: 12px;
}

.work-card__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #fff;
}

.work-card__desc {
  font-size: 13px;
  color: var(--c-text-mute);
  margin: 0;
  opacity: 0;
  max-height: 0;
  transition: all var(--t-base);
}

.work-card:hover .work-card__desc {
  opacity: 1;
  max-height: 60px;
}

.work-card__extra {
  margin: 8px 0 0;
  font-size: 12px;
  color: rgba(255, 216, 107, 0.95);
  line-height: 1.45;
  opacity: 0;
  max-height: 0;
  transform: translateY(8px);
  overflow: hidden;
  transition: all var(--t-base);
}

.work-card:hover .work-card__extra {
  opacity: 1;
  max-height: 70px;
  transform: translateY(0);
}

/* ============== ПРЕИМУЩЕСТВА ============== */
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.advantage {
  padding: 36px 32px;
  background: var(--c-bg-2);
  transition: background var(--t-base);
  position: relative;
}

.advantage:hover {
  background: var(--c-bg-3);
}

.advantage::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-accent), transparent);
  transition: width 0.5s ease;
}

.advantage:hover::before {
  width: 100%;
}

.advantage__num {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  opacity: 0.8;
}

.advantage__title {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.advantage__desc {
  font-size: 14px;
  color: var(--c-text-mute);
  margin: 0;
  line-height: 1.6;
}

/* ============== ПРОЦЕСС ============== */
.process__timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: clamp(52px, 4.4vw, 60px);
}

.process__line {
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--c-line);
  border-radius: 2px;
}

.process__line-progress {
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom, var(--c-accent), var(--c-accent-2));
  box-shadow: 0 0 20px var(--c-accent);
  border-radius: 2px;
}

.process__steps {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.process__step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.process__dot {
  position: absolute;
  left: clamp(-60px, -4.4vw, -52px);
  top: 0;
  width: clamp(48px, 4.2vw, 56px);
  height: clamp(48px, 4.2vw, 56px);
  border-radius: 50%;
  background: var(--c-bg-3);
  border: 2px solid var(--c-line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--c-accent);
  font-size: clamp(15px, 1.4vw, 18px);
  z-index: 2;
  transition: all var(--t-base);
}

.process__step.is-active .process__dot {
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
  color: #1a1208;
  box-shadow: 0 0 30px rgba(255, 216, 107, 0.6);
  border-color: var(--c-accent);
  transform: scale(1.1);
}

.process__content {
  background: linear-gradient(180deg, rgba(26, 29, 36, 0.5), rgba(12, 14, 18, 0.5));
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  backdrop-filter: blur(10px);
  flex: 1;
  transition: all var(--t-base);
}

.process__step.is-active .process__content {
  border-color: var(--c-line-strong);
  box-shadow: 0 0 0 1px var(--c-line-strong), var(--shadow-card);
}

.process__content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.process__content p {
  font-size: 14px;
  color: var(--c-text-mute);
  margin: 0;
  line-height: 1.6;
}

/* ============== ОБЪЕКТЫ ============== */
.objects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.object-card {
  position: relative;
  padding: 28px 24px;
  background: linear-gradient(180deg, rgba(26, 29, 36, 0.5), rgba(12, 14, 18, 0.5));
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all var(--t-base);
  overflow: hidden;
}

.object-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--c-accent-soft), transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
}

.object-card:hover::before {
  width: 250%;
  height: 250%;
}

.object-card:hover {
  border-color: var(--c-line-strong);
  transform: translateY(-4px);
}

.object-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 14px;
  border: 1px solid var(--c-line-strong);
  background: var(--c-accent-soft);
  color: var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-base);
  position: relative;
  z-index: 2;
}

.object-card:hover .object-card__icon {
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
  color: #1a1208;
  box-shadow: 0 0 25px rgba(255, 216, 107, 0.5);
}

.object-card__icon svg {
  width: 26px;
  height: 26px;
}

.object-card h3 {
  position: relative;
  z-index: 2;
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
}

.object-card p {
  position: relative;
  z-index: 2;
  font-size: 13px;
  color: var(--c-text-mute);
  margin: 0;
}

/* ============== ЦИФРЫ ============== */
.trust {
  position: relative;
  overflow: hidden;
}

.trust__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.trust__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  aspect-ratio: 2 / 1;
  background: radial-gradient(ellipse, rgba(255, 216, 107, 0.12), transparent 70%);
  filter: blur(60px);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat {
  padding: 50px 30px;
  background: var(--c-bg-2);
  text-align: center;
  transition: background var(--t-base);
  position: relative;
}

.stat:hover {
  background: var(--c-bg-3);
}

.stat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--c-accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity var(--t-base);
}

.stat:hover::before {
  opacity: 1;
}

.stat__num {
  display: block;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  color: var(--c-accent);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  text-shadow: 0 0 30px rgba(255, 216, 107, 0.5);
  position: relative;
}

.stat__num span {
  font-size: 0.6em;
  margin-left: 2px;
}

.stat__label {
  display: block;
  font-size: 14px;
  color: var(--c-text-mute);
  line-height: 1.4;
  position: relative;
}

/* ============== ФОРМА ============== */
.contact {
  position: relative;
  overflow: hidden;
}

.contact__wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 4.4vw, 60px);
  align-items: start;
}

.contact__info {
  position: relative;
}

.contact__info .section__pre,
.contact__info .section__title,
.contact__info .section__desc {
  text-align: left;
}

.contact__info .section__title {
  margin-top: 24px;
}

.contact__list {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  color: var(--c-text);
}

.contact__list a:hover {
  color: var(--c-accent);
}

.contact__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--c-accent-soft);
  border: 1px solid var(--c-line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
}

.contact__icon svg {
  width: 20px;
  height: 20px;
}

.contact__decor {
  position: absolute;
  top: -40px;
  right: clamp(-90px, -6vw, -24px);
  width: clamp(130px, 16vw, 200px);
  pointer-events: none;
  opacity: 0.6;
  animation: bulbFloat 8s ease-in-out infinite;
}

.contact__form {
  position: relative;
  padding: clamp(24px, 3vw, 40px);
  background: linear-gradient(180deg, rgba(26, 29, 36, 0.7), rgba(12, 14, 18, 0.7));
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-deep), 0 0 80px rgba(255, 216, 107, 0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact__form-title {
  grid-column: 1 / -1;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  padding: 14px 16px;
  background: rgba(7, 8, 10, 0.6);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  color: var(--c-text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  font-size: 15px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--c-text-dim);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(255, 216, 107, 0.12);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffd86b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

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

.contact__form .btn {
  grid-column: 1 / -1;
}

.contact__note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  color: var(--c-text-dim);
  text-align: center;
}

.contact__success {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 29, 36, 0.96), rgba(12, 14, 18, 0.96));
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-base);
}

.contact__success.is-visible {
  opacity: 1;
  visibility: visible;
}

.contact__success-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  color: var(--c-accent);
  filter: drop-shadow(0 0 20px var(--c-accent-glow));
}

.contact__success h4 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--c-accent);
}

.contact__success p {
  font-size: 15px;
  color: var(--c-text-mute);
  margin: 0;
  max-width: 300px;
}

/* ============== FOOTER ============== */
.footer {
  background: linear-gradient(180deg, transparent, var(--c-bg-2));
  border-top: 1px solid var(--c-line);
  padding-top: 80px;
  position: relative;
  z-index: 2;
}

.footer__container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 60px;
}

.footer__brand p {
  margin: 18px 0 24px;
  font-size: 14px;
  color: var(--c-text-mute);
  line-height: 1.6;
  max-width: 320px;
}

.footer__socials {
  display: flex;
  gap: 10px;
}

.footer__socials a {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-mute);
  transition: all var(--t-fast);
}

.footer__socials a:hover {
  background: var(--c-accent-soft);
  border-color: var(--c-accent);
  color: var(--c-accent);
  transform: translateY(-2px);
}

.footer__socials svg {
  width: 18px;
  height: 18px;
}

.footer__col h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-text);
}

.footer__col a,
.footer__col span {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--c-text-mute);
}

.footer__col a:hover {
  color: var(--c-accent);
}

.footer__bottom {
  border-top: 1px solid var(--c-line);
  padding: 24px 0;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--c-text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================================================
   АДАПТИВ
   ========================================================= */

/* tablet */
@media (max-width: 1024px) {
  .hero__bulb-sparks {
    --spark-orbit-radius: 140px;
  }

  .header__container {
    grid-template-columns: 1fr auto;
  }

  .header__container>.nav {
    display: none;
  }

  .nav {
    display: none;
  }

  .header__btn {
    display: none;
  }

  .burger {
    display: flex;
  }

  .logo--header .logo__image {
    height: 52px;
  }

  .lang-switch {
    width: 88px;
  }

  .lang-switch__btn {
    min-height: 40px;
    font-size: 11px;
  }

  .nav.is-open {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    background: rgba(7, 8, 10, 0.97);
    backdrop-filter: blur(20px);
    padding: calc(100px + var(--safe-top)) calc(32px + var(--safe-right)) calc(32px + var(--safe-bottom)) calc(32px + var(--safe-left));
    border-left: 1px solid var(--c-line);
    gap: 18px;
    z-index: 90;
  }

  .nav.is-open .nav__link {
    font-size: 22px;
    font-weight: 600;
    color: var(--c-text);
  }

  .nav.is-open .nav__dropdown {
    width: 100%;
    align-self: stretch;
  }

  .nav.is-open .nav__dropdown::after {
    display: none;
  }

  .nav.is-open .nav__dropdown-btn {
    width: 100%;
    justify-content: space-between;
    font-size: 22px;
    font-weight: 600;
    color: var(--c-text);
    text-align: left;
  }

  .nav.is-open .nav__dropdown-btn::after {
    display: none;
  }

  .nav.is-open .nav__dropdown-panel {
    position: static;
    left: auto;
    transform: none;
    min-width: 0;
    margin-top: 12px;
    padding: 0 0 4px 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }

  .nav.is-open .nav__dropdown.is-expanded .nav__dropdown-panel {
    display: block;
  }

  .nav.is-open .nav__dropdown.is-expanded .nav__dropdown-icon {
    transform: rotate(180deg);
  }

  .nav.is-open .nav__dropdown-link {
    padding: 10px 0;
    font-size: 17px;
    font-weight: 500;
    color: var(--c-text-mute);
  }

  .nav.is-open .nav__dropdown-link:hover {
    color: var(--c-accent);
    background: transparent;
  }

  .hero__container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero__content {
    order: 2;
  }

  .hero__visual {
    order: 1;
  }

  .hero__bulb {
    max-width: 320px;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__features {
    justify-content: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .contact__wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .logo--header .logo__image {
    height: 44px;
  }
}

@media (max-width: 834px) {
  .header {
    padding-top: max(14px, var(--safe-top));
    padding-bottom: 14px;
  }

  .header.is-scrolled {
    padding-top: max(12px, var(--safe-top));
    padding-bottom: 12px;
  }

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

  .hero__container {
    gap: 32px;
  }

  .hero__scroll {
    margin-top: 24px;
  }

  .hero__scroll-line {
    height: 36px;
  }

  .page-hero__desc {
    margin-bottom: 28px;
  }

  .contacts__card {
    padding: 24px 20px;
  }

  .contacts__card-link {
    font-size: 16px;
    overflow-wrap: anywhere;
  }
}

/* mobile */
@media (max-width: 640px) {
  .section {
    padding: clamp(56px, 14vw, 80px) 0;
  }

  .section__pre {
    font-size: 11px;
    padding: 6px 12px;
  }

  .hero {
    padding: calc(110px + var(--safe-top)) 0 calc(60px + var(--safe-bottom));
    min-height: auto;
  }

  .hero--has-scroll {
    padding-bottom: calc(72px + var(--safe-bottom));
  }

  .hero__bulb-sparks {
    --spark-orbit-radius: 100px;
  }

  .hero__bulb-sparks span {
    animation-duration: 6s;
  }

  .hero__bulb-rings span {
    animation-duration: 5s;
  }

  .hero__features {
    gap: 20px;
    flex-direction: column;
    align-items: center;
  }

  .hero__features li {
    text-align: center;
  }

  .hero__features strong {
    font-size: 28px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .btn--large {
    padding: 16px 24px;
  }

  .works__tabs {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 6px;
    scrollbar-width: none;
  }

  .works__tabs::-webkit-scrollbar {
    display: none;
  }

  .works__tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 13px;
  }

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

  .work-card {
    aspect-ratio: 5 / 4;
  }

  .services__grid,
  .advantages__grid,
  .objects__grid,
  .trust__grid {
    grid-template-columns: 1fr;
  }

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

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

  .object-card {
    padding: 20px 14px;
  }

  .object-card h3 {
    font-size: 15px;
  }

  .object-card p {
    font-size: 12px;
  }

  .process__timeline {
    padding-left: 50px;
  }

  .process__line {
    left: 22px;
  }

  .process__dot {
    left: -50px;
    width: 44px;
    height: 44px;
    font-size: 15px;
  }

  .process__content {
    padding: 18px 20px;
  }

  .process__content h3 {
    font-size: 17px;
  }

  .process__content p {
    font-size: 13px;
  }

  .contact__form {
    padding: 28px 22px;
  }

  .contact__decor {
    display: none;
  }

  .footer {
    padding-top: 50px;
  }

  .footer__container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 40px;
  }

  .footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .preloader__bulb-wrap,
  .preloader__bulb {
    width: 90px;
    height: 135px;
  }

  .preloader__glow-ring {
    width: 160px;
    height: 160px;
  }

  .preloader__brand {
    font-size: 22px;
    letter-spacing: 0.14em;
  }

  .preloader__tagline {
    font-size: 11px;
  }
}

@media (max-width: 380px) {

  .advantages__grid,
  .objects__grid {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: 32px;
  }
}

/* =========================================================
   ВНУТРЕННИЕ СТРАНИЦЫ (Электрика / Умный дом / Сеть / Калькулятор / Контакты)
   ========================================================= */

/* Активный пункт меню */
.nav__link.is-current {
  color: var(--c-accent);
}

.nav__link.is-current::after {
  width: 100%;
}

.nav__dropdown.is-parent-current .nav__dropdown-btn {
  color: var(--c-accent);
}

.nav__dropdown.is-parent-current .nav__dropdown-btn::after {
  width: 100%;
}

.nav__dropdown-link.is-current {
  color: var(--c-accent);
}

/* Hero для внутренних страниц — компактный, без большой графики */
.page-hero {
  position: relative;
  padding: calc(clamp(124px, 11vw, 160px) + var(--safe-top)) 0 calc(clamp(48px, 5vw, 70px) + var(--safe-bottom));
  overflow: hidden;
  text-align: center;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
}

.page-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 216, 107, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 216, 107, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(420px, 70vw, 800px);
  height: clamp(220px, 34vw, 400px);
  background: radial-gradient(ellipse, rgba(255, 216, 107, 0.18), transparent 70%);
  filter: blur(70px);
  border-radius: 50%;
}

.page-hero__container {
  position: relative;
  z-index: 2;
  max-width: 860px;
  text-align: center;
}

.page-hero__pre {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  padding: 6px 14px;
  border: 1px solid var(--c-line-strong);
  border-radius: 100px;
  background: var(--c-accent-soft);
  margin-bottom: 24px;
}

.page-hero__title {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 22px;
  text-wrap: balance;
}

.page-hero__desc {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--c-text-mute);
  line-height: 1.65;
  margin: 0 auto 36px;
  max-width: 720px;
}

.page-hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Хлебные крошки */
.breadcrumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--c-text-dim);
  margin-bottom: 22px;
}

.breadcrumbs a {
  color: var(--c-text-mute);
  transition: color var(--t-fast);
}

.breadcrumbs a:hover {
  color: var(--c-accent);
}

.breadcrumbs span:not(:last-child) {
  color: var(--c-text-dim);
}

.breadcrumbs span:last-child {
  color: var(--c-accent);
}

/* CTA-блок */
.cta__card {
  position: relative;
  padding: clamp(40px, 6vw, 70px) clamp(24px, 4vw, 60px);
  background: linear-gradient(180deg, rgba(26, 29, 36, 0.7), rgba(12, 14, 18, 0.7));
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-lg);
  text-align: center;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-deep), 0 0 80px rgba(255, 216, 107, 0.08);
  overflow: hidden;
}

.cta__card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, var(--c-accent-soft), transparent 60%);
  pointer-events: none;
}

.cta__title {
  position: relative;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.cta__desc {
  position: relative;
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--c-text-mute);
  margin: 0 auto 32px;
  max-width: 560px;
  line-height: 1.6;
}

.cta__actions {
  position: relative;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============== Контакты — карточки ============== */
.contacts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.contacts__card {
  padding: 30px 28px;
  background: linear-gradient(180deg, rgba(26, 29, 36, 0.6), rgba(12, 14, 18, 0.6));
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  transition: all var(--t-base);
}

.contacts__card:hover {
  transform: translateY(-4px);
  border-color: var(--c-line-strong);
  box-shadow: var(--shadow-card);
}

.contacts__icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--c-accent-soft);
  border: 1px solid var(--c-line-strong);
  color: var(--c-accent);
  margin-bottom: 18px;
}

.contacts__icon svg {
  width: 22px;
  height: 22px;
}

.contacts__card-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-text-dim);
  margin: 0 0 8px;
}

.contacts__card-link {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 6px;
  transition: color var(--t-fast);
}

a.contacts__card-link:hover {
  color: var(--c-accent);
}

.contacts__card-meta {
  font-size: 13px;
  color: var(--c-text-mute);
}

/* ============== Реквизиты ============== */
.requisites__grid {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(26, 29, 36, 0.5), rgba(12, 14, 18, 0.5));
  backdrop-filter: blur(10px);
}

.requisites__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--c-line);
  gap: 20px;
  flex-wrap: wrap;
}

.requisites__row:last-child {
  border-bottom: 0;
}

.requisites__row span {
  font-size: 13px;
  color: var(--c-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.requisites__row strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  text-align: right;
}

/* ============== Калькулятор ============== */
.calc-mode-switch {
  max-width: 460px;
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--c-line-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(14, 16, 22, 0.9), rgba(8, 10, 14, 0.84));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 216, 107, 0.06) inset;
}

.calc-mode-switch__btn {
  border: 0;
  border-radius: 10px;
  min-height: 44px;
  padding: 11px 12px;
  font-size: 12px;
  letter-spacing: 0.03em;
  font-weight: 600;
  color: var(--c-text-dim);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calc-mode-switch__btn:hover {
  color: var(--c-text);
}

.calc-mode-switch__btn.is-active {
  color: #101217;
  background: linear-gradient(135deg, #ffd86b, #ffb938);
  box-shadow: 0 8px 18px rgba(255, 202, 84, 0.35);
}

.calc-mode-panel {
  display: none;
}

.calc-mode-panel.is-active {
  display: block;
}

.calc__wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: start;
}

.calc__form {
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: linear-gradient(180deg, rgba(26, 29, 36, 0.5), rgba(12, 14, 18, 0.5));
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(10px);
}

.calc__group-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  margin: 0 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc__value {
  font-size: 13px;
  color: var(--c-text-mute);
  font-weight: 400;
}

.calc__value strong {
  font-size: 18px;
  color: var(--c-accent);
  font-weight: 700;
  margin-right: 4px;
}

.calc__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.calc__options--four {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.calc__option {
  position: relative;
  cursor: pointer;
}

.calc__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calc__option-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: rgba(7, 8, 10, 0.5);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  transition: all var(--t-fast);
}

.calc__option:hover .calc__option-content {
  border-color: var(--c-line-strong);
}

.calc__option input:checked+.calc__option-content {
  background: rgba(255, 216, 107, 0.08);
  border-color: var(--c-accent);
  box-shadow: 0 0 0 1px var(--c-accent), 0 8px 24px -10px rgba(255, 216, 107, 0.4);
}

.calc__option-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
}

.calc__option-desc {
  font-size: 12px;
  color: var(--c-text-mute);
}

.calc__option input:checked+.calc__option-content .calc__option-desc {
  color: var(--c-accent);
}

.calc__range {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.calc__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
  border: 2px solid var(--c-bg);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 216, 107, 0.6);
  transition: transform var(--t-fast);
}

.calc__range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc__range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
  border: 2px solid var(--c-bg);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 216, 107, 0.6);
}

.calc__range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: var(--c-text-dim);
}

.calc__addons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.calc__addon {
  position: relative;
  cursor: pointer;
}

.calc__addon input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calc__addon-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: rgba(7, 8, 10, 0.5);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  transition: all var(--t-fast);
  gap: 12px;
}

.calc__addon:hover .calc__addon-content {
  border-color: var(--c-line-strong);
}

.calc__addon input:checked+.calc__addon-content {
  background: rgba(255, 216, 107, 0.08);
  border-color: var(--c-accent);
}

.calc__addon-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
}

.calc__addon-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-accent);
  flex-shrink: 0;
}

/* Сводка */
.calc__summary {
  position: sticky;
  top: calc(100px + var(--safe-top));
}

.calc__summary-card {
  padding: 32px 30px;
  background: linear-gradient(180deg, rgba(26, 29, 36, 0.85), rgba(12, 14, 18, 0.85));
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-deep), 0 0 60px rgba(255, 216, 107, 0.1);
}

.calc__summary-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: rgba(8, 10, 14, 0.72);
}

.calc__summary-tab {
  border: 0;
  border-radius: 10px;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--c-text-dim);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.calc__summary-tab:hover {
  color: var(--c-text);
}

.calc__summary-tab.is-active {
  color: #121212;
  background: linear-gradient(135deg, #ffd86b, #ffb938);
  box-shadow: 0 6px 16px rgba(255, 202, 84, 0.35);
}

.calc__summary-view {
  display: none;
}

.calc__summary-view.is-active {
  display: block;
}

.calc__summary-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-text-dim);
  margin-bottom: 10px;
}

.calc__summary-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 26px;
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--c-accent);
  text-shadow: 0 0 30px rgba(255, 216, 107, 0.4);
}

.calc__summary-currency {
  font-size: 0.55em;
  color: var(--c-text-mute);
  font-weight: 600;
}

.calc__summary-price--estimate {
  margin-bottom: 20px;
}

.calc__summary-meta {
  border-top: 1px solid var(--c-line);
  padding-top: 18px;
  margin-bottom: 22px;
}

.calc__summary-meta--fx {
  margin-bottom: 0;
  padding-top: 14px;
}

.calc__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.calc__meta-row:last-child {
  border-bottom: 0;
}

.calc__meta-row span {
  color: var(--c-text-mute);
}

.calc__meta-row strong {
  color: var(--c-text);
  font-weight: 600;
}

.calc__note {
  font-size: 12px;
  color: var(--c-text-dim);
  margin: 16px 0 0;
  text-align: center;
  line-height: 1.5;
}

/* Legacy calculator (перенесен из отдельной папки) */
.legacy-calc .legacy-calc__card {
  max-width: 920px;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(1200px 500px at 0% 0%, rgba(255, 216, 107, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(26, 29, 36, 0.88), rgba(12, 14, 18, 0.9));
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-deep), 0 0 80px rgba(255, 216, 107, 0.09);
}

.legacy-calc .legacy-calc__list {
  max-height: 430px;
  overflow-y: auto;
  padding-right: 10px;
  margin-bottom: 18px;
}

.legacy-calc .legacy-calc__list::-webkit-scrollbar {
  width: 8px;
}

.legacy-calc .legacy-calc__list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 99px;
}

.legacy-calc .legacy-calc__list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 216, 107, 0.8), rgba(255, 185, 56, 0.75));
  border-radius: 99px;
}

.legacy-calc .legacy-calc__service {
  margin-bottom: 16px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(7, 9, 13, 0.52);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legacy-calc .legacy-calc__service-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legacy-calc .legacy-calc__select,
.legacy-calc .legacy-calc__input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 216, 107, 0.26);
  border-radius: 9px;
  color: var(--c-text);
  outline: none;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.legacy-calc .legacy-calc__select:focus,
.legacy-calc .legacy-calc__input:focus {
  border-color: var(--c-accent);
  background: rgba(255, 216, 107, 0.06);
  box-shadow: 0 0 0 3px rgba(255, 216, 107, 0.18);
}

.legacy-calc .legacy-calc__select option {
  background: #1a2e35;
  color: #f7a76c;
}

.legacy-calc .legacy-calc__remove {
  color: #e58b4b;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.25);
  transition: all 0.2s ease;
}

.legacy-calc .legacy-calc__remove:hover {
  color: #ffb1b1;
  background: rgba(255, 107, 107, 0.16);
}

.legacy-calc .legacy-calc__label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--c-text-mute);
}

.legacy-calc .legacy-calc__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.legacy-calc .legacy-calc__btn {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  letter-spacing: 0.01em;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #ffd86b, #ffb938);
  color: #101217;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.legacy-calc .legacy-calc__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(255, 202, 84, 0.32);
  filter: brightness(1.02);
}

.legacy-calc .legacy-calc__btn--ghost {
  background: rgba(255, 216, 107, 0.12);
  color: var(--c-accent);
  border: 1px solid rgba(255, 216, 107, 0.35);
  margin-bottom: 4px;
}

.legacy-calc .legacy-calc__btn--danger {
  background: rgba(255, 107, 107, 0.18);
  color: #ff9f9f;
  border: 1px solid rgba(255, 107, 107, 0.35);
}

.legacy-calc .legacy-calc__result {
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}

.legacy-calc .legacy-calc__total {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  color: var(--c-accent);
  margin: 0 0 12px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px rgba(255, 216, 107, 0.28);
}

.legacy-calc .legacy-calc__meta {
  margin: 0 0 7px;
  font-size: 13px;
  color: var(--c-text-mute);
}

/* =================== Portfolio case page =================== */
.case-page__hero {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--c-line-strong);
  box-shadow: var(--shadow-deep);
  margin-bottom: 28px;
}

.case-page__hero img {
  display: block;
  width: 100%;
  height: clamp(280px, 44vw, 520px);
  object-fit: cover;
}

.case-page__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.case-page__card {
  padding: 28px;
  background: linear-gradient(180deg, rgba(26, 29, 36, 0.7), rgba(12, 14, 18, 0.75));
  border: 1px solid var(--c-line);
  border-radius: 16px;
}

.case-page__card h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.case-page__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--c-text-mute);
  line-height: 1.6;
}

.case-gallery__slider {
  position: relative;
  padding: 0 clamp(30px, 4vw, 52px) 42px;
}

.case-gallery__viewport {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-deep);
}

.case-gallery__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.case-gallery__slide {
  min-width: 100%;
}

.case-gallery__slide img {
  width: 100%;
  display: block;
  height: clamp(280px, 40vw, 520px);
  object-fit: cover;
}

.case-gallery__nav {
  position: absolute;
  top: calc(50% - 22px);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c-line-strong);
  background: rgba(12, 16, 21, 0.85);
  color: var(--c-text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.case-gallery__nav--prev {
  left: 0;
}

.case-gallery__nav--next {
  right: 0;
}

.case-gallery__nav:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.case-gallery__dots {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.case-gallery__dot {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--t-fast);
}

.case-gallery__dot::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}

.case-gallery__dot.is-active::after {
  background: var(--c-accent);
  box-shadow: 0 0 12px rgba(255, 216, 107, 0.6);
  transform: scale(1.12);
}

.case-gallery__dot:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--c-bg), 0 0 0 4px var(--c-accent);
  border-radius: 50%;
}

/* Адаптив для внутренних страниц */
@media (max-width: 1024px) {
  .calc__wrap {
    grid-template-columns: 1fr;
  }

  .calc__summary {
    position: static;
  }

  .case-page__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding: calc(130px + var(--safe-top)) 0 calc(50px + var(--safe-bottom));
  }

  .page-hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .page-hero__actions .btn {
    width: 100%;
  }

  .calc__form {
    padding: 22px;
    gap: 24px;
  }

  .calc__options,
  .calc__addons {
    grid-template-columns: 1fr;
  }

  .calc__summary-card {
    padding: 22px;
  }

  .legacy-calc .legacy-calc__card {
    padding: 18px;
  }

  .legacy-calc .legacy-calc__actions {
    grid-template-columns: 1fr;
  }

  .legacy-calc .legacy-calc__total {
    font-size: 24px;
  }

  .case-page__card {
    padding: 20px;
  }

  .case-page__card h2 {
    font-size: 20px;
  }

  .case-gallery__slider {
    padding: 0 0 36px;
  }

  .case-gallery__nav {
    display: none;
  }

  .requisites__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .requisites__row strong {
    text-align: left;
  }

  .cta__card {
    padding: 36px 22px;
  }
}

@media (max-width: 480px) {
  .btn--ghost {
    white-space: normal;
    text-align: center;
  }
}

/* =========================================================
   МОДАЛКА «ЗАКАЗАТЬ ЗВОНОК»
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(24px, var(--safe-top)) max(24px, var(--safe-right)) max(24px, var(--safe-bottom)) max(24px, var(--safe-left));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

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

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 7, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px - var(--safe-top) - var(--safe-bottom));
  max-height: calc(100dvh - 48px - var(--safe-top) - var(--safe-bottom));
  overflow-y: auto;
  padding: 36px 32px 32px;
  background: linear-gradient(180deg, rgba(20, 22, 28, 0.98), rgba(13, 14, 18, 0.98));
  border: 1px solid var(--c-line);
  border-radius: 18px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 216, 107, 0.04) inset,
    0 0 60px rgba(255, 216, 107, 0.08);
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.28s ease;
}

.modal.is-open .modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal__dialog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30%;
  right: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 216, 107, 0.5), transparent);
}

.modal__close {
  position: absolute;
  top: max(14px, var(--safe-top));
  right: max(14px, var(--safe-right));
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-text-mute);
  cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}

.modal__close:hover {
  color: var(--c-text);
  background: rgba(255, 216, 107, 0.1);
  border-color: rgba(255, 216, 107, 0.4);
  transform: rotate(90deg);
}

.modal__head {
  text-align: center;
  margin-bottom: 24px;
}

.modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
  color: #1a1208;
  box-shadow: 0 0 24px rgba(255, 216, 107, 0.3);
}

.modal__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.modal__desc {
  font-size: 14px;
  color: var(--c-text-mute);
  line-height: 1.5;
  max-width: 360px;
  margin: 0 auto;
}

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

.modal__form .field {
  margin: 0;
}

.modal__form .field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  margin-bottom: 6px;
}

.field__optional {
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--c-text-dim);
  opacity: 0.7;
}

.modal__form .field input,
.modal__form .field textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  color: var(--c-text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}

.modal__form .field input::placeholder,
.modal__form .field textarea::placeholder {
  color: var(--c-text-dim);
}

.modal__form .field input:focus,
.modal__form .field textarea:focus {
  outline: none;
  border-color: rgba(255, 216, 107, 0.6);
  background: rgba(255, 216, 107, 0.04);
  box-shadow: 0 0 0 3px rgba(255, 216, 107, 0.12);
}

.modal__form .field textarea {
  resize: none;
  min-height: 84px;
}

.modal__form .btn {
  margin-top: 4px;
}

.modal__note {
  font-size: 12px;
  color: var(--c-text-dim);
  line-height: 1.5;
  text-align: center;
  margin-top: 4px;
}

.modal__success {
  display: none;
  text-align: center;
  padding: 24px 8px 4px;
}

.modal__success.is-visible {
  display: block;
}

.modal__success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
}

.modal__success h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.modal__success p {
  font-size: 14px;
  color: var(--c-text-mute);
}

body.is-modal-open {
  overflow: hidden;
}

.lead-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 12000;
  max-width: min(360px, calc(100vw - 32px));
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 216, 107, 0.35);
  background: rgba(12, 14, 20, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}

.lead-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lead-toast strong {
  font-size: 15px;
  color: var(--c-text);
}

.lead-toast span {
  font-size: 13px;
  color: var(--c-text-mute);
  line-height: 1.45;
}

.field--hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.btn.is-lead-locked,
a.btn.is-lead-locked {
  opacity: 0.72;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.15);
}

@media (max-width: 640px) {
  .modal {
    padding: max(16px, var(--safe-top)) max(16px, var(--safe-right)) max(16px, var(--safe-bottom)) max(16px, var(--safe-left));
  }

  .modal__dialog {
    padding: 28px 20px 24px;
    border-radius: 16px;
  }

  .modal__title {
    font-size: 20px;
  }
}

/* ============== reduced-motion ============== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__bulb-svg,
  .hero__bulb-rings span,
  .hero__bulb-sparks span,
  .hero__lines span,
  .hero__particles span,
  .hero__glow {
    animation: none;
  }
}