* {
  box-sizing: border-box;
}

body {
  margin: 0;
  direction: rtl;
  font-family: Tahoma, Arial, sans-serif;
  background: #080b12;
  color: #f8fafc;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.site {
  min-height: 100vh;
}

header {
  height: 75px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #202735;
  background: #0b0f18;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  font-size: 22px;
}

.brand strong {
  display: block;
  letter-spacing: 1px;
}

.brand small {
  color: #64748b;
  font-size: 10px;
}

.header-cart {
  background: #151b27;
  padding: 10px 16px;
  border-radius: 12px;
}

.hero {
  padding: 65px 7%;
  background:
    radial-gradient(circle at 20% 30%, #172554 0, transparent 35%),
    linear-gradient(135deg, #0b1020, #090d14);
}

.hero .badge {
  color: #60a5fa;
  background: #172554;
  padding: 7px 13px;
  border-radius: 20px;
  font-size: 12px;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 55px);
  max-width: 650px;
  margin: 20px 0 10px;
}

.hero p {
  color: #94a3b8;
  font-size: 16px;
}

.hero button {
  margin-top: 20px;
  padding: 14px 24px;
  border: 0;
  border-radius: 12px;
  background: #2563eb;
  color: white;
  font-weight: bold;
  font-size: 14px;
}

.builder {
  max-width: 1250px;
  margin: auto;
  padding: 25px;
}

.steps {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin-bottom: 18px;
}

.step {
  min-width: 100px;
  padding: 11px;
  text-align: center;
  background: #111827;
  border: 1px solid #202938;
  border-radius: 10px;
  color: #64748b;
  font-size: 11px;
}

.step.active {
  background: #172554;
  border-color: #2563eb;
  color: #60a5fa;
}

.step.done {
  color: #4ade80;
}

.builder-grid {
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 20px;
}

.products-area,
.build-preview {
  background: #0e131d;
  border: 1px solid #202735;
  border-radius: 20px;
  padding: 22px;
}

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

.section-title h2 {
  margin: 5px 0;
  font-size: 23px;
}

.section-title span {
  color: #64748b;
  font-size: 11px;
}

.compatibility {
  color: #4ade80 !important;
  background: #052e1a;
  padding: 8px 10px;
  border-radius: 9px;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.product {
  background: #121824;
  border: 1px solid #273142;
  border-radius: 15px;
  padding: 15px;
  transition: .2s;
}

.product:hover {
  border-color: #3b82f6;
}

.product.selected {
  border: 2px solid #2563eb;
  background: #111d35;
}

.product-image {
  height: 135px;
  border-radius: 12px;
  margin-bottom: 13px;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
}

.product h3 {
  margin: 0;
  font-size: 14px;
}

.product .brand {
  color: #64748b;
  font-size: 11px;
  margin-top: 5px;
}

.specs {
  margin-top: 10px;
  color: #94a3b8;
  font-size: 10px;
  line-height: 2;
}

.product-bottom {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  color: #4ade80;
  font-weight: bold;
  font-size: 12px;
}

.select {
  border: 0;
  background: #2563eb;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
}

.selected .select {
  background: #16a34a;
}

.navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.back,
.next {
  padding: 12px 22px;
  border-radius: 10px;
  border: 0;
}

.back {
  background: #1e293b;
  color: white;
}

.next {
  background: #2563eb;
  color: white;
}

.next:disabled {
  opacity: .4;
}

.preview-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.preview-title span {
  color: #4ade80;
  font-size: 10px;
}
.pc-case {
  height: 340px;
  background: linear-gradient(145deg, #202938, #070a0f);
  border: 3px solid #374151;
  border-radius: 16px;
  padding: 15px;
  position: relative;
  overflow: hidden;
}

.case-glass {
  height: 260px;
  border: 1px solid #334155;
  background: rgba(30,41,59,.35);
  position: relative;
}

.motherboard-visual {
  position: absolute;
  right: 35px;
  top: 35px;
  width: 210px;
  height: 170px;
  background: #18251e;
  border: 2px solid #36513f;
}

.cpu-visual {
  position: absolute;
  right: 72px;
  top: 45px;
  width: 55px;
  height: 55px;
  background: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
}

.ram-visual {
  position: absolute;
  right: 15px;
  top: 35px;
  display: flex;
  gap: 4px;
}

.ram-visual i {
  display: block;
  width: 8px;
  height: 60px;
  background: #2563eb;
  border-radius: 2px;
}

.gpu-visual {
  position: absolute;
  right: 25px;
  top: 125px;
  width: 160px;
  height: 40px;
  background: #334155;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}

.cooler-visual {
  position: absolute;
  right: 90px;
  top: 52px;
  font-size: 40px;
  opacity: .5;
}

.fans {
  position: absolute;
  left: 20px;
  top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.fans i {
  width: 55px;
  height: 55px;
  border: 3px solid #2563eb;
  border-radius: 50%;
  display: block;
}

.case-bottom {
  position: absolute;
  bottom: 10px;
  right: 15px;
  left: 15px;
  display: flex;
  justify-content: space-between;
  color: #64748b;
  font-size: 10px;
}

.selected-parts {
  margin-top: 15px;
}

.part-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #202735;
  font-size: 11px;
}

.part-row span {
  color: #64748b;
}

.total {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid #334155;
  display: flex;
  justify-content: space-between;
}

.total strong {
  color: #4ade80;
}

@media(max-width:850px) {

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

  .build-preview {
    order: -1;
  }

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

  .hero {
    padding: 45px 25px;
  }

}
