/* ==========================================================================
   Leky Computers — light theme (white + light blue, original brand blue)
   Shared by index.html, computer.html and the buy/ pages.
   ========================================================================== */

:root {
  color-scheme: light;

  --bg: #ffffff;
  --bg-alt: #f5f8fd;
  --surface: #ffffff;
  --border: #e3e8ef;
  --border-hi: #b9d3f0;

  --text: #272829;
  --text-2: #45505b;
  --muted: #728394;

  --accent: #0563bb;
  --accent-hover: #067ded;
  --accent-soft: #e8f1fb;
  --ok: #1f9d55;
  --ok-soft: #e7f6ee;
  --hot: #d92d4f;
  --danger: #c0392b;

  --font-display: 'Raleway', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --shadow: 0 2px 14px rgba(15, 35, 65, 0.06);
  --shadow-hi: 0 12px 30px rgba(15, 35, 65, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

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

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--text-2); }
/* Raleway defaults to old-style (uneven) digits; prices and model numbers need even ones */
h1, h2, h3, h4, .pc-card__amount, .buybox__amount, .summary__total strong { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Buttons & chips ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn i { font-size: 0.9em; transition: transform 0.2s; }
.btn:hover i.fa-arrow-right { transform: translateX(3px); }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 6px 18px rgba(5, 99, 187, 0.25); }

.btn--ghost { background: #fff; color: var(--accent); border-color: var(--border-hi); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent); }

.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { background: #c9d3df; color: #fff; cursor: not-allowed; box-shadow: none; pointer-events: none; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.is-scrolled { box-shadow: var(--shadow); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo img { height: 17px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--accent); }
.nav__links a.is-active { color: var(--accent); background: var(--accent-soft); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-2);
  cursor: pointer;
}

@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav__cta .btn { display: none; }
  .nav__links {
    position: fixed;
    inset: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) 12px auto 12px;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hi);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .nav__links a { padding: 13px 16px; font-size: 16px; }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  /* Original hero photo, washed out with a white overlay like the old site */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(245, 248, 253, 0.9) 75%, #ffffff 100%),
    url("../img/hero-bg.jpg") center / cover no-repeat;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding-block: 40px 64px;
}
.hero__copy { max-width: 560px; }
.hero__title {
  margin-top: 14px;
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
}
.hero__title .accent { color: var(--accent); }
.hero__typed {
  margin-top: 18px;
  min-height: 1.6em;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--text-2);
}
.hero__typed .caret {
  display: inline-block;
  width: 2px; height: 1.1em;
  margin-left: 3px;
  vertical-align: -0.15em;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: 14px; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts i { color: var(--accent); }

.socials { display: flex; gap: 10px; }
.socials a {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  transition: background 0.2s, transform 0.2s;
}
.socials a:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); }
.hero .socials { margin-top: 26px; }

/* Stage holding the 3D canvas and the fallback image */
.hero__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 560px;
  justify-self: center;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.8s;
  touch-action: pan-y;
  cursor: grab;
}
.hero__canvas:active { cursor: grabbing; }
.hero__fallback {
  position: absolute;
  inset: 6% 8% 8%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s;
}
.hero__fallback img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(15, 35, 65, 0.25)); }

.hero__stage.is-3d .hero__canvas { opacity: 1; }
.hero__stage.is-3d .hero__fallback { opacity: 0; pointer-events: none; }

.hero__hint {
  position: absolute;
  left: 50%; bottom: -4px;
  z-index: 2;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  pointer-events: none;
}
.hero__stage.is-3d .hero__hint { display: inline-flex; }

.hero__controls {
  position: absolute;
  right: 2%; top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero__controls[hidden] { display: none; }
.hero__controls button {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.hero__controls button:hover { background: var(--accent); color: #fff; transform: scale(1.06); }

@media (max-width: 960px) {
  .hero { min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; padding-block: 20px 56px; text-align: center; }
  .hero__copy { margin-inline: auto; }
  .hero__actions, .hero__facts, .hero .socials { justify-content: center; }
  .hero__stage { order: -1; max-width: 400px; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(56px, 8vw, 96px); }
.section--alt { background: var(--bg-alt); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 36px; }
.section__title { margin-top: 8px; font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.section__title::after { content: ''; display: block; width: 50px; height: 3px; margin-top: 14px; background: var(--accent); border-radius: 2px; }
.section__lead { margin-top: 14px; max-width: 560px; color: var(--text-2); }

/* ---------- Product cards ---------- */

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 22px;
}

.pc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.pc-card:hover, .pc-card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-hi); border-color: var(--border-hi); }

.pc-card__link { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }

.pc-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--hot);
}

.pc-card__media {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--bg-alt);
}
.pc-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s var(--ease); }
.pc-card:hover .pc-card__media img { transform: scale(1.04); }

.pc-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 16px; }
.pc-card__tier { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pc-card__title { margin-top: 6px; font-size: 17px; line-height: 1.3; color: var(--text); overflow-wrap: anywhere; }
.pc-card__specs { margin-top: 12px; display: grid; gap: 5px; font-size: 13px; color: var(--text-2); }
.pc-card__specs li { display: flex; align-items: center; gap: 10px; }
.pc-card__specs i { width: 16px; text-align: center; color: var(--accent); font-size: 12px; }
.pc-card__brands { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }

.brand-logo {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}
.brand-logo img { height: 15px; width: auto; max-width: 84px; object-fit: contain; }
/* AMD Ryzen / AMD Radeon are two-line logos, so they need more height to read the same size */
.brand-logo img[src$="ryzen.png"], .brand-logo img[src$="radeon.png"] { height: 21px; }
.product__brands .brand-logo { height: 40px; padding: 0 14px; }
.product__brands .brand-logo img { height: 20px; max-width: 120px; }
.product__brands .brand-logo img[src$="ryzen.png"], .product__brands .brand-logo img[src$="radeon.png"] { height: 28px; }
.pc-card__foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pc-card__price { display: flex; align-items: baseline; gap: 4px; }
.pc-card__amount { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--text); }
.pc-card__currency { font-size: 13px; color: var(--muted); }
.pc-card__stock {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.pc-card__stock .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.pc-card__stock.is-hot { color: var(--ok); font-weight: 600; }
.pc-card__stock.is-hot .dot { background: var(--ok); }

.pc-card.is-hidden { display: none; }
.pc-card.is-entering { animation: card-in 0.35s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Filters ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.filters button:hover { color: var(--accent); border-color: var(--border-hi); }
.filters button[aria-pressed="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
.filters__count { margin-top: 12px; font-size: 13px; color: var(--muted); }

.empty {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ---------- Custom build CTA ---------- */

.cta {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 32px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: calc(var(--radius) + 4px);
  background: var(--accent-soft);
  border: 1px solid var(--border-hi);
}
.cta__title { margin-top: 8px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta__text { margin-top: 14px; color: var(--text-2); max-width: 540px; }
.cta__actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta__price { font-size: 14px; color: var(--muted); }
.cta__price strong { color: var(--text); }
.cta__media img { width: 100%; max-width: 360px; margin-inline: auto; filter: drop-shadow(0 20px 24px rgba(15, 35, 65, 0.2)); }

@media (max-width: 860px) {
  .cta { grid-template-columns: 1fr; text-align: center; }
  .cta__text { margin-inline: auto; }
  .cta__actions { justify-content: center; }
  .cta__media { order: -1; }
  .cta__media img { max-width: 220px; }
}

/* ---------- Services ---------- */

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 22px; }
.service {
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-hi); }
.icon-circle {
  width: 60px; height: 60px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 22px;
  color: var(--accent);
  background: var(--accent-soft);
  flex-shrink: 0;
}
.service h3 { margin-top: 18px; font-size: 19px; }
.service p { margin-top: 10px; color: var(--text-2); font-size: 15px; }

/* ---------- About ---------- */

.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.about__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-hi); }
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__text .section__title { margin-bottom: 20px; }
.about__text p { color: var(--text-2); }
.about__text p + p { margin-top: 14px; }
.about__lead { font-size: 1.12rem; font-weight: 600; color: var(--text) !important; }
.about__list { margin-top: 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.about__list li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
}
.about__list i { color: var(--accent); width: 18px; text-align: center; }
.about__list span { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 400px; margin-inline: auto; }
}

/* ---------- Contact ---------- */

.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.contact__item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.contact__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hi); color: var(--text); }
.contact__item h3 { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact__item p { margin-top: 2px; font-size: 16px; font-weight: 600; word-break: break-word; }

/* ---------- Footer ---------- */

.footer { padding-block: 44px calc(32px + env(safe-area-inset-bottom, 0px)); background: var(--bg-alt); border-top: 1px solid var(--border); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer__brand img { height: 16px; width: auto; }
.footer__brand p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.footer__copy { margin-top: 28px; font-size: 13px; color: var(--muted); }

/* ==========================================================================
   Inner pages (computer.html, buy/)
   ========================================================================== */

.page { padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); }
.page__main { padding-block: 28px 72px; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb i { font-size: 10px; }
.breadcrumb span { color: var(--text-2); }

/* ---------- Product detail ---------- */

.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.product__media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.product__media img { width: 100%; height: 100%; object-fit: contain; }
.product__media .pc-card__badge { top: 16px; left: 16px; font-size: 11px; }

.product__title { margin-top: 8px; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--text); overflow-wrap: anywhere; }
.product__subtitle { margin-top: 4px; color: var(--muted); }
.product__brands { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }

.buybox {
  margin-top: 22px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}
.buybox__price { display: flex; align-items: baseline; gap: 6px; }
.buybox__amount { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; color: var(--text); line-height: 1; }
.buybox__currency { font-size: 16px; color: var(--muted); font-weight: 600; }
.stock-pill {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
}
.stock-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock-pill.is-hot { color: var(--ok); background: var(--ok-soft); }
.stock-pill.is-sold { color: var(--danger); background: #fbeceb; }
.buybox__actions { margin-top: 18px; display: grid; gap: 10px; }
.buybox__contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buybox__note { margin-top: 12px; font-size: 13px; color: var(--muted); }

.perks { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.perks li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  text-align: center;
  line-height: 1.3;
}
.perks i { color: var(--accent); font-size: 18px; }

.specs { margin-top: 48px; }
.specs__title { font-size: 1.4rem; margin-bottom: 16px; }
.specs__table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.specs__table tr:nth-child(odd) { background: var(--bg-alt); }
.specs__table th, .specs__table td { padding: 14px 18px; text-align: left; vertical-align: middle; font-size: 15px; }
.specs__table th { width: 34%; font-weight: 600; color: var(--muted); white-space: nowrap; }
.specs__table th i { width: 20px; margin-right: 10px; color: var(--accent); text-align: center; }
.specs__table td { font-weight: 600; color: var(--text); }

.product__meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--muted); }
.product__meta strong { color: var(--text-2); font-weight: 600; }
.share { display: inline-flex; align-items: center; gap: 12px; }
.share a { color: var(--muted); font-size: 16px; }
.share a:hover { color: var(--accent); }

.related { margin-top: 64px; }
.related h2 { font-size: 1.4rem; margin-bottom: 20px; }

.notfound { padding: 80px 20px; text-align: center; }
.notfound h1 { font-size: 1.8rem; }
.notfound p { margin: 12px 0 24px; color: var(--muted); }

@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  .product__media { max-width: 520px; width: 100%; margin-inline: auto; }
  .specs__table th { width: auto; white-space: normal; }
  .specs__table th, .specs__table td { display: block; padding: 4px 16px; }
  .specs__table th { padding-top: 14px; }
  .specs__table td { padding-bottom: 14px; }
}

/* ---------- Order / checkout ---------- */

.checkout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.panel {
  padding: clamp(20px, 4vw, 32px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}
.panel__title { font-size: 1.5rem; }
.panel__lead { margin-top: 6px; color: var(--muted); font-size: 15px; }

.form { margin-top: 22px; display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__group { display: grid; gap: 6px; }
.form__group label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.form__group label .req { color: var(--hot); }
.form__group label .opt { font-weight: 400; color: var(--muted); }
.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #cfd8e3;
  background: #fff;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(5, 99, 187, 0.15); }
.input::placeholder { color: #9aa7b6; }
.input:user-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12); }
textarea.input { min-height: 110px; resize: vertical; }
.input[readonly] { background: var(--bg-alt); color: var(--text-2); }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #cfd8e3;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-2);
  transition: border-color 0.2s, background 0.2s;
}
.choice label i { color: var(--accent); font-size: 18px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.choice label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.form__submit { margin-top: 6px; }
.form__fine { font-size: 13px; color: var(--muted); text-align: center; }
.form__error { padding: 12px 14px; border-radius: var(--radius-sm); background: #fbeceb; color: var(--danger); font-size: 14px; }

.summary__media { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 14px; border-radius: var(--radius-sm); background: var(--bg-alt); }
.summary__media img { width: 100%; height: 100%; object-fit: contain; }
.summary__title { margin-top: 16px; font-size: 1.2rem; color: var(--text); overflow-wrap: anywhere; }
.summary__list { margin-top: 14px; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); }
.summary__list li { display: flex; gap: 10px; align-items: baseline; }
.summary__list i { width: 16px; color: var(--accent); text-align: center; font-size: 13px; }
.summary__total { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; color: var(--text-2); }
.summary__total strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--text); }
.summary__row { margin-top: 8px; display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.summary__row span:last-child { color: var(--ok); font-weight: 600; }

.success { text-align: center; padding: 20px 0; }
.success .icon-circle { width: 72px; height: 72px; font-size: 30px; color: var(--ok); background: var(--ok-soft); }
.success h2 { margin-top: 18px; }
.success p { margin-top: 10px; color: var(--text-2); }
.success .btn { margin-top: 24px; }

@media (max-width: 860px) {
  .checkout { grid-template-columns: 1fr; }
  .checkout__summary { order: -1; }
}
@media (max-width: 520px) {
  .form__row, .choice { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr 1fr 1fr; }
  .buybox__contact { grid-template-columns: 1fr; }
}

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

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
