/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  position: relative;
  overflow-x: hidden;
}

/* Волнистый градиент-фон с анимацией */
.gradient-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(270deg, #5a2f4c, #3e2f5c, #342c5f, #241f80, #3e2f6e);
  background-size: 1500% 1500%;
  animation: wave 20s ease infinite;
  filter: brightness(0.7) saturate(1.2);
  z-index: -2;
}

@keyframes wave {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Хедер */
.glass-header {
  width: 100%;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(25px);
  background: linear-gradient(
    120deg,
    rgba(255, 78, 203, 0.1) 0%,
    rgba(108, 99, 255, 0.15) 50%,
    rgba(0, 240, 255, 0.1) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.2);
  position: fixed;
  top: 0;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.glass-header::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 100%;
  height: 20px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(108, 99, 255, 0.3), transparent);
  filter: blur(14px);
  border-radius: 0 0 20px 20px;
  z-index: -1;
}

.glass-header {
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeSlideDown 0.8s forwards ease-out;
}

@keyframes fadeSlideDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Стеклянная капля (уменьшенная) */
.glass-drop {
  padding: 10px 20px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.1),
    0 6px 16px rgba(0, 0, 0, 0.2);
  position: relative;
}

/* Логотип (уменьшенный размер шрифта) */
.logo {
  font-size: 24px;
  font-weight: 600;
  color: white;
  text-shadow: 0 0 6px #b37bff;
}

.logo .on {
  color: #6C63FF;
  text-shadow: 0 0 10px #6C63FF;
}

/* Блик */
.glass-drop::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
  border-radius: inherit;
  pointer-events: none;
}


/* Навигация */
.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.15);
  transition: all 0.3s ease;
  font-weight: 600;
  user-select: none;
  position: relative;
}

.nav-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, #ff4ecb, #6C63FF, #00f0ff);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(14px);
}

.nav-links a:hover::before {
  opacity: 0.6;
}

.nav-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.4);
}

/* Переключатель языка */
.language-switcher {
  position: relative;
}

.language-switcher img {
  width: 26px;
  cursor: pointer;
  filter: brightness(0) invert(1);
}

/* Выпадающее меню языка */
.lang-dropdown {
  position: absolute;
  right: 0;
  background: rgba(30, 30, 47, 0.85);
  backdrop-filter: blur(16px);
  border-radius: 12px;
  overflow: hidden;
  display: none;
  margin-top: 8px;
  box-shadow: 0 6px 18px rgba(108, 99, 255, 0.4);
  z-index: 1100;
}

.lang-dropdown li {
  list-style: none;
  padding: 10px 18px;
  cursor: pointer;
  color: white;
  white-space: nowrap;
  font-weight: 600;
  transition: background 0.25s ease;
  user-select: none;
}

.lang-dropdown li:hover {
  background: rgba(108, 99, 255, 0.3);
}

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all 0.4s ease;
  z-index: 2000;
}

.burger div {
  width: 28px;
  height: 3.5px;
  background: white;
  border-radius: 3px;
  transition: all 0.4s ease;
  box-shadow: 0 2px 8px rgba(108, 99, 255, 0.6); /* более выраженная тень */
}

/* Анимация иконки */
.burger.active div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active div:nth-child(2) {
  opacity: 0;
}

.burger.active div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  top: 70px;
  right: -100%;
  width: 90%;
  max-width: 320px;
  height: calc(100% - 70px);
  background: linear-gradient(
    145deg,
    rgba(255, 78, 203, 0.12),
    rgba(108, 99, 255, 0.12),
    rgba(0, 240, 255, 0.12)
  );
  backdrop-filter: blur(30px);
  border-radius: 22px 0 0 22px;
  border: 1px solid rgba(108, 99, 255, 0.25);
  box-shadow: 0 10px 28px rgba(108, 99, 255, 0.5);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  padding: 30px 25px;
  z-index: 1500;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
}

.mobile-menu.active {
  right: 0;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.mobile-menu nav a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 18px;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.1),
    0 0 12px rgba(108, 99, 255, 0.3);
  transition: all 0.3s ease;
  user-select: none;
  animation: fadeInUp 0.4s ease forwards;
  opacity: 0;
}

/* Задержка анимации появления */
.mobile-menu.active nav a {
  animation: fadeInUp 0.4s ease forwards;
}

.mobile-menu nav a:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu nav a:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu nav a:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu nav a:nth-child(4) { animation-delay: 0.2s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover эффект с glow */
.mobile-menu nav a:hover,
.mobile-menu nav a:focus {
  background: rgba(108, 99, 255, 0.25);
  box-shadow:
    0 0 24px rgba(108, 99, 255, 0.45),
    0 0 16px rgba(255, 78, 203, 0.3);
  outline: none;
  transform: scale(1.02);
}

.mobile-lang-switch {
  border-top: 1px solid rgba(108, 99, 255, 0.3);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-lang-switch p {
  color: white;
  margin-bottom: 12px;
  font-weight: 700;
  user-select: none;
}

#mobile-lang-dropdown {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 18px;
}

#mobile-lang-dropdown li {
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(108, 99, 255, 0.2);
  color: white;
  font-weight: 700;
  transition: background 0.3s ease;
  user-select: none;
  margin-top: 12px;
}

#mobile-lang-dropdown li:hover,
#mobile-lang-dropdown li:focus {
  background: rgba(108, 99, 255, 0.45);
  outline: none;
}

/* Размер иконки глобуса для мобильной версии */
.mobile-globe {
  width: 30px;
  cursor: pointer;
  filter: brightness(0) invert(1);
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: white;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

/* Spline 3D background fills hero fully */
.spline-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto; /* Чтобы был интерактивный */
  z-index: 1;
}

.spline-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3); /* затемнение */
  z-index: 2;
  pointer-events: none; /* тоже не мешает скроллу */
}
/* Полупрозрачный градиент сверху для контраста */
.gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.2) 100%);
}

/* Контент поверх */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  
}

/* Заголовок */
.hero-title {
  font-size: 3.6rem;
  font-weight: 900;
  margin-bottom: 0.3em;
  letter-spacing: 0.05em;
  text-shadow: 0 0 12px rgba(155, 89, 182, 0.8);
}

/* Выделение в заголовке */
.highlight {
  color: #9b59b6;
  text-shadow: 0 0 20px #9b59b6;
}

/* Подзаголовок */
.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2.2em;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 0 6px rgba(0,0,0,0.5);
  line-height: 1.4;
}

/* Кнопки */
.hero-buttons {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Кнопки: эффект жидкого стекла */
.btn {
  position: relative;
  padding: 14px 40px;
  border-radius: 40px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  overflow: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 8px 32px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 10px rgba(255, 255, 255, 0.2);
  color: white;
  background: rgba(255, 255, 255, 0.1);
  min-width: 180px;
  text-align: center;
  font-size: 1.1rem;
}

/* Эффект блеска перелива */
.btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    rgba(255,255,255,0.25) 0%,
    rgba(255,255,255,0.05) 60%,
    rgba(255,255,255,0.25) 100%
  );
  transform: rotate(25deg);
  animation: liquid-shine 4s linear infinite;
  pointer-events: none;
  z-index: 0;
  border-radius: 40px;
}

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

/* Главная кнопка */
.btn-primary {
  background: rgba(155, 89, 182, 0.2);
  border: 1.5px solid rgba(155, 89, 182, 0.5);
  color: #9b59b6;
  box-shadow:
    0 8px 32px 0 rgba(155, 89, 182, 0.3),
    inset 0 0 15px rgba(155, 89, 182, 0.5);
}

.btn-primary::before {
  background: linear-gradient(
    45deg,
    rgba(155, 89, 182, 0.35) 0%,
    rgba(155, 89, 182, 0.05) 60%,
    rgba(155, 89, 182, 0.35) 100%
  );
}

/* Второстепенная кнопка */
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: white;
  box-shadow:
    0 8px 32px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.btn-secondary::before {
  background: linear-gradient(
    45deg,
    rgba(255,255,255,0.25) 0%,
    rgba(255,255,255,0.05) 60%,
    rgba(255,255,255,0.25) 100%
  );
}

/* Анимация блеска */
@keyframes liquid-shine {
  0% {
    transform: translateX(-100%) rotate(25deg);
  }
  100% {
    transform: translateX(100%) rotate(25deg);
  }
}

/* Ховер кнопок */
.btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 12px 48px 0 rgba(255, 255, 255, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.5);
  color: #9b59b6;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: rgba(155, 89, 182, 0.5);
  border-color: #9b59b6;
  box-shadow:
    0 12px 48px 0 rgba(155, 89, 182, 0.7),
    inset 0 0 25px rgba(155, 89, 182, 0.8);
  color: #fff;
}

@keyframes flipInX {
  0% {
    transform: perspective(400px) rotateX(90deg);
    opacity: 0;
  }
  100% {
    transform: perspective(400px) rotateX(0deg);
    opacity: 1;
  }
}

.hero-title,
.hero-subtitle,
.hero-buttons {
  opacity: 0;
  animation-fill-mode: forwards;
}

.hero-title {
  animation: flipInX 0.8s ease forwards;
  animation-delay: 0.2s;
}

.hero-subtitle {
  animation: flipInX 0.8s ease forwards;
  animation-delay: 0.5s;
}

.hero-buttons {
  animation: flipInX 0.8s ease forwards;
  animation-delay: 0.8s;
}


/* Services */
.spline-bg_services {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10; /* сначала робот поверх */
  pointer-events: none;
  transform: scale(1.5);
  transition: all 1.5s ease;
  opacity: 1;
}

.spline-bg_services.background-mode {
  z-index: -1; /* уходит за карточки */
  transform: scale(1);
}


/* Секция услуг */
.services-section {
  position: relative;
  z-index: 2; /* Подробно: ниже робота вначале */
  padding: 100px 20px;
  text-align: center;
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 50px;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(155, 89, 182, 0.8);
}

.sub-title {
  font-size: 2rem;
  margin: 40px 0 20px;
  color: #9b59b6;
  text-shadow: 0 0 20px #9b59b6;
  font-weight: 600;
}

/* Сетка карточек */
.cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin-bottom: 80px;
}

/* Карточки */
.flip-card {
  width: 280px;
  height: 400px;
  perspective: 1000px;
}

.flip-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
  position: relative;
  border-radius: 20px;
  cursor: pointer;
}

.flip-card:hover .flip-inner,
.flip-card.flip .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  backdrop-filter: blur(5px);
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.01);
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  text-align: center;
  color: #ddd;
  font-weight: 500;
  overflow: hidden;
}

.flip-front::before,
.flip-back::before {
  content: '';
  position: absolute;
  top: -120%;
  left: -200%;
  width: 500%;
  height: 580%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.1) 45%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 55%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: rotate(25deg);
  animation: shine 5s linear infinite;
  pointer-events: none;
  border-radius: 20px;
  z-index: 2;
}

@keyframes shine {
  0% {
    transform: translateX(-160%) rotate(25deg);
  }
  100% {
    transform: translateX(160%) rotate(25deg);
  }
}

.flip-front h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #d6b0e0;
}

.flip-front img {
  position: absolute;
  bottom: 20px; /* отступ от низа */
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  margin-bottom: 0; /* убрать, иначе может сбивать позицию */
}


.flip-back {
  transform: rotateY(180deg);
  font-size: 1rem;
  color: #e0c3f7;
}

/* Кнопка */
.contact-btn {
  margin-top: 20px;
  background: #a17bbc;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(108, 99, 255, 0.2), inset 0 0 10px rgba(108, 99, 255, 0.3);
}

.contact-btn:hover {
  background: #d1b9e0;
  color: #6a4a78;
}


.flip-back .service-points {
  list-style: none;
  padding: 0;
  margin: 15px 0;
  font-size: 14px;
  color: #f0eaff;
  line-height: 1.6;
  text-align: left;
}

.flip-back .service-points li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.flip-back .service-points li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #c89fff;
  font-size: 14px;
}

#service-calculator {
  padding: 40px 20px;
  font-family: 'Segoe UI', sans-serif;
  color: #fff;
  background: transparent;
}

.calculator-box {
  max-width: 700px;
  margin: auto;
  border-radius: 20px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.calculator-box h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(155, 89, 182, 0.8);
}

.calculator-box label {
  display: block;
  margin-top: 8px;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 18px;
  color: #e39cff;
  text-shadow: 0 0 20px #f86fb8;
}

/* Inputs & Selects */
.calculator-box select,
.calculator-box input[type="number"],
.calculator-box input[type="range"],
#serviceSelection select,
#serviceCategory {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;

  margin-top: 4px;
  margin-bottom: 20px;
  font-size: 15px;
  transition: all 0.3s ease;
  text-shadow: 0 0 12px rgba(155, 89, 182, 0.8);
}

.calculator-box select:focus,
.calculator-box input:focus {
  outline: none;
  border-color: #5fb4ff;
  background-color: rgba(255, 255, 255, 0.25);
}

/* Range slider */
input[type="range"] {
  appearance: none;
  width: 100%;
  height: 6px;
  background: #5fb4ff;
  border-radius: 4px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  background: #fff;
  border: 2px solid #5fb4ff;
  border-radius: 50%;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #fff;
  border: 2px solid #5fb4ff;
  border-radius: 50%;
  cursor: pointer;
}



.calculator-box input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin-right: 10px;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(234, 76, 255, 0.8);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.calculator-box input[type="checkbox"]:hover {
  box-shadow: 0 0 8px rgba(234, 76, 255, 0.5);
}

.calculator-box input[type="checkbox"]:checked {
  background-color: rgb(211, 100, 255);
  border-color: rgb(211, 100, 255);
  box-shadow: 0 0 12px rgba(155, 89, 182, 0.6);
}

/* Галочка */
.calculator-box input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: translate(-50%, -60%) rotate(45deg);
  pointer-events: none;
}


/* Button */
#service-calculator button {
  position: relative;
  padding: 16px 48px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.15rem;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  text-align: center;
  transition: all 0.4s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(0, 255, 255, 0.2); /* aqua */
  background: rgba(0, 255, 255, 0.05); /* soft aqua glass */
  color: #e0fdfc;
  width: 100%;
  z-index: 1;
  letter-spacing: 0.5px;
  box-shadow:
    0 10px 30px rgba(0, 255, 255, 0.1),
    inset 0 0 25px rgba(0, 255, 255, 0.08);
}

/* Анимированный shine */
#service-calculator button::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: linear-gradient(
    45deg,
    rgba(0, 255, 255, 0.25),
    rgba(0, 255, 255, 0.05),
    rgba(0, 255, 255, 0.25)
  );
  transform: rotate(25deg);
  animation: emerald-shine 5s linear infinite;
  pointer-events: none;
  z-index: 0;
  border-radius: 50px;
}

#service-calculator button > * {
  position: relative;
  z-index: 1;
}

/* Hover эффект */
#service-calculator button:hover {
  background-color: rgba(0, 255, 255, 0.15);
  transform: scale(1.03);
  box-shadow:
    0 14px 45px rgba(0, 255, 255, 0.2),
    inset 0 0 30px rgba(0, 255, 255, 0.2);
}

/* Анимация shine */
@keyframes emerald-shine {
  0% {
    transform: translateX(-100%) rotate(25deg);
  }
  100% {
    transform: translateX(100%) rotate(25deg);
  }
}


/* Result */
#resultBox {
  display: none;
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

#resultBox p {
  font-size: 18px;
  color: #fff;
}

#resultPrice {
  font-size: 36px;
  font-weight: bold;
  color: #9ca9ff;
  margin-top: 10px;
}

/*ABOUT SECTION*/

/* Общие настройки */
.about-section {
  position: relative;
  z-index: 2; /* Подробно: ниже робота вначале */
  padding: 100px 20px;
  text-align: center;
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Контейнер поверх 3D */
.container_about {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  z-index: 10;
}

/* Заголовок */
.title_about {
  font-size: 3rem;
  margin-bottom: 50px;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(155, 89, 182, 0.8);
}

.subtitle_about {
  font-size: 2rem;
  margin: 40px 0 20px;
  color: #9b59b6;
  text-shadow: 0 0 20px #9b59b6;
  font-weight: 600;
}

/* Миссия: облачные карточки */
.mission {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 70px;
}

.mission-item {
  flex: 1 1 30%;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  padding: 24px 20px;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  color: #f0f8ff;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  position: relative;
  min-width: 280px;
}

.mission-item:focus,
.mission-item:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.5);
  outline: none;
}

.mission-item .icon {
  width: 28px;
  margin-bottom: 16px;
  cursor: pointer;
  filter: brightness(0) invert(1);
}

.mission-item h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 700;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

.mission-item p {
  font-size: 1rem;
  line-height: 1.4;
  opacity: 0.85;
  user-select: none;
}

/* Tooltip */
.tooltip {
  position: absolute;
  bottom: -42px;
  left: 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  color: #e0e7ff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  max-width: 220px;
}

.mission-item:focus .tooltip,
.mission-item:hover .tooltip {
  opacity: 1;
  pointer-events: auto;
}

/* Процесс */
.process {
  margin-bottom: 80px;
  text-align: center;
  position: relative;
}

.process h2 {
  font-size: 2rem;
  margin: 40px 0 20px;
  color: #9b59b6;
  text-shadow: 0 0 20px #9b59b6;
  font-weight: 600;
}

.steps {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto 40px auto;
}

.step {
  background: rgba(40, 52, 91, 0.7);
  flex: 1 1 160px;
  border-radius: 24px;
  padding: 20px;
  color: #dbe6ff;
  box-shadow: 0 8px 20px rgba(126, 126, 255, 0.3);
  transition: transform 0.4s ease;
}

.step:hover {
  transform: translateY(-10px);
}

.step .circle {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #7e7fff, #4848ff);
  border-radius: 50%;
  margin: 0 auto 14px auto;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 8px #7e7fff;
}

.step h4 {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 8px;
  text-shadow: 0 0 5px #9399ff;
}

.step p {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.3;
}


/* Результат */
.result-icon {
  font-size: 3.6rem;
  margin-bottom: 10px;
  color: #9b59b6;
  text-shadow:
  0 0 6px rgba(155, 89, 182, 0.9),
  0 0 12px rgba(155, 89, 182, 0.9),
  0 0 20px rgba(155, 89, 182, 1),
  0 0 30px rgba(155, 89, 182, 1);
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

.bar {
  position: relative;
  background-color: #ddd;
  height: 25px;
  border-radius: 4px;
  overflow: hidden;
}

.progress {
  background-color: #4caf50;
  height: 100%;
  width: 0;
  transition: width 0.3s ease-out;
}

.progress-label {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  color: #9466ff;
  pointer-events: none;
}

.result-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #8b9cff;
  text-shadow: 0 0 12px rgba(155, 89, 182, 0.8);
  margin-bottom: 50px;
}

.stats-bars-section {
  max-width: 600px;
  margin: 3rem auto;
  padding: 0 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
  text-align: center;
}

.stats-bars-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #9b59b6;
  text-shadow: 0 0 20px #9b59b6;
}

.stats-bars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bar-item p {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  text-align: left;
  color: white;
  text-shadow: 0 0 12px rgba(155, 89, 182, 0.8);
}

.bar {
  position: relative;
  background: #ddd;
  height: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.progress {
  background: linear-gradient(90deg, #fa30e5, #b02795);
  height: 100%;
  width: 0%;
  border-radius: 10px 0 0 10px;
  transition: width 2.5s ease-in-out;
}

.note {
  margin-top: 2rem;
  font-style: italic;
  color: #a87ebf; /* нежный лавандовый оттенок */
  font-size: 0.95rem;
  text-shadow: 
    0 0 4px rgba(168, 126, 191, 0.5),
    0 0 8px rgba(168, 126, 191, 0.3);
}


/* Цитата с эффектом печатания */
.philosophy {
  font-style: italic;
  font-size: 1.3rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
  color: #c7caf7;
  min-height: 48px;
  user-select: none;
  letter-spacing: 0.04em;
}

.cursor {
  animation: blink 1s infinite;
  color: #7e7fff;
  font-weight: 700;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Кнопка CTA */
.cta {
  text-align: center;
}

#contactBtn {
  background: linear-gradient(135deg, #7e7fff, #4848ff);
  color: #fff;
  border: none;
  padding: 14px 36px;
  font-size: 1.2rem;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(72, 72, 255, 0.7);
  transition: background 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

#contactBtn:hover,
#contactBtn:focus {
  background: linear-gradient(135deg, #4848ff, #7e7fff);
  transform: scale(1.05);
  outline: none;
}

#systemBtn {
  background: linear-gradient(135deg, #be7eff, #4860ff);
  color: #fff;
  border: none;
  padding: 14px 36px;
  font-size: 1.2rem;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(72, 72, 255, 0.7);
  transition: background 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  margin-left: 20px;
}

#systemBtn:hover,
#systemBtn:focus {
  background: linear-gradient(135deg, #4848ff, #be7eff);
  transform: scale(1.05);
  outline: none;
}

/* Modal styles — если ещё нет */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #0a0a0a;
  color: #00ffff;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  text-align: center;
  font-family: 'Courier New', monospace;
  position: relative;
}

.close {
  position: absolute;
  top: 10px; right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
}

.progress-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  height: 14px;
  margin: 20px 0;
}

.progress-bar {
  background: #00ffff;
  height: 100%;
  width: 0;
  transition: width 0.4s ease;
}

.scan-logs {
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid #0ff;
  padding: 10px;
  max-height: 140px;
  overflow-y: auto;
  text-align: left;
  font-size: 14px;
  margin-bottom: 15px;
}

.scan-logs p {
  margin: 4px 0;
  animation: fadeInLeft 0.3s ease;
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.system-message {
  font-size: 16px;
  margin-top: 10px;
  color: #fff;
}

.prank-message {
  font-size: 16px;
  margin-top: 10px;
  color: #ffcc00;
  font-weight: bold;
  white-space: pre-wrap;
  min-height: 40px;
}
.prank-message.blink {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/*Contact Section */
.contact-section {
  position: relative;
  padding: 60px 20px;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #fff;
  overflow: hidden;
}

/* Стеклянный контейнер */
.container {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Заголовок */
.contact-section h2 {
  font-size: 3rem;
  margin-bottom: 50px;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(155, 89, 182, 0.8);
}

/* Формы */
form .form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

form label {
  font-weight: 500;
  margin-bottom: 6px;
  color: #9b59b6;
  text-shadow: 0 0 20px #9b59b6;
}

form input,
form select,
form textarea {
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.01);
  color: #fff;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  transition: 0.3s ease;
  box-shadow: inset 0 0 5px rgba(255,255,255,0.1);
}

form input::placeholder,
form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: #00c6ff;
  outline: none;
  box-shadow: 0 0 10px rgba(0, 198, 255, 0.4);
}

/* Textarea */
form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Кнопка отправки */
.submit-btn {
  margin-top: 10px;
  width: 100%;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 16px;
  font-size: 17px;
  font-weight: bold;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.3s;
  backdrop-filter: blur(2px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.15);
}

.submit-btn:hover {
  background: rgba(139, 77, 255, 0.08);
  box-shadow: 0 10px 32px rgba(0, 198, 255, 0.3);
  transform: translateY(-1px);
}

/* Альтернативные контакты */
.alt-contacts {
  text-align: center;
  margin-top: 40px;
}

.alt-contacts p {
  margin-bottom: 12px;
  font-weight: 500;
  color: #fff;
}

.alt-contacts .icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.alt-contacts .icon {
  padding: 14px 26px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: 0.3s ease;
}

.alt-contacts .icon:hover {
  transform: scale(1.06);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.25);
}



.icon.whatsapp { 
  background: rgba(77, 255, 98, 0.08);
  box-shadow: 0 10px 32px rgba(77, 255, 98, 0.3);
}
.icon.telegram { 
  background: rgba(0, 136, 204, 0.08);
  box-shadow: 0 10px 32px rgba(0, 136, 204, 0.3);
}
.icon.instagram { 
  background: rgba(197, 53, 132, 0.08);
  box-shadow: 0 10px 32px rgba(197, 53, 132, 0.3);
}

/* Компания (горизонтальная линия + стекло) */
.company-info {
  margin-top: 50px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  color: #eee;
}

.spline-background_contact {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

.spline-background spline-viewer {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.company-info .info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* Cookie banner overlay */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  background: rgba(0,0,0,0.85);
  color: white;
  padding: 15px 25px;
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  font-size: 14px;
  max-width: 680px;
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  z-index: 9999;
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
  user-select: auto;
}

.cookie-banner p {
  margin: 0;
  flex: 1;
}

.cookie-banner p a {
  color: #00bfff;
  text-decoration: underline;
}

.cookie-banner button {
  background: #00bfff;
  border: none;
  color: white;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cookie-banner button:hover {
  background: #008fcf;
}


/* Адаптивность */

@media (max-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }

  .btn {
    min-width: 160px;
    font-size: 1rem;
    padding: 12px 32px;
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .hero-content {
    padding: 0 20px;
  }

  .btn {
    padding: 12px 28px;
  }
}

@media (max-width: 768px) {
.nav-links {
    display: none;
  }

  .burger {
    display: flex;
  }

  .desktop-globe {
    display: none;
  }

  #globe {
    display: none;
  }

  .hero-title {
    font-size: 2rem;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 260px;
  }

  .section-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
  }

  .sub-title {
    font-size: 1.4rem;
    margin: 30px 0 15px;
  }

  .cards-grid {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
  }

  .flip-card {
    height: 360px;
  }

  .flip-front h4 {
    font-size: 1.1rem;
  }

  .flip-back .service-points {
    font-size: 13px;
    line-height: 1.5;
  }

  .calculator-box {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .calculator-box h2 {
    font-size: 22px;
  }

  .calculator-box label {
    font-size: 16px;
  }

  .calculator-box select,
  .calculator-box input[type="number"],
  .calculator-box input[type="range"] {
    font-size: 14px;
  }

  #service-calculator button {
    padding: 14px 32px;
    font-size: 1rem;
  }

  #resultPrice {
    font-size: 28px;
  }

  .title_about {
    font-size: 2.2rem;
    margin-bottom: 30px;
  }

  .subtitle_about {
    font-size: 1.5rem;
    margin: 30px 0 15px;
  }

  .mission {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .mission-item {
    padding: 20px;
  }

  .mission-item h3 {
    font-size: 1.3rem;
  }

  .mission-item p {
    font-size: 0.95rem;
    
  }

  .process h2 {
    font-size: 1.6rem;
  }

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

  .step {
    width: 90%;
  }

  .step h4 {
    font-size: 1.1rem;
  }

  .step p {
    font-size: 0.9rem;
  }

  .philosophy {
    font-size: 1.1rem;
    padding: 0 10px;
  }

  .stats-bars-section h2 {
    font-size: 1.6rem;
  }

  .bar-item p {
    font-size: 1rem;
  }

  .note {
    font-size: 0.9rem;
  }

  #contactBtn,
  #systemBtn {
    display: block;
    width: 80%;
    margin: 10px auto;
    font-size: 1.05rem;
    padding: 12px 24px;
    margin: 20px auto;
  }

  .contact-section {
    padding: 60px 15px;
  }

  .container {
    padding: 25px;
    border-radius: 16px;
  }

  .contact-section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    margin-top: 20px;
  }

  form label {
    font-size: 1rem;
  }

  form input,
  form select,
  form textarea {
    font-size: 15px;
    padding: 12px 14px;
  }

  form textarea {
    min-height: 100px;
  }

  .submit-btn {
    font-size: 1rem;
    padding: 14px;
  }

  .alt-contacts p {
    font-size: 1rem;
  }

  .alt-contacts .icons {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .alt-contacts .icon {
    width: 90%;
    max-width: 280px;
    padding: 12px;
    font-size: 1rem;
    text-align: center;
  }

  .company-info {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    font-size: 0.95rem;
  }

  .company-info .info-item {
    width: 90%;
    justify-content: center;
    font-size: 0.9rem;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
  }

  .cookie-banner button {
    width: 100%;
    text-align: center;
  }

  .cookie-banner p {
    text-align: center;
    margin-bottom: 10px;
  }
  


}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .btn {
    font-size: 0.95rem;
    padding: 10px 24px;
  }

  .flip-card {
    height: 320px;
  }

  .flip-front h4 {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .sub-title {
    font-size: 1.2rem;
  }

  #service-calculator button {
    font-size: 0.95rem;
  }

  #resultPrice {
    font-size: 24px;
  }

  .title_about {
    font-size: 1.8rem;
  }

  .subtitle_about {
    font-size: 1.3rem;
  }

  .mission-item h3 {
    font-size: 1.1rem;
  }

  .mission-item p {
    font-size: 0.9rem;
  }

  .step h4 {
    font-size: 1rem;
  }

  .step p {
    font-size: 0.85rem;
  }

  .philosophy {
    font-size: 1rem;
  }

  .stats-bars-section {
    padding: 0 10px;
  }

  .bar-item p {
    font-size: 0.95rem;
  }

  .note {
    font-size: 0.85rem;
  }

  .modal-content {
    padding: 20px;
    font-size: 0.95rem;
  }

  .scan-logs {
    font-size: 12px;
  }

  .contact-section h2 {
    font-size: 1.8rem;
  }

  .container {
    padding: 20px;
  }

  .alt-contacts .icon {
    font-size: 0.95rem;
    padding: 10px;
  }

  form input,
  form select,
  form textarea {
    font-size: 14px;
  }

  .submit-btn {
    font-size: 0.95rem;
    padding: 12px;
  }

  .company-info {
    font-size: 0.9rem;
    gap: 12px;
  }

  .company-info .info-item {
    font-size: 0.85rem;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
  }

  .cookie-banner button {
    width: 100%;
    text-align: center;
  }

  .cookie-banner p {
    text-align: center;
    margin-bottom: 10px;
  }

}





