* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: "Segoe UI", sans-serif;
    margin: 0;
    padding-top: 80px;
    background-image: url('../assets/img/background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.6s ease;
  }
  body.loaded {
    opacity: 1; 
  }
  
  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 1200px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease, width 0.4s ease;
    z-index: 999;
    border-radius: 0;
    margin: 0 10px;
  }
   .side-element {
    position: fixed;
    top: 0;
    right: 12px;            /* смещён вправо — визуально «припаян» к правому краю navbar */
    height: 42px;            /* совпадает с высотой navbar */
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    background: rgba(200, 210, 220, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 20px 20px;
    pointer-events: auto;    /* чтобы ссылки и кнопки работали */
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 999;
  }

  /* Немного «сращивания»: левый угол будет чуть врезаться в navbar (визуально единый блок) */
  
  .phone-link, .tg-link {
    display:flex;
    align-items:center;
    gap:0px;
    text-decoration:none;
    color:#0b2540;
    font-weight:600;
    font-size:16px;
  }

  .phone-ic, .tg-ic {
    width:25px;
    height:25px;
    fill: currentColor;
    opacity: 1;
  }
  .phone-text{ line-height:1; }

  /* hover/active */
  .side-element:hover { transform: translateY(-2px); }
  .phone-link:focus, .tg-link:focus, .phone-link:hover, .tg-link:hover {
    outline: none;
    color: rgb(239, 249, 255);
  }

  /* адаптив: спрячем боковой блок на узких экранах */
  @media (max-width: 780px) {
    .side-element { display: none; }
    .navbar-wrapper { top: 8px; }
  }
  .navbar.scrolled {
    padding: 6px 16px;
    width: auto;
    background: rgba(200, 210, 220, 0.4);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
  }
  
  .nav-container {
    display: flex;
    flex: 1;
    justify-content: center;
    gap: 24px;
    transition: gap 0.3s ease;
  }
  
  .navbar.scrolled .nav-container {
    gap: 10px;
  }
  
  .nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: inherit;
  }
  
  .nav-links a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    padding: 6px 8px;
    border-radius: 6px;
    transition: color 0.3s ease, padding 0.3s ease;
    white-space: nowrap;
  }
  
  .navbar.scrolled .nav-links a {
    padding: 4px 6px;
  }
  
  .nav-links a:hover {
    color: rgb(239, 249, 255);
  }
  
  /* Кнопка входа */
  .btn-login {
    padding: 8px 18px;
    font-weight: 400;
    color: #e2e2e2;
    background-color: #30383d;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, padding 0.3s ease;
    user-select: none;
    white-space: nowrap;
    margin-left: 12px;
  }
  
  .navbar.scrolled .btn-login {
    padding: 6px 12px;
    margin-left: 8px;
  }
  
  .btn-login:hover {
    background-color: #728795;
  }
  
  /* Иконка корзины */
  .cart-icon {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin-left: 16px;
    position: relative;
    transition: margin 0.3s ease;
  }
  
  .navbar.scrolled .cart-icon {
    margin-left: 10px;
  }
  
  .cart-svg {
    width: 24px;
    height: 24px;
    transition: transform 0.6s ease;
    stroke: #1a1f36;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  
  .cart-icon:hover .cart-svg {
    animation: bounceSpin 0.6s ease-in-out;
  }
  
  @keyframes bounceSpin {
    0% {
      transform: translateY(0) rotate(0deg);
    }
    30% {
      transform: translateY(-10px) rotate(180deg);
    }
    100% {
      transform: translateY(0) rotate(360deg);
    }
  }
  
  /* Адаптивность */
  @media (max-width: 768px) {
    .nav-container {
      gap: 16px;
    }
  
    .btn-login {
      padding: 6px 14px;
      font-size: 14px;
      margin-left: 10px;
    }
  
    .navbar.scrolled .btn-login {
      padding: 5px 10px;
      margin-left: 6px;
    }
  
    .cart-icon {
      margin-left: 12px;
    }
  
    .navbar.scrolled .cart-icon {
      margin-left: 8px;
    }
  }
  
  @media (max-width: 480px) {
    .nav-container {
      gap: 8px;
    }
  
    .nav-links a {
      font-size: 14px;
    }
  
    .btn-login {
      font-size: 13px;
      padding: 5px 10px;
      margin-left: 8px;
    }
  
    .navbar.scrolled .btn-login {
      padding: 4px 8px;
      margin-left: 6px;
    }
  
    .cart-icon {
      margin-left: 8px;
    }
  
    .navbar.scrolled .cart-icon {
      margin-left: 6px;
    }
  
    .navbar {
      padding: 8px 12px;
    }

  }
  .background-video {
    position: absolute;
    left: 50%;
    width: 800px;
    height: 200px;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    padding-top: 100px;
    border-radius: 14px;
    opacity: 0.85;
  filter: 
    brightness(1.2)
    contrast(1.2)
    saturate(1.5)
    drop-shadow(0 0 10px #ffffff);
  transition: transform 0.3s ease;
  }
  .motivation {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* выравниваем по верхнему краю */
    padding-top: 0px; /* расстояние от шапки */
    background: transparent;
    text-align: center;
    z-index: 3
  }
  
  .motivation-text {
    font-size: 2rem;
    color: #ffffff;
    max-width: 800px;
    line-height: 1.6;
    white-space: pre-wrap;
    font-family: 'Segoe UI', sans-serif;
    min-height: 6em; /* резервируем пространство под текст */
    position: relative;
    text-align: center;
    z-index: 3
  }
  
  
  @keyframes blink {
    50% { opacity: 0; }
  }
  
  /* Адаптивность */
  @media (max-width: 768px) {
    .motivation-text {
      font-size: 1.4rem;
      min-height: 5em;
    }
  }
  .about-company {
    position: absolute;
    top: 100px;
    right: 10px;
    width: 240px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(4px);
    border-radius: 14px;
    color: rgb(226, 239, 252);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
    z-index: 10;
    font-size: 0.9rem;
  
    display: flex;
    flex-direction: column;
    align-items: center; /* центрирует ЛОГО и ИКОНКИ */
    gap: 12px;
  }
  
  .about-title,
  .about-desc {
    align-self: flex-start; /* текст — по левому краю */
  }
  
  .about-logo {
    width: 84px;
    height: auto;
  }
  .about-logo-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .about-desc {
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.4;
  }
  
  .about-socials {
    display: flex;
    gap: 12px;
  }
  
  .about-socials img {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    padding: 4px;
    transition: transform 0.3s ease;
  }
  
  .about-socials img:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.15);
  }
  
  
  /* 🔽 Мобильная адаптация */
  @media (max-width: 768px) {
    .about-company {
      position: static;
      max-width: 90%;
      margin: 10px auto;
      padding: 12px 16px;
      box-shadow: none;
      background: rgba(255, 255, 255, 0.03);
      backdrop-filter: blur(4px);
      border-radius: 10px;
      font-size: 0.85rem;
    }
  
    .about-logo {
      width: 64px;
    }
  
    .about-desc {
      font-size: 0.85rem;
    }
  
    .about-socials img {
      width: 48px;
      height: 48px;
    }
  }
  .competitors-section {
    margin: 40px auto;
    max-width: 900px;
    color: #222;
    max-width: 1200px; /* фиксированная максимальная ширина */
  margin: 0 auto; /* центрирование по горизонтали */
  padding: 40px 20px;
  box-sizing: border-box;
  position: relative; /* чтобы не влиять на соседей */
  z-index: 10;
  }
  
  .logo-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 30px;
    position: relative;
  }
  
  .background-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(rgba(255, 255, 255, 0.6));
    opacity: 0.25;
    z-index: 1;
  }
  
  .logo {
    cursor: pointer;
    transition: transform 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
    z-index: 2;
    max-height: 120px;
    user-select: none;
    border-radius: 6px;
    filter: grayscale(50%) opacity(0.6);
    transform: scale(0.9);
  }
  
  .logo.active {
    filter: none;
    opacity: 1;
    transform: translateY(-6px) scale(1.1);
    z-index: 3;
  }
  
  .logo:hover {
    filter: none;
    opacity: 1;
    transform: translateY(-10px) scale(1.15);
    z-index: 4;
  }
.sp-product-section {
  padding: 40px 20px;
  text-align: center;
}

.sp-logo-block {
  margin-bottom: 20px;
}

.sp-logo {
  height: 60px;
}

.sp-category-tabs {
  margin-bottom: 30px;
  display: flex;
    justify-content: center;
    gap: 60px;
    position: relative;
}

.sp-tab {
  background-color: #1154cfe7;
  color: #f7f7f7;
  border: 2px solid transparent;
  padding: 12px 24px;
  margin: 0 8px;
  border-radius: 6px;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.sp-tab::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 2px solid #ffffff;
  border-radius: 6px;
  opacity: 0;
  transition: 0.3s;
}

.sp-tab:hover::before,
.sp-tab.active::before {
  opacity: 1;
  box-shadow: 0 0 12px #00ffc3, 0 0 24px #00ffc3;
}

.sp-products-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.sp-product-card {
  background: #f8f8f8 blur(5px);
  backdrop-filter: blur(3px);
  border-radius: 12px;
  width: 280px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(255, 253, 253, 0.12);
  overflow: hidden;
  align-items: center;
  padding: 20px;
  transition: transform 0.2s;
}

.sp-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgb(255, 255, 255);
}

.sp-product-card img {
  width: 200px;
    height: 200px;
    object-fit: contain;
  margin-bottom: 15px;
  border-radius: 8px;
}

.sp-product-card h3 {
  margin: 0 35px 10px;
  font-size: 18px;
  color: #dfdfdf;
  font-size: 16px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.sp-product-card p {
  font-size: 14px;
  color: #dfdfdf;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.sp-product-category {
  display: none;
}

.sp-product-category.active {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
@media (max-width: 900px) {
  .sp-product-card {
    grid-template-columns: 1fr 1fr !important;
    width: 45%;
  }
}

@media (max-width: 600px) {
  .sp-product-card {
    width: 90%;
    padding: 15px;
  }
  .sp-tab {
    margin: 5px 6px;
    padding: 8px 16px;
    font-size: 14px;
  }
}
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Блюр-фон с прозрачностью */
.loader-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  backdrop-filter: blur(5px);
  background: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  z-index: 1;
}

/* Круг с анимацией вращения */
.loader-circle {
  position: relative;
  width: 60px;
  height: 60px;
  border: 6px solid #3498db; /* Цвет круга */
  border-top-color: transparent; /* Создаём эффект "спина" */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 2;
}

/* Анимация вращения */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.nav-links a.active {
  color: #ffffff; /* выделяем цветом */
}
.credit-btn-3 {
    display: inline-block;
    padding: 10px 22px;
    background-color: transparent;
    color: #3954DE;
    border: 2px solid #3954DE;
    border-radius: 6px;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.credit-btn-3:hover {
    background-color: #3954DE;
    color: white;
    box-shadow: 0 0 0 4px rgba(57, 84, 222, 0.1);
}

.credit-btn-3:active {
    transform: scale(0.98);
}
.button-container2 {
  display: flex;
  justify-content: space-between; /* Размещаем кнопки по разные стороны */
}