:root {
  --bg: #060606;
  --bg-soft: #121212;
  --bg-card: #1a1a1a;
  --text: #ffffff;
  --muted: #b7b7b7;
  --light: #f5f5f5;
  --dark-text: #111111;
  --accent: #ff2f2f;
  --accent-2: #a90000;
  --accent-soft: rgba(255, 47, 47, 0.14);
  --card: #ffffff;
  --border: rgba(255, 255, 255, 0.12);
  --dark-border: rgba(17, 17, 17, 0.12);
  --shadow: 0 24px 70px rgba(12, 12, 20, 0.18);
  --shadow-red: 0 18px 45px rgba(169, 0, 0, 0.28);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--light);
}

body.modal-open {
  overflow: hidden;
}

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

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

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 7vw;
  background: rgba(6, 6, 6, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.logo {
  font-weight: 900;
  letter-spacing: -0.06em;
  font-size: 25px;
  color: #fff;
}

.logo span {
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--text);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.header-cta:hover,
.btn:hover,
.contact-btn:hover,
.delete-btn:hover {
  transform: translateY(-1px);
}

.header-cta,
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #ff4d4d, #a30000);
  box-shadow: var(--shadow-red);
}

.btn-secondary {
  color: var(--dark-text);
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.12);
}

.btn-dark {
  color: #fff;
  background: #111;
}

.hero {
  position: relative;
  min-height: 780px;
  padding: 130px 7vw 80px;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 47, 47, 0.24), transparent 28%),
    radial-gradient(circle at 18% 70%, rgba(169, 0, 0, 0.26), transparent 26%),
    #060606;
}

.hero::after {
  content: '';
  position: absolute;
  left: -8vw;
  right: -8vw;
  bottom: -80px;
  height: 160px;
  background: var(--light);
  transform: rotate(-3deg);
  transform-origin: left bottom;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.hero-text {
  max-width: 640px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-card {
  position: relative;
  z-index: 2;
  max-width: 430px;
  margin-top: 110px;
  padding: 22px 26px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(18, 18, 18, 0.9);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.hero-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 32px;
  color: #fff;
}

.hero-card span {
  color: var(--muted);
}

.section {
  padding: 96px 7vw;
}

.section-light {
  color: var(--dark-text);
  background: var(--light);
}

.section-dark {
  color: var(--text);
  background:
    radial-gradient(circle at 75% 12%, rgba(255, 47, 47, 0.22), transparent 30%),
    radial-gradient(circle at 20% 82%, rgba(169, 0, 0, 0.18), transparent 28%),
    #060606;
}

.section-form {
  color: var(--text);
  background: var(--light);
}

.section-head {
  max-width: 820px;
  margin-bottom: 40px;
}

.cards-4,
.category-grid,
.reviews,
.product-grid {
  display: grid;
  gap: 22px;
}

.cards-4 {
  grid-template-columns: repeat(4, 1fr);
}

.info-card,
.reviews article,
.product-card,
.admin-form,
.admin-item {
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.info-card {
  padding: 30px;
}

.info-card p,
.reviews p {
  color: #626273;
  line-height: 1.55;
}

.category-grid {
  grid-template-columns: repeat(3, 1fr);
}

.category-card {
  min-height: 280px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 47, 47, 0.6);
}

.category-card span {
  color: var(--accent);
  font-weight: 900;
}

.category-card p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}

.steps {
  display: grid;
  gap: 18px;
}

.steps article {
  padding: 26px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.steps p {
  color: #626273;
}

.request-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  padding: 44px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 47, 47, 0.26), transparent 30%),
    #060606;
  box-shadow: var(--shadow);
}

.lead-form,
.admin-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 14px 16px;
  border: 1px solid rgba(20, 20, 28, 0.14);
  border-radius: 16px;
  background: #fff;
  color: #111;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 47, 47, 0.8);
  box-shadow: 0 0 0 4px rgba(255, 47, 47, 0.12);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.request-card input,
.request-card textarea,
.request-card select {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border);
}

.request-card input::placeholder,
.request-card textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.reviews {
  grid-template-columns: repeat(3, 1fr);
}

.reviews article {
  padding: 28px;
}

.faq {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

details {
  padding: 22px 26px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin-top: 14px;
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 34px;
  padding: 42px 7vw;
  color: var(--muted);
  background: #060606;
  border-top: 1px solid var(--border);
}

.site-footer nav {
  display: grid;
  gap: 10px;
}

.site-footer a:hover {
  color: #fff;
}

.catalog-hero {
  padding: 110px 7vw 70px;
  color: var(--text);
  background:
    radial-gradient(circle at 75% 30%, rgba(255, 47, 47, 0.25), transparent 32%),
    radial-gradient(circle at 18% 80%, rgba(169, 0, 0, 0.18), transparent 30%),
    #060606;
}

.catalog-hero h1 {
  margin-bottom: 18px;
}

.catalog-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.catalog-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.product-grid {
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(12, 12, 20, 0.24);
}

.product-card-image-wrap {
  position: relative;
  background: #242424;
}

.product-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  background: #ddd;
}

.product-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  background: rgba(17, 17, 17, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.badge-stock {
  background: rgba(17, 17, 17, 0.92);
}

.badge-stock::before {
  content: '';
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #22c55e;
}

.badge-preorder {
  background: rgba(122, 0, 0, 0.95);
}

.badge-preorder::before {
  content: '';
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #ffb020;
}

.badge-qty {
  background: rgba(42, 42, 42, 0.95);
}

.badge-qty::before {
  content: '';
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #2f8cff;
}

.product-card-body {
  padding: 28px;
}

.product-card-body h3 {
  color: #111;
}

.product-card-body p {
  color: #5e5e66;
  line-height: 1.55;
}

.product-price {
  display: block;
  margin: 18px 0 20px;
  font-size: 28px;
  font-weight: 900;
  color: #d11d1d;
}

.admin-layout {
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 32px;
  align-items: start;
}

.admin-form,
.admin-item {
  padding: 26px;
}

.admin-form h2,
.admin-item h3 {
  color: #111;
}

.admin-products {
  display: grid;
  gap: 16px;
}

.admin-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  align-items: start;
  color: #111;
}

.admin-item img {
  width: 120px;
  height: 90px;
  border-radius: 16px;
  object-fit: cover;
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-actions button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.edit-btn {
  color: #fff;
  background: var(--accent);
}

.delete-btn {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  background: #111;
  font-weight: 900;
}

.inline-edit-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(20, 20, 28, 0.12);
}

.inline-edit-form input,
.inline-edit-form textarea,
.inline-edit-form select {
  min-height: 42px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(7px);
}

.modal.is-open {
  display: flex;
}

.modal-card {
  position: relative;
  width: min(820px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 34px;
  padding: 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.modal-card-light {
  background: #fff;
  color: #111;
}

.modal-card h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 4vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: #111;
}

.modal-subtitle {
  margin-bottom: 24px;
  color: #666;
  font-size: 20px;
  line-height: 1.45;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  background: #efefef;
  color: #111;
}

.modal-close:hover {
  background: #e4e4e4;
}

.build-form {
  display: grid;
  gap: 18px;
}

.build-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.build-form input,
.build-form textarea,
.build-form select,
.admin-form select,
.inline-edit-form select {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 18px;
  font: inherit;
  background: #f5f5f7;
  color: #111;
}

.build-form textarea,
.inline-edit-form textarea,
.admin-form textarea {
  min-height: 120px;
  resize: vertical;
}

.checkout-text {
  width: 100%;
  min-height: 220px;
  padding: 18px;
  border: 0;
  border-radius: 24px;
  background: #07070b;
  color: #fff;
  font: inherit;
  line-height: 1.6;
  resize: vertical;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  font-size: 15px;
  color: #fff;
  background: #111;
}

.contact-btn[data-contact-link='telegram'] {
  background: #111;
}

.contact-btn[data-contact-link='vk'] {
  background: #111;
}

.contact-btn[data-contact-link='avito'] {
  background: #111;
}

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 70% 20%, rgba(179, 0, 0, 0.25), transparent 30%),
    #07070b;
}

.auth-wrapper {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(460px, 100%);
  display: grid;
  gap: 22px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(17, 17, 17, 0.95);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.auth-card h1 {
  margin-bottom: 8px;
  font-size: 48px;
  color: #fff;
}

.auth-text {
  color: var(--muted);
}

.auth-error {
  padding: 14px 16px;
  border-radius: 16px;
  color: #fff;
  background: #b30000;
  font-weight: 800;
}

.auth-back {
  color: var(--muted);
  font-weight: 800;
}

.auth-back:hover {
  color: var(--text);
}

@media (max-width: 1180px) {
  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .category-grid,
  .reviews,
  .split,
  .request-card,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-item {
    grid-template-columns: 1fr;
  }

  .admin-item img {
    width: 100%;
    height: 190px;
  }

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

@media (max-width: 640px) {
  .product-grid,
  .cards-4 {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding: 14px 20px;
  }

  .header-cta {
    display: visible;
  }

  .section,
  .hero,
  .catalog-hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    padding-top: 90px;
  }

  .request-card {
    padding: 28px;
  }

  .product-card img {
    height: 240px;
  }

  .modal {
    padding: 12px;
  }

  .modal-card {
    padding: 24px;
    border-radius: 24px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
  }

  .contact-actions {
    flex-direction: column;
  }

  .contact-actions .btn,
  .contact-btn {
    width: 100%;
  }

  .site-footer {
    padding: 34px 20px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-text,
  .catalog-hero p,
  .modal-subtitle {
    font-size: 17px;
  }

  .product-card-body {
    padding: 22px;
  }

  .product-price {
    font-size: 24px;
  }
}

.custom-pc-section {
  overflow: hidden;
}

.custom-pc-title h2 {
  margin-bottom: 42px;
  font-size: clamp(44px, 7vw, 86px);
}

.custom-pc-title span {
  color: var(--accent);
}

.custom-pc-card {
  display: grid;
  grid-template-columns: 0.9fr 0.9fr 0.9fr;
  gap: 34px;
  align-items: center;
  padding: 32px;
  border-radius: 36px;
  color: #fff;
  background:
    radial-gradient(circle at 65% 35%, rgba(255, 47, 47, 0.16), transparent 30%),
    #07070b;
  box-shadow: 0 35px 90px rgba(0,0,0,0.24);
}

.custom-pc-image {
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
}

.custom-pc-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.custom-pc-info h3 {
  margin: -8px 0 16px;
  font-size: 42px;
  color: var(--accent);
}

.custom-label {
  margin-bottom: 0;
  font-size: 26px;
  font-weight: 900;
  color: #fff;
}

.custom-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}

.custom-pc-info h4 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1;
}

.custom-pc-info p {
  color: var(--muted);
}

.custom-parts-title {
  margin-bottom: 24px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
}

#customPartsPreview {
  display: grid;
  gap: 18px;
}

.custom-part-preview-item {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
}

.custom-part-preview-item span {
  color: #7f7f7f;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.custom-part-preview-item strong {
  color: #fff;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .custom-pc-card {
    grid-template-columns: 1fr;
  }

  .custom-pc-image img {
    height: 280px;
  }
}

/* FIX: боковое меню комплектующих */

.parts-drawer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999 !important;
  display: none !important;
  justify-content: flex-end !important;
  align-items: stretch !important;
  background: rgba(0, 0, 0, 0.62) !important;
  backdrop-filter: blur(6px);
}

.parts-drawer.is-open {
  display: flex !important;
}

.parts-drawer-panel {
  position: relative;
  width: min(540px, 100%);
  height: 100vh;
  overflow-y: auto;
  padding: 42px 28px;
  color: #fff;
  background: #101010;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.36);
}

.parts-drawer-panel .eyebrow {
  color: var(--accent);
}

.parts-drawer-panel h2 {
  margin-bottom: 10px;
  font-size: 38px;
  line-height: 1;
  color: #fff;
}

.drawer-price {
  display: block;
  margin-bottom: 26px;
  font-size: 28px;
  color: var(--accent);
}

.parts-table {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
}

.parts-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.parts-row:last-child {
  border-bottom: 0;
}

.parts-row span {
  color: #8d8d8d;
  font-weight: 700;
}

.parts-row strong {
  color: #fff;
  font-weight: 900;
}

.parts-drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

/* FIX: кнопки карточки товара */

.product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-actions .btn {
  min-height: 44px;
  padding: 0 18px;
}

.details-product-btn {
  color: #111;
  background: #fff;
  border: 2px solid #111;
  box-shadow: none;
}

.details-product-btn:hover {
  color: #fff;
  background: #111;
}

/* FIX: hero PNG-плейсхолдер справа */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: 40px;
  align-items: center;
}

.hero-content {
  grid-column: 1;
}

.hero-card {
  grid-column: 1;
}

.hero-pc-placeholder {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-pc-placeholder img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  filter: drop-shadow(0 40px 90px rgba(255, 47, 47, 0.22));
}

/* FIX: админка не должна сжиматься */

.admin-layout {
  grid-template-columns: minmax(360px, 440px) minmax(0, 1fr);
}

.admin-layout > *,
.admin-products,
.admin-item,
.admin-form {
  min-width: 0;
}

.admin-item {
  overflow: hidden;
}

.admin-form {
  width: 100%;
}

.admin-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* FIX: адаптив */

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 2fr;
  }

  .hero-content,
  .hero-card,
  .hero-pc-placeholder {
    grid-column: 1;
  }

  .hero-pc-placeholder {
    min-height: 320px;
    margin-top: 20px;
  }

  .hero-pc-placeholder img {
    max-height: 420px;
  }
}

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

  .admin-two-columns {
    grid-template-columns: 1fr;
  }

  .product-actions {
    flex-direction: column;
  }

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

@media (max-width: 640px) {
  .parts-drawer-panel {
    width: 100%;
    padding: 32px 20px;
  }

  .parts-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* FIX: мобильный hero */

@media (max-width: 1180px) {
  .hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .hero-content {
    order: 1;
    width: 100%;
  }

  .hero-pc-placeholder {
    order: 2;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    min-height: auto !important;
    margin: 32px 0 28px !important;
    display: flex !important;
    justify-content: center !important;
  }

  .hero-pc-placeholder img {
    width: min(460px, 100%) !important;
    max-height: 360px !important;
    object-fit: contain !important;
  }

  .hero-card {
    order: 3;
    width: 100%;
    margin-top: 0 !important;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 86px !important;
    padding-bottom: 72px !important;
  }

  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    gap: 12px;
    margin-top: 28px;
  }

  .hero-actions .btn {
    display: inline-flex !important;
    width: 100%;
    min-height: 52px;
  }

  .hero-pc-placeholder {
    margin: 30px 0 24px !important;
  }

  .hero-pc-placeholder img {
    width: min(330px, 100%) !important;
    max-height: 280px !important;
  }

  .hero-card {
    display: block !important;
  }

  .site-header .header-cta {
    display: none !important;
  }
}

.current-product-image {
  display: grid;
  gap: 10px;
}

.current-product-image p {
  margin: 0;
  color: #626273;
  font-weight: 900;
}

.current-product-image img {
  width: min(360px, 100%);
  max-height: 260px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(17, 17, 17, 0.12);
}

.gallery-slider-section {
  padding: 96px 0;
  color: #fff;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 47, 47, 0.18), transparent 28%),
    #060606;
  overflow: hidden;
}

.gallery-slider-head {
  padding: 0 7vw;
  margin-bottom: 42px;
  text-align: center;
}

.gallery-slider-head h2 {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  color: #fff;
}

.gallery-marquee {
  width: 100%;
  overflow: hidden;
}

.gallery-marquee-track {
  display: flex;
  width: max-content;
  gap: 22px;
  animation: galleryMarquee 55s linear infinite;
  will-change: transform;
}

.gallery-marquee:hover .gallery-marquee-track {
  animation-play-state: paused;
}

.gallery-marquee-item {
  flex: 0 0 auto;
  width: 280px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 28px;
  background: #161616;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.gallery-marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes galleryMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 11px));
  }
}

.gallery-admin-list {
  display: grid;
  gap: 16px;
}

.gallery-admin-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-radius: 24px;
  color: #111;
  background: #fff;
  box-shadow: var(--shadow);
}

.gallery-admin-item img {
  width: 120px;
  height: 120px;
  border-radius: 18px;
  object-fit: cover;
}

.gallery-admin-item h3 {
  color: #111;
}

@media (max-width: 980px) {
  .gallery-admin-item {
    grid-template-columns: 1fr;
  }

  .gallery-admin-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 640px) {
  .gallery-slider-section {
    padding: 72px 0;
  }

  .gallery-marquee-item {
    width: 210px;
    border-radius: 22px;
  }
}

:root {
  --accent: #81a735;
  --accent-2: #4f701b;
  --accent-soft: rgba(129, 167, 53, 0.14);
  --shadow-red: 0 18px 45px rgba(129, 167, 53, 0.28);
}

/* Акцентные кнопки */

.header-cta,
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #9fcf43, #4f701b) !important;
  box-shadow: 0 18px 45px rgba(129, 167, 53, 0.28) !important;
}

.logo span,
.eyebrow,
.category-card span,
.custom-pc-title span,
.custom-pc-info h3,
.drawer-price,
.parts-drawer-panel .eyebrow,
.product-price {
  color: #81a735 !important;
}

.category-card:hover {
  border-color: rgba(129, 167, 53, 0.7) !important;
}

/* Фоны с зелёным свечением */

.hero {
  background:
    radial-gradient(circle at 75% 20%, rgba(129, 167, 53, 0.24), transparent 28%),
    radial-gradient(circle at 18% 70%, rgba(79, 112, 27, 0.26), transparent 26%),
    #060606 !important;
}

.section-dark {
  background:
    radial-gradient(circle at 75% 12%, rgba(129, 167, 53, 0.22), transparent 30%),
    radial-gradient(circle at 20% 82%, rgba(79, 112, 27, 0.18), transparent 28%),
    #060606 !important;
}

.catalog-hero {
  background:
    radial-gradient(circle at 75% 30%, rgba(129, 167, 53, 0.25), transparent 32%),
    radial-gradient(circle at 18% 80%, rgba(79, 112, 27, 0.18), transparent 30%),
    #060606 !important;
}

.request-card {
  background:
    radial-gradient(circle at 70% 30%, rgba(129, 167, 53, 0.26), transparent 30%),
    #060606 !important;
}

.custom-pc-card {
  background:
    radial-gradient(circle at 65% 35%, rgba(129, 167, 53, 0.16), transparent 30%),
    #07070b !important;
}

.gallery-slider-section {
  background:
    radial-gradient(circle at 50% 20%, rgba(129, 167, 53, 0.18), transparent 28%),
    #060606 !important;
}

.auth-page {
  background:
    radial-gradient(circle at 70% 20%, rgba(129, 167, 53, 0.25), transparent 30%),
    #07070b !important;
}

/* Фокус полей */

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(129, 167, 53, 0.85) !important;
  box-shadow: 0 0 0 4px rgba(129, 167, 53, 0.14) !important;
}

/* Ошибка авторизации оставляем заметной, но в общей палитре */

.auth-error {
  background: #4f701b !important;
}

/* Плашки */

.badge-stock::before {
  background: #81a735 !important;
}

.badge-qty::before {
  background: #9fcf43 !important;
}

.badge-preorder {
  background: rgba(79, 112, 27, 0.95) !important;
}

.badge-preorder::before {
  background: #d7ff73 !important;
}

/* Галерея и все фото строго 1:1 */

.product-card-image-wrap {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background: #242424;
}

.product-card img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover !important;
}

.gallery-marquee-item {
  aspect-ratio: 1 / 1 !important;
}

.gallery-marquee-item img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover !important;
}

.custom-pc-image {
  aspect-ratio: 1 / 1;
}

.custom-pc-image img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover !important;
}

.current-product-image img {
  width: min(360px, 100%) !important;
  aspect-ratio: 1 / 1;
  max-height: none !important;
  object-fit: cover !important;
}

.admin-item img,
.gallery-admin-item img {
  aspect-ratio: 1 / 1;
  height: auto !important;
  object-fit: cover !important;
}

/* Hero placeholder — стабильный квадрат на всех экранах */

.hero-pc-placeholder {
  aspect-ratio: 1 / 1;
  min-height: auto !important;
}

.hero-pc-placeholder img {
  width: 100%;
  height: 100%;
  max-height: none !important;
  object-fit: contain !important;
  filter: drop-shadow(0 40px 90px rgba(129, 167, 53, 0.22)) !important;
}

/* Боковая карточка комплектующих — ближе к референсу */

.parts-drawer-panel {
  background: #101010 !important;
}

.parts-table {
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.parts-row {
  grid-template-columns: 0.95fr 1.05fr;
}

.parts-row span {
  color: #8e8e8e;
}

.parts-row strong {
  color: #ffffff;
}

/* Исправление некорректного display: visible */

@media (max-width: 640px) {
  .header-cta {
    display: inline-flex;
  }

  .site-header .header-cta {
    display: none !important;
  }

  .hero-actions .btn {
    display: inline-flex !important;
  }

  .product-card-image-wrap {
    aspect-ratio: 1 / 1;
  }

  .product-card img {
    height: 100% !important;
  }

  .gallery-marquee-item {
    width: 210px;
    aspect-ratio: 1 / 1;
  }

  .custom-pc-image img {
    height: 100% !important;
  }
}

.crm-order-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  margin-bottom: 22px;
}

.crm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.crm-order-form label {
  color: #111;
}

.crm-submit-btn {
  width: fit-content;
}

.crm-form-message {
  min-height: 22px;
  margin: 0;
  font-weight: 900;
}

.crm-form-message.is-success {
  color: #81a735;
}

.crm-form-message.is-error {
  color: #b30000;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

@media (max-width: 640px) {
  .crm-form-grid {
    grid-template-columns: 1fr;
  }

  .crm-submit-btn {
    width: 100%;
  }
}