/* 
 * Единый файл стилей для сайта индивидуального предпринимателя
 * Тема: минимализм класса luxury с тёмным фоном и неоновыми акцентами
 */

/* Сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --primary: #00f0ff;
    --secondary: #ff00c8;
    --text-light: #e0e0e0;
    --card-bg: #1a1a1a;
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.header {
    background: rgba(10,10,10,.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,240,255,.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo img {
    height: 40px;
}

.nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.nav-link.active,
.nav-link:hover {
    color: var(--primary);
}

/* MAIN */
.main {
    padding: 20px 0;
}

/* HERO */
.hero {
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    margin: 20px 0 40px;
    font-size: 1.2rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* BUTTONS */
.btn {
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000;
}

.btn-secondary {
    border: 2px solid var(--primary);
    color: var(--text-light);
}

/* TITLES */
.section-title,
.page-title {
    font-size: 2.3rem;
    text-align: center;
    margin-bottom: 20px;
}

/* SERVICES */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 30px;
    margin-top: 40px;
}

.services-title {
  text-align: center;
  margin-bottom: 60px;
  font-size: 32px;
  letter-spacing: 0.3px;
}

.services-grid {
  padding-top: 30px;
}

.service-card {
    position: relative;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.06),
        rgba(255,255,255,0.02)
    );
    padding: 36px 32px;
    border-radius: 20px;

    box-shadow:
        0 20px 40px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.06);

    backdrop-filter: blur(8px);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 30px 60px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.08);
}
.service-card h3 {
    font-size: 18px;
    margin-bottom: 14px;
    letter-spacing: 0.2px;
}

.service-card p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
}

.service-main {
    transform: translateY(-20px);
    background: linear-gradient(
        135deg,
        rgba(0,180,255,0.18),
        rgba(140,80,255,0.18)
    );
}

@media (max-width: 768px) {
    .service-main {
        transform: none;
    }
}

/* FOR WHOM */
.for-whom-content {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 30px;
}

/* CTA */
.cta-section .btn {
    padding: 14px 34px;
    font-size: 15px;
    border-radius: 999px;
    background: linear-gradient(135deg, #00b4ff, #8b5cf6);
    box-shadow: 0 10px 30px rgba(0,180,255,0.35);
}


/* FOOTER */
.footer {
    margin-top: 60px;
    padding: 40px 0;
    background: var(--darker-bg);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}


/* ====== GLOW EFFECTS ====== */

/* Общие карточки */
.card,
.service-card,
.portfolio-case,
.for-whom-item {
    position: relative;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 16px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

/* Подсветка */
.card::before,
.service-card::before,
.portfolio-case::before,
.for-whom-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(0, 240, 255, 0.15),
        rgba(255, 0, 200, 0.15),
        rgba(255, 255, 255, 0.1)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* Hover */
.card:hover,
.service-card:hover,
.portfolio-case:hover,
.for-whom-item:hover {
    transform: translateY(-6px);
    box-shadow:
        0 0 30px rgba(0, 240, 255, 0.15),
        0 0 60px rgba(255, 0, 200, 0.08);
}

.card:hover::before,
.service-card:hover::before,
.portfolio-case:hover::before,
.for-whom-item:hover::before {
    opacity: 1;
}

/* ====== FADE IN ====== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section,
section {
    animation: fadeUp 0.8s ease both;
}

/* ====== FORM ====== */

input,
textarea {
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #00f0ff;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

/* ===== Направления LogicLab ===== */

.directions {
  margin-top: 100px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.card {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.02)
  );
  border-radius: 20px;
  padding: 36px;
  min-height: 220px;

  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 0 0 rgba(0,0,0,0);

  transition: all 0.35s ease;
}

.card h3 {
  margin-bottom: 12px;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(120, 200, 255, 0.35);
  box-shadow: 0 20px 60px rgba(120,200,255,0.15);
}

/* ===== Контакты ===== */

.contacts-wrapper {
  max-width: 720px;
  margin: 80px auto;
  padding: 48px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.05),
    rgba(255,255,255,0.02)
  );

  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.contact-block {
  margin-bottom: 40px;
}

.telegram-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 14px 28px;
  border-radius: 999px;

  background: linear-gradient(90deg, #00c6ff, #9b5cff);
  color: #000;
  font-weight: 600;

  text-decoration: none;
  transition: all 0.3s ease;
}

.telegram-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(155,92,255,0.45);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;

  margin-bottom: 16px;
}

.contact-form button {
  margin-top: 12px;
}

/* ===== КОМУ ПОДХОДИТ ===== */

.audience {
  margin-top: 80px;
}

.audience-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.audience-card {
  padding: 32px;
  border-radius: 18px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.035),
    rgba(255,255,255,0.015)
  );

  border: 1px solid rgba(255,255,255,0.06);

  transition: all 0.3s ease;
}

.audience-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.audience-card p {
  opacity: 0.85;
  line-height: 1.5;
}

.audience-card:hover {
  transform: translateY(-4px);
  border-color: rgba(120,200,255,0.25);
  box-shadow: 0 16px 40px rgba(120,200,255,0.12);
}

/* =========================
   SERVICES – BASE
========================= */

.services-intro {
  padding: 80px 0 40px;
  text-align: center;
}

.services-intro h1 {
  font-size: 42px;
  margin-bottom: 16px;
}

.services-intro p {
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.85;
}

/* =========================
   FORMATS
========================= */

.services-formats {
  padding: 80px 0;
}

.services-formats h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 60px;
}

.formats-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* =========================
   FORMAT CARD
========================= */

.format-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 32px 28px 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* подсветка при наведении */
.format-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--x, 50%) var(--y, 50%),
    rgba(120, 180, 255, 0.12),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.format-card:hover::before {
  opacity: 1;
}

.format-card:hover {
  transform: translateY(-6px);
  border-color: rgba(120, 180, 255, 0.35);
}

/* =========================
   CARD CONTENT
========================= */

.format-card h3 {
  font-size: 24px;
  margin-bottom: 14px;
}

.format-description {
  opacity: 0.85;
  margin-bottom: 20px;
  line-height: 1.6;
}

.format-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.format-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.format-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  opacity: 0.6;
}

.format-note {
  font-size: 14px;
  opacity: 0.65;
  margin-top: 12px;
}

/* =========================
   PROCESS
========================= */

.services-process {
  padding: 80px 0;
}

.services-process h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
}

.process-steps {
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.process-steps li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.9;
}

.process-steps li:last-child {
  border-bottom: none;
}

/* =========================
   CTA
========================= */

.services-cta {
  padding: 80px 0 100px;
  text-align: center;
}

.services-cta h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.services-cta p {
  opacity: 0.8;
  margin-bottom: 32px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
  .formats-list {
    grid-template-columns: 1fr;
  }

  .format-card {
    max-width: 700px;
    margin: 0 auto;
  }
}

/* ===== SERVICES PAGE ===== */

.services-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px;
}

/* HERO */
.services-hero {
  text-align: center;
  margin-bottom: 120px;
}

.services-hero h1 {
  font-size: 56px;
  margin-bottom: 16px;
}

.services-hero p {
  font-size: 18px;
  color: #bdbdbd;
  max-width: 600px;
  margin: 0 auto;
}

/* SECTION */
.services-section h2 {
  text-align: center;
  font-size: 40px;
  margin-bottom: 64px;
}

/* CARDS */
.services-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 32px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
  transition: all 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.08);
}

.service-card.accent {
  background: linear-gradient(
    135deg,
    rgba(0, 229, 255, 0.15),
    rgba(200, 80, 255, 0.15)
  );
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 15px;
  color: #cfcfcf;
  margin-bottom: 20px;
}

.service-card ul {
  list-style: none;
  padding: 0;
}

.service-card li {
  font-size: 14px;
  color: #bdbdbd;
  margin-bottom: 10px;
}

/* CTA */
.services-cta {
  text-align: center;
  margin-top: 160px;
}

.services-cta h2 {
  font-size: 40px;
  margin-bottom: 16px;
}

.services-cta p {
  color: #bdbdbd;
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00e5ff, #c850ff);
  color: #000;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.btn-primary:hover {
  transform: scale(1.05);
}

/* ADAPTIVE */
@media (max-width: 900px) {
  .services-cards {
    grid-template-columns: 1fr;
  }

  .services-hero h1 {
    font-size: 40px;
  }

  .services-section h2,
  .services-cta h2 {
    font-size: 32px;
  }
}

/* ===== HEADER FIX ===== */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .logo {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
}

header nav a {
  color: #cfcfcf;
  text-decoration: none;
  margin-left: 24px;
  font-size: 14px;
  transition: color 0.3s ease;
}

header nav a:hover,
header nav a.active {
  color: #00e5ff;
}

/* ===== SERVICES RHYTHM ===== */

.services-hero {
  margin-bottom: 160px;
}

.services-section {
  margin-bottom: 180px;
}

.services-section h2 {
  margin-bottom: 80px;
}

.services-cards {
  gap: 40px;
}

.service-card {
  padding: 40px;
}

.services-cta {
  margin-top: 200px;
  padding-bottom: 120px;
}

footer {
  margin-top: 160px;
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #888;
  text-align: center;
}

/* ====== STARFIELD (главная/любой блок) ====== */
.starfield {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.starfield::before,
.starfield::after {
  content: "";
  position: absolute;
  inset: -20%;
  background-repeat: repeat;
  background-size: 700px 700px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  transform: translateZ(0);
  filter: drop-shadow(0 0 6px rgba(90, 180, 255, 0.15));
}

/* Дальний слой — мелкие звезды */
.starfield::before {
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.8) 99%, transparent 100%),
    radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,0.55) 99%, transparent 100%),
    radial-gradient(1px 1px at 70% 30%, rgba(255,255,255,0.65) 99%, transparent 100%),
    radial-gradient(1px 1px at 90% 70%, rgba(255,255,255,0.45) 99%, transparent 100%);
  animation: stars-drift 26s linear infinite;
  opacity: 0.35;
}

/* Ближний слой — чуть крупнее и “живее” */
.starfield::after {
  background-image:
    radial-gradient(2px 2px at 15% 35%, rgba(255,255,255,0.75) 99%, transparent 100%),
    radial-gradient(2px 2px at 55% 65%, rgba(255,255,255,0.55) 99%, transparent 100%),
    radial-gradient(2px 2px at 80% 20%, rgba(255,255,255,0.6) 99%, transparent 100%),
    radial-gradient(2px 2px at 40% 10%, rgba(255,255,255,0.45) 99%, transparent 100%);
  animation: stars-drift 18s linear infinite;
  opacity: 0.55;
}

/* “Туманность”/глубина — отдельным слоем внутри блока */
.starfield .nebula {
  position: absolute;
  inset: -30%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 420px at 70% 35%, rgba(200, 80, 255, 0.18), transparent 60%),
    radial-gradient(520px 380px at 30% 60%, rgba(0, 190, 255, 0.16), transparent 60%),
    radial-gradient(900px 700px at 50% 50%, rgba(255, 255, 255, 0.04), transparent 65%);
  filter: blur(2px);
  animation: nebula-float 14s ease-in-out infinite alternate;
}

/* Созвездия — тонкие линии (можно включать/выключать) */
.starfield .constellations {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: screen;
}

@keyframes stars-drift {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(6%, 4%, 0); }
}

@keyframes nebula-float {
  from { transform: translate3d(-1%, 0, 0) scale(1); }
  to   { transform: translate3d(1.5%, -1%, 0) scale(1.03); }
}

/* Контент поверх фона */
.starfield > *:not(.nebula):not(.constellations) {
  position: relative;
  z-index: 1;
}

/* ====== 3D FLOATING OBJECTS (services background) ====== */
.floating-3d {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.floating-3d img {
  position: absolute;
  width: clamp(90px, 10vw, 160px);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.35));
  transform: translateZ(0);
  opacity: 0.85;
  animation: float3d 10s ease-in-out infinite alternate;
}

.floating-3d img.depth-2 { opacity: 0.55; filter: blur(0.4px) drop-shadow(0 14px 22px rgba(0,0,0,0.28)); }
.floating-3d img.depth-3 { opacity: 0.35; filter: blur(0.9px) drop-shadow(0 10px 18px rgba(0,0,0,0.22)); }

@keyframes float3d {
  from { transform: translate3d(0, 0, 0) rotate(-2deg); }
  to   { transform: translate3d(0, -10px, 0) rotate(2deg); }
}

/* ===== FOOTER ===== */

.footer {
  margin-top: 120px;
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(
    ellipse at top,
    rgba(0, 180, 255, 0.05),
    rgba(0, 0, 0, 0)
  );
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-info p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.8;
}

.footer-info p + p {
  margin-top: 6px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: #00b4ff;
}

/* Mobile */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ===== STAR SPACE ===== */

.space {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(
    ellipse at bottom,
    #05070d 0%,
    #000 70%
  );
}

/* Общие звёзды */
.stars {
.stars {
  position: absolute;
  inset: -50%;
  background-repeat: repeat;
  opacity: 0.45;
  will-change: transform;
}

  position: absolute;
  inset: -50%;
  background-repeat: repeat;
  animation: drift 180s linear infinite;
  opacity: 0.6;
}

/* Дальние */
.layer1 {
  background-image: radial-gradient(1px 1px at 20% 30%, #ffffffaa 40%, transparent 100%),
                    radial-gradient(1px 1px at 80% 70%, #ffffff99 40%, transparent 100%);
  background-size: 600px 600px;
  animation-duration: 240s;
}

/* Средние */
.layer2 {
  background-image: radial-gradient(1.5px 1.5px at 50% 20%, #9fd9ffcc 40%, transparent 100%),
                    radial-gradient(1.5px 1.5px at 10% 80%, #ffffffcc 40%, transparent 100%);
  background-size: 400px 400px;
  animation-duration: 180s;
}

/* Ближние */
.layer3 {
  filter: blur(0.6px);
}
  background-image: radial-gradient(2px 2px at 60% 60%, #00b4ffdd 40%, transparent 100%);
  background-size: 300px 300px;
  animation-duration: 120s;
  opacity: 0.8;
}

@keyframes drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(1000px);
  }
}

.universe {
  position: absolute;
  width: 120vmax;
  height: 120vmax;
  right: -20vmax;
  bottom: -30vmax;

  background:
    radial-gradient(
      circle at 40% 45%,
      rgba(200, 200, 255, 0.22),
      rgba(120, 140, 255, 0.14),
      rgba(40, 60, 120, 0.08),
      rgba(0, 0, 0, 0) 65%
    );

  filter: blur(60px);
  opacity: 0.85;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* ===== LUXURY STARS ===== */

.lux-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    /* крупные акцентные */
    radial-gradient(3px 3px at 22% 38%, rgba(255,255,255,0.85), transparent 60%),
    radial-gradient(4px 4px at 65% 28%, rgba(200,220,255,0.85), transparent 60%),
    radial-gradient(3px 2px at 48% 62%, rgba(255,255,255,0.8), transparent 60%),

    /* дополнительные мелкие */
    radial-gradient(2px 2px at 78% 55%, rgba(180,200,255,0.6), transparent 60%),
    radial-gradient(1px 1px at 35% 70%, rgba(255,255,255,0.5), transparent 60%);

  filter:
    drop-shadow(0 0 6px rgba(180,220,255,0.6))
    drop-shadow(0 0 14px rgba(120,160,255,0.35));

  opacity: 0.75;
}

.lux-stars {
  animation: lux-glow 10s ease-in-out infinite alternate;
}

@keyframes lux-glow {
  from { opacity: 0.6; }
  to   { opacity: 0.85; }
}

.lux-stars::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(1px 30px at 22% 38%, rgba(180,220,255,0.15), transparent 70%),
    radial-gradient(30px 1px at 22% 38%, rgba(180,220,255,0.15), transparent 70%),

    radial-gradient(1px 26px at 65% 28%, rgba(200,220,255,0.15), transparent 70%),
    radial-gradient(26px 1px at 65% 28%, rgba(200,220,255,0.15), transparent 70%);

  filter: blur(1px);
  opacity: 0.6;
  pointer-events: none;
}

@keyframes lux-twinkle {
  from {
    opacity: 0.6;
  }
  to {
    opacity: 0.95;
  }
}

  background:
    radial-gradient(2px 2px at 22% 38%, rgba(255,255,255,0.95), transparent 60%),
    radial-gradient(2.5px 2.5px at 65% 28%, rgba(180,220,255,0.95), transparent 60%),
    radial-gradient(1.8px 1.8px at 48% 62%, rgba(255,255,255,0.9), transparent 60%),
    radial-gradient(3px 3px at 78% 55%, rgba(200,200,255,0.95), transparent 60%);

  filter: drop-shadow(0 0 6px rgba(180,220,255,0.8))
          drop-shadow(0 0 14px rgba(120,160,255,0.6));

  opacity: 0.85;
}

/* ===== SERVICES HERO ===== */

.services-hero {
  padding: 140px 0 100px;
  text-align: center;
}

.services-hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.services-subtitle {
  font-size: 18px;
  opacity: 0.75;
}

/* ===== SERVICES SCENE ===== */

.services-scene {
  position: relative;
  overflow: hidden;
  background: #050608;
}

.services-scene::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(120,140,255,0.12), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(0,180,255,0.10), transparent 55%);
  filter: blur(120px);
  z-index: 0;
}

.services-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5,6,8,0.95),
    rgba(5,6,8,0.85),
    rgba(5,6,8,0.95)
  );
  z-index: 1;
}

.services {
  position: relative;
  z-index: 2;
}

/* ===== SERVICES LIST ===== */

.services-list {
  padding: 120px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 80px;
}

/* ВОТ ЗДЕСЬ ГЛАВНОЕ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* ===== SERVICE CARD ===== */

.service-card {
  position: relative;
  padding: 40px 32px;
  border-radius: 20px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.02)
  );

  backdrop-filter: blur(10px);

  box-shadow:
    0 30px 60px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.08);

  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.65),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 14px;
}

.service-card p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.8;
}

.service-card ul {
  margin-top: 16px;
  padding-left: 18px;
  opacity: 0.75;
}

.service-card li {
  margin-bottom: 6px;
}

/* центральная карточка */

.service-main {
  transform: translateY(-30px);
  background: linear-gradient(
    135deg,
    rgba(0,180,255,0.25),
    rgba(140,80,255,0.25)
  );
}

/* ===== CTA ===== */

.services-cta {
  position: relative;
  padding: 140px 0 160px;
  text-align: center;
}

.services-cta::before {
  content: "";
  position: absolute;
  inset: -60px;
  background: radial-gradient(
    ellipse at center,
    rgba(0,180,255,0.15),
    transparent
  );
  filter: blur(80px);
  z-index: -1;
}

/* ===== FLOATING 3D OBJECTS (SERVICES) ===== */

.floating-3d {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.services {
  position: relative;
  z-index: 2;
}

.floating-3d img {
  position: absolute;
  width: 110px;
  height: auto;

  opacity: 0.75;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.6));

  transform-style: preserve-3d;
  animation: float-3d 14s ease-in-out infinite;
}

.depth-1 {
  transform: translateZ(10px);
  opacity: 0.45;
}

.depth-2 {
  transform: translateZ(25px);
  opacity: 0.65;
}

.depth-3 {
  transform: translateZ(45px);
  opacity: 0.85;
}

@keyframes float-3d {
  0% {
    transform: translateY(0) translateZ(20px);
  }
  50% {
    transform: translateY(-18px) translateZ(30px);
  }
  100% {
    transform: translateY(0) translateZ(20px);
  }
}
