body {
    font-family: 'Poppins', sans-serif;
    color: #111;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
  }
  
  header {
    background: linear-gradient(90deg, #00C6FF, #0072FF);
    color: #fff;
    text-align: center;
    padding: 120px 20px;
  }
  
  header h1 {
    font-size: 3rem;
    font-weight: 700;
  }
  
  header p {
    font-size: 1.2rem;
    margin-top: 10px;
  }
  
  .btn-main {
    background: #fff;
    color: #0072FF;
    font-weight: 600;
    border-radius: 30px;
    padding: 10px 30px;
    margin-top: 20px;
    transition: all 0.3s ease;
  }
  
  .btn-main:hover {
    background: #0072FF;
    color: #fff;
  }
  
  section {
    padding: 80px 20px;
  }
  
  h2 {
    font-weight: 700;
    color: #0072FF;
    margin-bottom: 40px;
    text-align: center;
  }
  
 /* ===== CAROUSEL ===== */
.carousel-section {
    position: relative;
    padding: 100px 0;
    background: radial-gradient(circle at 50% 120%, rgba(56,189,248,0.08), transparent 70%), 
                linear-gradient(180deg, #0d1117 0%, #111827 100%);
    overflow: hidden;
  }
  
  /* Изображения */
  .carousel-inner {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(56,189,248,0.15);
    position: relative;
  }
  
  .carousel-item img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    filter: brightness(0.85) contrast(1.1) saturate(1.15);
    transition: transform 8s ease, filter 2s ease;
  }
  
  .carousel-item.active img {
    transform: scale(1.05);
    filter: brightness(1) saturate(1.25);
  }
  
  /* Спектральный блик */
  .carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(56,189,248,0.08), rgba(99,102,241,0.15), rgba(139,92,246,0.08));
    mix-blend-mode: screen;
    pointer-events: none;
    animation: spectralGlow 8s linear infinite;
    z-index: 1;
  }
  
  @keyframes spectralGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  /* Подписи под каруселью */
  .carousel-captions {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: rgba(13, 17, 23, 0.6);
    border-radius: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 40px rgba(56,189,248,0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px); /* для Safari */
    transition: all 0.5s ease;
  }
  
  .carousel-captions h5 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, #38bdf8, #6366f1, #8b5cf6);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    animation: textGradientMove 6s linear infinite;
  }
  
  @keyframes textGradientMove {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
  }
  
  .carousel-captions p {
    color: #cbd5e1;
    font-size: 1rem;
    opacity: 0.9;
  }
  
  /* Управление */
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(99,102,241,0.5);
    opacity: 0.9;
    transition: all 0.3s ease;
  }
  
  .carousel-control-prev-icon:hover,
  .carousel-control-next-icon:hover {
    opacity: 1;
    box-shadow: 0 0 40px rgba(56,189,248,0.8);
  }
  
  .carousel-control-prev-icon::after,
  .carousel-control-next-icon::after {
    display: none;
  }
  
  /* Градиентные маски */
  .carousel-section::before,
  .carousel-section::after {
    content: "";
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 3;
    pointer-events: none;
  }
  
  .carousel-section::before {
    left: 0;
    background: linear-gradient(to right, rgba(13,17,23,0.85), transparent);
  }
  
  .carousel-section::after {
    right: 0;
    background: linear-gradient(to left, rgba(13,17,23,0.85), transparent);
  }
  
  /* Для мобильных */
  @media (max-width: 768px) {
    .carousel-item img {
      height: 300px;
    }
  
    .carousel-captions h5 {
      font-size: 1.4rem;
    }
  
    .carousel-captions p {
      font-size: 0.9rem;
    }
  }
  
  footer {
    background: #111827;
    color: #e5e7eb;
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9rem;
  }
  
  footer a {
    color: #93c5fd;
    text-decoration: none;
  }
  
  footer a:hover {
    text-decoration: underline;
  }

  .hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #0d1117;
    color: #fff;
    text-align: center;
    overflow: hidden;
  }
  
  .hero-content {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.5s ease forwards;
  }
  
  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* ЛОГОТИП */
  .hero-logo {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    background: linear-gradient(90deg, #a5f3fc, #38bdf8, #6366f1, #a5f3fc);
    background-size: 300%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: spectralShine 6s linear infinite;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.25);
    will-change: background-position;
  }
  
  @keyframes spectralShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  /* ТЕКСТ ПОД ЛОГОТИПОМ */
  .typed-wrapper {
    height: 1.5em;           /* фиксируем высоту строки, чтобы не прыгал layout */
    margin-top: 1rem;
  }
  
  #typed {
    font-size: 1.3rem;
    color: #e5e7eb;
    letter-spacing: 0.5px;
    opacity: 0.85;
    display: inline-block;
  }
  
  /* КНОПКА */
  .btn-main {
    display: inline-block;
    margin-top: 2rem;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    background: linear-gradient(90deg, #38bdf8, #6366f1);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .btn-main:hover {
    background: linear-gradient(90deg, #60a5fa, #818cf8);
    transform: translateY(-2px);
  }

  .spectrum-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    opacity: 0.25;
  }
  .hero-content {
    position: relative;
    z-index: 1;
  }

  /* ===== SERVICES ===== */

.services-section {
    background: linear-gradient(180deg, #0d1117 0%, #111827 100%);
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  
  .services-section h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, #38bdf8, #6366f1, #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text; /* нужно для Chrome/Safari */
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: textGradientMove 6s linear infinite;
  }
  
  /* сетка карточек */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* строго 4 карточки */
    gap: 2rem;
    max-width: 1300px;
    margin: 0 auto;
    justify-items: center;
  }
  
  /* Адаптация под мобильные устройства */
  @media (max-width: 992px) {
    .services-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 600px) {
    .services-grid {
      grid-template-columns: 1fr;
    }
  }
  
  /* карточки */
  .service-card {
    background: rgba(17, 25, 40, 0.65);
    border-radius: 20px;
    padding: 2rem;
    text-align: left;
    box-shadow: 0 0 25px rgba(99,102,241,0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.4s ease;
    border: 1px solid rgba(99,102,241,0.15);
    position: relative;
    overflow: hidden;
  }
  
  /* световой акцент при наведении */
  .service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(56,189,248,0.15), rgba(99,102,241,0.15), rgba(139,92,246,0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
  }
  
  .service-card:hover::before {
    opacity: 1;
  }
  
  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 35px rgba(99, 102, 241, 0.4),
                0 0 15px rgba(56, 189, 248, 0.3);
    background: rgba(20, 25, 35, 0.95);
  }
  
  .service-card h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    background: linear-gradient(90deg, #38bdf8, #6366f1, #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text; /* нужно для Chrome/Safari */
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: textGradientMove 6s linear infinite;
    z-index: 1;
  }
  
  .service-card p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
  }
  
  /* анимированный фон с мягким свечением */
  .services-section::after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(99,102,241,0.2), transparent 70%);
    filter: blur(100px);
    z-index: 0;
    animation: spectralPulse 12s ease-in-out infinite alternate;
  }
  
  @keyframes spectralPulse {
    0% { opacity: 0.4; transform: translateX(-50%) scale(1); }
    100% { opacity: 0.8; transform: translateX(-50%) scale(1.2); }
  }
  
  @media (max-width: 768px) {
    .services-section h2 {
      font-size: 1.9rem;
    }
  
    .service-card {
      padding: 1.5rem;
    }
  }

  /* ==== FIX: uniform hover effect for all service cards ==== */
#services .service-card {
  background: rgba(17, 25, 40, 0.8);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

/* подсветка при наведении */
#services .service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 35px rgba(99, 102, 241, 0.5),
              0 0 20px rgba(56, 189, 248, 0.4);
  background: rgba(25, 35, 55, 0.95);
  z-index: 2;
}

/* на всякий случай: row не должен обрезать тень */
#services .row {
  overflow: visible !important;
}

.modal-content {
  background: rgba(17, 25, 40, 0.85);
  border-radius: 20px;
  border: 1px solid rgba(99,102,241,0.2);
  box-shadow: 0 0 40px rgba(99,102,241,0.3);
  color: #e5e7eb;
  backdrop-filter: blur(6px);
}

.modal h3 {
  background: linear-gradient(90deg, #38bdf8, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.btn-main.w-100 {
  background: linear-gradient(90deg, #38bdf8, #6366f1);
  border: none;
  color: #fff;
  transition: all 0.3s ease;
}

.btn-main.w-100:hover {
  background: linear-gradient(90deg, #60a5fa, #818cf8);
  transform: translateY(-2px);
}

/* ==== CTA button (Get in touch) ==== */
.btn.cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 14px 36px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(90deg, #38bdf8, #6366f1, #8b5cf6);
  border: none;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.35);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn.cta::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.15), transparent 60%);
  transition: all 0.6s ease;
}

.btn.cta:hover::before {
  left: 100%;
}

.btn.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.45);
  background: linear-gradient(90deg, #60a5fa, #818cf8);
}

/* ===== SUCCESS / ERROR NOTIFICATIONS ===== */
.toast-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(17, 23, 31, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.25);
  border-radius: 18px;
  padding: 1.5rem 2rem;
  max-width: 90%;
  color: #38bdf8;
  font-weight: 600;
  text-align: center;
  font-size: 1.1rem;
  z-index: 10500;
  opacity: 0;
  animation: toastFadeIn 0.4s ease forwards;
}

.toast-message.error {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.25);
  box-shadow: 0 0 40px rgba(248, 113, 113, 0.25);
}

@keyframes toastFadeIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes toastFadeOut {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to   { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
}

/* === BACK TO TOP BUTTON === */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 9999;
}

#backToTop:hover {
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.6);
  transform: translateY(-3px);
}

#backToTop.visible {
  opacity: 1;
  pointer-events: auto;
}