:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --bg: #f3f5f8;
  --panel: #ffffff;
  --text: #1b2430;
  --muted: #64748b;
  --border: #dde3ea;
  --brand-dark: #0f172a;
  --brand-blue: #2563eb;
  --brand-green: #059669;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top right, #dbeafe, transparent 40%), var(--bg);
  color: var(--text);
}

.page {
  width: min(1260px, 92vw);
  margin: 24px auto 40px;
  display: grid;
  gap: 16px;
}

.hero {
  background: linear-gradient(120deg, #0f172a 0%, #1d4ed8 100%);
  color: #fff;
  padding: 26px;
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.22);
  position: relative;
  overflow: hidden;
}

.home-page .hero {
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding: 40px clamp(20px, 5vw, 48px);
}

.home-page .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.92), rgba(29, 78, 216, 0.72)),
    url("./images/thumbs/BIONICON_WYATT_750_2_BLUE_MATT_001.jpg") center / cover no-repeat;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: min(780px, 100%);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  line-height: 1.1;
}

.hero p {
  margin: 0;
  color: #e2e8f0;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  max-width: 62ch;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-facts {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
}

.hero-facts div {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.35);
  padding: 10px;
  backdrop-filter: blur(2px);
}

.hero-facts strong {
  display: block;
  font-size: 1.2rem;
}

.hero-facts span {
  color: #dbeafe;
  font-size: 0.82rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, #16a34a, #059669);
  box-shadow: 0 8px 16px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.btn-secondary:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.18);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.panel h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.info-intro {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.info-grid article {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.info-grid h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.info-grid p {
  margin: 0;
  color: #475569;
}

label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid #c7d0db;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #c7d0db;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

button {
  border: 1px solid #1f4f95;
  background: linear-gradient(120deg, #155dc7, #1d4ed8);
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(21, 93, 199, 0.25);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.product-card {
  border: 1px solid #dce3ea;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.13);
}

.product-media {
  position: relative;
  background: #f8fafc;
}

.product-media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.product-placeholder {
  height: 190px;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 0.9rem;
}

.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #dc2626;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 4px 8px;
}

.product-content {
  padding: 12px;
}

.product-content h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
}

.product-id {
  margin: 0 0 6px;
  color: #334155;
  font-size: 0.83rem;
}

.product-prices {
  margin: 10px 0 12px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.price-old {
  color: #64748b;
  text-decoration: line-through;
  font-size: 0.9rem;
}

.price-new {
  color: #059669;
  font-size: 1.15rem;
  font-weight: 800;
}

.product-cta {
  width: 100%;
}

.card {
  border: 1px solid #dce3ea;
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.card h3 {
  margin: 0 0 10px;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.model-card .model-media {
  margin: -14px -14px 12px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}

.model-card .model-media img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.model-colors {
  margin-top: 10px;
}

.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  font-size: 0.8rem;
  background: #ebf1f8;
  color: #0f2744;
  border-radius: 999px;
  padding: 5px 9px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

thead th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 1;
}

.sort-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #1f2937;
  font-weight: 700;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
}

.sort-btn.active {
  color: #1d4ed8;
}

.sort-btn:hover {
  text-decoration: underline;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid #e6ebf0;
  padding: 12px 10px;
  font-size: 0.92rem;
  vertical-align: top;
}

tbody tr:nth-child(2n) {
  background: #fcfdff;
}

tbody tr:hover {
  background: #f5f9ff;
}

a {
  color: #155dc7;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.muted {
  color: var(--muted);
}

.price-cell {
  font-weight: 600;
}

.price-cell.reduced {
  color: var(--brand-green);
}

.table-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 600;
}

.table-badge.ok {
  background: #dcfce7;
  color: #166534;
}

.table-badge.neutral {
  background: #e2e8f0;
  color: #475569;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(340px, 1.1fr);
  gap: 20px;
}

.detail-grid img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d9e1ea;
  margin-bottom: 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 8px;
  color: #cfe2ff;
}

.equipment-box {
  margin-top: 16px;
  border: 1px solid #dce3ea;
  border-radius: 10px;
  padding: 14px;
  background: #fafcff;
}

.equipment-box h3 {
  margin: 0 0 10px;
}

.equipment-box ul {
  margin: 0 0 10px;
  padding-left: 18px;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.detail-info-grid div {
  border: 1px solid #e5ebf2;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.detail-info-grid strong {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.price-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  margin: 14px 0 4px;
}

.price-box > div {
  border: 1px solid #dce3ea;
  border-radius: 10px;
  padding: 12px;
  background: #ffffff;
}

.price-box small {
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.price-box p {
  margin: 6px 0 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.price-box .reduced {
  color: var(--brand-green);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.gallery-item {
  margin: 0;
  border: 1px solid #e5ebf2;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.gallery-item img {
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 7px 10px;
  font-size: 0.75rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .price-box {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .home-page .hero {
    min-height: 74vh;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}
