/* =====================================================================
   GCtronic website
   ===================================================================== */

:root {
  --bg: #f6f7fb;
  --bg-alt: #eef1f8;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #5b6579;
  --line: #e2e6ef;
  --line-strong: #cfd5e3;
  --primary: #1f45e0;
  --primary-hover: #1737b8;
  --primary-soft: #e8edff;
  --on-primary: #ffffff;
  --accent: #e5242c;
  --dark: #0b1330;
  --dark-2: #111c44;
  --on-dark: #e8ecf8;
  --on-dark-muted: #a8b3d1;
  --photo-bg: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .05);
  --radius: 14px;
  --radius-sm: 9px;
  --container: 1180px;
  --header-h: 68px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f1f;
    --bg-alt: #0e1528;
    --surface: #121a30;
    --ink: #e8ecf6;
    --ink-soft: #c5cde0;
    --muted: #97a2bb;
    --line: #202a45;
    --line-strong: #2c3858;
    --primary: #6d8bff;
    --primary-hover: #8aa2ff;
    --primary-soft: #1a2550;
    --on-primary: #0a0f1f;
    --accent: #ff5b61;
    --dark: #070b18;
    --dark-2: #0d1430;
    --photo-bg: #f4f5f8;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 12px 30px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0f1f;
  --bg-alt: #0e1528;
  --surface: #121a30;
  --ink: #e8ecf6;
  --ink-soft: #c5cde0;
  --muted: #97a2bb;
  --line: #202a45;
  --line-strong: #2c3858;
  --primary: #6d8bff;
  --primary-hover: #8aa2ff;
  --primary-soft: #1a2550;
  --on-primary: #0a0f1f;
  --accent: #ff5b61;
  --dark: #070b18;
  --dark-2: #0d1430;
  --photo-bg: #f4f5f8;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 12px 30px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
html.smooth { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html, html.smooth { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; border: 0; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 700px) { .container { padding: 0 28px; } }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--surface); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .6rem;
}

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1;
  padding: .85em 1.3em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: #0b1330; }
.btn-light:hover { background: #e8edff; color: #0b1330; }
.btn-sm { font-size: .85rem; padding: .65em 1em; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }

.chip-link {
  display: inline-flex; align-items: center; gap: .35em;
  font-size: .85rem; font-weight: 600; text-decoration: none;
  padding: .4em .8em; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
}
.chip-link:hover { background: var(--primary); color: var(--on-primary); }

/* ------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }

.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; color: var(--ink);
  font-size: 1.4rem; letter-spacing: -0.02em;
}
.brand img { width: auto; height: 38px; }
.brand-word { font-weight: 700; }
.brand-word b { font-weight: 900; font-size: 1.12em; }
.brand:hover { color: var(--ink); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.2rem; }
.site-nav ul { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; }
.site-nav ul a {
  display: block; padding: .5rem .75rem; border-radius: 8px;
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.site-nav ul a:hover { color: var(--ink); background: var(--bg-alt); }
.site-nav ul a[aria-current="page"], .site-nav ul a.is-active { color: var(--primary); }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line-strong); color: var(--ink);
  width: 44px; height: 44px; border-radius: 10px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon + .icon { display: none; }
.nav-toggle[aria-expanded="true"] .icon { display: none; }
.nav-toggle[aria-expanded="true"] .icon + .icon { display: block; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 1rem 16px 1.4rem;
    max-height: calc(100vh - var(--header-h)); overflow: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .18s, transform .18s, visibility .18s;
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: .8rem .6rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-shop { align-self: flex-start; }
}

/* ------------------------------------------------------------ sections */

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 750; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-head-row {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem;
  max-width: none;
}
.section-head-row > div { max-width: 720px; }
@media (max-width: 700px) { .section { padding: 60px 0; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ------------------------------------------------------------ hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
  background:
    radial-gradient(900px 420px at 85% 10%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%),
    radial-gradient(600px 300px at 0% 100%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 20%, transparent 75%);
  opacity: .7;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.06;
  margin-bottom: 1.2rem;
}
.hero h1 .hl { color: var(--primary); }
.hero .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; margin-bottom: 1.8rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .85rem; font-weight: 600; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line);
  padding: .35rem .8rem .35rem .45rem; border-radius: 999px; margin-bottom: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot {
  display: inline-grid; place-items: center;
  font-size: .72rem; font-weight: 700; color: #fff; background: var(--accent);
  border-radius: 999px; padding: .1rem .5rem;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2.2rem;
  margin: 2.4rem 0 0; padding: 1.4rem 0 0; border-top: 1px solid var(--line);
}
.hero-stats dt { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.hero-stats dd { margin: 0; font-size: .85rem; color: var(--muted); }

.hero-visual {
  display: grid; gap: 14px;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 1.12;
}
.hero-visual figure {
  margin: 0; position: relative; overflow: hidden;
  border-radius: 18px; background: var(--photo-bg);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero-visual figure:first-child { grid-row: span 2; }
.hero-visual.hero-count-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.hero-visual.hero-count-2 { grid-template-rows: 1fr; }
.hero-visual.hero-count-1 figure:first-child, .hero-visual.hero-count-2 figure:first-child { grid-row: auto; }
.hero-visual figure > a { display: block; width: 100%; height: 100%; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.hero-visual figure > a:hover img { transform: scale(1.03); }
.hero-visual figcaption {
  position: absolute; left: 10px; bottom: 10px;
  font-size: .75rem; font-weight: 600; color: #0b1330;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(6px);
  padding: .25rem .6rem; border-radius: 999px;
}
@media (max-width: 900px) {
  .hero { padding: 44px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .hero-stats { grid-template-columns: repeat(2, auto); gap: 1.2rem 2rem; }
  .hero-visual { aspect-ratio: 1; gap: 10px; }
}

/* ------------------------------------------------------------ products */

.product-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.product-card { display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card .media {
  aspect-ratio: 4 / 3; background: var(--photo-bg); display: grid; place-items: center; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.product-card .media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .35s; }
.product-card:hover .media img { transform: scale(1.04); }
.product-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-card h3 { font-size: 1.25rem; margin: 0; }
.product-card h3 a { color: inherit; text-decoration: none; }
.product-card .tagline { color: var(--primary); font-weight: 600; font-size: .9rem; margin: 0; }
.product-card .desc { color: var(--muted); font-size: .95rem; }
.product-card .desc p:last-child { margin-bottom: 0; }
.product-card .links { margin-top: auto; padding-top: .8rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.product-card.featured { grid-column: span 2; flex-direction: row; }
.product-card.featured .media { flex: 1.1; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); min-height: 320px; }
.product-card.featured .body { flex: 1; padding: 32px; justify-content: center; }
.product-card.featured h3 { font-size: 1.8rem; }
@media (max-width: 700px) {
  .product-card.featured { grid-column: auto; flex-direction: column; }
  .product-card.featured .media { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; aspect-ratio: 4/3; }
  .product-card.featured .body { padding: 20px 22px 22px; }
}

.badge {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: 6px; background: var(--bg-alt); color: var(--muted); border: 1px solid var(--line);
}
.badge-warn { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); border-color: transparent; }

/* ------------------------------------------------------------ services */

.services-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.services-intro .quote {
  font-size: 1.35rem; font-weight: 650; line-height: 1.35; letter-spacing: -0.01em;
  border-left: 3px solid var(--accent); padding-left: 1rem; margin: 1.6rem 0;
}
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.service {
  padding: 22px; display: flex; flex-direction: column; gap: .5rem;
}
.service .icon-wrap {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
}
.service .icon-wrap .icon { width: 24px; height: 24px; }
.service h3 { font-size: 1.05rem; margin: .3rem 0 0; }
.service p { color: var(--muted); font-size: .92rem; margin: 0; }
.service-wide { grid-column: span 2; }
@media (max-width: 900px) { .services-layout { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 560px) { .service-list { grid-template-columns: 1fr; } .service-wide { grid-column: auto; } }

/* ------------------------------------------------------------ news */

.news-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.news-item.card { display: flex; flex-direction: column; overflow: hidden; }
.news-item.card .news-media { aspect-ratio: 16 / 9; background: var(--photo-bg); border-bottom: 1px solid var(--line); overflow: hidden; }
.news-item.card .news-media a, .news-item.card .news-media img { display: block; width: 100%; height: 100%; }
.news-item.card .news-media img { object-fit: contain; padding: 10px; }
.news-item .news-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.news-item h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.news-item h3 a { color: inherit; text-decoration: none; }
.news-item h3 a:hover { color: var(--primary); }
.news-text { color: var(--ink-soft); font-size: .95rem; }
.news-text p:last-child, .news-text ul:last-child { margin-bottom: 0; }
.news-text.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.more {
  margin-top: auto; padding-top: 1rem; display: inline-flex; align-items: center; gap: .35em;
  font-weight: 600; font-size: .9rem; text-decoration: none;
}
.more:hover .icon { transform: translateX(3px); }
.more .icon { transition: transform .15s; }

/* news page */
.news-layout { display: grid; grid-template-columns: 180px 1fr; gap: 48px; align-items: start; }
.year-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.year-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.year-nav a {
  display: block; text-align: center; padding: .35rem 0; border-radius: 8px;
  font-family: var(--font-mono); font-size: .85rem; text-decoration: none; color: var(--ink-soft);
}
.year-nav a:hover, .year-nav a.is-active { background: var(--primary-soft); color: var(--primary); }
.year-block { margin-bottom: 3rem; }
.year-title {
  font-family: var(--font-mono); font-size: 1rem; letter-spacing: .08em; color: var(--muted);
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem;
}
.year-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.news-full {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px;
  padding: 24px; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.news-full:target { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.news-full .news-media { display: flex; flex-direction: column; gap: 10px; }
.news-full .news-media a { display: block; aspect-ratio: 4 / 3; background: var(--photo-bg); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.news-full .news-media img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.news-full .news-body { padding: 0; }
.news-full:not(:has(.news-media)) { grid-template-columns: 1fr; }
@media (max-width: 860px) {
  .news-layout { grid-template-columns: 1fr; gap: 20px; }
  .year-nav { position: static; }
  .year-nav ul { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); }
}
@media (max-width: 560px) {
  .news-full { grid-template-columns: 1fr; padding: 18px; }
  .news-full .news-media { flex-direction: row; }
  .news-full .news-media a { flex: 1; max-width: 50%; }
}

/* ------------------------------------------------------------ portfolio */

.portfolio-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.portfolio-item { overflow: hidden; display: flex; flex-direction: column; }
.portfolio-item .media {
  aspect-ratio: 3 / 2; background: var(--photo-bg); display: flex; gap: 2px; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.portfolio-item .media a { flex: 1; display: block; min-width: 0; }
.portfolio-item .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portfolio-item .media.empty { display: grid; place-items: center; color: var(--muted); }
.portfolio-item .media.empty .icon { width: 42px; height: 42px; opacity: .5; }
.portfolio-item .body { padding: 18px 20px 20px; }
.portfolio-item h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.portfolio-item .body p, .portfolio-item .body li { color: var(--muted); font-size: .92rem; }
.portfolio-item .body ul { padding-left: 1.1rem; margin: 0; }
.portfolio-item .body p:last-child { margin-bottom: 0; }
.status {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: .4rem;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.status-ongoing::before { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.status-recent::before { background: var(--primary); }

/* ------------------------------------------------------------ about */

.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.about-text p { font-size: 1.05rem; color: var(--ink-soft); }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fact { padding: 22px; }
.fact strong { display: block; font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; }
.fact span { color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ------------------------------------------------------------ contact / dark band */

.band-dark {
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(80, 110, 255, .35), transparent 70%),
    linear-gradient(160deg, var(--dark-2), var(--dark));
  color: var(--on-dark);
}
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .section-head p, .band-dark p { color: var(--on-dark-muted); }
.band-dark a:not(.btn) { color: #fff; }
.band-dark .eyebrow { color: #93a8ff; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
}
.contact-list .icon { width: 22px; height: 22px; color: #93a8ff; margin-top: 2px; }
.contact-list small { display: block; color: var(--on-dark-muted); font-size: .8rem; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ------------------------------------------------------------ page header */

.page-hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(700px 300px at 90% 0%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 70%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: .6rem; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 46em; margin: 0; }
.page-hero .btn-row { margin-top: 1.4rem; }
.page-body { padding-top: 48px; padding-bottom: 88px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }

/* ------------------------------------------------------------ shop */

.shop-top { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; margin-bottom: 36px; }
.shop-note { padding: 22px 24px; }
.shop-note p { color: var(--ink-soft); margin: 0 0 .6em; }
.shop-note p:last-child { margin: 0; }
.distributors { padding: 22px 24px; }
.distributors h2 { font-size: 1rem; margin-bottom: .8rem; }
.distributors ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.distributors li { font-size: .92rem; display: flex; flex-direction: column; }
.distributors li span { color: var(--muted); font-size: .82rem; }
@media (max-width: 860px) { .shop-top { grid-template-columns: 1fr; } }

.shop-nav {
  position: sticky; top: var(--header-h); z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.shop-nav .container { display: flex; align-items: center; gap: 1rem; padding-top: 10px; padding-bottom: 10px; }
.shop-nav ul { list-style: none; display: flex; gap: .4rem; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; flex: 1; }
.shop-nav ul::-webkit-scrollbar { display: none; }
.shop-nav ul a {
  display: block; white-space: nowrap; text-decoration: none;
  font-size: .88rem; font-weight: 600; color: var(--ink-soft);
  padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
}
.shop-nav ul a:hover, .shop-nav ul a.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.shop-nav .cart-form { flex: none; }

.shop-category { margin-bottom: 56px; scroll-margin-top: calc(var(--header-h) + 80px); }
.shop-category > h2 { font-size: 1.6rem; margin-bottom: 1.2rem; display: flex; align-items: baseline; gap: .7rem; }
.shop-category > h2 small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.shop-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.shop-item { display: flex; flex-direction: column; overflow: hidden; }
.shop-item .media { aspect-ratio: 4 / 3; background: var(--photo-bg); border-bottom: 1px solid var(--line); overflow: hidden; }
.shop-item .media a, .shop-item .media img { display: block; width: 100%; height: 100%; }
.shop-item .media img { object-fit: contain; padding: 12px; }
.shop-item .body { padding: 18px 20px 12px; flex: 1; }
.shop-item h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.shop-item .desc { font-size: .9rem; color: var(--muted); }
.shop-item .desc p { margin-bottom: .5em; }
.shop-item .desc ul { padding-left: 1.1rem; margin: 0 0 .5em; }
.shop-item .buy {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: 14px 20px 18px; border-top: 1px dashed var(--line);
}
.price { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.price small { font-size: .7rem; font-weight: 500; color: var(--muted); display: block; letter-spacing: 0; }
.buy-form, .cart-form { margin: 0; }

.cart-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
}
.cart-fab .btn { box-shadow: var(--shadow); padding: .9em 1.3em; }
.pay-note { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .88rem; margin-top: 1rem; }

/* ------------------------------------------------------------ product page */

.product-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.gallery-main {
  aspect-ratio: 1; background: var(--photo-bg); border-radius: var(--radius); border: 1px solid var(--line);
  overflow: hidden; display: grid; place-items: center;
}
.gallery-main a, .gallery-main img { display: block; width: 100%; height: 100%; }
.gallery-main img { object-fit: contain; padding: 20px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; margin-top: 12px; }
.gallery-thumbs a {
  aspect-ratio: 1; background: var(--photo-bg); border-radius: 10px; border: 1px solid var(--line); overflow: hidden; display: block;
}
.gallery-thumbs a:hover { border-color: var(--primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spec-list { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.spec-list li { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.spec-list li b { color: var(--ink); }
.spec-list li span { color: var(--ink-soft); }
.spec-list.plain li { grid-template-columns: 1fr; }
.link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 1rem; }
.link-cards a {
  display: flex; align-items: center; gap: .7rem; padding: 14px 16px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: .95rem;
}
.link-cards a:hover { border-color: var(--primary); color: var(--primary); }
.link-cards small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.link-cards .icon { width: 22px; height: 22px; color: var(--primary); }
@media (max-width: 860px) {
  .product-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .spec-list li { grid-template-columns: 1fr; gap: .1rem; }
}

/* products catalogue page */
.catalog-item {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start;
  padding: 40px 0; border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.catalog-item:first-child { padding-top: 0; }
.catalog-item h2 { font-size: 1.8rem; margin-bottom: .2rem; }
.catalog-item .tagline { color: var(--primary); font-weight: 600; margin-bottom: 1rem; }
.catalog-item .desc { color: var(--ink-soft); }
@media (max-width: 860px) { .catalog-item { grid-template-columns: 1fr; gap: 20px; } }

/* ------------------------------------------------------------ prose / old pages */

.prose { max-width: 900px; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose h4 { font-size: 1.05rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .3em; }

.page-head-spacer { height: 40px; }
.legacy { padding-bottom: 88px; }
.legacy .prose > h2:first-child, .legacy .prose > h1:first-child { font-size: clamp(2rem, 4.2vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; margin-top: 0; }
.legacy table { border: 0; border-collapse: collapse; max-width: 100%; }
.legacy td { padding: 6px 10px; vertical-align: top; }
.legacy table[width] { width: 100% !important; }
.legacy img { border-radius: 8px; }
.legacy iframe { max-width: 100%; border: 0; border-radius: 10px; }
.legacy .links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.legacy .links li a {
  display: inline-block; padding: .45rem .9rem; border-radius: 999px; font-weight: 600; font-size: .85rem;
  background: var(--primary-soft); text-decoration: none;
}
.legacy #submenu ul { list-style: none; padding: 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.legacy #submenu li a, .legacy #submenu li {
  display: inline-block; padding: .35rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: var(--bg-alt); text-decoration: none;
}
.legacy #sub_active { background: var(--primary-soft); color: var(--primary); }
.legacy tr[bgcolor] { background: transparent !important; }
@media (max-width: 700px) {
  .legacy table, .legacy tbody, .legacy tr, .legacy td { display: block; width: 100% !important; }
  .legacy td { padding: 6px 0; }
  .legacy img[height] { height: auto !important; max-height: 260px; width: auto; }
}

/* ------------------------------------------------------------ footer */

.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 32px; }
.footer-brand p { color: var(--muted); margin-top: .8rem; }
.footer-brand .brand { font-size: 1.25rem; }
.footer-brand .brand img { height: 32px; }
.footer-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer ul a { color: var(--ink-soft); text-decoration: none; }
.site-footer ul a:hover { color: var(--primary); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem;
}
.footer-bottom a { color: var(--muted); text-decoration: none; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: span 2; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } .footer-brand { grid-column: auto; } }

/* ------------------------------------------------------------ lightbox */

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(5, 8, 20, .86); backdrop-filter: blur(4px); }
.lightbox img { display: block; max-width: 94vw; max-height: 88vh; border-radius: 10px; background: #fff; }
.lightbox-close {
  position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .25); }
.lightbox-close .icon { width: 22px; height: 22px; }

/* ------------------------------------------------------------ reveal */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
