body {
  margin: 0;
  font-family: Arial;
  background: #0f0c29;
  color: white;
}

.container {
  max-width: 800px;
  margin: auto;
  padding: 20px;
  text-align: center;
}

h1, h2 {
  margin-bottom: 10px;
}

.btn {
  padding: 12px 25px;
  background: #4e54c8;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 5px;
}

.chat {
  height: 300px;
  overflow-y: auto;
  border: 1px solid #333;
  padding: 10px;
  margin: 20px 0;
  text-align: left;
}

.message {
  margin-bottom: 10px;
}

.user {
  color: #ff6b6b;
}

.ai {
  color: #4e54c8;
}

.input-block {
  display: flex;
  gap: 10px;
}

input {
  flex: 1;
  padding: 10px;
  border: none;
}

button {
  padding: 10px;
  background: #4e54c8;
  border: none;
  color: white;
  cursor: pointer;
}

.products {
  margin-top: 20px;
}

.product {
  background: #222;
  padding: 10px;
  margin: 10px 0;
}
/* МЕНЮ */
.burger {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1000;
}

.menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 250px;
  height: 100%;
  background: rgba(10, 8, 30, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  padding: 4rem 2rem;
  gap: 1.5rem;
  transition: 0.4s;
  z-index: 1000;
}

.menu a {
  color: white;
  text-decoration: none;
}

.menu.active {
  right: 0;
}
/* ===== ФИКС СЛОЕВ ===== */
body {
  position: relative;
  z-index: 1;
}

/* Фон всегда сзади */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
}

/* Контент поверх */
header, main, footer {
  position: relative;
  z-index: 2;
}

/* ===== ЦЕНТРОВКА ===== */

header {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Контейнер для всего контента */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* ===== ФИКС КАРТОЧЕК ===== */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Чтобы не липло к левому краю */
.feature-card {
  text-align: center;
}

/* ===== О НАС ПО ЦЕНТРУ ===== */

#about {
  text-align: center;
  margin-top: 5rem;
}

/* ===== КНОПКА CTA (если вдруг сломалась) ===== */
.cta-wrapper {
  display: flex;
  justify-content: center;
}
/* УЛУЧШЕНИЕ ХЕДЕРА */
header {
  text-align: center;
  padding-top: 8rem;
}

/* БОЛЬШЕ ВОЗДУХА */
.features {
  margin-top: 6rem;
}

/* КАРТОЧКИ КАК НА ПРИМЕРЕ */
.feature-card {
  background: rgba(15, 12, 41, 0.6);
  backdrop-filter: blur(12px);
  
  border-radius: 25px;
  padding: 2.5rem;
  
  border: 1px solid rgba(255,255,255,0.08);
  
  transition: all 0.4s ease;
  
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.feature-card:hover {
  transform: translateY(-12px) scale(1.02);
  
  border: 1px solid rgba(255,255,255,0.2);
  
  box-shadow:
    0 25px 60px rgba(0,0,0,0.6),
    0 0 20px rgba(78,84,200,0.3);
}

/* КРАСИВАЯ КНОПКА */
.cta-button {
  position: relative;
  display: inline-block;
  padding: 1.4rem 3.8rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  border-radius: 60px;
  
  background: linear-gradient(135deg, #ff6b6b, #4e54c8);
  
  box-shadow:
    0 10px 30px rgba(0,0,0,0.4),
    inset 0 0 15px rgba(255,255,255,0.1);
  
  transition: all 0.4s ease;
  overflow: hidden;
}

/* СВЕЧЕНИЕ */
.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.4),
    transparent
  );
  
  transition: 0.6s;
}

/* ХОВЕР */
.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.04);
  
  box-shadow:
    0 20px 50px rgba(0,0,0,0.6),
    0 0 25px rgba(78,84,200,0.6);
}
/* ЧТОБЫ ВСЁ БЫЛО ПО ЦЕНТРУ */
main {
  text-align: center;
}
.main-title {
  font-size: clamp(3rem, 6vw, 5rem);
  
  letter-spacing: 2px;
  
  background: linear-gradient(90deg, #ffffff, #b8c0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  
  text-shadow: 0 5px 30px rgba(255,255,255,0.2);
}

.subtitle {
  opacity: 0.85;
  font-size: 1.3rem;
}
header, .feature-card {
  animation: fadeUp 1s ease forwards;
  opacity: 0;
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===== AI СТРАНИЦА ===== */

.chat-wrapper {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem;
  
  background: rgba(15,12,41,0.6);
  backdrop-filter: blur(15px);
  
  border-radius: 25px;
  border: 1px solid rgba(255,255,255,0.08);
  
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ЧАТ */
.chat-messages {
  height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

/* СООБЩЕНИЯ */
.message {
  max-width: 75%;
  padding: 1rem 1.2rem;
  border-radius: 15px;
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
}

/* ИИ */
.message.ai {
  background: rgba(78,84,200,0.25);
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}

/* ЮЗЕР */
.message.user {
  background: rgba(255,107,107,0.25);
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}

/* INPUT */
.chat-input {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.chat-input input {
  flex: 1;
  padding: 1rem;
  
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 12px;
  
  color: white;
  font-size: 1rem;
}

/* КНОПКА */
.chat-input button {
  padding: 0 1.5rem;
  
  border: none;
  border-radius: 12px;
  
  background: linear-gradient(135deg,#ff6b6b,#4e54c8);
  color: white;
  
  cursor: pointer;
  
  transition: 0.3s;
}

.chat-input button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(78,84,200,0.6);
}
/* ===== ТОВАР В ЧАТЕ ===== */
/* ===== ПРЕМИУМ КАРТОЧКА ===== */
.product-card {
  background: rgba(15,12,41,0.6);
  backdrop-filter: blur(10px);

  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  margin-top: 1rem;

  border: 1px solid rgba(255,255,255,0.06);

  display: flex;
  justify-content: space-between;
  align-items: center;

  transition: 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

/* ЛЕВАЯ ЧАСТЬ */
.product-top {
  display: flex;
  flex-direction: column;
}

.product-name {
  font-weight: 600;
  font-size: 1.05rem;
}

.product-meta {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ПРАВАЯ ЧАСТЬ */
.product-actions {
  display: flex;
  align-items: center;
}

/* ===== КНОПКА КАК У БРЕНДА ===== */
.buy-btn {
  backdrop-filter: blur(6px);
  padding: 0.4rem 1.2rem;

  font-size: 0.85rem;
  font-weight: 500;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);

  background: transparent;
  color: white;

  cursor: pointer;
  transition: all 0.25s ease;
}

/* ХОВЕР */
.buy-btn:hover {
  background: white;
  color: black;
  border-color: white;
}
.view-btn {
  padding: 0.4rem 1.2rem;

  font-size: 0.85rem;
  font-weight: 500;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);

  background: rgba(255,255,255,0.05);
  color: white;

  cursor: pointer;
  transition: 0.25s;
}

.view-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
}
.product-actions {
  display: flex;
  gap: 0.5rem;
}
.product-page {
  max-width: 1000px;
  margin: auto;
  padding: 2rem;
}

.product-container {
  display: flex;
  justify-content: center;
}

.product-big {
  background: rgba(15,12,41,0.6);
  backdrop-filter: blur(12px);

  border-radius: 25px;
  padding: 3rem;

  border: 1px solid rgba(255,255,255,0.08);

  text-align: center;

  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.product-info-block h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.product-buttons {
  margin-top: 2rem;
}

/* ===== ЗАГЛУШКИ ФОТО ТОВАРОВ ===== */
.product-thumb {
  width: 100%;
  height: 160px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.product-thumb.small {
  width: 60px;
  height: 60px;
  min-width: 60px;
  font-size: 1.6rem;
  border-radius: 12px;
  margin-bottom: 0;
  margin-right: 1rem;
}

.product-thumb.large {
  height: 320px;
  font-size: 5rem;
  margin-bottom: 1.5rem;
}

/* ===== ВЫБОР РАЗМЕРА ===== */
.size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.size-btn {
  padding: 0.6rem 1rem;
  min-width: 3rem;

  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: white;

  cursor: pointer;
  transition: 0.2s;
}

.size-btn:hover {
  background: rgba(255,255,255,0.15);
}

.size-btn.selected {
  background: linear-gradient(135deg, #ff6b6b, #4e54c8);
  border-color: transparent;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 640px) {
  main {
    padding: 1.2rem;
  }

  header {
    padding-top: 5.5rem;
  }

  .cta-button {
    padding: 1rem 2.2rem;
    font-size: 1rem;
  }

  .feature-card {
    padding: 1.6rem;
  }

  .chat-wrapper {
    margin: 1.5rem auto;
    padding: 1.2rem;
  }

  .chat-messages {
    height: 55vh;
  }

  .message {
    max-width: 88%;
  }

  .product-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .product-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .product-thumb.small {
    width: 100%;
    height: 100px;
    margin-right: 0;
  }

  .product-big {
    padding: 1.8rem;
  }

  /* Мерцающий фон завязан на позицию мыши, которой нет на тачскрине —
     на мобильных отключаем, оставляем сплошной тёмный фон */
  #canvas-container {
    display: none;
  }
}