/* =====================================================================
   Programna — design system for the public site
   Brand palette: ink navy + amber (the gear) + teal
   ===================================================================== */

/* ------------------------------- tokens ------------------------------- */
:root {
  /* brand */
  --ink-900: #0b1220;
  --ink-800: #101a2e;
  --ink-700: #16233d;
  --ink-600: #1f3054;
  --ink-500: #2c3f68;

  --amber-600: #d98511;
  --amber-500: #f5a524;
  --amber-400: #ffb84d;
  --amber-100: #fdf1dd;

  --teal-600: #0e8c7e;
  --teal-500: #12a594;
  --teal-100: #dff5f1;

  /* product types */
  --cc: #3b82f6;         /* CodeCanyon */
  --cc-soft: #e8f0fe;
  --tf: #6aa338;         /* ThemeForest */
  --tf-soft: #eaf5e0;
  --ex: #f5a524;         /* exclusive */
  --ex-soft: #fdf1dd;

  /* neutrals */
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f1f4fa;
  --border: #e3e8f2;
  --border-strong: #cfd8e8;
  --text: #16233d;
  --text-soft: #55617a;
  --text-mute: #8a93a8;

  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --info: #2563eb;

  /* shape & type */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(16, 26, 46, .06), 0 1px 3px rgba(16, 26, 46, .05);
  --shadow: 0 6px 16px -6px rgba(16, 26, 46, .12), 0 2px 6px -2px rgba(16, 26, 46, .06);
  --shadow-lg: 0 24px 48px -20px rgba(16, 26, 46, .28), 0 8px 20px -12px rgba(16, 26, 46, .14);

  --container: 1180px;
  --header-h: 74px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-en: var(--font);
}

[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #121c30;
  --surface-2: #182541;
  --border: #22304d;
  --border-strong: #30405f;
  --text: #eaf0fb;
  --text-soft: #a9b5cd;
  --text-mute: #7c8aa5;
  --cc-soft: #16294a;
  --tf-soft: #1c2e1c;
  --ex-soft: #33260f;
  --amber-100: #33260f;
  --teal-100: #0d2b2a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 6px 16px -6px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 48px -20px rgba(0, 0, 0, .7);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.35; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

::selection { background: var(--amber-500); color: #fff; }

:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 2px;
  border-radius: 4px;
}

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

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

/* ------------------------------- logo ------------------------------- */
.logo {
  display: inline-flex; align-items: center; gap: 0;
  font-weight: 900; font-size: 1.4rem; letter-spacing: -.02em;
  color: var(--ink-800); font-family: var(--font-en);
  white-space: nowrap;
}
[data-theme="dark"] .logo { color: #fff; }
.logo .gear { width: 1.18em; height: 1.18em; margin-inline: -.06em; animation: spin 14s linear infinite; }
.logo .gear path, .logo .gear circle { fill: var(--amber-500); }
.logo img { height: 40px; width: auto; }
.logo--light { color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .logo .gear { animation: none; } }

/* ------------------------------- buttons ------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.35rem; border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; line-height: 1.2; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary { background: var(--ink-800); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--ink-700); }
.btn-amber { background: var(--amber-500); color: #16233d; box-shadow: 0 8px 20px -10px var(--amber-500); }
.btn-amber:hover { background: var(--amber-400); }
.btn-teal { background: var(--teal-500); color: #fff; }
.btn-teal:hover { background: var(--teal-600); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--ink-700); background: var(--surface-2); }
.btn-light { background: #fff; color: var(--ink-800); }
.btn-light:hover { background: #f2f5fa; }
.btn-outline-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: .48rem .9rem; font-size: .85rem; }
.btn-lg { padding: .95rem 1.9rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ------------------------------- badges ------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .7rem; border-radius: 999px;
  font-size: .78rem; font-weight: 700; line-height: 1.7;
}
.badge svg { width: 14px; height: 14px; }
.badge-cc { background: var(--cc-soft); color: var(--cc); }
.badge-tf { background: var(--tf-soft); color: var(--tf); }
.badge-ex { background: var(--ex-soft); color: var(--amber-600); }
.badge-muted { background: var(--surface-2); color: var(--text-soft); }
.badge-featured { background: var(--ink-800); color: var(--amber-400); }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-warn { background: #fef3c7; color: #b45309; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-info { background: #dbeafe; color: #1d4ed8; }

/* ------------------------------- header ------------------------------- */
.topbar {
  background: var(--ink-900); color: #cbd5e5;
  font-size: .84rem; padding: .45rem 0;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar a { color: #cbd5e5; display: inline-flex; align-items: center; gap: .35rem; }
.topbar a:hover { color: var(--amber-400); }
.topbar-links { display: flex; gap: 1.2rem; align-items: center; }
.topbar svg { width: 15px; height: 15px; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  height: var(--header-h);
  display: flex; align-items: center; gap: 1.5rem;
}
.main-nav { display: flex; align-items: center; gap: .3rem; margin-inline-start: auto; }
.main-nav a {
  padding: .55rem .85rem; border-radius: var(--r-sm);
  font-weight: 600; font-size: .95rem; color: var(--text-soft);
  transition: color .18s, background .18s;
}
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a.active { color: var(--ink-800); background: var(--surface-2); }
[data-theme="dark"] .main-nav a.active { color: #fff; }

.header-actions { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text-soft); transition: .18s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn.support-icon { color: var(--teal-600); border-color: color-mix(in srgb, var(--teal-500) 35%, var(--border)); }
.icon-btn.support-icon:hover { background: var(--teal-100); color: var(--teal-600); }

.lang-switch {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: 0 .75rem; height: 40px; border-radius: var(--r-sm);
  border: 1px solid var(--border); font-weight: 700; font-size: .85rem; color: var(--text-soft);
}
.lang-switch:hover { border-color: var(--border-strong); color: var(--text); }

.nav-toggle { display: none; }

/* mobile menu */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 90;
  background: var(--surface); padding: 1.25rem 20px;
  overflow-y: auto;
}
.mobile-nav.open { display: block; animation: fade .2s ease; }
.mobile-nav .mn-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.mobile-nav a.mn-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: .95rem .25rem; font-size: 1.1rem; font-weight: 700;
  border-bottom: 1px solid var(--border);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------- sections ------------------------------- */
.section { padding: 5rem 0; }
.section-sm { padding: 3.25rem 0; }
.section-alt { background: var(--surface); }

.section-head { max-width: 680px; margin-bottom: 2.75rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--amber-600); font-weight: 800; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: .6rem;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--amber-500); border-radius: 2px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: .65rem; }
.section-head p { color: var(--text-soft); font-size: 1.05rem; margin: 0; }

.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ------------------------------- hero ------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--ink-900) 0%, var(--ink-700) 45%, var(--ink-600) 100%);
  color: #fff; padding: 5.5rem 0 6.5rem;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(760px 420px at 82% 8%, rgba(245, 165, 36, .22), transparent 62%),
    radial-gradient(620px 420px at 8% 92%, rgba(18, 165, 148, .20), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%);
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  padding: .4rem .95rem; border-radius: 999px; font-size: .85rem; font-weight: 700;
  color: var(--amber-400); margin-bottom: 1.4rem; backdrop-filter: blur(6px);
}
.hero-badge svg { width: 16px; height: 16px; }
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.35rem); line-height: 1.25;
  margin-bottom: 1.1rem; letter-spacing: -.02em;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--amber-400), var(--amber-500) 55%, var(--teal-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 1.12rem; color: #c6d0e4; max-width: 46ch; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero-stats { display: flex; gap: 2.4rem; flex-wrap: wrap; }
.hero-stats .num {
  font-size: 1.85rem; font-weight: 900; color: #fff;
  font-family: var(--font-en); line-height: 1.1;
}
.hero-stats .num span { color: var(--amber-400); }
.hero-stats .lbl { font-size: .85rem; color: #9fb0cb; }

/* hero side panel */
.hero-panel {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-xl); padding: 1.6rem; backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}
.hero-panel h3 { font-size: 1.05rem; margin-bottom: 1.1rem; color: #fff; display: flex; align-items: center; gap: .5rem; }
.hero-panel h3 svg { width: 20px; height: 20px; color: var(--amber-400); }
.channel {
  display: flex; align-items: center; gap: .9rem; padding: .95rem;
  border-radius: var(--r); background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08); margin-bottom: .7rem;
  transition: .2s;
}
.channel:hover { background: rgba(255,255,255,.1); }
.channel:hover { transform: translateX(4px); }
.channel .ch-icon {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center; font-weight: 900; font-size: .95rem;
}
.channel .ch-icon svg { width: 22px; height: 22px; }
.ch-cc { background: rgba(59,130,246,.18); color: #93c5fd; }
.ch-tf { background: rgba(106,163,56,.18); color: #a7d98a; }
.ch-ex { background: rgba(245,165,36,.18); color: var(--amber-400); }
.channel .ch-title { display: block; font-weight: 800; font-size: .95rem; color: #fff; }
.channel .ch-desc { display: block; font-size: .8rem; color: #9fb0cb; line-height: 1.5; }
.channel .ch-count { margin-inline-start: auto; font-weight: 800; color: var(--amber-400); font-family: var(--font-en); }

/* ------------------------------- trust strip ------------------------------- */
.trust-strip { background: var(--surface); border-block: 1px solid var(--border); padding: 1.5rem 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.trust-item { display: flex; align-items: center; gap: .8rem; }
.trust-item .ti-icon {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: var(--amber-100); color: var(--amber-600);
}
.trust-item .ti-icon svg { width: 22px; height: 22px; }
.trust-item strong { display: block; font-size: .95rem; }
.trust-item span { font-size: .82rem; color: var(--text-soft); }

/* ------------------------------- product card ------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

.pc-media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .pc-media img { transform: scale(1.05); }
.pc-media .placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ink-700), var(--ink-500));
  color: rgba(255,255,255,.35);
}
.pc-media .placeholder svg { width: 54px; height: 54px; }
.pc-badges { position: absolute; top: .8rem; inset-inline-start: .8rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.pc-price-tag {
  position: absolute; bottom: .8rem; inset-inline-end: .8rem;
  background: rgba(11,18,32,.86); color: #fff; backdrop-filter: blur(6px);
  padding: .3rem .75rem; border-radius: 999px; font-weight: 800; font-size: .9rem;
  font-family: var(--font-en);
}
.pc-price-tag del { color: #9fb0cb; font-weight: 500; font-size: .78rem; margin-inline-end: .3rem; }

.pc-body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.pc-cat { font-size: .78rem; color: var(--text-mute); font-weight: 700; margin-bottom: .35rem; }
.pc-title { font-size: 1.08rem; font-weight: 800; margin-bottom: .45rem; }
.pc-title a:hover { color: var(--amber-600); }
.pc-excerpt { font-size: .88rem; color: var(--text-soft); line-height: 1.65; margin-bottom: 1rem; flex: 1; }
.pc-meta {
  display: flex; align-items: center; gap: .9rem; font-size: .78rem;
  color: var(--text-mute); padding-top: .85rem; border-top: 1px solid var(--border);
  margin-bottom: .9rem;
}
.pc-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.pc-meta svg { width: 14px; height: 14px; }
.pc-actions { display: flex; gap: .5rem; }
.pc-actions .btn { flex: 1; }

.stars { display: inline-flex; gap: 1px; color: var(--amber-500); }
.stars svg { width: 13px; height: 13px; }
.stars .off { color: var(--border-strong); }

/* ------------------------------- type cards ------------------------------- */
.type-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.type-card {
  position: relative; padding: 2rem 1.75rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  transition: .25s;
}
.type-card::before {
  content: ''; position: absolute; top: 0; inset-inline-start: 0; width: 100%; height: 4px;
  background: var(--tc-color, var(--amber-500));
}
.type-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.type-card .tc-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--tc-soft, var(--amber-100)); color: var(--tc-color, var(--amber-600));
  margin-bottom: 1.15rem;
}
.type-card .tc-icon svg { width: 28px; height: 28px; }
.type-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.type-card p { font-size: .92rem; color: var(--text-soft); margin-bottom: 1.2rem; }
.type-card .tc-count {
  position: absolute; top: 1.5rem; inset-inline-end: 1.5rem;
  font-size: 2.6rem; font-weight: 900; color: var(--tc-color, var(--amber-500));
  opacity: .13; font-family: var(--font-en); line-height: 1;
}
.type-card .tc-link { font-weight: 800; color: var(--tc-color, var(--amber-600)); display: inline-flex; align-items: center; gap: .35rem; font-size: .92rem; }
.type-card .tc-link svg { width: 16px; height: 16px; transition: transform .2s; }

.type-card:hover .tc-link svg { transform: translateX(4px); }

/* ------------------------------- services ------------------------------- */
.service-card {
  padding: 1.85rem 1.6rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); transition: .22s;
  height: 100%;
}
.service-card:hover { border-color: var(--amber-500); transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card .sc-icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ink-800), var(--ink-600)); color: var(--amber-400);
  margin-bottom: 1.1rem;
}
.service-card .sc-icon svg { width: 25px; height: 25px; }
.service-card h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.service-card p { font-size: .9rem; color: var(--text-soft); margin: 0; }

/* ------------------------------- filters ------------------------------- */
.filter-bar {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.15rem; margin-bottom: 2rem;
  display: flex; gap: .8rem; align-items: center; flex-wrap: wrap;
}
.search-box { position: relative; flex: 1; min-width: 220px; }
.search-box input {
  width: 100%; padding: .7rem 1rem .7rem 2.6rem; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; font-size: .93rem;
}
.search-box svg {
  position: absolute; inset-inline-start: .85rem; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-mute); pointer-events: none;
}
.search-box input:focus { outline: none; border-color: var(--amber-500); box-shadow: 0 0 0 3px var(--amber-100); }

.select {
  padding: .7rem 1rem; border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit; font-size: .9rem; font-weight: 600;
  min-width: 140px;
}

.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip {
  padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); font-size: .87rem; font-weight: 700; color: var(--text-soft);
  transition: .18s; display: inline-flex; align-items: center; gap: .4rem;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.active { background: var(--ink-800); border-color: var(--ink-800); color: #fff; }
.chip .cnt { font-size: .75rem; opacity: .65; font-family: var(--font-en); }

/* ------------------------------- product page ------------------------------- */
.breadcrumb {
  display: flex; gap: .5rem; align-items: center; font-size: .85rem;
  color: var(--text-mute); margin-bottom: 1.5rem; flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--amber-600); }
.breadcrumb svg { width: 14px; height: 14px; opacity: .6; }

.product-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2.5rem; align-items: start; }

.gallery-main {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border);
  background: var(--surface-2); aspect-ratio: 16/9; margin-bottom: .8rem;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .55rem; flex-wrap: wrap; }
.gallery-thumbs button {
  width: 84px; aspect-ratio: 16/10; border-radius: var(--r-sm); overflow: hidden;
  border: 2px solid var(--border); background: none; padding: 0; transition: .18s;
}
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--amber-500); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--border); margin: 2.5rem 0 1.5rem; overflow-x: auto; }
.tabs button {
  padding: .8rem 1.15rem; background: none; border: 0; border-bottom: 3px solid transparent;
  font-weight: 700; color: var(--text-soft); font-size: .95rem; white-space: nowrap;
}
.tabs button.active { color: var(--text); border-bottom-color: var(--amber-500); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .25s ease; }

.prose { color: var(--text-soft); line-height: 1.9; }
.prose h2 { font-size: 1.4rem; color: var(--text); margin: 2rem 0 .8rem; }
.prose h3 { font-size: 1.15rem; color: var(--text); margin: 1.6rem 0 .6rem; }
.prose ul { list-style: none; margin: 1rem 0; }
.prose ul li { position: relative; padding-inline-start: 1.6rem; margin-bottom: .6rem; }
.prose ul li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: .72em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--amber-500);
}
.prose a { color: var(--info); text-decoration: underline; }
.prose img { border-radius: var(--r); margin: 1.2rem 0; }
.prose code {
  background: var(--surface-2); padding: .15em .45em; border-radius: 5px;
  font-size: .9em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.prose pre { background: var(--ink-900); color: #e6edf7; padding: 1.1rem; border-radius: var(--r); overflow-x: auto; }
.prose blockquote {
  border-inline-start: 4px solid var(--amber-500); background: var(--surface-2);
  padding: 1rem 1.25rem; border-radius: var(--r-sm); margin: 1.2rem 0;
}

.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; }
.feature-list li {
  display: flex; gap: .65rem; align-items: flex-start;
  font-size: .93rem; color: var(--text-soft);
}
.feature-list svg { width: 20px; height: 20px; color: var(--teal-500); flex: none; margin-top: .2rem; }

/* buy card */
.buy-card {
  position: sticky; top: calc(var(--header-h) + 20px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow);
}
.buy-head { padding: 1.5rem 1.5rem 1.25rem; border-bottom: 1px solid var(--border); }
.buy-price { display: flex; align-items: baseline; gap: .6rem; font-family: var(--font-en); }
.buy-price .now { font-size: 2.3rem; font-weight: 900; color: var(--text); line-height: 1; }
.buy-price del { color: var(--text-mute); font-size: 1.1rem; }
.buy-price .save { background: #fee2e2; color: #b91c1c; font-size: .75rem; font-weight: 800; padding: .2rem .5rem; border-radius: 6px; }
.buy-body { padding: 1.25rem 1.5rem 1.5rem; }
.buy-body .btn { margin-bottom: .6rem; }

.spec-list { margin-top: 1.25rem; }
.spec-list li {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: .6rem 0; border-bottom: 1px dashed var(--border); font-size: .88rem;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list .k { color: var(--text-mute); display: inline-flex; align-items: center; gap: .4rem; }
.spec-list .k svg { width: 15px; height: 15px; }
.spec-list .v { font-weight: 700; }

.notice {
  display: flex; gap: .7rem; padding: .9rem 1rem; border-radius: var(--r-sm);
  font-size: .85rem; line-height: 1.6; margin-top: 1rem;
}
.notice svg { width: 18px; height: 18px; flex: none; margin-top: .15rem; }
.notice-info { background: var(--cc-soft); color: var(--cc); }
.notice-teal { background: var(--teal-100); color: var(--teal-600); }
.notice-amber { background: var(--amber-100); color: var(--amber-600); }
.notice-danger { background: #fee2e2; color: #b91c1c; }
.notice-success { background: #dcfce7; color: #15803d; }

/* ------------------------------- forms ------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .88rem; }
.field label .req { color: var(--danger); }
.field .hint { font-size: .78rem; color: var(--text-mute); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="url"], .field input[type="number"], .field input[type="password"],
.field input[type="date"], .field select, .field textarea {
  width: 100%; padding: .72rem .95rem; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; font-size: .93rem; transition: .18s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber-500); box-shadow: 0 0 0 3px var(--amber-100);
}
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--amber-500); flex: none; }

.radio-cards { display: grid; gap: .7rem; }
.radio-card {
  display: flex; gap: .8rem; align-items: flex-start; padding: 1rem;
  border: 1px solid var(--border); border-radius: var(--r); cursor: pointer; transition: .18s;
  background: var(--surface);
}
.radio-card:hover { border-color: var(--border-strong); }
.radio-card input { accent-color: var(--amber-500); width: 18px; height: 18px; margin-top: .2rem; flex: none; }
.radio-card:has(input:checked) { border-color: var(--amber-500); background: var(--amber-100); }
.radio-card strong { display: block; font-size: .95rem; }
.radio-card span { font-size: .82rem; color: var(--text-soft); }

.alert {
  padding: .9rem 1.15rem; border-radius: var(--r-sm); font-size: .9rem;
  margin-bottom: 1.25rem; display: flex; gap: .6rem; align-items: flex-start;
}
.alert svg { width: 19px; height: 19px; flex: none; margin-top: .1rem; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce7; color: #14532d; }
.alert-info { background: #dbeafe; color: #1e3a8a; }
.alert ul { margin: 0; padding-inline-start: 1.1rem; list-style: disc; }

/* ------------------------------- order summary ------------------------------- */
.summary-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.5rem; position: sticky; top: calc(var(--header-h) + 20px);
}
.summary-row { display: flex; justify-content: space-between; padding: .5rem 0; font-size: .92rem; }
.summary-row.total {
  border-top: 2px solid var(--border); margin-top: .6rem; padding-top: .9rem;
  font-size: 1.15rem; font-weight: 900;
}
.summary-product { display: flex; gap: .85rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--border); margin-bottom: .9rem; }
.summary-product img { width: 72px; height: 54px; object-fit: cover; border-radius: var(--r-sm); flex: none; }

/* ------------------------------- pagination ------------------------------- */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface);
  font-weight: 700; font-size: .9rem; padding-inline: .6rem;
}
.pagination a:hover { border-color: var(--ink-700); }
.pagination .current { background: var(--ink-800); border-color: var(--ink-800); color: #fff; }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ------------------------------- empty state ------------------------------- */
.empty { text-align: center; padding: 4rem 1rem; }
.empty svg { width: 68px; height: 68px; color: var(--border-strong); margin: 0 auto 1.2rem; }
.empty h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.empty p { color: var(--text-soft); }

/* ------------------------------- CTA ------------------------------- */
.cta {
  background: linear-gradient(135deg, var(--ink-800), var(--ink-600));
  border-radius: var(--r-xl); padding: 3.25rem 2.5rem; color: #fff;
  position: relative; overflow: hidden; text-align: center;
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(560px 300px at 78% 12%, rgba(245,165,36,.28), transparent 60%);
}
.cta > * { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .7rem; }
.cta p { color: #c6d0e4; max-width: 55ch; margin: 0 auto 1.8rem; }
.cta-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ------------------------------- support ------------------------------- */
.support-fab {
  position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 70;
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--teal-500); color: #fff; padding: .8rem 1.25rem;
  border-radius: 999px; font-weight: 800; font-size: .92rem;
  box-shadow: 0 14px 30px -10px rgba(18,165,148,.65);
  transition: transform .2s, box-shadow .2s;
}
.support-fab:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -10px rgba(18,165,148,.75); }
.support-fab svg { width: 20px; height: 20px; }
.support-fab .pulse {
  width: 9px; height: 9px; border-radius: 50%; background: #7ef0dc;
  box-shadow: 0 0 0 0 rgba(126,240,220,.8); animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 12px rgba(126,240,220,0); }
  100% { box-shadow: 0 0 0 0 rgba(126,240,220,0); }
}
@media (prefers-reduced-motion: reduce) { .support-fab .pulse { animation: none; } }

.support-banner {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
  color: #fff; border-radius: var(--r-xl); padding: 2rem 2.25rem;
}
.support-banner .sb-icon {
  width: 66px; height: 66px; border-radius: 20px; background: rgba(255,255,255,.16);
  display: grid; place-items: center;
}
.support-banner .sb-icon svg { width: 33px; height: 33px; }
.support-banner h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.support-banner p { color: rgba(255,255,255,.86); margin: 0; font-size: .93rem; }

/* ------------------------------- blog ------------------------------- */
.post-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; transition: .22s; height: 100%; display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post-card .pcov { aspect-ratio: 16/9; background: var(--surface-2); overflow: hidden; }
.post-card .pcov img { width: 100%; height: 100%; object-fit: cover; }
.post-card .pbody { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.post-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.post-card p { font-size: .88rem; color: var(--text-soft); flex: 1; }
.post-card .pmeta { font-size: .78rem; color: var(--text-mute); display: flex; gap: .8rem; }

/* ------------------------------- footer ------------------------------- */
.site-footer { background: var(--ink-900); color: #a9b7cd; padding: 4rem 0 0; margin-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.site-footer a { color: #a9b7cd; font-size: .9rem; }
.site-footer a:hover { color: var(--amber-400); }
.site-footer li { margin-bottom: .6rem; }
.site-footer p { font-size: .9rem; line-height: 1.8; }

.footer-brand .logo { color: #fff; margin-bottom: 1rem; }
.social { display: flex; gap: .55rem; margin-top: 1.2rem; }
.social a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.07); transition: .18s;
}
.social a:hover { background: var(--amber-500); color: var(--ink-900); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; }

.newsletter-form { display: flex; gap: .5rem; margin-top: 1rem; }
.newsletter-form input {
  flex: 1; padding: .68rem .9rem; border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06);
  color: #fff; font: inherit; font-size: .88rem;
}
.newsletter-form input::placeholder { color: #7c8aa5; }
.newsletter-form input:focus { outline: none; border-color: var(--amber-500); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 1.4rem 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  flex-wrap: wrap; font-size: .85rem;
}
.disclosure {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-sm); padding: .75rem 1rem; font-size: .8rem;
  color: #8f9db4; margin-bottom: 1.5rem; display: flex; gap: .6rem; align-items: flex-start;
}
.disclosure svg { width: 16px; height: 16px; flex: none; margin-top: .15rem; color: var(--amber-500); }

/* ------------------------------- utility pages ------------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--ink-800), var(--ink-600));
  color: #fff; padding: 3.5rem 0; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(520px 260px at 85% 20%, rgba(245,165,36,.22), transparent 60%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: .5rem; }
.page-hero p { color: #c6d0e4; margin: 0; max-width: 60ch; }

.state-page { text-align: center; padding: 6rem 1rem; }
.state-page .code { font-size: 6rem; font-weight: 900; color: var(--amber-500); line-height: 1; font-family: var(--font-en); }
.state-page h1 { font-size: 1.6rem; margin: 1rem 0 .6rem; }
.state-page p { color: var(--text-soft); margin-bottom: 2rem; }

.info-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.5rem;
}
.info-box h3 { font-size: 1.05rem; margin-bottom: .9rem; display: flex; align-items: center; gap: .5rem; }
.info-box h3 svg { width: 19px; height: 19px; color: var(--amber-600); }
.info-box pre {
  background: var(--surface-2); padding: 1rem; border-radius: var(--r-sm);
  font-family: inherit; font-size: .88rem; white-space: pre-wrap; margin: 0; line-height: 1.9;
}

.copy-field {
  display: flex; gap: .5rem; align-items: center; background: var(--surface-2);
  border: 1px dashed var(--border-strong); border-radius: var(--r-sm); padding: .6rem .85rem;
  font-family: ui-monospace, Menlo, monospace; font-size: .92rem; word-break: break-all;
}
.copy-field button { background: none; border: 0; color: var(--text-mute); padding: .2rem; }
.copy-field button:hover { color: var(--amber-600); }
.copy-field svg { width: 17px; height: 17px; }

.accordion { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.accordion + .accordion { margin-top: .7rem; }
.accordion summary {
  padding: 1.1rem 1.3rem; font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .98rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 1.4rem; color: var(--amber-500); font-weight: 400; }
.accordion[open] summary::after { content: '−'; }
.accordion .acc-body { padding: 0 1.3rem 1.3rem; color: var(--text-soft); font-size: .93rem; line-height: 1.85; }

.timeline { position: relative; padding-inline-start: 2rem; }
.timeline::before {
  content: ''; position: absolute; inset-inline-start: 7px; top: 6px; bottom: 6px;
  width: 2px; background: var(--border);
}
.timeline li { position: relative; padding-bottom: 1.6rem; }
.timeline li::before {
  content: ''; position: absolute; inset-inline-start: -2rem; top: .45em;
  width: 16px; height: 16px; border-radius: 50%; background: var(--surface);
  border: 3px solid var(--amber-500);
}
.timeline strong { display: block; margin-bottom: .2rem; }
.timeline span { font-size: .88rem; color: var(--text-soft); }

/* ------------------------------- responsive ------------------------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .product-layout { grid-template-columns: 1fr; }
  .buy-card, .summary-card { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  /* `.hide-sm` is a utility class — !important so it beats rules like `.topbar a` */
  .main-nav { display: none; }
  .hide-sm { display: none !important; }
  .nav-toggle { display: inline-flex; }
  .site-header .container { gap: .6rem; }
  .header-actions { gap: .35rem; margin-inline-start: auto; }
  .icon-btn, .lang-switch { width: 38px; height: 38px; }
  .lang-switch { width: auto; padding: 0 .6rem; }
  .grid-3, .grid-2, .type-cards { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .hero { padding: 3.5rem 0 4rem; }
  .form-grid, .feature-list { grid-template-columns: 1fr; }
  .support-banner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .cta { padding: 2.5rem 1.5rem; }
  .checkout-layout { grid-template-columns: 1fr !important; }
}

@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .support-fab span.txt { display: none; }
  .support-fab { padding: .9rem; }
}

@media print {
  .site-header, .site-footer, .support-fab, .topbar, .no-print { display: none !important; }
}
