/* =============================================================
   HARDWARE.CSS — страница оборудования
   ============================================================= */

/* HERO */
.hero {
  position:        relative;
  min-height:      60vh;
  display:         flex;
  flex-direction:  column;
  justify-content: flex-end;
  padding:         var(--header-h) var(--page-px) 72px;
  overflow:        hidden;
}
.hero-bg {
  position:            absolute;
  inset:               0;
  background-image:    url('/assets/img/hardware-hero.jpg');
  background-size:     cover;
  background-position: center 40%;
  filter:              brightness(0.2);
}
.hero-bg::after {
  content:    '';
  position:   absolute;
  inset:      0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 65%);
}
.hero-grid {
  position:         absolute;
  inset:            0;
  background-image:
    linear-gradient(rgba(0,200,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-content { position: relative; z-index: 2; }

.breadcrumb {
  font-size:      11px;
  font-weight:    400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          rgba(255,255,255,0.3);
  margin-bottom:  20px;
  opacity:        0;
  animation:      fadeUp 0.7s 0.1s forwards;
}
.breadcrumb a    { color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: rgba(255,255,255,0.5); margin: 0 8px; }

.hero-title {
  font-family:    var(--font-display);
  font-size:      clamp(64px, 9vw, 128px);
  line-height:    0.92;
  letter-spacing: 0.02em;
  color:          var(--white);
  margin-bottom:  24px;
  opacity:        0;
  animation:      fadeUp 0.9s 0.25s forwards;
  hyphens:        none;
  word-break:     keep-all;
}
.hero-title em { color: var(--accent); font-style: normal; }

.hero-sub {
  font-size:   16px;
  font-weight: 300;
  color:       rgba(255,255,255,0.45);
  max-width:   560px;
  line-height: 1.75;
  opacity:     0;
  animation:   fadeUp 0.9s 0.4s forwards;
}

/* MPT STRIP */
.mpt-strip {
  background:    var(--gray2);
  border-top:    1px solid rgba(0,200,255,0.15);
  border-bottom: 1px solid rgba(0,200,255,0.15);
  padding:       24px var(--page-px);
  display:       flex;
  align-items:   center;
  gap:           48px;
  flex-wrap:     wrap;
}
.mpt-strip-item  { display: flex; align-items: center; gap: 12px; }
.mpt-dot         { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.mpt-strip-text  { font-size: 12px; font-weight: 400; color: rgba(255,255,255,0.45); letter-spacing: 0.05em; line-height: 1.5; }
.mpt-strip-text strong { color: rgba(255,255,255,0.8); font-weight: 500; }
.mpt-strip-divider { width: 1px; height: 32px; background: rgba(255,255,255,0.08); }

/* CATALOG */
.catalog { padding: var(--section-py) var(--page-px); }

.catalog-header {
  display:         flex;
  align-items:     flex-end;
  justify-content: space-between;
  margin-bottom:   64px;
}
.catalog-title {
  font-family:    var(--font-display);
  font-size:      clamp(44px, 5.5vw, 80px);
  line-height:    0.95;
  letter-spacing: 0.02em;
}
.catalog-desc {
  max-width:   340px;
  font-size:   14px;
  color:       rgba(255,255,255,0.35);
  line-height: 1.7;
  text-align:  right;
}

/* PRODUCT CARDS */
.product-group       { margin-bottom: 80px; }
.product-group-label {
  font-size:      11px;
  font-weight:    500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color:          rgba(255,255,255,0.2);
  padding-bottom: 16px;
  border-bottom:  1px solid rgba(255,255,255,0.06);
  margin-bottom:  2px;
}
.product-cards {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   2px;
}

.product-card {
  background:     var(--gray3);
  padding:        40px;
  position:       relative;
  overflow:       hidden;
  display:        flex;
  flex-direction: column;
  transition:     background 0.25s;
}
.product-card::before {
  content:          '';
  position:         absolute;
  top: 0; left: 0; right: 0;
  height:           2px;
  background:       var(--accent);
  transform:        scaleX(0);
  transform-origin: left;
  transition:       transform 0.35s ease;
}
.product-card:hover             { background: #282832; }
.product-card:hover::before     { transform: scaleX(1); }

.product-card-badge {
  display:        inline-flex;
  align-items:    center;
  gap:            6px;
  font-size:      10px;
  font-weight:    500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom:  24px;
  align-self:     flex-start;
}
.badge-soon {
  color:  rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 4px 10px;
}

.product-card-img {
  width:         100%;
  height:        180px;
  object-fit:    contain;
  margin-bottom: 28px;
  filter:        brightness(0.85);
  transition:    filter 0.3s;
}
.product-card:hover .product-card-img { filter: brightness(1); }

.product-card-name {
  font-family:    var(--font-display);
  font-size:      28px;
  letter-spacing: 0.04em;
  color:          var(--white);
  margin-bottom:  8px;
  line-height:    1.05;
  hyphens:        none;
  word-break:     keep-all;
}
.product-card-sub {
  font-size:     13px;
  font-weight:   400;
  color:         rgba(255,255,255,0.35);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.product-card-desc {
  font-size:     13px;
  font-weight:   300;
  color:         rgba(255,255,255,0.45);
  line-height:   1.65;
  margin-bottom: 28px;
  flex-grow:     1;
}

/* SPECS */
.specs         { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 20px; margin-bottom: 28px; }
.spec-row      { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.spec-row:last-child { border-bottom: none; }
.spec-key      { font-size: 11px; font-weight: 400; color: rgba(255,255,255,0.3); letter-spacing: 0.05em; flex-shrink: 0; }
.spec-val      { font-size: 12px; font-weight: 400; color: rgba(255,255,255,0.65); text-align: right; }

.product-card-cta {
  display:        inline-flex;
  align-items:    center;
  gap:            10px;
  font-size:      12px;
  font-weight:    500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--accent);
  text-decoration: none;
  border:         1px solid rgba(0,200,255,0.3);
  padding:        12px 20px;
  transition:     background 0.2s, border-color 0.2s, gap 0.2s;
  align-self:     flex-start;
  cursor:         none;
}
.product-card-cta:hover { background: rgba(0,200,255,0.08); border-color: var(--accent); gap: 16px; }
.product-card-cta::after { content: '→'; }

/* SERVICE */
.service {
  padding:    var(--section-py) var(--page-px);
  background: var(--bg2);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.service-header {
  display:         flex;
  align-items:     flex-end;
  justify-content: space-between;
  margin-bottom:   56px;
}
.service-title {
  font-family:    var(--font-display);
  font-size:      clamp(40px, 5vw, 72px);
  line-height:    0.95;
  letter-spacing: 0.02em;
}
.service-desc {
  max-width:   340px;
  font-size:   14px;
  color:       rgba(255,255,255,0.35);
  line-height: 1.7;
  text-align:  right;
}
.service-plans {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   2px;
}
.service-plan {
  background:     var(--gray3);
  padding:        36px 32px;
  position:       relative;
  display:        flex;
  flex-direction: column;
}
.service-plan.featured {
  background: rgba(0,200,255,0.06);
  border:     1px solid rgba(0,200,255,0.2);
}
.service-plan-tag  { font-size: 9px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.service-plan-name { font-family: var(--font-display); font-size: 32px; letter-spacing: 0.04em; color: var(--white); margin-bottom: 4px; hyphens: none; }
.service-plan-hours { font-size: 12px; color: rgba(255,255,255,0.3); letter-spacing: 0.08em; margin-bottom: 28px; }
.service-plan-items { list-style: none; flex-grow: 1; margin-bottom: 32px; }
.service-plan-items li {
  font-size:       13px;
  font-weight:     300;
  color:           rgba(255,255,255,0.5);
  padding:         8px 0;
  border-bottom:   1px solid rgba(255,255,255,0.04);
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  gap:             8px;
  line-height:     1.4;
}
.service-plan-items li:last-child { border-bottom: none; }
.service-plan-items li .val        { font-weight: 400; color: rgba(255,255,255,0.75); text-align: right; flex-shrink: 0; }
.service-plan-items li .val.accent { color: var(--accent); }

.service-plan-cta {
  display:        block;
  text-align:     center;
  font-size:      12px;
  font-weight:    500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--accent);
  text-decoration: none;
  border:         1px solid rgba(0,200,255,0.3);
  padding:        13px;
  transition:     background 0.2s, border-color 0.2s;
  cursor:         none;
}
.service-plan-cta:hover { background: rgba(0,200,255,0.08); border-color: var(--accent); }
.service-plan.featured .service-plan-cta { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.service-plan.featured .service-plan-cta:hover { background: var(--accent-hover); }

/* =============================================================
   АДАПТИВ
   ============================================================= */
@media (max-width: 1024px) {
  .product-cards         { grid-template-columns: repeat(2, 1fr); }
  .service-plans         { grid-template-columns: repeat(2, 1fr); }
  .catalog-header        { flex-direction: column; align-items: flex-start; gap: 16px; }
  .catalog-desc          { text-align: left; max-width: 100%; }
  .service-header        { flex-direction: column; align-items: flex-start; gap: 16px; }
  .service-desc          { text-align: left; max-width: 100%; }
  .mpt-strip             { gap: 24px; }
  .mpt-strip-divider     { display: none; }
}

@media (max-width: 768px) {
  .hero                  { min-height: 70vh; }
  .hero-title            { font-size: clamp(36px, 11vw, 64px); word-break: break-word; overflow-wrap: break-word; hyphens: auto; }
  .product-cards         { grid-template-columns: 1fr; }
  .product-card          { padding: 28px 24px; }
  .product-card-img      { height: 140px; }
  .service-plans         { grid-template-columns: 1fr; }
  .service-plan          { padding: 28px 24px; }
  .service-plan-name     { font-size: 26px; }
  .product-card-cta      { cursor: pointer; }
  .service-plan-cta      { cursor: pointer; }
  .mpt-strip             { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px var(--page-px); }
}
