/* Скобарь: действующие стили в исходном порядке каскада. */
:root {
  --bg: #060606;
  --bg-soft: #121212;
  --bg-card: #1a1a1a;
  --text: #ffffff;
  --muted: #b7b7b7;
  --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);
  --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;
  padding: 18px 7vw;
  backdrop-filter: blur(18px);
}

.main-nav {
  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);
}

.hero {
  position: relative;
  min-height: 780px;
  padding: 130px 7vw 80px;
  overflow: hidden;
}

.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;
  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.08em;
}

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);
}

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

.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);
}

.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);
}

.category-card span {
  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;
}

.request-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  padding: 44px;
  border-radius: var(--radius);
  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;
}

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 {
  color: var(--muted);
}

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

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

.catalog-hero {
  padding: 110px 7vw 70px;
  color: var(--text);
}

.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 {
  border-radius: 28px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

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

.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;
  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%;
}

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

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

.badge-qty::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
}

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

.product-card-body p {
  line-height: 1.55;
}

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

.admin-layout {
  display: grid;
  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;
  border-radius: 16px;
}

.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;
}

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

.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 {
  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,
.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;
}

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

.auth-page {
  min-height: 100vh;
}

.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;
  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;
  }

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

  .request-card {
    padding: 28px;
  }

  .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-card {
  display: grid;
  grid-template-columns: 0.9fr 0.9fr 0.9fr;
  gap: 34px;
  align-items: center;
  padding: 32px;
  border-radius: 36px;
  color: #fff;
}

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

.custom-pc-info h3 {
  margin: -8px 0 16px;
  font-size: 42px;
}

.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 {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

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

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

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

.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;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.36);
}

.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;
}

.parts-table {
  overflow: hidden;
  border-radius: 18px;
}

.parts-row {
  display: grid;
  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 {
  font-weight: 700;
}

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

.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;
}

.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%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.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;
}

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

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

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

@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;
  }
}

@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 {
    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;
  }
}

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

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

.current-product-image img {
  border-radius: 18px;
  border: 1px solid rgba(17, 17, 17, 0.12);
}

.gallery-slider-section {
  padding: 96px 0;
  color: #fff;
  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;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

@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;
}

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

.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 {
    border-radius: 22px;
  }
}

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

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

.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-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;
}

.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;
}

@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;
}

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

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

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

:root {
  --accent: #ff1f2d;
  --accent-2: #9b0008;
  --accent-soft: rgba(255, 31, 45, 0.14);
  --shadow-red: 0 18px 45px rgba(255, 31, 45, 0.28);
  --light: #f4f4f4;
  --dark-text: #08080b;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  width: clamp(82px, 4vw, 128px) !important;
  height: auto;
  object-fit: contain;
}

.site-header {
  background: rgba(0, 0, 0, 0.94) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.header-cta,
.btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, #ff2936, #a00008) !important;
  box-shadow: 0 18px 45px rgba(255, 31, 45, 0.28) !important;
}

.header-cta:hover,
.btn-primary:hover {
  box-shadow: 0 22px 58px rgba(255, 31, 45, 0.38) !important;
}

.btn-secondary {
  color: #09090b !important;
  background: #fff !important;
  border: 1px solid rgba(9, 9, 11, 0.12) !important;
}

.logo span,
.eyebrow,
.category-card span,
.custom-pc-title span,
.custom-pc-info h3,
.drawer-price,
.parts-drawer-panel .eyebrow,
.product-price,
.crm-form-message.is-success {
  color: #ff1f2d !important;
}

.hero {
  background:
    radial-gradient(
      circle at 72% 20%,
      rgba(255, 31, 45, 0.25),
      transparent 28%
    ),
    radial-gradient(circle at 18% 70%, rgba(140, 0, 8, 0.25), transparent 28%),
    linear-gradient(135deg, #050505 0%, #0a0a0d 58%, #160004 100%) !important;
}

.section-dark {
  background:
    radial-gradient(circle at 76% 14%, rgba(255, 31, 45, 0.2), transparent 30%),
    radial-gradient(circle at 18% 82%, rgba(140, 0, 8, 0.18), transparent 28%),
    #050505 !important;
}

.catalog-hero {
  background:
    radial-gradient(
      circle at 75% 30%,
      rgba(255, 31, 45, 0.24),
      transparent 32%
    ),
    radial-gradient(circle at 18% 80%, rgba(140, 0, 8, 0.18), transparent 30%),
    #050505 !important;
}

.request-card,
.custom-pc-card,
.gallery-slider-section {
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 31, 45, 0.2), transparent 30%),
    #050505 !important;
}

.auth-page {
  background:
    radial-gradient(
      circle at 70% 20%,
      rgba(255, 31, 45, 0.25),
      transparent 30%
    ),
    #050505 !important;
}

.info-card,
.steps article,
.product-card,
.admin-form,
.admin-item,
.gallery-admin-item {
  background: #fff !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.14) !important;
}

.info-card h3,
.steps h3,
.product-card-body h3 {
  color: #050505 !important;
}

.info-card p,
.steps p,
.product-card-body p {
  color: #4e5265 !important;
}

.category-card:hover {
  border-color: rgba(255, 31, 45, 0.65) !important;
}

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

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

.auth-error,
.crm-form-message.is-error {
  color: #b30000 !important;
}

.contact-btn {
  background: #09090b !important;
  color: #fff !important;
}

.contact-btn[data-contact-link="telegram"],
.contact-btn[data-contact-link="max"],
.contact-btn[data-contact-link="avito"] {
  background: #09090b !important;
}

.contact-btn[data-contact-link="telegram"]:hover,
.contact-btn[data-contact-link="max"]:hover,
.contact-btn[data-contact-link="avito"]:hover {
  background: #ff1f2d !important;
}

.hero-pc-placeholder img {
  filter: drop-shadow(0 40px 90px rgba(255, 31, 45, 0.24)) !important;
}

.product-card-image-wrap,
.gallery-marquee-item,
.custom-pc-image {
  background: #09090b !important;
}

@media (max-width: 640px) {
  .logo img {
    width: 86px !important;
  }

  .site-header {
    padding: 12px 20px !important;
  }
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header-social {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  background: #101114;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.header-social:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ff2936, #a00008);
  border-color: rgba(255, 255, 255, 0.2);
}

.header-social svg {
  width: 18px;
  height: 18px;
  display: block;
}
.header-cta {
  margin-left: 4px;
}
@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .header-right {
    margin-left: 0;
  }
}
@media (max-width: 640px) {
  .header-right {
    gap: 8px;
  }

  .header-social {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .header-social svg {
    width: 16px;
    height: 16px;
  }

  .header-cta {
    padding-left: 16px !important;
    padding-right: 16px !important;
    min-height: 40px !important;
    font-size: 12px !important;
  }
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) 0.8fr 1fr;
  gap: 42px;
  align-items: start;
  padding: 56px 7vw;
  background: #030303;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.footer-logo img {
  width: 140px !important;
  max-width: 100%;
  height: auto;
  display: block;
}

.footer-brand p {
  max-width: 420px;
  margin: 0;
  color: #d7d9e0;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.footer-nav a,
.footer-contacts p,
.footer-social {
  color: #f2f2f2;
  text-decoration: none;
  line-height: 1.5;
}

.footer-nav a:hover,
.footer-social:hover {
  color: #ff1f2d;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.footer-contacts p {
  margin: 0;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #101114;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.footer-social:hover {
  background: linear-gradient(135deg, #ff2936, #a00008);
  transform: translateY(-2px);
  color: #fff;
}

@media (max-width: 1100px) {
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .site-footer {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 42px 20px;
  }

  .footer-logo img {
    width: 120px !important;
  }
}

.custom-build-modal-card {
  width: min(900px, 100%);
  padding: clamp(26px, 3vw, 42px);
}

.custom-build-modal-card h2 {
  font-size: clamp(38px, 5vw, 72px);
}

.custom-build-modal-card .modal-subtitle {
  margin-bottom: 24px;
}

.custom-build-modal-card .build-form {
  gap: 16px;
}

.custom-build-modal-card label {
  color: #111;
}

.custom-build-modal-card input,
.custom-build-modal-card textarea,
.custom-build-modal-card select {
  background: #f3f3f5;
  border: 1px solid rgba(17, 17, 17, 0.1);
}

.custom-build-modal-card textarea {
  min-height: 110px;
}

.custom-build-text {
  min-height: 180px;
  margin-top: 4px;
  background: #08080b !important;
  color: #fff !important;
}

.custom-build-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.custom-build-actions .btn,
.custom-build-actions .contact-btn {
  min-height: 48px;
}

.custom-build-actions .crm-submit-btn {
  margin-left: auto;
}

@media (max-width: 760px) {
  .custom-build-modal-card {
    padding: 24px;
    border-radius: 26px;
  }

  .custom-build-actions {
    flex-direction: column;
  }

  .custom-build-actions .btn,
  .custom-build-actions .contact-btn,
  .custom-build-actions .crm-submit-btn {
    width: 100%;
    margin-left: 0;
  }
}
.section-light {
  background:
    radial-gradient(circle at 75% 8%, rgba(255, 31, 45, 0.08), transparent 28%),
    linear-gradient(180deg, #f5f5f5 0%, #ececec 100%) !important;
}
.product-card {
  overflow: hidden;
  color: #fff !important;
  background:
    radial-gradient(circle at 72% 0%, rgba(255, 31, 45, 0.18), transparent 34%),
    linear-gradient(180deg, #151515 0%, #08080a 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 31, 45, 0.04) !important;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.38),
    0 0 48px rgba(255, 31, 45, 0.16) !important;
}
.product-card-image-wrap {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 31, 45, 0.2), transparent 34%),
    linear-gradient(135deg, #1a1a1d 0%, #09090b 100%) !important;
}
.product-card img {
  background: transparent !important;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.35));
}
.product-card-body {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.035),
      rgba(255, 255, 255, 0.015)
    ),
    #07070a !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.product-card-body h3 {
  color: #fff !important;
}

.product-card-body p {
  color: #c8c8d0 !important;
}

.product-price {
  color: #ff2936 !important;
  text-shadow: 0 0 24px rgba(255, 31, 45, 0.2);
}
.product-card .details-product-btn {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.product-card .details-product-btn:hover {
  color: #fff !important;
  background: #151515 !important;
  border-color: rgba(255, 31, 45, 0.7) !important;
}
.product-badge {
  background: rgba(8, 8, 10, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
}

.badge-preorder {
  background: linear-gradient(135deg, #cf101b, #760006) !important;
}

.badge-stock::before,
.badge-qty::before {
  background: #ff2936 !important;
}
.info-card,
.steps article,
.reviews article {
  color: #fff !important;
  background:
    radial-gradient(circle at 85% 0%, rgba(255, 31, 45, 0.12), transparent 34%),
    linear-gradient(180deg, #151515 0%, #09090b 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.info-card h3,
.steps article h3,
.reviews article h3 {
  color: #fff !important;
}

.info-card p,
.steps article p,
.reviews article p {
  color: #c8c8d0 !important;
}
.custom-pc-card {
  background:
    radial-gradient(
      circle at 72% 35%,
      rgba(255, 31, 45, 0.18),
      transparent 30%
    ),
    linear-gradient(135deg, #060607 0%, #0b0b0f 55%, #160004 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.32),
    0 0 60px rgba(255, 31, 45, 0.08) !important;
}

.custom-pc-image {
  background:
    radial-gradient(
      circle at 50% 48%,
      rgba(255, 31, 45, 0.14),
      transparent 38%
    ),
    #050505 !important;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.custom-part-preview-item {
  border-left-color: #ff2936 !important;
}

.custom-part-preview-item span {
  color: #9d9daa !important;
}

.custom-part-preview-item strong {
  color: #fff !important;
}
.steps article {
  position: relative;
  overflow: hidden;
}

.steps article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #ff2936, #8f0008);
}
@media (max-width: 640px) {
  .product-card-body {
    padding: 22px !important;
  }

  .info-card,
  .steps article,
  .reviews article {
    border-radius: 22px !important;
  }
}

.site-footer-legal {
  display: grid !important;
  grid-template-columns: 1.2fr 0.7fr 1fr 1.35fr 1.15fr !important;
  gap: 38px !important;
  align-items: start !important;
  padding: 58px 7vw !important;
  background: #030303 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.footer-documents,
.footer-requisites {
  display: grid;
  gap: 12px;
}

.footer-documents h3,
.footer-requisites h3 {
  margin: 0 0 6px;
  color: #777b8b;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-documents a,
.footer-requisites p {
  margin: 0;
  color: #d7d9e0;
  font-size: 15px;
  line-height: 1.45;
}

.footer-documents a:hover {
  color: #ff1f2d;
}

.footer-small {
  color: #777b8b !important;
  font-size: 13px !important;
}

@media (max-width: 1280px) {
  .site-footer-legal {
    grid-template-columns: 1fr 1fr 1fr !important;
  }

  .footer-brand {
    grid-column: span 1 !important;
  }
}

@media (max-width: 820px) {
  .site-footer-legal {
    grid-template-columns: 1fr !important;
    padding: 42px 20px !important;
  }
}

.legal-page {
  min-height: 100vh;
  color: #fff;
  background:
    radial-gradient(
      circle at 75% 16%,
      rgba(255, 31, 45, 0.18),
      transparent 30%
    ),
    #050505;
}

.legal-hero {
  padding: 120px 7vw 54px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-hero h1 {
  max-width: 980px;
  font-size: clamp(42px, 6vw, 82px);
}

.legal-hero p:not(.eyebrow) {
  max-width: 760px;
  color: #c8c8d0;
  font-size: 19px;
  line-height: 1.6;
}

.legal-content {
  max-width: 980px;
  padding: 64px 7vw 96px;
}

.legal-content h2 {
  margin-top: 42px;
  font-size: clamp(26px, 3vw, 40px);
  color: #fff;
}

.legal-content p,
.legal-content li {
  color: #d7d9e0;
  font-size: 17px;
  line-height: 1.75;
}

.legal-content .btn {
  margin-top: 32px;
}

@media (max-width: 640px) {
  .legal-hero {
    padding: 96px 20px 42px;
  }

  .legal-content {
    padding: 42px 20px 72px;
  }
}

.cookie-banner .btn {
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner .btn {
    width: 100%;
  }
}

.form-consent {
  margin: -4px 0 0;
  color: #8f93a3;
  font-size: 13px;
  line-height: 1.45;
}

.form-consent a {
  color: #ff2936;
  font-weight: 800;
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(
      circle at 84% 20%,
      rgba(255, 31, 45, 0.18),
      transparent 34%
    ),
    #09090b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
}

.cookie-banner-content {
  max-width: 760px;
}

.cookie-banner strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 18px;
}

.cookie-banner p {
  margin: 0;
  color: #c8c8d0;
  line-height: 1.5;
}

.cookie-banner a {
  color: #ff2936;
  font-weight: 900;
}

.cookie-banner-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.cookie-banner-actions .btn {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

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

  .cookie-banner-actions .btn {
    width: 100%;
  }
}

.footer-cookie-settings {
  width: fit-content;
  padding: 0;
  border: 0;
  color: #d7d9e0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
}

.footer-cookie-settings:hover {
  color: #ff2936;
}

.form-consent-checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0;
  color: #6f7280;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

.form-consent-checkbox input {
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  accent-color: #ff1f2d;
  cursor: pointer;
}

.form-consent-checkbox span {
  display: block;
}

.form-consent-checkbox a {
  color: #ff2936;
  font-weight: 900;
  text-decoration: none;
}

.form-consent-checkbox a:hover {
  text-decoration: underline;
}

.form-consent-checkbox-dark {
  color: rgba(255, 255, 255, 0.72);
}

.form-consent-checkbox-dark a {
  color: #ff4a55;
}

.form-consent-checkbox input:invalid + span {
  color: #8f93a3;
}

.form-consent-checkbox input:checked + span {
  color: inherit;
}

.login-page {
  min-height: 100vh;

  display: flex;

  justify-content: center;

  align-items: center;

  background: linear-gradient(135deg, #0c0c0c, #181818);

  padding: 20px;
}

.login-card {
  width: min(480px, 95vw);
  background: #171717;
  border: 1px solid rgba(129, 167, 53, 0.25);
  border-radius: 22px;
  padding: 42px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.login-logo {
  width: 120px;

  margin: 0 auto 24px;

  display: block;
}

.login-card h1 {
  margin: 0 0 14px;
  font-size: clamp(1rem, 2vw, 1.5rem);
  line-height: 1.05;
  font-weight: 800;
  text-align: center;
  word-break: break-word;
}

.login-card p {
  color: #b8b8b8;

  margin-bottom: 28px;
}

.login-card input {
  width: 100%;
  height: 68px;
  padding: 0 20px;
  border-radius: 16px;
  border: 2px solid #ff2c35;
  background: #101010;
  color: #fff;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.45rem;
  transition: 0.25s;
}

.login-card input:focus {
  border-color: #81a735;

  outline: none;

  box-shadow: 0 0 15px rgba(129, 167, 53, 0.35);
}

.login-error {
  background: #3a1111;

  color: #ffb7b7;

  padding: 14px;

  border-radius: 10px;

  margin-bottom: 18px;

  font-size: 14px;
}

.totp-help {
  margin-top: 8px;

  margin-bottom: 18px;

  color: #9c9c9c;

  font-size: 0.9rem;
}

/* iPhone: keep the header attached while Safari's address bar changes height. */
html {
  scroll-padding-top: calc(var(--site-header-height, 110px) + 12px);
}
.ios-fixed-header .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #000 !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  isolation: isolate;
}
/* Security navigation remains reachable on phones. */
@media (max-width: 640px) {
  .site-header:has(a[href="/admin/security"]) .main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
  }
}
