:root {
  --bg: #0d1112;
  --surface: #151b1e;
  --surface-strong: #1b2428;
  --text: #f4f7f8;
  --muted: #aeb8bb;
  --line: rgba(255, 255, 255, 0.12);
  --cyan: #00d7ff;
  --lime: #9eff3f;
  --coral: #ff705d;
  --gold: #ffc947;
  --focus: #ffffff;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 17, 18, 0.88);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid rgba(0, 215, 255, 0.7);
  border-radius: var(--radius);
  background: #082b30;
  color: var(--cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.95rem;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 10, 11, 0.96) 0%, rgba(7, 10, 11, 0.72) 42%, rgba(7, 10, 11, 0.16) 100%),
    linear-gradient(0deg, rgba(13, 17, 18, 0.75) 0%, rgba(13, 17, 18, 0) 36%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100% - 48px));
  margin-left: 40px;
  padding: 70px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 4rem;
  line-height: 1.02;
}

h2 {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1.14;
}

.hero-copy {
  max-width: 560px;
  margin: 22px 0 0;
  color: #d6dcde;
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-button,
.secondary-button,
.buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.primary-button,
.buy-button {
  background: var(--cyan);
  color: #061115;
}

.secondary-button {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.primary-button:hover,
.secondary-button:hover,
.buy-button:hover {
  transform: translateY(-2px);
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.buy-button:focus-visible,
.modal-close:focus-visible,
.product-card:focus-visible,
.nav-links a:focus-visible,
.category-button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.catalog-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 48px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.result-count {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.search-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0 14px;
}

.search-field input::placeholder {
  color: #7f8c90;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.category-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  padding: 9px 13px;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.category-button:hover,
.category-button.is-active {
  border-color: rgba(0, 215, 255, 0.7);
  background: rgba(0, 215, 255, 0.12);
  color: var(--text);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.product-card:hover {
  border-color: rgba(0, 215, 255, 0.55);
  background: #172125;
  transform: translateY(-3px);
}

.product-art {
  position: relative;
  aspect-ratio: 1 / 1;
  height: auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 30%, var(--accent), transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02)),
    #11191c;
}

.product-art.has-image {
  background: #0f1719;
}

.product-art.image-fit-contain {
  background: #0f1719;
}

.product-art.has-image::before,
.product-art.has-image::after {
  display: none;
}

.product-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease;
}

.product-art.image-fit-contain img {
  object-fit: cover;
}

.product-card:hover .product-art img {
  transform: scale(1.02);
}

.product-art::before,
.product-art::after {
  content: "";
  position: absolute;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.product-art::before {
  width: 86px;
  height: 112px;
  right: 28px;
  top: 18px;
  transform: rotate(8deg);
}

.product-art::after {
  width: 72px;
  height: 92px;
  right: 96px;
  top: 34px;
  transform: rotate(-10deg);
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.product-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-category {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-badge {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: var(--muted);
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 700;
}

.product-card h3 {
  margin: 14px 0 8px;
  font-size: 1.25rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 18px;
  padding: 0;
  list-style: none;
}

.product-meta li {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: #c8d0d2;
  padding: 6px 8px;
  font-size: 0.78rem;
}

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

.price {
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
}

.buy-button {
  min-width: 112px;
}

.details-hint {
  display: block;
  margin-top: 12px;
  color: #8f9ca0;
  font-size: 0.78rem;
  font-weight: 700;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

.highlight-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 72px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.highlight-item {
  min-height: 128px;
  background: var(--surface-strong);
  padding: 22px;
}

.highlight-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.highlight-item strong {
  display: block;
  font-size: 1.18rem;
  line-height: 1.35;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  color: var(--text);
  font-weight: 800;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  padding: 26px;
}

.product-modal.is-open {
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 8, 0.78);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: #101719;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
}

.modal-close {
  position: sticky;
  top: 14px;
  z-index: 2;
  float: right;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 14px 14px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 23, 25, 0.86);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(360px, 1.05fr);
  gap: 28px;
  padding: 28px;
}

.modal-gallery {
  display: grid;
  gap: 14px;
  align-content: start;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0f1719;
}

.youtube-thumbnail {
  position: relative;
  display: block;
}

.youtube-thumbnail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.38));
  opacity: 0.92;
  transition: opacity 160ms ease;
}

.youtube-thumbnail span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.66);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
  transform: translate(-50%, -50%);
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.youtube-thumbnail span::before {
  content: "";
  display: block;
  margin-left: 5px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid var(--text);
}

.youtube-thumbnail:hover::before,
.youtube-thumbnail:focus-visible::before {
  opacity: 0.58;
}

.youtube-thumbnail:hover span,
.youtube-thumbnail:focus-visible span {
  background: rgba(0, 215, 255, 0.74);
  transform: translate(-50%, -50%) scale(1.05);
}

.youtube-thumbnail:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.gallery-item-image img {
  aspect-ratio: 1 / 1;
}

.gallery-item.image-fit-contain img {
  object-fit: cover;
  background: #0f1719;
}

.gallery-item figcaption {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 10px 12px;
}

.modal-info {
  min-width: 0;
  padding: 8px 6px 6px 0;
}

.modal-info h3 {
  margin: 10px 0 12px;
  font-size: 2rem;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.modal-summary {
  margin: 0;
  color: #d6dcde;
  line-height: 1.65;
}

.modal-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid rgba(0, 215, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(0, 215, 255, 0.08);
}

.modal-price-row strong {
  font-size: 1.6rem;
}

.modal-price-row span {
  border-radius: var(--radius);
  background: rgba(158, 255, 63, 0.12);
  color: var(--lime);
  font-weight: 900;
  padding: 7px 10px;
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 20px;
}

.modal-specs div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}

.modal-specs dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.modal-specs dd {
  margin: 6px 0 0;
  color: var(--text);
  font-weight: 800;
}

.description-block {
  border-top: 1px solid var(--line);
  padding: 18px 0 0;
  margin-top: 18px;
}

.description-block h4 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.description-block p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
}

.description-block ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.modal-buy-button {
  width: 100%;
  margin-top: 22px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 920px) {
  .site-header {
    padding: 12px 24px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    margin-left: 24px;
  }

  h1 {
    font-size: 3rem;
  }

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

  .filter-group {
    justify-content: flex-start;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 640px;
    align-items: flex-end;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(7, 10, 11, 0.98) 0%, rgba(7, 10, 11, 0.72) 56%, rgba(7, 10, 11, 0.16) 100%),
      linear-gradient(90deg, rgba(7, 10, 11, 0.78), rgba(7, 10, 11, 0.2));
  }

  .hero-content {
    width: calc(100% - 40px);
    margin: 0 20px;
    padding: 72px 0 36px;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .product-footer,
  .section-heading,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .buy-button {
    width: 100%;
  }

  .catalog-section,
  .highlight-band {
    width: min(100% - 32px, 1180px);
  }

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

  .product-modal {
    padding: 12px;
  }

  .modal-panel {
    max-height: 92vh;
  }

  .modal-layout {
    gap: 18px;
    padding: 20px;
  }

  .modal-info h3 {
    font-size: 1.45rem;
  }

  .modal-price-row,
  .modal-specs {
    grid-template-columns: 1fr;
  }

  .modal-price-row {
    align-items: stretch;
    flex-direction: column;
  }
}
