﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #171316;
  --bg-2: #241b1f;
  --card: rgba(255, 255, 255, 0.085);
  --card-2: rgba(255, 255, 255, 0.13);
  --red: #df2f2f;
  --red-2: #ff5a5a;
  --silver: #f4f4f4;
  --muted: #cbc2c4;
  --line: rgba(255, 255, 255, 0.15);
}

body {
  font-family: "Poppins", sans-serif;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 79, 79, 0.28), transparent 30%),
    radial-gradient(
      circle at 88% 18%,
      rgba(255, 122, 122, 0.16),
      transparent 28%
    ),
    radial-gradient(
      circle at 50% 100%,
      rgba(255, 80, 80, 0.15),
      transparent 38%
    ),
    linear-gradient(135deg, #21181c 0%, #2a2024 45%, #151214 100%);
}

.bg-lines {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.42;
  background-image:
    linear-gradient(
      115deg,
      transparent 0 48%,
      rgba(255, 77, 77, 0.16) 49%,
      transparent 50%
    ),
    linear-gradient(
      70deg,
      transparent 0 62%,
      rgba(255, 255, 255, 0.07) 63%,
      transparent 64%
    );
  background-size: 340px 340px;
  animation: bgMove 16s linear infinite;
}

@keyframes bgMove {
  to {
    transform: translateY(-340px);
  }
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 22px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(22, 16, 19, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.logo {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: 5px;
  color: var(--silver);
  text-decoration: none;
  text-shadow: 0 0 18px rgba(255, 70, 70, 0.65);
  position: relative;
}

.logo span {
  color: var(--red-2);
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 28px;
  font-weight: 700;
  transition: 0.3s;
}

nav a:hover {
  color: white;
  text-shadow: 0 0 14px var(--red-2);
}

.hero {
  padding: 90px 7% 55px;
  text-align: center;
  position: relative;
}

.badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  color: #ffe0e0;
  box-shadow: 0 0 35px rgba(223, 47, 47, 0.2);
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease forwards;
}

h1 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(42px, 7vw, 84px);
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(180deg, #fff, #e9e9e9 45%, #9e9e9e);
  -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(255, 70, 70, 0.32));
  animation: fadeUp 0.95s ease forwards;
}

.hero p {
  color: var(--muted);
  max-width: 790px;
  margin: 22px auto 0;
  line-height: 1.8;
  font-size: 17px;
  animation: fadeUp 1.1s ease forwards;
}

.products-wrap {
  padding: 35px 7% 95px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.product-card {
  min-height: 330px;
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.13),
    rgba(255, 255, 255, 0.055)
  );
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  transform: translateY(35px);
  opacity: 0;
  animation: cardIn 0.75s ease forwards;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255, 255, 255, 0.18),
    transparent 80%
  );
  transform: translateX(-120%);
  transition: 0.65s;
  z-index: 2;
  pointer-events: none;
}

.product-card:hover::before {
  transform: translateX(120%);
}

.product-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(255, 90, 90, 0.55);
  box-shadow: 0 30px 90px rgba(223, 47, 47, 0.24);
}

.product-image {
  height: 235px;
  background: #0f0d0f;
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.55s ease;
  filter: contrast(1.04) brightness(1.05);
}

.product-card:hover img {
  transform: scale(1.08);
}

.category-chip {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 3;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--red-2), #991313);
  box-shadow: 0 10px 22px rgba(223, 47, 47, 0.35);
}

.product-info {
  padding: 22px 20px 24px;
  text-align: center;
}

.product-info h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 19px;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.product-info p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal::-webkit-scrollbar {
  width: 10px;
}

.modal::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  margin: 18px 0;
}

.modal::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff6868, #a50f0f);
  border-radius: 999px;
  border: 2px solid rgba(24, 18, 21, 0.95);
  box-shadow: 0 0 16px rgba(255, 90, 90, 0.35);
}

.modal::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff8787, #d21818);
}

.modal {
  width: min(1050px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--red-2) rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  background: linear-gradient(
    145deg,
    rgba(48, 37, 42, 0.98),
    rgba(23, 18, 21, 0.98)
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 35px 120px rgba(0, 0, 0, 0.55),
    0 0 70px rgba(223, 47, 47, 0.2);
  position: relative;
  animation: modalOpen 0.35s ease forwards;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff5a5a, #a11212);
  border-radius: 999px;
  border: 2px solid rgba(20, 15, 17, 0.9);
  box-shadow: 0 0 14px rgba(255, 90, 90, 0.35);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff7a7a, #cf1d1d);
}

@keyframes modalOpen {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(24px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  background: rgba(255, 255, 255, 0.11);
  cursor: pointer;
  font-size: 24px;
  z-index: 5;
  transition: 0.3s;
}

.close-btn:hover {
  background: var(--red);
  transform: rotate(90deg);
}

.modal-content {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 0;
}

.modal-image {
  max-height: 550px;
  background: #111;
  position: relative;
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 45%);
}

.modal-details {
  padding: 62px 46px 46px;
}

.modal-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.05;
  margin-bottom: 16px;
  color: white;
  text-shadow: 0 0 22px rgba(255, 80, 80, 0.35);
}

.modal-category {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red-2), #9e1515);
  font-weight: 800;
  margin-bottom: 28px;
}

.info-block {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  margin-bottom: 18px;
}

.info-block h4 {
  font-family: "Orbitron", sans-serif;
  color: #fff;
  margin-bottom: 10px;
  font-size: 17px;
}

.info-block p {
  color: var(--muted);
  line-height: 1.75;
}

.modal-actions {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 14px 22px;
  cursor: pointer;
  font-weight: 900;
  color: white;
  background: linear-gradient(135deg, #ff5a5a, #9d1212);
  box-shadow: 0 14px 36px rgba(223, 47, 47, 0.35);
  transition: 0.3s;
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-4px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.menu-toggle span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px rgba(255, 75, 75, 0.6);
}

@media (max-width: 1150px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 850px) {
  nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 7%;
    display: grid;
    min-width: 190px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(22, 16, 19, 0.96);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: 0.25s ease;
  }
  nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  nav a {
    margin: 0;
    padding: 12px 14px;
    border-radius: 8px;
  }
  nav a:hover {
    background: rgba(255, 255, 255, 0.08);
  }
  .menu-toggle {
    display: inline-flex;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-content {
    grid-template-columns: 1fr;
  }
  .modal-image {
    min-height: 360px;
  }
  .modal-details {
    padding: 38px 24px 28px;
  }
}
@media (max-width: 560px) {
  header {
    padding: 18px 5%;
  }
  nav {
    right: 5%;
  }
  .hero {
    padding: 65px 5% 35px;
  }
  .products-wrap {
    padding: 20px 5% 70px;
  }
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .product-card {
    min-height: auto;
  }
  .modal-overlay {
    align-items: center;
    justify-content: center;
    padding: 12px;
  }
  .modal {
    border-radius: 24px;
    max-height: calc(100vh - 24px);
    width: 100%;
  }
  .modal-image {
    height: clamp(220px, 58vw, 300px);
    min-height: 0;
    max-height: none;
    background: #0f0d0f;
  }
  .modal-image img {
    object-fit: contain;
  }
  .modal-details {
    padding: 24px 16px 18px;
  }
  .modal-title {
    font-size: clamp(24px, 8vw, 34px);
    margin-bottom: 10px;
  }
  .modal-category {
    margin-bottom: 16px;
    padding: 8px 12px;
    font-size: 13px;
  }
  .info-block {
    padding: 14px;
    border-radius: 16px;
    margin-bottom: 12px;
  }
  .info-block h4 {
    font-size: 14px;
  }
  .info-block p {
    font-size: 13px;
    line-height: 1.55;
  }
  .modal-actions {
    gap: 10px;
    margin-top: 16px;
  }
  .modal-actions .btn {
    flex: 1 1 130px;
    padding: 12px 14px;
  }
  .close-btn {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}
