@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Russo+One&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* ФОН */
body {
  font-family: "Montserrat", Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(124, 58, 237, 0.12), transparent 34%),
    radial-gradient(circle at 80% 10%, rgba(168, 85, 247, 0.1), transparent 28%),
    #05070f;
  color: #fff;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

/* СКРОЛЛБАР */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a; 
}
::-webkit-scrollbar-thumb {
  background: #8b5cf6; 
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a78bfa; 
}

/* HEADER */
.header {
  height: 86px;
  padding: 0 38px;
  background: rgba(5, 7, 15, 0.75);
  border-bottom: 1px solid rgba(168, 85, 247, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.logo {
  font-family: "Russo One", Arial, sans-serif;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.5px;
  transform: skew(-7deg);
  text-shadow: 0 0 18px rgba(168, 85, 247, 0.28);
}

.logo span {
  color: #a855f7;
  text-shadow: 0 0 18px rgba(168, 85, 247, 0.75);
}

/* === ПРОКАЧКА НАВИГАЦИИ (ШАПКА) === */
.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 6px; /* Место под полоску */
}

/* Анимация подчеркивания */
.nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 50%;
  background: #a855f7;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
  border-radius: 2px;
}

.nav a:hover::after {
  width: 100%;
}

.nav a:hover {
  color: #fff;
  text-shadow: 0 0 15px rgba(168, 85, 247, 0.8);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-btn {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 20%, rgba(168, 85, 247, 0.38), transparent 45%),
    rgba(124, 58, 237, 0.22);
  color: white;
  font-size: 24px;
  cursor: pointer;
  position: relative;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.35);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cart-btn:hover {
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.6);
  transform: scale(1.05);
  border-color: rgba(168, 85, 247, 0.8);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
}

/* === HERO БАННЕР === */
.hero-modern {
  position: relative;
  max-width: 1480px;
  min-height: 540px;
  margin: 30px auto 46px;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(145deg, #0f1322 0%, #0a0c14 100%);
  border: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  opacity: 0.6;
  pointer-events: none;
}

.glow-1 { width: 400px; height: 400px; background: rgba(168, 85, 247, 0.4); top: -100px; left: -100px; }
.glow-2 { width: 500px; height: 500px; background: rgba(59, 130, 246, 0.2); bottom: -150px; right: 10%; }

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 650px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 999px;
  color: #d8b4fe;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-content h1 span {
  background: linear-gradient(135deg, #a855f7, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.hero-content p {
  font-size: 16px;
  font-weight: 500;
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 550px;
}

.hero-btns {
  display: flex;
  gap: 16px;
}

.hero-btn-primary, .hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-btn-primary {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.6);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.hero-image {
  position: relative;
  z-index: 5;
  width: 45%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 6s ease-in-out infinite; 
}

.hero-image img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(168, 85, 247, 0.4));
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/* FEATURES */
.features {
  max-width: 1480px;
  margin: 0 auto 60px;
  padding: 0 30px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.feature {
  background:
    radial-gradient(circle at 18% 25%, rgba(168, 85, 247, 0.28), transparent 34%),
    linear-gradient(145deg, #111827, #0b1020);
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 22px;
  padding: 24px;
  min-height: 150px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent 38%);
  pointer-events: none;
}

.feature-icon {
  width: 54px;
  height: 54px;
  font-size: 32px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: rgba(168, 85, 247, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 16px rgba(168, 85, 247, 0.55));
  transition: transform 0.3s ease;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: #a855f7;
  filter: drop-shadow(0 0 10px rgba(168,85,247,0.6));
}

.feature b {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 700;
}

.feature span {
  display: block;
  color: #b8bfd0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

/* SECTIONS */
.products,
.reviews,
.faq {
  max-width: 1480px;
  margin: 0 auto 60px;
  padding: 0 30px;
  scroll-margin-top: 90px;
}

.section-label {
  color: #c084fc;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}

.section-head h2 {
  margin: 10px 0 6px;
  font-size: 34px;
  font-weight: 800;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.section-head p {
  color: #9ca3af;
  font-weight: 500;
}

/* FILTERS */
.filters {
  display: flex;
  gap: 12px;
  margin: 24px 0 30px;
  flex-wrap: wrap;
}

.filter {
  border: 1px solid rgba(168, 85, 247, 0.32);
  background: rgba(17, 24, 39, 0.95);
  color: white;
  padding: 12px 18px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
}

.filter.active,
.filter:hover {
  background: linear-gradient(135deg, #6d28d9, #a855f7);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.45);
  transform: translateY(-2px);
  border-color: #d8b4fe;
}

/* PRODUCTS */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
}

.card {
  position: relative;
  background: rgba(30, 35, 55, 0.6); 
  border: 2px solid rgba(168, 85, 247, 0.25);
  border-radius: 24px;
  padding: 18px;
  overflow: hidden;
  min-height: 315px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(168,85,247,0.25), transparent 60%);
  opacity: 0;
  transition: 0.4s;
  pointer-events: none;
}

.card:active {
  border-color: #c084fc; 
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.6); 
  transform: scale(0.96); 
  background: rgba(40, 45, 70, 0.8);
}

.product-img {
  height: 170px; 
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3) !important; 
  margin-bottom: 16px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important; 
}

.product-img img {
  width: 130px !important;
  height: 130px !important;
  max-width: 130px !important;
  max-height: 130px !important;
  object-fit: contain !important; 
  transform: none !important; 
  transition: transform 0.3s ease-in-out;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, transparent 65%) !important;
  filter: drop-shadow(0px 12px 10px rgba(0, 0, 0, 0.75)) !important; 
  padding: 6px !important;
  border-radius: 16px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.old-price {
  display: inline-block;
  color: #cbd5e1 !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration-line: line-through !important;
  text-decoration-thickness: 2px;
  text-decoration-color: #ef4444;
  opacity: 0.8;
  margin-bottom: 2px;
}

.price {
  color: #c084fc;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 0 14px rgba(192, 132, 252, 0.4);
}

.card button, .add-to-cart-btn {
  width: 100%;
  height: 48px; 
  margin-top: auto;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c3aed, #a855f7, #9333ea);
  background-size: 200% auto;
  border: none;
  color: white;
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap; 
  overflow: hidden;
  box-shadow: 
    0 4px 15px rgba(147, 51, 234, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    inset 0 -2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card button::before {
  content: "🛒 ";
  font-size: 16px;
}

.card button:hover, .add-to-cart-btn:hover {
  background-position: right center;
  box-shadow: 
    0 8px 25px rgba(168, 85, 247, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    inset 0 -2px 5px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.card button:active, .add-to-cart-btn:active {
  transform: translateY(2px);
  box-shadow: 
    0 2px 10px rgba(147, 51, 234, 0.4),
    inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

@media (hover: hover) {
  .card:hover::after { opacity: 1; }
  .card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.7);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.25);
  }
  .card:hover .product-img img { transform: scale(1.06) !important; }
  .feature:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.75);
    box-shadow: 0 10px 32px rgba(168, 85, 247, 0.3);
  }
  .feature:hover .feature-icon {
    transform: scale(1.1);
    background: rgba(168, 85, 247, 0.2);
  }
}

/* REVIEWS */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.review {
  background: linear-gradient(145deg, #111827, #0d1324);
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(168, 85, 247, 0.22);
  transition: all 0.3s ease;
}

.review:hover {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.15);
  transform: translateY(-3px);
}

.review-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  background: linear-gradient(135deg, #6d28d9, #a855f7);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(168, 85, 247, 0.4);
}

.review-top span {
  color: #9ca3af;
  font-size: 13px;
  font-weight: 500;
}

.review p {
  margin-top: 14px;
  color: #e5e7eb;
  font-size: 15px;
  line-height: 1.5;
}

.stars {
  color: #c084fc;
  margin-top: 12px;
  letter-spacing: 2px;
}

/* TELEGRAM */
.telegram {
  max-width: 1480px;
  margin: 0 auto 60px;
  padding: 32px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 50%, rgba(168, 85, 247, 0.26), transparent 35%),
    linear-gradient(135deg, #111827, #1f2937);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(168, 85, 247, 0.28);
}

.telegram h2 {
  font-weight: 800;
}

.telegram p {
  color: #9ca3af;
  margin-top: 6px;
  font-weight: 500;
}

.telegram button {
  border: none;
  font-family: inherit;
  color: white;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.telegram button:hover {
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.7);
  transform: translateY(-2px);
}

/* FAQ */
.faq-grid {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.faq-grid details {
  background: rgba(17, 24, 39, 0.8);
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(168, 85, 247, 0.22);
  transition: all 0.3s ease;
}

.faq-grid details:hover {
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(17, 24, 39, 1);
}

.faq-grid summary {
  cursor: pointer;
  font-weight: 700;
  color: #e5e7eb;
  outline: none;
}

.faq-grid p {
  color: #9ca3af;
  margin-top: 14px;
  line-height: 1.6;
  padding-top: 10px;
  border-top: 1px solid rgba(168, 85, 247, 0.15);
  font-weight: 500;
}

/* FOOTER */
.footer {
  max-width: 1480px;
  margin: 0 auto;
  padding: 30px;
  border-top: 1px solid rgba(168, 85, 247, 0.22);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand p {
  margin-top: 10px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  font-weight: 600;
  transition: 0.25s;
  font-size: 14px;
}

.footer-links a:hover {
  color: #c084fc;
}

/* CART & GLASSMORPHISM */
.cart-overlay,
.order-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 200;
  backdrop-filter: blur(6px);
}

.cart-overlay.active,
.order-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  position: fixed;
  right: -450px;
  top: 0;
  width: 420px;
  max-width: 92vw;
  height: 100%;
  padding: 24px;
  transition: right 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 300;
  border-left: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.cart-panel.active {
  right: 0;
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.cart-head h2 {
  font-size: 28px;
  font-weight: 800;
  text-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

#closeCart,
#closeOrder {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#closeCart:hover,
#closeOrder:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ff8a8a;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
}

.cart-items::-webkit-scrollbar {
  width: 4px;
}

/* === ПРОКАЧКА ТОВАРОВ В КОРЗИНЕ (Перебиваем JS стили) === */
.cart-item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: rgba(30, 35, 55, 0.6) !important;
  padding: 18px 20px !important;
  border-radius: 16px !important;
  margin-bottom: 14px !important;
  border: 1px solid rgba(168, 85, 247, 0.25) !important;
  transition: all 0.3s ease !important;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.2) !important;
}

.cart-item:hover {
  background: rgba(45, 50, 75, 0.8) !important;
  border-color: #a855f7 !important;
  box-shadow: 0 5px 15px rgba(168, 85, 247, 0.25) !important;
  transform: translateY(-2px) !important;
}

.cart-item span:first-child {
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #f8fafc !important;
  line-height: 1.4 !important;
  padding-right: 15px;
}

.cart-item span:last-child {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.cart-item span b {
  font-size: 18px !important;
  color: #c084fc !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap;
}

.cart-item button {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: 0.3s !important;
  margin-left: 0 !important;
  border: 1px solid transparent !important;
}

.cart-item button:hover {
  background: #ef4444 !important;
  color: #fff !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.6) !important;
  transform: scale(1.1) !important;
}
/* === КОНЕЦ ПРОКАЧКИ КОРЗИНЫ === */

.cart-bottom {
  border-top: 1px solid rgba(168, 85, 247, 0.3);
  padding-top: 24px;
  margin-top: 10px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 22px;
  margin-bottom: 20px;
  font-weight: 800;
  color: #d8b4fe;
}

.checkout-btn {
  width: 100%;
  border: none;
  font-family: inherit;
  color: white;
  background: linear-gradient(135deg, #6d28d9, #9333ea, #a855f7);
  background-size: 200% auto;
  padding: 16px 24px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.checkout-btn:hover {
  background-position: right center;
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.6);
  transform: translateY(-2px);
}

/* ORDER MODAL & GLASSMORPHISM */
.order-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 760px;
  max-width: 94vw;
  max-height: 88vh;
  overflow-y: auto;
  transform: translate(-50%, -45%) scale(0.95);
  opacity: 0;
  pointer-events: none;
  z-index: 400;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 20px 70px rgba(0,0,0,0.8), inset 0 1px 1px rgba(255,255,255,0.1);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.order-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.order-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.order-head h2 {
  font-size: 28px;
  margin-bottom: 6px;
  font-weight: 800;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.order-head p {
  color: #9ca3af;
  font-weight: 500;
  font-size: 14px;
}

.order-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.order-method {
  text-align: left;
  border: 1px solid rgba(168, 85, 247, 0.28);
  background: rgba(255,255,255,0.03);
  color: white;
  border-radius: 18px;
  padding: 18px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.order-method:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(168, 85, 247, 0.6);
}

.order-method.active {
  background: linear-gradient(135deg, rgba(109,40,217,0.8), rgba(168,85,247,0.6));
  border-color: rgba(216, 180, 254, 0.9);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
}

.order-method b {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: 700;
}

.order-method span {
  color: #d1d5db;
  font-size: 13px;
  font-weight: 500;
}

.order-form {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.order-form label,
.order-preview label {
  color: #d8b4fe;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.order-form input,
.order-form textarea,
.order-preview textarea {
  width: 100%;
  font-family: inherit;
  border: 1px solid rgba(168, 85, 247, 0.28);
  background: rgba(0, 0, 0, 0.2);
  color: white;
  border-radius: 14px;
  padding: 16px;
  outline: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.order-form input:focus,
.order-form textarea:focus {
  border-color: #c084fc;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.3), inset 0 2px 4px rgba(0,0,0,0.1);
}

.order-form textarea {
  min-height: 78px;
  resize: vertical;
}

.order-preview textarea {
  min-height: 145px;
  max-height: 210px;
  resize: vertical;
  margin-top: 10px;
  line-height: 1.5;
  font-size: 14px;
}

.order-steps {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(168,85,247,0.3);
  padding: 16px 20px;
  border-radius: 16px;
  margin: 16px 0;
}

.order-steps p {
  font-weight: 700;
  margin-bottom: 8px;
  color: #d8b4fe;
  font-size: 15px;
}

.order-steps ol {
  padding-left: 18px;
}

.order-steps li {
  color: #cbd5e1;
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 500;
}

.order-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.order-actions button {
  flex: 1;
  border: none;
  font-family: inherit;
  color: white;
  padding: 16px;
  border-radius: 16px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 800;
  transition: all 0.3s ease;
}

.order-help {
  margin-top: 16px;
  color: #9ca3af;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
}

.order-help b {
  color: #c084fc;
}

/* TOAST */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%) translateY(30px);
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(34, 197, 94, 0.6);
  color: white;
  padding: 14px 24px;
  border-radius: 16px;
  opacity: 0;
  pointer-events: none;
  z-index: 500;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.4);
  font-weight: 600;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* LOADER */
#loader {
  position: fixed;
  inset: 0;
  background: #05070f;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.loader-box {
  text-align: center;
}

.loader-logo {
  font-family: "Russo One", Arial, sans-serif;
  font-size: 38px;
  font-weight: 900;
}

.loader-logo span {
  color: #a855f7;
  text-shadow: 0 0 20px rgba(168,85,247,0.8);
}

.loader-line {
  width: 180px;
  height: 4px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6d28d9, #a855f7, #6d28d9);
  animation: loaderGlow 1.2s infinite linear;
}

@keyframes loaderGlow {
  0% { opacity: 0.35; transform: scaleX(0.7); }
  50% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0.35; transform: scaleX(0.7); }
}

/* MOBILE */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .order-methods { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-modern {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    min-height: auto;
    padding: 40px 20px;
    margin: 20px 14px 34px;
    border-radius: 24px;
  }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .hero-content h1 { font-size: 36px; }
  .hero-content p { font-size: 14px; }
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btn-primary, .hero-btn-secondary { width: 100%; }
  .hero-image { width: 100%; margin-top: 30px; }
  .hero-image img { max-height: 200px; }
  
  .header { position: static; height: 86px; padding: 0 22px; }
  .nav { display: none; }
  .logo { font-size: 34px; }
  
  .features, .products, .reviews, .faq { padding-left: 14px; padding-right: 14px; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 16px; padding-left: 18px; padding-right: 18px; }
  .feature { min-height: 210px; padding: 22px; }
  .feature b { font-size: 20px; }
  .feature span { font-size: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .card { min-height: 300px; padding: 14px; }
  .product-img { height: 140px; }
  .telegram, .footer { margin-left: 14px; margin-right: 14px; flex-direction: column; text-align: center; gap: 16px; }
  .footer-links { justify-content: center; }
  .cart-btn { position: fixed; right: 18px; bottom: 22px; z-index: 180; }
  .header-actions { position: static; }
  .card button { padding: 15px; font-size: 13px; }
  .filter { padding: 12px 16px; }
  .cart-panel { width: 100%; max-width: 100%; right: -100%; border-left: none; }
  .order-modal { padding: 20px; width: 96vw; }
  .order-actions { flex-direction: column; }
}

@media (max-height: 540px) {
  .order-modal {
    top: 10px; transform: translate(-50%, 0) scale(0.95);
    max-height: calc(100vh - 20px);
  }
  .order-modal.active { transform: translate(-50%, 0) scale(1); }
}

/* === ФИКС БЕЛОЙ КНОПКИ ОПЛАТЫ В МОДАЛКЕ === */
#payBtn {
    width: 100%;
    background: #a855f7 !important;
    color: #ffffff !important;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

#payBtn:hover {
    opacity: 0.8;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

#payBtn:disabled {
    background: #4b5563 !important;
    color: #9ca3af !important;
    cursor: not-allowed;
    box-shadow: none;
}

/* === ФИКС ПРОКРУТКИ ЯКОРЕЙ ПОД ШАПКУ === */
[id] {
    scroll-margin-top: 120px;
}

/* === БРОНЕБОЙНАЯ АДАПТАЦИЯ ШАПКИ НА МОБИЛКАХ === */
@media (max-width: 600px) {
    .header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 15px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    .header .nav {
        display: none !important;
    }
    .header .logo {
        font-size: 20px !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
    }
    .header-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: auto !important;
        margin: 0 !important;
    }
    .orders-btn {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        float: none !important;
        margin: 0 !important;
        font-size: 11px !important;
        padding: 7px 12px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    .cart-btn {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        float: none !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .cart-count {
        position: absolute !important;
        top: -6px !important;
        right: -8px !important;
        margin: 0 !important;
        font-size: 10px !important;
        padding: 2px 5px !important;
        z-index: 99 !important;
    }
}
