/* ═══════════════════════════════════════════════════════════════
   NORVAS SITES — one adaptive design system for every user site.
   Theme tokens (--p, --a, --r, --font-h, --font-b …) are injected per
   site; light / dark / auto mood is set with <html data-theme>.
═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #ffffff;
  --bg-2: #f6f7f9;
  --card: #ffffff;
  --text: #1a1d23;
  --muted: #646b78;
  --line: #e7e9ee;
  --overlay: rgba(10, 12, 18, .55);
  --shadow: 0 1px 2px rgba(16, 20, 30, .04), 0 8px 24px -10px rgba(16, 20, 30, .14);
  --shadow-lg: 0 30px 60px -24px rgba(16, 20, 30, .28);
  --p-soft: color-mix(in srgb, var(--p) 10%, var(--bg));
  --a-soft: color-mix(in srgb, var(--a) 14%, var(--bg));
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0e1015; --bg-2: #151820; --card: #181b24; --text: #eef0f4; --muted: #9aa1ae; --line: #262a35;
  --overlay: rgba(0, 0, 0, .7);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 60px -24px rgba(0,0,0,.8);
  --p-soft: color-mix(in srgb, var(--p) 18%, var(--bg));
  --a-soft: color-mix(in srgb, var(--a) 18%, var(--bg));
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #0e1015; --bg-2: #151820; --card: #181b24; --text: #eef0f4; --muted: #9aa1ae; --line: #262a35;
    --overlay: rgba(0, 0, 0, .7);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 30px 60px -24px rgba(0,0,0,.8);
    --p-soft: color-mix(in srgb, var(--p) 18%, var(--bg));
    --a-soft: color-mix(in srgb, var(--a) 18%, var(--bg));
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--font-b); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-h); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; color: var(--text); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--p); color: var(--p-ink); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--p) 55%, transparent); outline-offset: 2px; }

.s-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.s-skip { position: absolute; left: -999px; top: 8px; background: var(--p); color: var(--p-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.s-skip:focus { left: 8px; }
.s-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ─── Buttons ─── */
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 22px; border-radius: var(--r-btn); border: 1.5px solid transparent; font-weight: 600; font-size: .95rem; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s; white-space: nowrap; line-height: 1.2; }
.s-btn--primary { background: var(--p); color: var(--p-ink); box-shadow: 0 10px 24px -12px var(--p); }
.s-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px var(--p); }
.s-btn--accent { background: var(--a); color: var(--a-ink); }
.s-btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.s-btn--ghost:hover { border-color: var(--p); color: var(--p); }
.s-btn--lg { padding: 15px 28px; font-size: 1rem; }
.s-btn--sm { padding: 8px 14px; font-size: .85rem; }
.s-btn--block { width: 100%; }
.s-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none; }
.s-icon-btn { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; position: relative; transition: border-color .2s, color .2s; }
.s-icon-btn:hover { border-color: var(--p); color: var(--p); }
.s-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--a); color: var(--a-ink); font-size: .7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px; border: 2px solid var(--bg); }

/* ─── Announcement + header ─── */
.s-announce { background: var(--p); color: var(--p-ink); text-align: center; font-size: .86rem; font-weight: 600; padding: 9px 16px; }
.s-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.s-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0,0,0,.4); }
.s-header__inner { display: flex; align-items: center; gap: 20px; height: 70px; }
.s-brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.2rem var(--font-h); color: var(--text); min-width: 0; }
.s-brand img { height: 40px; width: auto; max-width: 180px; object-fit: contain; }
.s-brand__mark { width: 38px; height: 38px; border-radius: calc(var(--r) * .8); background: var(--p); color: var(--p-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.s-brand__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-nav { display: flex; gap: 4px; margin-left: auto; }
.s-nav a { padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .94rem; color: var(--muted); transition: color .2s, background .2s; }
.s-nav a:hover, .s-nav a.is-active { color: var(--text); background: var(--bg-2); }
.s-header__actions { display: flex; gap: 8px; align-items: center; }
.s-burger { display: none; }
@media (max-width: 860px) {
  .s-burger { display: inline-flex; }
  .s-header__actions { margin-left: auto; }
  .s-nav { position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .25s var(--ease); box-shadow: var(--shadow-lg); margin: 0; max-height: calc(100vh - 70px); overflow-y: auto; }
  .s-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .s-nav a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--text); }
  .s-nav a:last-child { border-bottom: 0; }
}

/* ─── Hero ─── */
.s-hero { position: relative; overflow: hidden; }
.s-hero__inner { display: grid; gap: 48px; align-items: center; padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(48px, 8vw, 104px); }
.s-hero h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 18px; }
.s-hero__sub { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.s-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.s-hero--split { background: radial-gradient(1200px 500px at 85% -10%, var(--p-soft), transparent 60%), radial-gradient(800px 400px at -10% 110%, var(--a-soft), transparent 60%); }
.s-hero--split .s-hero__inner { grid-template-columns: 1.05fr 1fr; }
.s-hero__media { position: relative; }
.s-hero__media img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; border-radius: calc(var(--r) * 1.6); box-shadow: var(--shadow-lg); }
.s-hero__media::before { content: ''; position: absolute; inset: 22px -22px -22px 22px; border-radius: calc(var(--r) * 1.6); background: var(--a); opacity: .18; z-index: -1; }
.s-hero--minimal { background: linear-gradient(180deg, var(--p-soft), var(--bg)); text-align: center; }
.s-hero--minimal .s-hero__sub { margin-left: auto; margin-right: auto; }
.s-hero--minimal .s-hero__ctas { justify-content: center; }
.s-hero--minimal .s-hero__inner { max-width: 860px; }
.s-hero--centered { text-align: center; color: #fff; background: #111 var(--hero-img) center/cover no-repeat; }
.s-hero--centered::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.65)); }
.s-hero--centered .s-hero__inner { position: relative; min-height: min(78vh, 680px); max-width: 900px; }
.s-hero--centered h1, .s-hero--centered .s-eyebrow { color: #fff; }
.s-hero--centered .s-hero__sub { color: rgba(255,255,255,.85); margin-left: auto; margin-right: auto; }
.s-hero--centered .s-hero__ctas { justify-content: center; }
.s-hero--centered .s-btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
@media (max-width: 860px) { .s-hero--split .s-hero__inner { grid-template-columns: 1fr; } .s-hero__media { order: -1; } .s-hero__media::before { display: none; } }

/* ─── Sections ─── */
.s-section { padding: clamp(56px, 8vw, 96px) 0; }
.s-section--alt { background: var(--bg-2); }
.s-section--tight { padding: 40px 0; }
.s-head { margin-bottom: 40px; max-width: 680px; }
.s-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.s-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
.s-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.s-eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--p); margin-bottom: 12px; }
.s-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.s-head-row .s-head { margin-bottom: 0; }
.s-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.s-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.s-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.s-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.s-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--p) 25%, var(--line)); }
.s-empty { text-align: center; color: var(--muted); padding: 48px 20px; border: 1.5px dashed var(--line); border-radius: var(--r); }
.s-empty i { font-size: 2rem; display: block; margin-bottom: 12px; opacity: .5; }

/* ─── Chips / filters ─── */
.s-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.s-chip { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-size: .88rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .2s; }
.s-chip:hover { color: var(--p); border-color: var(--p); }
.s-chip.is-active { background: var(--p); border-color: var(--p); color: var(--p-ink); }
.s-search { position: relative; min-width: min(100%, 280px); }
.s-search input { width: 100%; padding: 11px 14px 11px 40px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); outline: none; }
.s-search input:focus { border-color: var(--p); }
.s-search i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }

/* ─── Products ─── */
.s-product__media { position: relative; aspect-ratio: 1/1; background: var(--bg-2); overflow: hidden; display: block; }
.s-product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.s-card:hover .s-product__media img { transform: scale(1.05); }
.s-product__ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 2rem; opacity: .4; }
.s-tag { position: absolute; top: 12px; left: 12px; background: var(--card); color: var(--text); font-size: .72rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; letter-spacing: .02em; box-shadow: var(--shadow); }
.s-tag--right { left: auto; right: 12px; }
.s-tag--dark { background: #111; color: #fff; }
.s-tag--accent { background: var(--a); color: var(--a-ink); }
.s-product__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.s-product__name { font: 600 1rem/1.35 var(--font-b); margin: 0; color: var(--text); }
.s-product__price { font: 800 1.15rem var(--font-h); color: var(--text); }
.s-product__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.s-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-btn); overflow: hidden; background: var(--card); }
.s-qty button { width: 38px; height: 40px; border: 0; background: none; cursor: pointer; color: var(--text); font-size: 1rem; }
.s-qty input { width: 46px; height: 40px; border: 0; text-align: center; background: none; -moz-appearance: textfield; }
.s-qty input::-webkit-outer-spin-button, .s-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Product page */
.s-pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.s-gallery__main { aspect-ratio: 1/1; border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.s-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.s-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.s-gallery__thumbs button { width: 74px; height: 74px; padding: 0; border-radius: calc(var(--r) * .7); overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--bg-2); }
.s-gallery__thumbs button.is-active { border-color: var(--p); }
.s-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.s-pdp h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.s-pdp__price { font: 800 1.9rem var(--font-h); margin: 6px 0 18px; }
.s-pdp__desc { color: var(--muted); white-space: pre-line; }
.s-stock { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; }
.s-stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; }
.s-stock--low::before { background: #f59e0b; }
.s-stock--out::before { background: #dc2626; }
.s-buy { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0; }
.s-perks { display: grid; gap: 10px; padding: 18px; border-radius: var(--r); background: var(--bg-2); font-size: .9rem; color: var(--muted); }
.s-perks i { color: var(--p); width: 20px; }
@media (max-width: 860px) { .s-pdp { grid-template-columns: 1fr; gap: 28px; } }

/* Cart / checkout */
.s-cart { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.s-cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.s-cart-item img, .s-cart-item .s-product__ph { width: 76px; height: 76px; border-radius: calc(var(--r) * .7); object-fit: cover; background: var(--bg-2); font-size: 1.2rem; }
.s-cart-item__name { font-weight: 600; }
.s-cart-item__meta { font-size: .85rem; color: var(--muted); }
.s-summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; position: sticky; top: 90px; }
.s-summary__row { display: flex; justify-content: space-between; padding: 6px 0; color: var(--muted); }
.s-summary__row--total { color: var(--text); font-weight: 800; font-size: 1.15rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.s-link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .82rem; padding: 4px 0; }
.s-link-btn:hover { color: #dc2626; }
@media (max-width: 860px) { .s-cart { grid-template-columns: 1fr; } .s-summary { position: static; } }

/* ─── Forms ─── */
.s-form { display: grid; gap: 14px; }
.s-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.s-field { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--text); }
.s-field em { font-weight: 400; color: var(--muted); font-style: normal; }
.s-field input, .s-field textarea, .s-field select { width: 100%; padding: 12px 14px; border-radius: calc(var(--r) * .7); border: 1.5px solid var(--line); background: var(--card); color: var(--text); font-weight: 400; font-size: .95rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.s-field input:focus, .s-field textarea:focus, .s-field select:focus { border-color: var(--p); box-shadow: 0 0 0 4px color-mix(in srgb, var(--p) 15%, transparent); }
.s-field textarea { resize: vertical; min-height: 120px; }
@media (max-width: 560px) { .s-form__row { grid-template-columns: 1fr; } }
.s-alert { padding: 14px 18px; border-radius: calc(var(--r) * .8); font-size: .92rem; font-weight: 500; margin-bottom: 18px; }
.s-alert--ok { background: color-mix(in srgb, #16a34a 14%, var(--bg)); color: color-mix(in srgb, #16a34a 80%, var(--text)); border: 1px solid color-mix(in srgb, #16a34a 30%, transparent); }
.s-alert--err { background: color-mix(in srgb, #dc2626 12%, var(--bg)); color: color-mix(in srgb, #dc2626 80%, var(--text)); border: 1px solid color-mix(in srgb, #dc2626 30%, transparent); }

/* ─── Contact ─── */
.s-contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.s-contact-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.s-contact-list a { display: flex; align-items: center; gap: 14px; color: var(--text); font-weight: 500; word-break: break-word; }
.s-contact-list a:hover { color: var(--p); }
.s-contact-list__ic { width: 42px; height: 42px; border-radius: calc(var(--r) * .8); background: var(--p-soft); color: var(--p); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.s-contact__card { background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--r) * 1.4); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
@media (max-width: 860px) { .s-contact { grid-template-columns: 1fr; gap: 28px; } }
.s-social { display: flex; gap: 8px; flex-wrap: wrap; }
.s-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); transition: all .2s; }
.s-social a:hover { background: var(--p); border-color: var(--p); color: var(--p-ink); transform: translateY(-2px); }

/* ─── About ─── */
.s-about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.s-about__img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: calc(var(--r) * 1.6); box-shadow: var(--shadow-lg); }
.s-about__text { color: var(--muted); font-size: 1.05rem; white-space: pre-line; }
.s-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 14px; margin-top: 28px; }
.s-stat { padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.s-stat strong { display: block; font: 800 2rem/1 var(--font-h); color: var(--p); }
.s-stat span { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 860px) { .s-about { grid-template-columns: 1fr; gap: 32px; } .s-about__img img { aspect-ratio: 4/3; } }

/* ─── Services ─── */
.s-service { padding: 28px; }
.s-service__ic { width: 54px; height: 54px; border-radius: calc(var(--r) * .9); background: var(--p-soft); color: var(--p); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 18px; }
.s-service h3 { font-size: 1.2rem; }
.s-service p { color: var(--muted); margin: 0; }

/* ─── Projects ─── */
.s-project { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--bg-2); aspect-ratio: 4/3; }
.s-project img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.s-project:hover img { transform: scale(1.06); }
.s-project__info { position: absolute; inset: auto 0 0 0; padding: 22px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.78)); color: #fff; }
.s-project__info h3 { color: #fff; font-size: 1.15rem; margin: 0 0 4px; }
.s-project__info span { font-size: .8rem; opacity: .85; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

/* ─── Skills ─── */
.s-skill { margin-bottom: 18px; }
.s-skill__top { display: flex; justify-content: space-between; font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.s-skill__bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.s-skill__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--p), var(--a)); border-radius: 999px; transition: width 1.2s var(--ease); }
.s-reveal.is-in .s-skill__bar i { width: var(--w); }

/* ─── Testimonials ─── */
.s-quote { padding: 28px; display: flex; flex-direction: column; gap: 16px; height: 100%; }
.s-quote__stars { color: #f59e0b; letter-spacing: 2px; font-size: .9rem; }
.s-quote blockquote { margin: 0; font-size: 1.02rem; color: var(--text); flex: 1; }
.s-quote__who { display: flex; align-items: center; gap: 12px; }
.s-quote__who img, .s-quote__avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--p-soft); color: var(--p); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.s-quote__who strong { display: block; font-size: .95rem; }
.s-quote__who span { font-size: .82rem; color: var(--muted); }

/* ─── Slider ─── */
.s-slider { position: relative; overflow: hidden; border-radius: calc(var(--r) * 1.4); }
.s-slider__track { display: flex; transition: transform .7s var(--ease); }
.s-slide { min-width: 100%; position: relative; aspect-ratio: 21/8; background: var(--bg-2); }
.s-slide img { width: 100%; height: 100%; object-fit: cover; }
.s-slide__cap { position: absolute; left: clamp(16px, 4vw, 48px); bottom: clamp(16px, 4vw, 48px); max-width: min(460px, 80%); background: var(--card); color: var(--text); padding: clamp(16px, 2.6vw, 28px); border-radius: var(--r); box-shadow: var(--shadow-lg); }
.s-slide__cap h3 { font-size: clamp(1.1rem, 2.4vw, 1.7rem); margin: 0 0 6px; }
.s-slide__cap p { margin: 0; color: var(--muted); font-size: .92rem; }
.s-slider__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); color: var(--text); cursor: pointer; box-shadow: var(--shadow); }
.s-slider__nav--prev { left: 14px; } .s-slider__nav--next { right: 14px; }
.s-slider__dots { position: absolute; right: 20px; bottom: 18px; display: flex; gap: 6px; }
.s-slider__dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; transition: width .3s; }
.s-slider__dots button.is-active { width: 22px; background: #fff; }
@media (max-width: 640px) { .s-slide { aspect-ratio: 4/3; } .s-slider__nav { display: none; } }

/* ─── Blog ─── */
.s-post-card { display: flex; flex-direction: column; height: 100%; }
.s-post-card__img { aspect-ratio: 16/10; background: var(--p-soft); overflow: hidden; display: block; }
.s-post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.s-card:hover .s-post-card__img img { transform: scale(1.04); }
.s-post-card__ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font: 800 2.4rem var(--font-h); color: var(--p); opacity: .5; }
.s-post-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.s-post-card__body h3 { font-size: 1.2rem; margin: 0; }
.s-post-card__body h3 a:hover { color: var(--p); }
.s-post-card__body p { color: var(--muted); margin: 0; font-size: .95rem; flex: 1; }
.s-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--muted); align-items: center; }
.s-meta a { color: var(--p); font-weight: 600; }
.s-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border-radius: calc(var(--r) * 1.4); overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.s-feature__img { min-height: 340px; background: var(--p-soft); }
.s-feature__img img { width: 100%; height: 100%; object-fit: cover; }
.s-feature__body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.s-feature__body h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0; }
.s-feature__body p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .s-feature { grid-template-columns: 1fr; } .s-feature__img { min-height: 220px; } }

.s-article { max-width: 760px; margin: 0 auto; }
.s-article__head { text-align: center; padding: 56px 0 28px; }
.s-article__head h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; }
.s-article__head .s-meta { justify-content: center; }
.s-article__cover { max-width: 1040px; margin: 0 auto 40px; border-radius: calc(var(--r) * 1.4); overflow: hidden; }
.s-article__cover img { width: 100%; max-height: 560px; object-fit: cover; }
.s-prose { font-size: 1.1rem; line-height: 1.85; color: var(--text); }
.s-prose > * + * { margin-top: 1.1em; }
.s-prose h2 { font-size: 1.7rem; margin-top: 1.8em; }
.s-prose h3 { font-size: 1.3rem; margin-top: 1.5em; }
.s-prose a { color: var(--p); text-decoration: underline; text-underline-offset: 3px; }
.s-prose img { border-radius: var(--r); margin: 1.6em auto; }
.s-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--p); font-size: 1.2rem; font-style: italic; color: var(--muted); }
.s-prose pre { background: #0f1117; color: #e6e6e6; padding: 18px; border-radius: var(--r); overflow-x: auto; font-size: .9rem; }
.s-prose code { background: var(--bg-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.s-prose pre code { background: none; padding: 0; }
.s-prose ul, .s-prose ol { padding-left: 1.4em; }
.s-prose li + li { margin-top: .4em; }
.s-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.s-prose td, .s-prose th { border: 1px solid var(--line); padding: 8px 12px; }
.s-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 40px 0; }
.s-share span { font-weight: 700; font-size: .9rem; margin-right: 4px; }
.s-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.s-tags a { font-size: .82rem; padding: 5px 12px; border-radius: 999px; background: var(--bg-2); color: var(--muted); font-weight: 600; }
.s-tags a:hover { background: var(--p-soft); color: var(--p); }
.s-author { display: flex; gap: 16px; align-items: center; padding: 22px; border-radius: var(--r); background: var(--bg-2); }
.s-author__av { width: 60px; height: 60px; border-radius: 50%; background: var(--p); color: var(--p-ink); display: flex; align-items: center; justify-content: center; font: 800 1.4rem var(--font-h); flex-shrink: 0; overflow: hidden; }
.s-author__av img { width: 100%; height: 100%; object-fit: cover; }
.s-pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.s-pager a, .s-pager span { min-width: 42px; height: 42px; padding: 0 12px; border-radius: var(--r-btn); border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: .9rem; }
.s-pager a:hover { border-color: var(--p); color: var(--p); }
.s-pager .is-current { background: var(--p); border-color: var(--p); color: var(--p-ink); }
.s-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--p); width: 0; z-index: 60; }
.s-crumbs { font-size: .85rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; padding: 20px 0 0; }
.s-crumbs a:hover { color: var(--p); }

/* ─── Network advert (cross-promotion) ─── */
.s-netad { padding-top: 22px; padding-bottom: 22px; }
.s-netad__inner { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(90deg, var(--bg-2), var(--card)); transition: border-color .25s, box-shadow .25s; }
.s-netad__inner:hover { border-color: color-mix(in srgb, var(--p) 40%, var(--line)); box-shadow: var(--shadow); }
.s-netad__logo { width: 44px; height: 44px; border-radius: 12px; background: var(--a); color: var(--a-ink); display: flex; align-items: center; justify-content: center; font: 800 1.1rem var(--font-h); overflow: hidden; flex-shrink: 0; }
.s-netad__logo img { width: 100%; height: 100%; object-fit: cover; }
.s-netad__body { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.s-netad__tag { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.s-netad__body strong { font-size: .98rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-netad__text { font-size: .86rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-netad__cta { font-weight: 700; font-size: .86rem; color: var(--p); white-space: nowrap; flex-shrink: 0; }
@media (max-width: 560px) { .s-netad__cta { display: none; } .s-netad__text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } }

/* ─── Footer ─── */
.s-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 56px 0 24px; margin-top: 0; }
.s-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.s-footer h4 { font: 700 .82rem var(--font-b); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 16px; }
.s-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.s-footer ul a:hover { color: var(--p); }
.s-footer__tag { color: var(--muted); margin: 14px 0 18px; max-width: 340px; }
.s-footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; font-size: .85rem; color: var(--muted); }
.s-powered:hover { color: var(--p); }
.s-footer .s-contact-list__ic { width: 34px; height: 34px; font-size: .85rem; }
@media (max-width: 760px) { .s-footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* ─── Floating ─── */
.s-wa { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; box-shadow: 0 12px 28px -8px rgba(37,211,102,.6); z-index: 40; transition: transform .2s; }
.s-wa:hover { transform: scale(1.08); }
.s-totop { position: fixed; left: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); color: var(--text); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .3s; }
.s-totop.is-on { opacity: 1; pointer-events: auto; }
.s-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .9rem; z-index: 80; opacity: 0; transition: all .3s var(--ease); box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; }
.s-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.s-toast a { color: inherit; text-decoration: underline; }

/* ─── Reveal on scroll ─── */
.s-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.s-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .s-reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } * { animation: none !important; transition-duration: .01ms !important; } }
.no-js .s-reveal { opacity: 1; transform: none; }

@media print { .s-header, .s-footer, .s-wa, .s-totop, .s-netad, .s-announce { display: none !important; } body { background: #fff; color: #000; } }

/* About without an image → single, readable column */
.s-about:has(> :only-child) { grid-template-columns: 1fr; max-width: 780px; }
