/* Страница «Собрать свой ПК» (public/custom-build.html) */
.cb-section { padding: 36px 24px 10px; }
.cb-grid { display: block; }

/* ---------- Слева: фото системного блока + форма поверх ---------- */
.cb-stage {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 720px; border-radius: 26px;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 25% 45%, #12264a, #0a1626 70%);
  /*      [ заголовок на всю ширину ]
     [ заявка ]   [ контакты ]  — два блока одного размера, ПК на фоне за обоими */
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr; gap: 22px;
  padding: 34px;
}
/* Фото крупно, как на главной: корпус уходит за края блока */
.cb-pc {
  position: absolute; z-index: -1;
  left: 50%; top: 56%;
  height: 1420px; width: auto; max-width: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 40px 60px rgba(0,0,0,.6));
}
/* Затемнение справа под формой, чтобы текст формы читался */
.cb-stage::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,22,38,.85) 0, rgba(10,22,38,.35) 26%, rgba(10,22,38,.25) 60%, rgba(10,22,38,.6) 100%);
}
.cb-intro { grid-column: 1 / -1; grid-row: 1; max-width: 640px; }
.cb-intro h1 { margin: 0 0 10px; font-size: 40px; line-height: 1.08; font-weight: 800; letter-spacing: -.8px; text-shadow: 0 4px 24px rgba(0,0,0,.7); }
.cb-intro h1 .grad { white-space: nowrap; background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cb-intro p { margin: 0; color: #c7d5e8; font-size: 15px; text-shadow: 0 2px 12px rgba(0,0,0,.8); }

.cb-form {
  grid-column: 1; grid-row: 2; align-self: stretch;
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px; border-radius: 20px;
  background: rgba(10,22,40,.5); border: 1px solid rgba(120,170,230,.25);
  backdrop-filter: blur(5px) saturate(1.2); -webkit-backdrop-filter: blur(5px) saturate(1.2);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.cb-form h2 { margin: 0 0 2px; font-size: 21px; }
.cb-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cb-field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--text-muted); }
.cb-field input, .cb-field textarea { width: 100%; background: rgba(14,30,52,.88); font-size: 14.5px; }
.cb-field textarea { resize: vertical; min-height: 74px; }
.cb-group { display: flex; flex-direction: column; gap: 7px; }
.cb-group-label { font-size: 12.5px; color: var(--text-muted); }
.cb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cb-chips button {
  padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--border); background: rgba(26,47,77,.85); color: var(--text-muted);
  transition: color .2s, border-color .2s, background .2s;
}
.cb-chips button:hover { color: var(--text); border-color: var(--accent); }
.cb-chips button.active { color: #fff; border-color: var(--accent); background: rgba(41,171,226,.28); }
.cb-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--text-muted); cursor: pointer; }
.cb-consent input { width: auto; margin-top: 2px; }
.cb-consent a { color: var(--accent); }
.cb-submit { width: 100%; padding: 14px; font-size: 16px; }
.cb-status { margin: 0; font-size: 13px; color: var(--text-muted); min-height: 1em; }
.cb-status.error { color: var(--danger); }
.cb-status:empty { display: none; }
.cb-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 30px 6px; }
.cb-done p { margin: 0; color: var(--text-muted); }
.cb-done-ic {
  width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff; background: var(--accent-gradient);
}

/* ---------- Справа: контакты ---------- */
.cb-contacts {
  grid-column: 2; grid-row: 2; align-self: stretch;
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px; border-radius: 20px;
  background: rgba(10,22,40,.5); border: 1px solid rgba(120,170,230,.25);
  backdrop-filter: blur(5px) saturate(1.2); -webkit-backdrop-filter: blur(5px) saturate(1.2);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.cb-contacts h2 { margin: 0; font-size: 22px; }
.cb-contact { display: flex; gap: 14px; align-items: flex-start; }
.cb-ic {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  background: rgba(41,171,226,.1); border: 1px solid rgba(41,171,226,.3);
}
.cb-contact > div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--text-muted); min-width: 0; }
.cb-contact b { color: var(--text); font-size: 14.5px; }
.cb-contact a { color: var(--text); font-weight: 600; }
.cb-contact a:hover, .cb-link { color: var(--accent) !important; }
.cb-link { font-size: 13px; margin-top: 2px; }
.cb-call { margin-top: auto; width: 100%; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .cb-stage { grid-template-columns: 1fr; min-height: 0; padding: 26px 20px 20px; }
  .cb-intro { grid-row: 1; max-width: none; }
  .cb-form { grid-column: 1; grid-row: 2; }
  .cb-contacts { grid-column: 1; grid-row: 3; }
  .cb-pc { height: 1100px; left: 50%; top: 42%; }
  .cb-stage { gap: 16px; }
}
@media (max-width: 560px) {
  .cb-section { padding: 20px 16px 0; }
  .cb-intro h1 { font-size: 30px; }
  .cb-row2 { grid-template-columns: 1fr; }
  .cb-form { padding: 18px; }
  .cb-pc { height: 900px; top: 40%; }
}

/* «или» + кнопка Telegram под заявкой */
.cb-or { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 12px; }
.cb-or::before, .cb-or::after { content: ""; flex: 1; height: 1px; background: rgba(120,170,230,.22); }
.cb-telegram {
  width: 100%; padding: 13px; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, #2aabee, #229ed9);
  box-shadow: 0 8px 20px rgba(34,158,217,.3);
}
.cb-telegram:hover { filter: brightness(1.1); box-shadow: 0 12px 26px rgba(34,158,217,.45); }

/* ---------- Примеры наших работ ---------- */
.works-section { padding-top: 80px; }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.works-item {
  position: relative; margin: 0; aspect-ratio: 3 / 4; overflow: hidden; cursor: zoom-in;  /* фото работ вертикальные */
  border-radius: 18px; border: 1px solid var(--border);
  background: radial-gradient(circle at 50% 45%, rgba(41,171,226,.16), transparent 70%), var(--surface);
  animation: works-in .35s ease both;
}
@keyframes works-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.works-item > img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.works-item:hover > img { transform: scale(1.04); }
.works-item.is-empty { cursor: default; }
.works-ph { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.works-ph img { height: 72%; width: auto; opacity: .55; filter: grayscale(.3); }
.works-ph small { color: var(--text-muted); font-size: 12.5px; }
.is-empty > .works-ph { display: flex; }
.works-more { display: flex; justify-content: center; margin-top: 26px; }
.works-more .btn { padding: 14px 34px; }
.works-more .btn[hidden] { display: none; }
.works-lightbox {
  position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(3,8,16,.88); cursor: zoom-out;
}
.works-lightbox[hidden] { display: none; }
.works-lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.works-lb-close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 16px;
}
@media (max-width: 900px) { .works-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 560px) {
  .works-section { padding-top: 56px; }
  .works-grid { gap: 10px; }
  .works-item { border-radius: 14px; }
}
