/* ==========================================================================
   Diamond Brand — Premium Vector / Aurora Glass Design
   Только оформление. Разметка, логика и функционал не изменяются.
   ========================================================================== */

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

:root {
  --bg: #06070c;
  --bg-soft: #0a0c14;
  --surface: #0d1019;
  --surface-elev: #121624;
  --card: #10141f;
  --card-hover: #161b2a;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-hover: rgba(167, 139, 250, 0.45);

  --accent: #8b5cf6;
  --accent-soft: #a78bfa;
  --accent-2: #22d3ee;
  --accent-glow: rgba(139, 92, 246, 0.35);
  --accent-glow-strong: rgba(139, 92, 246, 0.55);

  --gold: #f5c451;
  --success: #34d399;
  --danger: #fb7185;

  --text: #eef1f8;
  --text-dim: #a4adc2;
  --text-muted: #74809a;
  --muted: #74809a;

  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 9px;
  --radius-pill: 999px;

  --shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7), 0 8px 20px -12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.03);
  --shadow-accent: 0 18px 45px -18px rgba(139, 92, 246, 0.6);

  --grid-line: rgba(255, 255, 255, 0.028);
  --glass: rgba(255, 255, 255, 0.035);
  --glass-border: rgba(255, 255, 255, 0.09);

  --font: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Сброс и базовое ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  scrollbar-color: #2c3247 transparent;
  scrollbar-width: thin;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(139, 92, 246, 0.4);
  color: #fff;
}

:focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.85);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #080a11;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2a3048, #1a1f30);
  border-radius: 99px;
  border: 2px solid #080a11;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #3b4263, #252b42);
}

/* ===== Фон: аврора + векторная сетка ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1000px 700px at 12% -12%, rgba(139, 92, 246, 0.20), transparent 62%),
    radial-gradient(900px 600px at 92% -6%, rgba(34, 211, 238, 0.12), transparent 58%),
    radial-gradient(900px 800px at 50% 112%, rgba(139, 92, 246, 0.10), transparent 62%),
    var(--bg);
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 78%);
}

/* ===== Плавное появление контента ===== */
.fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

@keyframes dropdown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Кнопки ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: saturate(0.3);
}

.btn-primary {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 42%, #6d28d9 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 30px -14px var(--accent-glow-strong), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.28) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #b9a4ff 0%, #9569ff 42%, #7c3aed 100%);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -16px var(--accent-glow-strong), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent-soft);
  border: 1px solid rgba(167, 139, 250, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-outline:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(167, 139, 250, 0.75);
  color: #ddd6fe;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -16px var(--accent-glow-strong);
}

.btn-success {
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  color: #04110c;
  box-shadow: 0 14px 30px -16px rgba(52, 211, 153, 0.55);
}

.btn-danger {
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
  color: #fff;
  box-shadow: 0 14px 30px -16px rgba(251, 113, 133, 0.55);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  margin-bottom: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-back:hover {
  color: #ddd6fe;
  border-color: rgba(167, 139, 250, 0.75);
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-1px);
}

/* ===== Контейнер ===== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 26px;
}

/* ===== Шапка ===== */
header {
  background: rgba(7, 8, 14, 0.72);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.55), rgba(34, 211, 238, 0.4), transparent);
  opacity: 0.75;
  pointer-events: none;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 10px 26px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.035em;
  transition: var(--transition-fast);
}

.logo-img {
  display: block;
  width: auto;
  height: 64px;
  filter: drop-shadow(0 6px 18px rgba(139, 92, 246, 0.35));
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
}

.logo:hover .logo-img {
  transform: translateY(-1px) scale(1.03);
  filter: drop-shadow(0 8px 26px rgba(139, 92, 246, 0.6));
}

.logo span {
  color: var(--accent-soft);
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-links a {
  position: relative;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  transition: var(--transition-fast);
}

.nav-links a:not(.cart-link)::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:not(.cart-link):hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.nav-links a:not(.cart-link):hover::after {
  transform: scaleX(1);
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  padding: 9px 17px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: var(--transition-fast);
}

.cart-link:hover {
  border-color: rgba(167, 139, 250, 0.5);
  color: #e9e4ff;
  background: rgba(139, 92, 246, 0.14);
  box-shadow: 0 0 24px -10px var(--accent-glow-strong);
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-2));
  color: #080a11;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  min-width: 20px;
  line-height: 1.4;
  border: 2px solid #080a11;
  box-shadow: 0 4px 12px rgba(34, 211, 238, 0.35);
}

.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.mobile-menu-btn:hover {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(139, 92, 246, 0.1);
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  margin: 4.5px 0;
  transition: var(--transition-fast);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: clamp(64px, 9vw, 112px) 0 clamp(54px, 7vw, 88px);
  text-align: center;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(6, 7, 12, 0.88) 0%, rgba(6, 7, 12, 0.74) 52%, rgba(6, 7, 12, 0.92) 100%),
    url('../img/banner.png');
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  width: min(900px, 110vw);
  height: min(900px, 110vw);
  left: 50%;
  top: -480px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.26), transparent 58%),
    radial-gradient(circle at 65% 40%, rgba(34, 211, 238, 0.12), transparent 52%);
  filter: blur(6px);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: min(680px, 90%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.45), transparent);
  pointer-events: none;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(44px, 7.5vw, 80px);
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: -0.045em;
  line-height: 1.02;
  background: linear-gradient(180deg, #ffffff 12%, #e3ddff 52%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 12px 40px rgba(139, 92, 246, 0.24));
}

.hero p {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-dim);
  margin-bottom: 34px;
  line-height: 1.8;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-actions .btn {
  padding: 14px 28px;
  font-size: 14.5px;
}

.hero-visual {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 56px auto 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 42%, rgba(139, 92, 246, 0.20), transparent 62%),
    radial-gradient(circle at 50% 100%, rgba(34, 211, 238, 0.08), transparent 55%);
  box-shadow: inset 0 0 70px rgba(139, 92, 246, 0.10), 0 30px 80px -40px rgba(139, 92, 246, 0.55);
  animation: float 7s ease-in-out infinite;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  padding: 1px;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(167, 139, 250, 0.75) 70deg, transparent 150deg, transparent 240deg, rgba(34, 211, 238, 0.55) 300deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: spinSlow 18s linear infinite;
  pointer-events: none;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.hero-visual svg {
  width: 132px !important;
  height: 132px !important;
  opacity: 0.85 !important;
  color: #c4b5fd;
  filter: drop-shadow(0 0 34px rgba(139, 92, 246, 0.75));
}

/* ===== Слоган-лента ===== */
.slogan {
  position: relative;
  text-align: center;
  padding: 15px 20px;
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.018);
  border-bottom: 1px solid var(--border);
}

.slogan::before {
  content: '';
  display: inline-block;
  width: 26px;
  height: 2px;
  margin-right: 12px;
  vertical-align: middle;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.slogan::after {
  content: '';
  display: inline-block;
  width: 26px;
  height: 2px;
  margin-left: 12px;
  vertical-align: middle;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

/* ===== Заголовки секций ===== */
.section-title {
  position: relative;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 34px;
  padding-top: 18px;
  color: var(--text);
  letter-spacing: -0.035em;
}

.section-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.6);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 34px;
  flex-wrap: wrap;
  gap: 18px;
}

.section-header .section-title {
  text-align: left;
  margin-bottom: 0;
}

.section-header .section-title::before {
  left: 0;
  transform: none;
}

.section-header .btn {
  padding: 10px 20px;
  font-size: 13px;
}

.section-more {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.section-more .btn {
  padding: 13px 32px;
  font-size: 13.5px;
}

/* ===== Новые поступления / секции товаров ===== */
.products-section {
  position: relative;
  padding: 52px 0 76px;
}

.new-arrivals {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0) 55%),
    rgba(10, 12, 20, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== Фильтры сверху (каталог) ===== */
.top-filters {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  padding: 13px 16px;
  flex-wrap: wrap;
  align-items: center;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
}

.category-filters {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 200px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}

.category-filters::-webkit-scrollbar {
  display: none;
}

.stock-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.stock-filter label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.stock-filter select,
.filter-group select {
  appearance: none;
  -webkit-appearance: none;
  padding: 9px 38px 9px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition-fast);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%237c86a0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

.stock-filter select:hover,
.filter-group select:hover {
  border-color: rgba(167, 139, 250, 0.45);
  background-color: rgba(139, 92, 246, 0.08);
}

.stock-filter select:focus,
.filter-group select:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.7);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14);
}

.stock-filter select option,
.filter-group select option {
  background: #0d1019;
  color: var(--text);
}

/* ===== Фильтры-пилюли ===== */
.product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 9px 18px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.035);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.filter-btn:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(167, 139, 250, 0.5);
  color: #ded8ff;
  transform: translateY(-1px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 55%, #6d28d9 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 24px -12px var(--accent-glow-strong), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.catalog-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}

.catalog-count::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 0 10px var(--accent-soft);
}

/* ===== Сетка и карточки товаров ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 26px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.012) 42%, rgba(255, 255, 255, 0.025) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 12px 30px -24px rgba(0, 0, 0, 0.9);
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(167, 139, 250, 0.65), transparent 38%, rgba(34, 211, 238, 0.35) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 3;
}

.product-card:hover {
  transform: translateY(-7px);
  border-color: transparent;
  box-shadow: 0 34px 60px -34px rgba(0, 0, 0, 0.9), 0 0 44px -20px rgba(139, 92, 246, 0.55);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card-image {
  position: relative;
  height: 272px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(139, 92, 246, 0.10), transparent 62%),
    linear-gradient(160deg, #111522, #0a0d15);
}

.product-card-image::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 88px;
  background: linear-gradient(180deg, transparent, rgba(9, 11, 18, 0.72));
  pointer-events: none;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.06);
  filter: saturate(1.06) contrast(1.02);
}

.badge {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.95), rgba(225, 29, 72, 0.95));
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px -8px rgba(225, 29, 72, 0.8);
}

.badge-discount {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(34, 211, 238, 0.9));
  box-shadow: 0 8px 20px -8px rgba(139, 92, 246, 0.85);
}

.product-card-info {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px 21px 22px;
  flex: 1;
}

.product-card-category {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-soft);
  font-weight: 800;
}

.product-card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.old-price {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 8px;
  letter-spacing: 0;
}

.product-card-stock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  margin-top: 2px;
  align-self: flex-start;
}

.product-card-stock::before {
  content: '';
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.product-card-stock:has(.badge) {
  color: var(--danger);
}

/* В карточке "нет в наличии" — бейдж в блоке наличия показываем как текст */
.product-card-info .product-card-stock .badge {
  position: static;
  display: inline;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.product-card .btn {
  width: 100%;
  padding: 11px 14px;
  font-size: 13px;
}

.product-card .btn.add-to-cart {
  margin-top: 6px;
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, #6d28d9 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 26px -14px var(--accent-glow-strong), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.product-card .btn.add-to-cart:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -14px var(--accent-glow-strong), inset 0 1px 0 rgba(255, 255, 255, 0.26);
  filter: brightness(1.06);
}

.product-card .btn-outline {
  margin-top: 2px;
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-dim);
}

.product-card .btn-outline:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(167, 139, 250, 0.55);
  color: #e6e0ff;
}

/* ===== Каталог ===== */
.catalog-page {
  padding: 44px 0 84px;
}

.catalog-page .section-title {
  text-align: left;
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 28px;
}

.catalog-page .section-title::before {
  left: 0;
  transform: none;
}

/* Старая боковая раскладка (на всякий случай) */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  margin-top: 30px;
}

.sidebar-filter {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  height: fit-content;
  backdrop-filter: blur(14px);
}

.sidebar-filter h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.filter-group select {
  width: 100%;
  border-radius: var(--radius-sm);
}

.catalog-products {
  min-width: 0;
}

/* ===== Страница товара ===== */
.product-page {
  padding: 48px 0 80px;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 100px;
}

.product-gallery-main {
  position: relative;
  height: clamp(380px, 46vw, 560px);
  border: 1px solid var(--border);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 40%, rgba(139, 92, 246, 0.13), transparent 60%),
    linear-gradient(160deg, #111522, #080a11);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--shadow);
}

.product-gallery-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.05), transparent 35%);
  pointer-events: none;
}

.product-gallery-main img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-gallery-main:hover img {
  transform: scale(1.035);
}

.product-gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.product-gallery-thumbs img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  cursor: pointer;
  opacity: 0.52;
  transition: var(--transition-fast);
  background: var(--surface);
}

.product-gallery-thumbs img:hover {
  opacity: 0.85;
  border-color: rgba(167, 139, 250, 0.4);
  transform: translateY(-2px);
}

.product-gallery-thumbs img.active {
  opacity: 1;
  border-color: rgba(167, 139, 250, 0.85);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.22), 0 10px 24px -14px var(--accent-glow-strong);
}

.product-info {
  padding-top: 6px;
  position: relative;
}

.product-info h1 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.product-info .category {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-soft);
  font-weight: 800;
  margin-bottom: 16px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(139, 92, 246, 0.11);
  border: 1px solid rgba(167, 139, 250, 0.28);
}

.product-info .category::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 0 8px var(--accent-soft);
}

.product-info .price {
  display: inline-block;
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #ffffff 10%, #d8ceff 60%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-info .old-price {
  font-size: 17px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 10px;
}

/* Бейдж скидки на странице товара — в потоке перед ценой, без наложения */
.product-info .badge {
  position: static;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-right: 12px;
}

.product-info .stock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 22px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
}

.product-info .stock::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.stock.in-stock {
  color: var(--success);
  background: rgba(52, 211, 153, 0.09);
  border-color: rgba(52, 211, 153, 0.28);
}

.stock.out-of-stock {
  color: var(--danger);
  background: rgba(251, 113, 133, 0.09);
  border-color: rgba(251, 113, 133, 0.26);
}

.product-info #prod-qty {
  background: transparent;
  border: 0;
  padding: 0;
  margin-left: 8px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
}

.product-info #prod-qty::before {
  display: none;
}

.product-info .description {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 28px;
  line-height: 1.85;
  max-width: 58ch;
}

.product-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.qty-selector {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 4px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.qty-selector button {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  transition: var(--transition-fast);
  display: grid;
  place-items: center;
}

.qty-selector button:hover {
  background: rgba(139, 92, 246, 0.16);
  color: var(--accent-soft);
}

.qty-selector span {
  font-weight: 800;
  min-width: 28px;
  text-align: center;
  font-size: 15px;
}

.product-actions .btn-primary {
  flex: 1;
  min-width: 180px;
  padding: 14px 26px;
}

.product-meta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.rating-stars {
  color: var(--gold);
  font-size: 17px;
  letter-spacing: 2px;
  text-shadow: 0 0 16px rgba(245, 196, 81, 0.35);
}

/* ===== Похожие товары ===== */
.related-products {
  padding: 30px 0;
}

.product-page .related-products {
  margin-top: 64px;
  padding: 34px 34px 38px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(10, 12, 20, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.product-page .related-products .container {
  max-width: none;
  padding: 0;
}

.product-page .related-products .section-title {
  text-align: left;
  font-size: clamp(22px, 2.6vw, 30px);
  margin-bottom: 26px;
}

.product-page .related-products .section-title::before {
  left: 0;
  transform: none;
}

/* ===== Корзина ===== */
.cart-page {
  padding: 48px 0 84px;
}

.cart-page .section-title {
  text-align: left;
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 30px;
}

.cart-page .section-title::before {
  left: 0;
  transform: none;
}

.cart-empty {
  position: relative;
  text-align: center;
  padding: 86px 24px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.10), transparent 60%),
    rgba(255, 255, 255, 0.02);
}

.cart-empty::before {
  content: '◇';
  display: block;
  font-size: 54px;
  line-height: 1;
  margin-bottom: 18px;
  color: var(--accent-soft);
  opacity: 0.65;
  text-shadow: 0 0 34px rgba(139, 92, 246, 0.7);
}

.cart-empty h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

.cart-empty p {
  margin-bottom: 24px;
  font-size: 14px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.cart-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  transition: var(--transition-fast);
}

.cart-item:hover {
  border-color: rgba(167, 139, 250, 0.32);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.9), 0 0 30px -22px var(--accent-glow-strong);
}

.cart-item-image {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-item-info {
  min-width: 0;
}

.cart-item-name {
  font-weight: 700;
  font-size: 15.5px;
  margin-bottom: 4px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.cart-item-price {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.cart-item-discount {
  font-size: 11px;
  font-weight: 800;
  color: #c084fc;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}

/* Модальное окно заказа */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 8, 20, 0.72);
  backdrop-filter: blur(10px);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 400px;
  text-align: center;
  padding: 36px 28px 30px;
  border-radius: 26px;
  background: linear-gradient(165deg, rgba(33, 41, 61, 0.92), rgba(13, 20, 38, 0.97));
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85);
  animation: modalPop 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-icon { font-size: 52px; margin-bottom: 14px; }
.modal-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: #fff; margin-bottom: 10px; }
.modal-text { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin-bottom: 24px; }
.modal-btn { width: 100%; }

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 9px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: var(--transition-fast);
}

.qty-btn:hover {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(167, 139, 250, 0.5);
  color: var(--accent-soft);
}

.qty-value {
  font-weight: 800;
  min-width: 26px;
  text-align: center;
  color: var(--text);
  font-size: 14px;
}

.cart-item-remove {
  background: rgba(251, 113, 133, 0.07);
  border: 1px solid rgba(251, 113, 133, 0.22);
  color: var(--danger);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: var(--transition-fast);
  align-self: center;
}

.cart-item-remove:hover {
  background: rgba(251, 113, 133, 0.15);
  border-color: rgba(251, 113, 133, 0.45);
  color: #fecdd3;
}

.cart-summary {
  position: sticky;
  top: 100px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(10, 12, 20, 0.55);
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow);
  max-width: 400px;
  margin-left: auto;
}

.cart-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.55), transparent);
}

.cart-summary h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cart-total-row span:last-child {
  font-size: 22px;
  background: linear-gradient(135deg, #fff, #c9bcff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

/* ===== Формы ===== */
.checkout-form .form-group,
.form-group {
  margin-bottom: 16px;
}

.checkout-form label,
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 7px;
  color: var(--text-muted);
}

.checkout-form input,
.checkout-form textarea,
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  transition: var(--transition-fast);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.checkout-form input::placeholder,
.checkout-form textarea::placeholder,
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #5c6680;
}

.checkout-form input:hover,
.checkout-form textarea:hover,
.form-group input:hover,
.form-group textarea:hover {
  border-color: rgba(167, 139, 250, 0.35);
}

.checkout-form input:focus,
.checkout-form textarea:focus,
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.7);
  background: rgba(139, 92, 246, 0.06);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.checkout-form textarea,
.form-group textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.6;
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  margin-top: 8px;
}

/* ===== Контакты / информационные страницы ===== */
.contacts-page {
  padding: 52px 0 84px;
}

.contacts-page .section-title {
  margin-bottom: 38px;
}

.contacts-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: start;
}

.contact-info h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 22px;
  color: var(--text);
  letter-spacing: -0.03em;
}

.contact-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  column-gap: 15px;
  row-gap: 2px;
  align-items: center;
  margin-bottom: 13px;
  padding: 17px 19px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  transition: var(--transition-fast);
}

.contact-item:hover {
  border-color: rgba(167, 139, 250, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -28px rgba(0, 0, 0, 0.9);
}

.contact-item svg {
  grid-row: span 2;
  width: 46px;
  height: 46px;
  padding: 11px;
  box-sizing: border-box;
  color: #c4b5fd;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(167, 139, 250, 0.28);
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0;
}

.contact-item p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact-form {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(10, 12, 20, 0.4);
  padding: 30px;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--shadow);
}

.contact-form > .info-card:last-child {
  margin-bottom: 0;
}

.contact-form .info-card {
  background: rgba(255, 255, 255, 0.03);
}

/* Информационные карточки (info / shipping / returns) */
.info-card {
  position: relative;
  padding: 24px 26px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.012)),
    rgba(10, 12, 20, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: var(--transition-fast);
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.info-card:hover {
  border-color: rgba(167, 139, 250, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 24px 50px -36px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.info-card:hover::before {
  opacity: 1;
}

.info-card h3 {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.info-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.75;
}

.info-card p + p {
  margin-top: 9px;
}

.info-card strong {
  color: #fff;
  font-weight: 700;
}

.info-card a {
  color: var(--accent-soft);
  font-weight: 600;
  transition: var(--transition-fast);
}

.info-card a:hover {
  color: #ddd6fe;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-card ul,
.info-card ol {
  margin-top: 10px;
  padding-left: 20px;
}

.info-card ul {
  list-style: disc;
}

.info-card ol {
  list-style: decimal;
}

.info-card li {
  font-size: 13.5px;
  color: inherit;
  line-height: 1.6;
  padding-left: 2px;
}

.info-card li + li {
  margin-top: 6px;
}

.info-card li::marker {
  color: var(--accent-soft);
  font-weight: 700;
}

/* ===== Подвал ===== */
footer {
  position: relative;
  margin-top: 72px;
  padding: 54px 0 28px;
  color: var(--text-muted);
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(139, 92, 246, 0.09), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(6, 7, 12, 0.75));
  border-top: 1px solid var(--border);
}

footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: min(620px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.6), rgba(34, 211, 238, 0.45), transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.035em;
}

.footer-logo {
  display: block;
  width: auto;
  height: 46px;
  filter: drop-shadow(0 4px 16px rgba(139, 92, 246, 0.4));
}

.footer-brand span {
  color: var(--accent-soft);
  font-style: italic;
}

.footer-col > p {
  font-size: 13px;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent-soft);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
  font-size: 12px;
  text-align: center;
  color: #5d6780;
  letter-spacing: 0.02em;
}

/* ===== Адаптив ===== */
@media (max-width: 1100px) {
  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding: 8px 9px;
    font-size: 13px;
  }

  .cart-link {
    padding: 8px 14px;
  }
}

@media (max-width: 992px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-filter {
    order: 2;
  }

  .catalog-products {
    order: 1;
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    position: static;
  }

  .product-gallery-main {
    height: 460px;
  }

  .contacts-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
    max-width: 100%;
    margin-left: 0;
  }

  .cart-page #cart-with-items > div {
    grid-template-columns: 1fr !important;
  }

  .footer-content {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .top-bar {
    padding: 8px 20px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 20px 22px;
    background: rgba(9, 11, 18, 0.98);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
  }

  .nav-links.active {
    display: flex;
    animation: dropdown 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .nav-links a {
    padding: 11px 14px;
    font-size: 14px;
    border-radius: 10px;
  }

  .nav-links a:not(.cart-link)::after {
    display: none;
  }

  .nav-links a:not(.cart-link):hover {
    background: rgba(139, 92, 246, 0.12);
    color: #e9e4ff;
  }

  .cart-link {
    margin: 8px 0 0;
    justify-content: space-between;
    padding: 11px 16px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .logo {
    font-size: 18px;
    gap: 10px;
  }

  .logo-img {
    height: 52px;
  }

  .hero {
    padding: 60px 0 48px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .hero p {
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-visual {
    width: 220px;
    height: 220px;
    margin-top: 44px;
  }

  .hero-visual svg {
    width: 104px !important;
    height: 104px !important;
  }

  .products-section {
    padding: 42px 0 60px;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-header .btn {
    align-self: flex-start;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
  }

  .product-card-image {
    height: 230px;
  }

  .product-card-info {
    padding: 16px 17px 18px;
  }

  .top-filters {
    padding: 12px;
  }

  .stock-filter {
    width: 100%;
    justify-content: space-between;
  }

  .stock-filter select {
    flex: 1;
  }

  .product-gallery-main {
    height: 380px;
    border-radius: 20px;
  }

  .product-info h1 {
    font-size: 28px;
  }

  .product-page .related-products {
    padding: 24px 18px 28px;
    border-radius: 20px;
    margin-top: 44px;
  }

  .product-actions {
    gap: 10px;
  }

  .product-actions .btn-primary {
    min-width: 0;
    width: 100%;
    order: 2;
  }

  .qty-selector {
    order: 1;
  }

  .cart-item {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
    padding: 13px;
  }

  .cart-item-image {
    width: 82px;
    height: 82px;
  }

  .cart-item-remove {
    grid-column: 2;
    justify-self: start;
    padding: 6px 13px;
  }

  .contact-form {
    padding: 24px;
  }

  .info-card {
    padding: 20px 22px;
  }

  .contacts-page {
    padding: 40px 0 64px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-col:first-child {
    grid-column: 1 / -1;
  }

  footer {
    margin-top: 56px;
    padding-top: 44px;
  }
}

@media (max-width: 560px) {
  .section-title {
    font-size: 25px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card-image {
    height: 260px;
  }

  .product-gallery-main {
    height: 320px;
  }

  .product-gallery-thumbs img {
    width: 64px;
    height: 64px;
  }

  .product-info .stock {
    margin-bottom: 16px;
  }

  .cart-item {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .cart-item-image {
    width: 70px;
    height: 70px;
  }

  .cart-item-name {
    font-size: 14px;
  }

  .cart-empty {
    padding: 64px 20px;
  }

  .contact-item {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 14px 16px;
  }

  .contact-item svg {
    width: 40px;
    height: 40px;
    padding: 9px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-col:first-child {
    grid-column: auto;
  }
}

/* ===== Уважение к настройкам анимации ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
