body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: #fff;

  background-color: #0f1115;
  background-image:
  radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
background-size: 20px 20px;
}
/* ===== HEADER ===== */
.header {
  display: flex;
  justify-content: space-between;
  padding: 20px 40px;
  background: #151820;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-weight: 700;
  font-size: 22px;
}

nav a,
nav button {
  margin-left: 15px;
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
}

/* ===== HERO ===== */
#hero {
  background:
    linear-gradient(rgba(15,17,21,0.55), rgba(15,17,21,0.55)),
    url("images/hero-bg.jpg") center / contain no-repeat;
  background-color: #0f1115;
  min-height: 80vh;
  padding: 100px 20px;
  text-align: center;
}

/* ===== BUTTON ===== */
.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 28px;
  background: #5b7cfa;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
}

/* ===== SECTIONS ===== */
section {
  padding: 80px 20px;
}

/* ===== SERVICES GRID ===== */
.grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

/* ===== PRODUCTS ===== */
.products {
  max-width: 1200px;           /* 🔑 ОГРАНИЧЕНИЕ ШИРИНЫ */
  margin: 0 auto;               /* 🔑 ЦЕНТРИРОВАНИЕ */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.product {
  background: #151820;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
}

/* ===== PRODUCT IMAGE ===== */
.product-image {
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.product-image img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-image:hover img {
  transform: scale(1.08);
}

/* ===== PAY BUTTON ===== */
.pay-btn {
  margin-top: 10px;
  padding: 10px;
  width: 100%;
  background: #ffc439;
  border: none;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

/* ===== FORM ===== */
form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

input,
textarea {
  margin-bottom: 10px;
  padding: 10px;
}

/* ===== FOOTER ===== */
footer {
  background: #151820;
  text-align: center;
  padding: 20px;
}

/* ===== SOCIALS ===== */
.socials {
  margin-top: 10px;
}

.socials a {
  margin: 0 10px;
  color: #5b7cfa;
  text-decoration: none;
  font-weight: 500;
}

/* ===== LIGHTBOX ===== */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

/* ===== LIGHTBOX CONTROLS ===== */
.lb-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
}

.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 60px;
  color: #fff;
  cursor: pointer;
  padding: 10px;
  user-select: none;
}

.lb-prev {
  left: 30px;
}

.lb-next {
  right: 30px;
}

.lb-prev:hover,
.lb-next:hover,
.lb-close:hover {
  color: #ffc439;
}