:root {
  --bg: #070911;
  --bg-2: #0c1020;
  --card: rgba(18, 24, 40, 0.78);
  --card-2: rgba(23, 30, 45, 0.92);
  --text: #f6f8ff;
  --muted: #a9b1c7;
  --line: rgba(255, 255, 255, 0.1);
  --blue: #31b7ff;
  --violet: #8a5cff;
  --red: #ff335f;
  --green: #45ffb0;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 10%, rgba(49, 183, 255, 0.18), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(255, 51, 95, 0.12), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(138, 92, 255, 0.16), transparent 32%),
    var(--bg);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 82px 0;
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 9, 17, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--violet), var(--red));
  box-shadow: 0 0 26px rgba(49, 183, 255, 0.38);
}

.logo-text {
  font-size: 18px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--text);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
}

.header-cta,
.btn-primary {
  color: #06101c;
  border: 0;
  background: linear-gradient(135deg, var(--blue), #7cf1ff);
  font-weight: 800;
  box-shadow: 0 12px 36px rgba(49, 183, 255, 0.25);
}

.btn-primary:hover,
.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(49, 183, 255, 0.34);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.btn-ghost:hover {
  border-color: rgba(49, 183, 255, 0.5);
  background: rgba(49, 183, 255, 0.08);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

.hero {
  padding-top: 110px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 46px;
  align-items: center;
}

.badge,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: #bfefff;
  background: rgba(49, 183, 255, 0.1);
  border: 1px solid rgba(49, 183, 255, 0.22);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 22px 0 20px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

h2 {
  margin: 14px 0 14px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-subtitle,
.section-head p,
.lead-copy p,
.tasks-card p,
.footer p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-subtitle {
  max-width: 680px;
  font-size: 20px;
}

.hero-price-row {
  margin: 34px 0 22px;
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
}

.price-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.price {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff, #87e8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-mini-card {
  min-width: 180px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.hero-mini-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 7px;
}

.hero-description {
  max-width: 650px;
  color: #dce5ff;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-visual {
  min-height: 560px;
  display: grid;
  place-items: center;
}

.glow-card {
  position: relative;
  width: min(100%, 520px);
  min-height: 520px;
  border-radius: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 50% 20%, rgba(49, 183, 255, 0.22), transparent 40%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow), 0 0 90px rgba(49, 183, 255, 0.14);
  overflow: hidden;
}

.glow-card::before,
.glow-card::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  filter: blur(40px);
}

.glow-card::before {
  background: rgba(49, 183, 255, 0.22);
  top: -80px;
  right: -60px;
}

.glow-card::after {
  background: rgba(255, 51, 95, 0.15);
  bottom: -90px;
  left: -70px;
}

.pc-illustration {
  position: relative;
  z-index: 1;
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: 34px;
}

.pc-illustration img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 30px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
}

.pc-case {
  position: relative;
  width: 270px;
  height: 360px;
  border-radius: 34px;
  background: linear-gradient(145deg, #0f1727, #1c2537);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 40px rgba(255,255,255,0.04), 0 30px 80px rgba(0,0,0,0.38);
}

.pc-case::before {
  content: '';
  position: absolute;
  inset: 26px;
  border-radius: 24px;
  border: 1px solid rgba(49, 183, 255, 0.26);
  background: linear-gradient(180deg, rgba(49,183,255,0.08), transparent);
}

.pc-light {
  position: absolute;
  right: 50px;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 8px solid rgba(49, 183, 255, 0.85);
  box-shadow: 0 0 32px rgba(49, 183, 255, 0.55);
}

.pc-light-one { top: 64px; }
.pc-light-two { top: 144px; border-color: rgba(138,92,255,0.85); box-shadow: 0 0 32px rgba(138,92,255,0.55); }
.pc-light-three { top: 224px; border-color: rgba(255,51,95,0.78); box-shadow: 0 0 32px rgba(255,51,95,0.48); }

.pc-lines {
  position: absolute;
  left: 42px;
  top: 64px;
  width: 42px;
  height: 240px;
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--blue), var(--violet), var(--red));
  filter: drop-shadow(0 0 18px rgba(49, 183, 255, 0.6));
}

.visual-caption {
  position: relative;
  z-index: 2;
  margin: 0 24px 24px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.visual-caption span {
  display: block;
  color: var(--muted);
  margin-bottom: 5px;
}

.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-head code {
  color: #bff2ff;
  background: rgba(49, 183, 255, 0.1);
  padding: 3px 7px;
  border-radius: 8px;
}

.stats-grid,
.specs-grid,
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stat-card,
.spec-card,
.benefit-card,
.tasks-card,
.lead-form {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 24px;
}

.stat-card span,
.spec-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
}

.stat-card strong {
  display: block;
  font-size: 26px;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.stat-card p,
.benefit-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.specs-grid {
  grid-template-columns: repeat(3, 1fr);
}

.spec-card {
  padding: 22px;
  min-height: 178px;
  transition: 0.2s ease;
}

.spec-card:hover {
  transform: translateY(-4px);
  border-color: rgba(49, 183, 255, 0.38);
}

.spec-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 20px;
  font-size: 22px;
}

.spec-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.45;
}

.gallery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
}

.admin-link {
  color: #bfefff;
  border: 1px solid rgba(49, 183, 255, 0.22);
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(49, 183, 255, 0.08);
  white-space: nowrap;
}

.gallery-slider {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--card);
  padding: 18px 64px;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: 16px;
  overflow: visible;
  padding: 10px 0;
  transition: transform .45s ease;
  will-change: transform;
}

.gallery-item {
  flex: 0 0 calc((100% - 32px) / 3);
  max-width: calc((100% - 32px) / 3);
  height: 210px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  background: #111827;
  cursor: pointer;
  opacity: 0.64;
}

.gallery-item.active {
  opacity: 1;
  border-color: rgba(49, 183, 255, 0.75);
  box-shadow: 0 0 36px rgba(49, 183, 255, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.42);
  color: var(--text);
  font-size: 32px;
  cursor: pointer;
}

.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }

.gallery-empty {
  padding: 48px;
  text-align: center;
  color: var(--muted);
}

.benefit-card {
  padding: 28px;
}

.benefit-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(49,183,255,0.16), rgba(138,92,255,0.16));
  color: #bfefff;
  margin-bottom: 26px;
  font-weight: 900;
}

.benefit-card h3 {
  font-size: 22px;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.tasks-card {
  padding: 42px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(49,183,255,0.14), transparent 34%),
    var(--card);
}

.tasks-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tasks-tags span {
  padding: 12px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #dbe8ff;
  border: 1px solid var(--line);
}

.lead-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  align-items: start;
}

.lead-form {
  padding: 28px;
}

.lead-form label {
  display: block;
  margin-bottom: 16px;
}

.lead-form span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 16px;
  outline: none;
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: rgba(49, 183, 255, 0.55);
}

.form-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
}

.form-message.success { color: var(--green); }
.form-message.error { color: #ff8da4; }

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  padding: 18px 22px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-item p {
  color: var(--muted);
  line-height: 1.65;
  margin: 14px 0 0;
}

.footer {
  position: relative;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 26px;
}

.footer h3 {
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #bfefff;
}

@media (max-width: 960px) {
  .header-cta {
    display: none;
  }

  .burger {
    display: block;
  }

  .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 82px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(10, 14, 26, 0.96);
  }

  .nav.nav-open {
    display: flex;
  }

  .hero-grid,
  .lead-grid,
  .tasks-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-visual {
    min-height: auto;
  }

  .glow-card {
    min-height: auto;
  }

  .stats-grid,
  .specs-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .gallery-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-slider {
    padding: 14px;
  }

  .gallery-btn {
    display: none;
  }

  .gallery-item {
    flex: 0 0 100%;
    max-width: 100%;
    height: 220px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .section {
    padding: 56px 0;
  }

  .hero-actions,
  .hero-price-row {
    flex-direction: column;
  }

  .btn,
  .hero-mini-card {
    width: 100%;
  }

  .pc-illustration img {
    height: 300px;
  }

  .tasks-card,
  .lead-form {
    padding: 22px;
  }
}

/* ===== Catalog and custom build additions ===== */
.row-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.025));
  box-shadow: var(--shadow);
}

.product-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background: radial-gradient(circle at 20% 0%, rgba(49,183,255,.22), transparent 34%), radial-gradient(circle at 90% 30%, rgba(138,92,255,.18), transparent 34%);
  opacity: .85;
}

.product-image {
  position: relative;
  height: 190px;
  max-height: 190px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 30%, rgba(49,183,255,.18), rgba(255,255,255,.025) 60%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  max-height: 190px;
  object-fit: contain;
  padding: 14px;
  display: block;
}

.product-placeholder {
  width: 126px;
  height: 158px;
  position: relative;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(18,24,40,.96), rgba(44,55,85,.96));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 0 42px rgba(49,183,255,.2);
  display: grid;
  place-items: center;
}

.product-placeholder span {
  position: absolute;
  inset: 18px 18px auto auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, var(--blue), var(--violet), var(--red), var(--blue));
  filter: drop-shadow(0 0 14px rgba(49,183,255,.45));
}

.product-placeholder strong {
  position: relative;
  margin-top: 54px;
  font-size: 34px;
  letter-spacing: -.08em;
}

.product-body {
  position: relative;
  padding: 18px;
}

.product-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.product-badge {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: #bfefff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(49,183,255,.1);
  border: 1px solid rgba(49,183,255,.22);
}

.product-price {
  font-size: 15px;
  color: var(--green);
}

.product-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -.04em;
  min-height: 46px;
  overflow-wrap: anywhere;
}

.product-card p {
  min-height: 62px;
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

.product-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 8px;
}

.product-specs li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: var(--muted);
  font-size: 13px;
}

.product-specs strong {
  color: var(--text);
  text-align: right;
  font-weight: 700;
}

.product-order-btn {
  width: 100%;
}

.custom-section {
  padding-top: 40px;
}

.custom-card,
.catalog-hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(49,183,255,.10), rgba(138,92,255,.08), rgba(255,51,95,.08));
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 54px);
}

.custom-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.custom-card p,
.catalog-hero-card p {
  color: var(--muted);
  line-height: 1.65;
  max-width: 760px;
}

.catalog-hero {
  padding: 92px 0 20px;
}

.catalog-tools {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
}

.catalog-tools input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,.06);
  outline: none;
}

.catalog-tools input:focus {
  border-color: rgba(49,183,255,.5);
  box-shadow: 0 0 0 4px rgba(49,183,255,.08);
}

.modal-lock {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  padding: 18px;
}

.modal.modal-open {
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 28px);
  overflow: auto;
  border-radius: 30px;
  padding: clamp(24px, 4vw, 46px);
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(49,183,255,.18), transparent 34%),
    radial-gradient(circle at 92% 16%, rgba(138,92,255,.18), transparent 32%),
    linear-gradient(145deg, rgba(18,24,40,.98), rgba(8,11,22,.98));
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 30px 120px rgba(0,0,0,.58), 0 0 70px rgba(49,183,255,.12);
}

.modal-card h2 {
  color: var(--text);
  margin: 0 0 10px;
}

.modal-card p {
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255,255,255,.08);
  font-size: 24px;
  cursor: pointer;
}

.modal-close:hover {
  border-color: rgba(49,183,255,.45);
  background: rgba(49,183,255,.12);
}

.custom-form,
.custom-form label,
.custom-form .form-row {
  display: grid;
  gap: 10px;
}

.custom-form {
  gap: 18px;
  margin-top: 18px;
}

.custom-form .form-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.custom-form span {
  color: #dce8ff;
  font-weight: 800;
  font-size: 14px;
}

.custom-form input,
.custom-form textarea,
.custom-form select {
  width: 100%;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  background: rgba(3,8,18,.62);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
  font-weight: 700;
}

.custom-form input::placeholder,
.custom-form textarea::placeholder {
  color: rgba(220,232,255,.55);
}

.custom-form input:focus,
.custom-form textarea:focus,
.custom-form select:focus {
  border-color: rgba(49,183,255,.62);
  box-shadow: 0 0 0 4px rgba(49,183,255,.1);
}

.custom-form textarea {
  resize: vertical;
}

.custom-form .btn-primary {
  min-height: 52px;
}

@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .row-head,
  .custom-card,
  .catalog-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .custom-form .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 200px;
    max-height: 200px;
  }

  .product-image img {
    max-height: 200px;
  }

  .modal {
    padding: 0;
  }

  .modal-card {
    max-height: 100vh;
    border-radius: 0;
  }
}

/* ===== Checkout step and equal product cards ===== */
.products-grid {
  align-items: stretch;
}

.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-specs {
  flex: 1;
}

.product-order-btn {
  margin-top: auto;
}

.checkout-modal-card {
  width: min(760px, 100%);
}

.checkout-help {
  max-width: 620px;
  line-height: 1.55;
}

.checkout-summary-label {
  display: block;
  margin: 20px 0 8px;
  color: #dce8ff;
  font-weight: 900;
  font-size: 14px;
}

.checkout-summary {
  width: 100%;
  min-height: 230px;
  resize: vertical;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  background: rgba(3,8,18,.75);
  color: var(--text);
  padding: 18px;
  line-height: 1.65;
  font-weight: 700;
  outline: none;
  box-shadow: inset 0 0 30px rgba(0,0,0,.22);
}

.checkout-summary:focus {
  border-color: rgba(49,183,255,.62);
  box-shadow: 0 0 0 4px rgba(49,183,255,.1), inset 0 0 30px rgba(0,0,0,.22);
}

.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.checkout-actions .btn {
  min-height: 50px;
}

.checkout-messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.checkout-messenger {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  transition: .2s ease;
}

.checkout-messenger:hover {
  transform: translateY(-2px);
  border-color: rgba(49,183,255,.55);
  background: rgba(49,183,255,.13);
}

@media (max-width: 560px) {
  .checkout-actions .btn,
  .checkout-messenger {
    width: 100%;
  }
}
