/* === ОБЩИЕ НАСТРОЙКИ === */
html {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: #0f0f0f;
  color: #ffffff;
  scroll-behavior: smooth;
}



/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #0f0f0f;
  color: white;
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid #222;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #B76CFD;
  flex-shrink: 0;
  z-index: 2;
}

.nav {
  display: flex;
  gap: 2rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

.nav a:hover {
  color: #b76cfd;
}

/* === БУРГЕР === */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 3;
}

.burger span {
  display: block;
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
}

/* === МОБИЛЬНАЯ ВЕРСИЯ === */
@media (max-width: 768px) {
  .container {
    justify-content: center;
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }

  .burger {
    display: flex;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 1rem;
    background-color: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(12px);
    padding: 1rem;
    border-radius: 8px;
    width: 200px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    padding: 0.5rem 0;
  }
}
@media (max-width: 768px) {
  .nav a {
    text-align: center;
    width: 100%;
  }
}


/* === ДЕСКТОПНАЯ ЯВНО === */
@media (min-width: 769px) {
  .nav {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    background: none !important;
    padding: 0 !important;
    width: auto !important;
    box-shadow: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .burger {
    display: none !important;
  }
}

/* === HERO SECTION === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  background-color: transparent;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 16px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.hero p {
  font-size: 18px;
  color: #cccccc;
  margin-bottom: 32px;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #B76CFD;
  color: #000;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #c684ff;
}

/* === СЕКЦИИ === */
.section {
  padding: 120px 20px;
  background-color: transparent;
  text-align: center;
}

.section:nth-child(even) {
  background-color: transparent;
}

.section h2 {
  font-size: 32px;
  margin-bottom: 24px;
  color: #B76CFD;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.section p {
  font-size: 18px;
  color: #cccccc;
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

/* === FOOTER === */
.footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid #333;
  margin-top: 48px;
  font-size: 14px;
  color: #B76CFD;
}

.footer a {
  color: #B76CFD;
  text-decoration: underline;
}

.footer a:hover {
  text-decoration: none;
  color: #c684ff;
}

/* === ЭФФЕКТЫ === */
.highlight {
  color: #B76CFD;
}

.neon {
  color: #B76CFD;
  text-shadow:
    0 0 5px #B76CFD,
    0 0 10px #B76CFD,
    0 0 20px #6A00FF,
    0 0 40px #6A00FF;
}

/* === CANVAS ЗВЁЗД === */
#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -9999;
}

#star-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#galaxy-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* === ПУЛЬСАРЫ === */
.pulsar {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(white, rgba(255, 255, 255, 0.1));
  opacity: 0.8;
  pointer-events: none;
  z-index: 2;
  animation: pulsar-glow 2s ease-out forwards;
  filter: blur(1px);
}

@keyframes pulsar-glow {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.5);
    opacity: 1;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* === PLANETS и SHIPS === */
#solarCanvas,
#tinyCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
/* === Hero === */
.hero {
  position: relative;
  z-index: 1;
}

.hero .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45); /* Прозрачность можно отрегулировать */
  z-index: 1;
}

.hero .content {
  position: relative;
  z-index: 2;
}

/* === About === */
.about-box {
  background: rgba(0, 0, 0, 0.55); /* прозрачное облако */
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 40px 24px;
  margin: 0 auto;
  max-width: 800px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  text-align: center; /* Центрирование текста */
  transition: all 0.3s ease;
}
.about-box:hover {
  box-shadow: 0 10px 60px rgba(183, 108, 253, 0.4);
}

/* === услуги === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.service-card {
  background: rgba(0, 0, 0, 0.55); /* затемнение */
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(183, 108, 253, 0.3);
}

.service-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.service-card .icon svg {
  width: 100%;
  height: 100%;
}

.service-card:hover .icon {
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #ffffff;
}

.service-card p {
  color: #cccccc;
  font-size: 15px;
  line-height: 1.6;
}

/* === Контакты === */
.contact-box {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 40px 24px;
  margin: 0 auto;
  max-width: 800px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  text-align: center;
  transition: all 0.3s ease;
}

/* Контактные кнопки */
.contact-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 24px 0;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-btn svg,
.contact-btn i {
  width: 24px;
  height: 24px;
  font-size: 24px;
  flex-shrink: 0;
  color: white;
}

/* Цвета платформ */
.contact-btn.phone {
  background: #444;
}
.contact-btn.whatsapp {
  background: #25D366;
}
.contact-btn.telegram {
  background: #0088cc;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* Форма */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  background: rgba(255,255,255,0.05);
  color: white;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #B76CFD;
  background: rgba(255,255,255,0.08);
}

.contact-form .btn {
  background-color: #B76CFD;
  color: white;
  font-weight: bold;
  cursor: pointer;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  transition: background 0.3s;
}

.contact-form .btn:hover {
  background-color: #a555e0;
}

/* Адаптив на мобилках */
@media (max-width: 480px) {
  .contact-options {
    flex-direction: column;
    align-items: center;
  }

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



/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 28px;
  }

  .section h2 {
    font-size: 24px;
  }

  .section p {
    font-size: 16px;
  }
}


/* === Форма === */
.form-status {
  margin-top: 12px;
  font-weight: bold;
  font-size: 15px;
  color: white;
}
/* === НАВИГАЦИЯ: ОБЩЕЕ === */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* на всякий случай */
  gap: 24px;
}

/* Ссылки */
.nav-links {
  display: flex;
  gap: 2rem;
}

/* Иконки — десктоп */
.nav-icons.desktop-only {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Иконки — мобилка */
.nav-icons.mobile-only {
  display: none;
}

/* === ИКОНКИ === */

/* Общий стиль ссылок-иконок */
.nav-icon {
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

/* Иконки внутри */
.nav-icon i {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

/* Цвета платформ */
.nav-icon.phone i    { color: #B76CFD; }
.nav-icon.whatsapp i { color: #25D366; }
.nav-icon.telegram i { color: #0088cc; }

/* Hover эффект */
.nav-icon:hover i {
  opacity: 0.8;
}

/* === МОБИЛЬНАЯ ВЕРСИЯ === */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

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

  .nav-links a {
    padding: 0.5rem 0;
  }

  .nav-icons.desktop-only {
    display: none;
  }

  .nav-icons.mobile-only {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding-top: 12px;
    margin-top: 12px;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
}

/* Общий контейнер LOGO */
.logo-animated {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.electric-ring {
  position: absolute;
  width: 200px;
  height: 200px;
  z-index: 0;
}

.electric-ring .glow {
  fill: none;
  stroke: #00f0ff;
  stroke-width: 4;
  filter: drop-shadow(0 0 6px #00f0ff) drop-shadow(0 0 12px #B76CFD);
  opacity: 0.3;
}

.electric-ring .pulse {
  fill: none;
  stroke: #B76CFD;
  stroke-width: 3;
  stroke-dasharray: 565;
  stroke-dashoffset: 0;
  animation: rotate-ring 3s linear infinite;
  filter: drop-shadow(0 0 6px #B76CFD);
}

@keyframes rotate-ring {
  0%   { stroke-dashoffset: 0; transform: rotate(0deg); }
  100% { stroke-dashoffset: -565; transform: rotate(360deg); }
}

.logo-animated .logo-text {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  animation: glow-text 2s ease-in-out infinite alternate;
}

.logo-animated .title {
  font-size: 28px;
  font-weight: bold;
  color: #00f0ff;
  text-shadow: 0 0 10px #00f0ff, 0 0 20px #B76CFD;
}

.logo-animated .subtitle {
  font-size: 16px;
  color: #B76CFD;
  text-shadow: 0 0 10px #B76CFD;
}

@keyframes glow-text {
  0% {
    text-shadow: 0 0 8px #00f0ff, 0 0 15px #B76CFD;
  }
  100% {
    text-shadow: 0 0 15px #00f0ff, 0 0 30px #B76CFD;
  }
}