/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #0b0414;
  color: #f0eaff;
  line-height: 1.5;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER (с картинкой-баннером) ===== */
.site-header {
  width: 100%;
}

.banner {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 400px;
}

/* Навигация */
.main-nav {
  background: #120b1fcc;
  backdrop-filter: blur(10px);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #2e1e4a;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  color: #d9c6ff;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  transition: 0.2s;
  border-radius: 40px;
}

.nav-links a:hover {
  background: #7c3aed30;
  color: white;
}

/* ===== КНОПКИ ===== */
.btn, .button {
  display: inline-block;
  background: #7c3aed;
  color: white;
  padding: 10px 24px;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  text-align: center;
}

.btn-outline {
  background: transparent;
  border: 1px solid #a67cff;
  color: #d9c6ff;
}

.btn-outline:hover {
  background: #7c3aed20;
}

.btn:hover {
  background: #5b22b5;
  transform: translateY(-2px);
}

/* Карточки товаров (квадратные картинки) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 32px;
  margin: 48px 0;
}

.product-card {
  background: #150e24;
  border-radius: 32px;
  padding: 20px;
  transition: 0.2s;
  border: 1px solid #2a1d42;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: #a67cff;
  box-shadow: 0 12px 28px #00000040;
}

.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  background: #1a0f30;
  margin-bottom: 16px;
}

.product-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 8px 0;
}

.price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #c4a2ff;
  margin: 12px 0;
}

/* Блоки на главной */
.info-block {
  margin: 72px 0;
  scroll-margin-top: 90px;
}

.info-block h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff, #c9b2ff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: inline-block;
}

.info-content {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}

.info-content img {
  flex: 1;
  min-width: 200px;
  border-radius: 28px;
  max-width: 400px;
  background: #1e1232;
}

.info-content p {
  flex: 2;
  font-size: 1.05rem;
  color: #e2d6ff;
}

/* Три квадрата на главной (под шапкой) */
.preview-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 48px 0 32px;
}

.preview-card {
  background: #1c112e;
  border-radius: 28px;
  overflow: hidden;
  width: 260px;
  text-align: center;
  transition: 0.2s;
  border: 1px solid #352654;
}

.preview-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.preview-card p {
  padding: 16px;
  font-weight: 500;
}

/* Футер */
.footer {
  background: #06010e;
  padding: 40px 0 24px;
  margin-top: 64px;
  text-align: center;
  border-top: 1px solid #2a1b44;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 20px 0;
}

.social-links a {
  color: #bfa6ff;
  text-decoration: none;
  font-weight: 500;
  background: #1f1338;
  padding: 8px 20px;
  border-radius: 50px;
  transition: 0.2s;
}

.social-links a:hover {
  background: #7c3aed;
  color: white;
}

.footer-message {
  color: #aa97d9;
  font-size: 0.9rem;
  max-width: 500px;
  margin: 16px auto 0;
}

/* Формы */
.form-card {
  max-width: 620px;
  margin: 48px auto;
  background: #140c23;
  padding: 36px 28px;
  border-radius: 48px;
  border: 1px solid #3d2a60;
}

.form-group {
  margin-bottom: 24px;
}

input, textarea, select {
  width: 100%;
  padding: 14px 18px;
  background: #221b36;
  border: 1px solid #4a3670;
  border-radius: 40px;
  color: white;
  font-family: inherit;
  font-size: 1rem;
}

textarea {
  border-radius: 24px;
  resize: vertical;
}

button[type="submit"] {
  width: 100%;
}

/* Модальное окно для MAX+VK */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #000000cc;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #1f1538;
  border-radius: 48px;
  padding: 28px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  border: 1px solid #a67cff;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 24px 0;
}

.copy-message {
  background: #0b0418;
  padding: 12px;
  border-radius: 24px;
  font-family: monospace;
  word-break: break-word;
}

/* адаптив */
@media (max-width: 768px) {
  .nav-links {
    gap: 10px;
  }
  .nav-links a {
    font-size: 0.8rem;
    padding: 4px 8px;
  }
  .info-content {
    flex-direction: column;
  }
  .preview-grid {
    gap: 16px;
  }
}

/* Временное скрытие элементов (для протоколов) */
.hidden-section {
    display: none;
}