*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #0c0c0c;
  --ink-soft: #3d3d3d;
  --ink-muted: #8a8a8a;
  --ice: #1aabdd;
  --ice-deep: #0d8fbe;
  --ice-faint: #e8f7fc;
  --surface: #fafafa;
  --surface-2: #f2f2f2;
  --line: #e8e8e8;
  --white: #ffffff;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --max: 1120px;
  --narrow: 640px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

.container {
  width: min(var(--max), 100% - 40px);
  margin-inline: auto;
}

.container--narrow {
  width: min(var(--narrow), 100% - 40px);
  margin-inline: auto;
}

/* ── Header ── */
.site-header {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(var(--max), 100% - 40px);
  margin-inline: auto;
}

.logo {
  justify-self: start;
  display: flex;
  align-items: center;
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
}

.header-tagline {
  justify-self: center;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: none;
}

@media (min-width: 768px) {
  .header-tagline {
    display: block;
  }
}

.main-nav ul {
  display: flex;
  gap: 28px;
  justify-self: end;
}

.main-nav a {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.25s var(--ease);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  justify-self: end;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
}

/* ── Home hero ── */
.home-hero {
  padding: clamp(56px, 10vw, 120px) 0 clamp(48px, 8vw, 80px);
}

.home-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.home-hero h1 span {
  display: block;
  color: var(--ice);
}

.home-hero__lead {
  margin-top: 32px;
  max-width: 420px;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.home-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.home-hero__cta:hover {
  color: var(--ice-deep);
  border-color: var(--ice-deep);
}

.home-hero__cta svg {
  transition: transform 0.25s var(--ease);
}

.home-hero__cta:hover svg {
  transform: translateX(4px);
}

/* ── Spotlight (featured product) ── */
.spotlight {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.spotlight__visual {
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 6vw, 64px);
  border-right: 1px solid var(--line);
}

.spotlight__visual img {
  max-height: min(420px, 50vh);
  object-fit: contain;
  mix-blend-mode: multiply;
}

.spotlight__info {
  padding: clamp(40px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight__label {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.spotlight__model {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
}

.spotlight__title {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 340px;
}

.spotlight__price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.spotlight__links {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.spotlight__links a {
  color: var(--ink-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.spotlight__links a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.spotlight__links a.primary {
  color: var(--ice-deep);
  border-color: var(--ice-deep);
}

/* ── Category index ── */
.category-index {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 72px) 0;
}

.category-index__head {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 32px;
}

.category-list {
  display: flex;
  flex-direction: column;
}

.category-list a {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s var(--ease);
}

.category-list a:first-child {
  border-top: 1px solid var(--line);
}

.category-list a:hover {
  padding-left: 8px;
}

.category-list__num {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--ice);
  font-weight: 600;
}

.category-list__name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.category-list__count {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* ── Product catalog grid ── */
.catalog {
  padding: clamp(48px, 6vw, 72px) 0;
}

.catalog__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
  gap: 16px;
}

.catalog__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.catalog__head a {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.catalog__head a:hover {
  color: var(--ink);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

/* ── Product card ── */
.product-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: background 0.25s var(--ease);
}

.product-card:hover {
  background: var(--surface);
}

.product-card__image {
  aspect-ratio: 1;
  padding: clamp(16px, 3vw, 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--surface);
}

.product-card:hover .product-card__image {
  background: var(--surface-2);
}

.product-card__image img {
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice-deep);
}

.product-card__body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__model {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: inherit;
}

.product-card__spec {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-bottom: 12px;
  flex: 1;
}

.product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.product-card__price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.product-card__price del {
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-weight: 400;
  margin-left: 6px;
}

.product-card__arrow {
  font-size: 1rem;
  color: var(--ink-muted);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.product-card:hover .product-card__arrow {
  transform: translateX(3px);
  color: var(--ice);
}

/* ── Spec strip ── */
.spec-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.spec-strip__item {
  padding: clamp(28px, 4vw, 40px);
  text-align: center;
  border-right: 1px solid var(--line);
}

.spec-strip__item:last-child {
  border-right: none;
}

.spec-strip__value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ice);
  display: block;
}

.spec-strip__label {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 6px;
  letter-spacing: 0.04em;
}

/* ── Page headers (shop, category) ── */
.page-head {
  padding: clamp(48px, 6vw, 72px) 0 0;
}

.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.page-head p {
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

/* ── Filter tabs ── */
.filter-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.filter-tabs a {
  padding: 14px 20px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.filter-tabs a:hover,
.filter-tabs a.active {
  color: var(--ink);
  border-bottom-color: var(--ice);
}

/* ── Product page ── */
.product-page {
  padding-bottom: clamp(64px, 8vw, 96px);
}

.product-hero {
  background: var(--surface);
  padding: clamp(48px, 8vw, 80px) 0;
  border-bottom: 1px solid var(--line);
}

.product-hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.product-hero__image {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
}

.product-hero__image img {
  max-height: min(480px, 60vh);
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-hero__model {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 12px;
}

.product-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.product-hero__desc {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  max-width: 400px;
  margin-bottom: 24px;
}

.product-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-bottom: 32px;
}

.product-hero__meta .rating {
  color: var(--ink);
}

.product-buy {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}

.product-buy__price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-buy__price del {
  font-size: 1rem;
  color: var(--ink-muted);
  font-weight: 400;
  margin-left: 8px;
}

.btn-buy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.25s var(--ease);
}

.btn-buy:hover {
  background: var(--ice-deep);
}

.product-details {
  padding: clamp(48px, 6vw, 72px) 0;
}

.product-details .prose h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 36px 0 16px;
}

.product-details .prose h2:first-child {
  margin-top: 0;
}

.product-details .prose p,
.product-details .prose li {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.product-details .prose ul {
  list-style: none;
  padding: 0;
}

.product-details .prose li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  padding-left: 16px;
  position: relative;
}

.product-details .prose li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--ice);
}

.breadcrumbs {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  padding: 20px 0;
}

.breadcrumbs a:hover {
  color: var(--ink);
}

.breadcrumbs span {
  margin: 0 10px;
  opacity: 0.4;
}

/* ── About ── */
.about-block {
  padding: clamp(56px, 8vw, 96px) 0;
}

.about-block h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}

.about-block h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 40px 0 12px;
}

.about-block p {
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 560px;
}

.about-block a {
  color: var(--ice-deep);
  border-bottom: 1px solid var(--ice-faint);
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  width: min(var(--max), 100% - 40px);
  margin-inline: auto;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
}

.footer-meta {
  font-size: 0.6875rem;
  color: var(--ink-muted);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.footer-nav ul {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.footer-nav a:hover {
  color: var(--ink);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .header-tagline {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 73px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 24px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s;
    z-index: 99;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 20px;
  }

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

  .spotlight__visual {
    border-right: none;
    border-bottom: 1px solid var(--line);
    min-height: 280px;
  }

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

  .spec-strip {
    grid-template-columns: 1fr;
  }

  .spec-strip__item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .spec-strip__item:last-child {
    border-bottom: none;
  }

  .product-hero__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
}
