* { margin: 0; padding: 0; box-sizing: border-box; }
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: clamp(15px, 0.4vw + 14px, 16.5px); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; margin: 0 0 0.6em; color: var(--ink); letter-spacing: var(--head-track, normal); }
h1 { font-size: clamp(2rem, 3.4vw + 1rem, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.8vw + 0.9rem, 2.2rem); }
h3 { font-size: clamp(1.12rem, 0.7vw + 0.9rem, 1.35rem); }
p { margin: 0 0 1em; }
::selection { background: var(--primary); color: var(--on-primary); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: clamp(1.8rem, 3vw, 2.8rem); }
.section-kicker { display: inline-flex; align-items: center; gap: 0.45em; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--primary); background: var(--primary-light); padding: 0.35em 0.95em; border-radius: var(--radius-pill); margin-bottom: 0.9rem; }
.section-sub { color: var(--ink-soft); margin: 0; }
.section-head-center { margin-inline: auto; text-align: center; }

/* ===================== Templates (from templates.ts) ===================== */
:root {
  --primary: #3fd68f; --primary-dark: #2bb474; --primary-light: rgba(63, 214, 143, 0.14);
  --accent: #ffb454; --accent-light: rgba(255, 180, 84, 0.15);
  --bg: #0f141a; --bg-alt: #131a21; --surface: #18202a; --soft: #1e2833; --border: #2a3644;
  --ink: #e8eef5; --ink-soft: #a7b6c4; --ink-faint: #6d7f8f; --on-primary: #08130c;
  --font-head: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --radius: 10px; --radius-lg: 18px; --radius-pill: 999px;
  --hero-gradient: linear-gradient(140deg, #0b1016 0%, #12242c 55%, #1d4b3a 100%);
  --hero-overlay: rgba(11, 16, 22, 0.5); --hero-text: #eafaf2;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.35); --shadow-md: 0 6px 20px rgba(0,0,0,0.45); --shadow-lg: 0 18px 48px rgba(0,0,0,0.55);
  --footer-bg: #0a0e13; --footer-ink: rgba(232, 238, 245, 0.78); --head-track: -0.01em;
}
html[data-theme="sentinel"] {
  --primary: #3fd68f; --primary-dark: #2bb474; --primary-light: rgba(63, 214, 143, 0.14);
  --accent: #ffb454; --accent-light: rgba(255, 180, 84, 0.15);
  --bg: #0f141a; --bg-alt: #131a21; --surface: #18202a; --soft: #1e2833; --border: #2a3644;
  --ink: #e8eef5; --ink-soft: #a7b6c4; --ink-faint: #6d7f8f; --on-primary: #08130c;
  --font-head: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --hero-gradient: linear-gradient(140deg, #0b1016 0%, #12242c 55%, #1d4b3a 100%);
  --hero-overlay: rgba(11, 16, 22, 0.5); --hero-text: #eafaf2;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.35); --shadow-md: 0 6px 20px rgba(0,0,0,0.45); --shadow-lg: 0 18px 48px rgba(0,0,0,0.55);
  --footer-bg: #0a0e13; --footer-ink: rgba(232, 238, 245, 0.78); --head-track: -0.01em;
}
html[data-theme="meridian"] {
  --primary: #155e9c; --primary-dark: #0f4a7a; --primary-light: #e3eff9;
  --accent: #d98c0c; --accent-light: #fdf1da;
  --bg: #f7fafd; --bg-alt: #eef4fa; --surface: #ffffff; --soft: #e7eff7; --border: #d7e3ee;
  --ink: #10222f; --ink-soft: #48606f; --ink-faint: #7e93a2; --on-primary: #ffffff;
  --font-head: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --radius: 10px; --radius-lg: 18px; --radius-pill: 999px;
  --hero-gradient: linear-gradient(145deg, #0a1929 0%, #123a5c 52%, #1f6fa8 100%);
  --hero-overlay: rgba(10, 25, 41, 0.42); --hero-text: #f2f8fd;
  --shadow-sm: 0 1px 3px rgba(16,34,47,0.08); --shadow-md: 0 6px 20px rgba(16,34,47,0.11); --shadow-lg: 0 18px 48px rgba(16,34,47,0.16);
  --footer-bg: #0a1929; --footer-ink: rgba(242, 248, 253, 0.82); --head-track: normal;
}
html[data-theme="guardian"] {
  --primary: #0f766e; --primary-dark: #0b5751; --primary-light: #dcf0ee;
  --accent: #c2703d; --accent-light: #f9ebe1;
  --bg: #faf7f1; --bg-alt: #f1ece2; --surface: #fffdf9; --soft: #eee8dc; --border: #e2dac9;
  --ink: #26221a; --ink-soft: #5f584a; --ink-faint: #948b79; --on-primary: #f7fdfc;
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --radius: 12px; --radius-lg: 22px; --radius-pill: 999px;
  --hero-gradient: linear-gradient(135deg, #142624 0%, #14484c 55%, #2c7a70 100%);
  --hero-overlay: rgba(20, 38, 36, 0.44); --hero-text: #f4faf8;
  --shadow-sm: 0 1px 3px rgba(38,34,26,0.08); --shadow-md: 0 6px 20px rgba(38,34,26,0.11); --shadow-lg: 0 16px 44px rgba(38,34,26,0.16);
  --footer-bg: #26221a; --footer-ink: rgba(250, 247, 241, 0.82); --head-track: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=DM+Sans:wght@400;500;600;700&display=swap');

html[data-theme="meridian"] h1, html[data-theme="meridian"] h2, html[data-theme="meridian"] h3 { font-weight: 800; }
html[data-theme="meridian"] .section-kicker { letter-spacing: 0.14em; }
html[data-theme="meridian"] .stat-item strong { font-weight: 800; }
html[data-theme="guardian"] h1 em, html[data-theme="guardian"] .section-title em { font-style: italic; color: var(--accent); }
html[data-theme="guardian"] .section-kicker { font-family: var(--font-body); }

/* ===================== Header ===================== */
.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--hero-gradient); color: var(--on-primary); font-size: 1.05rem; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-link { padding: 0.55rem 0.85rem; border-radius: var(--radius); color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.nav-link:hover { color: var(--primary); background: var(--soft); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--primary); background: var(--primary-light); }
.nav-cta { margin-left: 0.75rem; white-space: nowrap; }
.nav-toggle { display: none; place-items: center; width: 44px; height: 44px; background: none; border: 1px solid var(--border); border-radius: var(--radius); color: var(--ink); cursor: pointer; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ===================== Buttons ===================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; padding: 0.72em 1.45em; border-radius: var(--radius-pill); font-weight: 600; font-size: 0.95rem; line-height: 1.2; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; text-decoration: none; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); color: var(--on-primary); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); color: var(--primary-dark); }
.btn-ghost { background: var(--soft); color: var(--ink); }
.btn-ghost:hover { background: var(--border); color: var(--ink); }
.btn-sm { padding: 0.45em 1em; font-size: 0.86rem; }
.btn-block { width: 100%; }

.badge { display: inline-flex; align-items: center; gap: 0.35em; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; background: var(--accent-light); color: var(--ink-soft); border-radius: var(--radius-pill); padding: 0.3em 0.8em; }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 500; color: var(--primary); background: var(--primary-light); padding: 0.22em 0.7em; border-radius: var(--radius-pill); }

/* ===================== Hero ===================== */
.hero { position: relative; overflow: hidden; background: var(--hero-gradient); color: var(--hero-text); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.hero h1 { color: var(--hero-text); }
.hero-copy p { color: var(--hero-text); opacity: 0.92; font-size: 1.06rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.hero-badge { position: absolute; left: -14px; bottom: 22px; background: var(--surface); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 0.7rem 1rem; font-size: 0.85rem; display: flex; gap: 0.55rem; align-items: center; }
.hero-badge .icon { color: var(--primary); display: inline-flex; }
.hero-carousel { position: relative; }
.hero-slide { display: none; }
.hero-slide.on { display: block; animation: heroFade .6s ease; }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
.hero-dots { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.45rem; z-index: 3; }
.hero-dot { width: 26px; height: 5px; border-radius: 99px; border: 0; cursor: pointer; background: rgba(255,255,255,.35); padding: 0; }
.hero-dot.on { background: #fff; }

/* ===================== Cards / grid ===================== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 1.4rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column; position: relative; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.card-title { font-size: 1.08rem; margin: 0; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--primary); }
.card-meta { color: var(--ink-faint); font-size: 0.85rem; }
.card-summary { color: var(--ink-soft); font-size: 0.93rem; margin: 0; }
.card-foot { margin-top: auto; padding-top: 0.8rem; display: flex; align-items: center; justify-content: space-between; }
.price-tag { font-weight: 700; color: var(--primary); font-size: 1.02rem; white-space: nowrap; }
.price-tag small { font-weight: 500; color: var(--ink-faint); font-size: 0.74rem; }
.card-link-label { font-size: 0.88rem; font-weight: 600; color: var(--primary); }
.card-flag { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: var(--radius-pill); padding: .25em .8em; }
.media-placeholder { aspect-ratio: 4/3; display: grid; place-items: center; color: var(--ink-faint); background: linear-gradient(135deg, var(--primary-light), var(--accent-light)); }

/* ===================== Chips / filters ===================== */
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.6rem; }
.chip { padding: 0.48em 1.15em; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface); color: var(--ink-soft); font-size: 0.9rem; font-weight: 500; }
.chip:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.chip.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.chip-sm { font-size: 0.82rem; padding: 0.38em 1em; }

/* ===================== Stats band ===================== */
.stat-band { background: var(--bg-alt); border-block: 1px solid var(--border); }
.stat-band-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; padding-block: 2.2rem; text-align: center; }
.stat-item strong { display: block; font-family: var(--font-head); font-size: clamp(1.7rem, 2.5vw, 2.4rem); color: var(--primary); }
.stat-item span { color: var(--ink-soft); font-size: 0.88rem; }

/* ===================== Detail pages ===================== */
.detail-hero { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(1.6rem, 3.5vw, 3.4rem); align-items: start; }
.detail-cover { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--soft); }
.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 1.2rem 0; }
.spec-table th, .spec-table td { text-align: left; padding: 0.65rem 1rem; font-size: 0.92rem; border-top: 1px solid var(--border); }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 0; }
.spec-table th { color: var(--ink-faint); font-weight: 500; width: 42%; }
.rich-body { color: var(--ink-soft); }
.rich-body h2 { color: var(--ink); margin-top: 1.6em; }
.rich-body h3 { color: var(--ink); margin-top: 1.3em; }
.rich-body p { margin-bottom: 0.9em; }
.rich-body ul, .rich-body ol { padding-left: 1.3em; margin-bottom: 1em; }
.rich-body li { margin-bottom: 0.4em; }
.rich-body blockquote { margin: 1.4em 0; padding: 0.9em 1.3em; border-left: 3px solid var(--primary); background: var(--primary-light); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); }

.gallery-main { border-radius: var(--radius-lg); overflow: hidden; background: var(--soft); margin-bottom: 0.7rem; }
.gallery-main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.gallery-thumb { width: 76px; height: 60px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--soft); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.on { border-color: var(--primary); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--ink-faint); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: 0.6; }

/* ===================== Testimonials ===================== */
.quote-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 0.9rem; display: inline-flex; gap: 1px; margin-bottom: 0.8rem; }
.quote-card blockquote { margin: 0 0 1rem; color: var(--ink); font-style: italic; }
.quote-by { display: flex; align-items: center; gap: 0.7rem; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }
.quote-name { font-weight: 600; font-size: 0.94rem; }
.quote-city { color: var(--ink-faint); font-size: 0.82rem; }

/* ===================== Process steps ===================== */
.steps { counter-reset: step; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.step { counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem 1.4rem 1.3rem; }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--accent); opacity: .85; display: block; margin-bottom: .4rem; }
.step h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.step p { color: var(--ink-soft); font-size: .92rem; margin: 0; }

/* ===================== FAQ ===================== */
.faq-list { display: grid; gap: 0.8rem; max-width: 800px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1rem 1.3rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform .2s ease; color: var(--primary); display: inline-flex; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-answer { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ===================== Notice ===================== */
.notice-banner { background: var(--accent-light); border: 1px dashed var(--accent); border-radius: var(--radius); padding: 0.8rem 1.2rem; font-size: 0.92rem; color: var(--ink-soft); display: flex; gap: 0.6rem; align-items: baseline; }
.notice-banner strong { color: var(--ink); }

/* ===================== Forms ===================== */
.form { display: grid; gap: 1.05rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.form-field { display: grid; gap: 0.35rem; }
.form-label { font-weight: 600; font-size: 0.9rem; }
.form-label .req { color: var(--primary); }
.form-input, .form-select, .form-textarea { width: 100%; padding: 0.7em 0.95em; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; font-size: 0.95rem; }
.form-textarea { resize: vertical; min-height: 110px; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--primary); }
.form-hint { color: var(--ink-faint); font-size: 0.82rem; }
.form-check { display: flex; gap: 0.6rem; align-items: flex-start; }
.form-check input[type="checkbox"] { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.consent-note { font-size: 0.82rem; color: var(--ink-faint); }
.flash-ok { background: var(--accent-light); border: 1px solid var(--accent); color: var(--ink); border-radius: var(--radius); padding: 0.85rem 1.1rem; }

/* ===================== CTA band ===================== */
.cta-band { background: var(--hero-gradient); color: var(--hero-text); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; justify-content: space-between; }
.cta-band h2 { color: var(--hero-text); margin-bottom: 0.3rem; }
.cta-band p { margin: 0; opacity: 0.9; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }

/* ===================== Footer ===================== */
.site-footer { background: var(--footer-bg, var(--ink)); color: var(--footer-ink, rgba(255,255,255,.82)); margin-top: clamp(3rem, 6vw, 5rem); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.4rem; padding-block: clamp(2.5rem, 5vw, 4rem); }
.footer-col h3 { color: inherit; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-col a { color: inherit; opacity: 0.85; }
.footer-col a:hover { opacity: 1; color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-size: 1.2rem; color: #fff; margin-bottom: 0.9rem; }
.footer-tagline { font-size: 0.92rem; opacity: 0.8; max-width: 36ch; }
.social-row { display: flex; gap: 0.6rem; margin-top: 1.1rem; }
.social-row a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); color: inherit; }
.social-row a:hover { background: rgba(255,255,255,.12); color: #fff; }
.contact-line { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; margin-bottom: 0.6rem; opacity: .9; }
.contact-line .icon { flex: none; margin-top: 3px; opacity: .8; display: inline-flex; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-block: 1.1rem; font-size: 0.84rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; opacity: 0.75; }
.powered-by { opacity: .8; }
.powered-by a { color: inherit; text-decoration: none; }
.powered-by a:hover { text-decoration: underline; opacity: 1; }

/* ===================== WhatsApp float ===================== */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 70; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md); }
.wa-float:hover { transform: scale(1.06); color: #fff; }

/* ===================== Pager ===================== */
.pager { display: flex; gap: 0.5rem; justify-content: center; margin-top: 2.4rem; }
.page-btn { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--ink-soft); font-weight: 600; font-size: 0.92rem; padding-inline: 0.7em; }
.page-btn.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

/* ===================== Empty ===================== */
.empty { text-align: center; padding: 3.5rem 1.5rem; border: 1px dashed var(--border); border-radius: var(--radius-lg); color: var(--ink-faint); background: var(--surface); }

/* ===================== CCTV components ===================== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 1.1rem; }
.cat-tile { display: flex; flex-direction: column; gap: .3rem; padding: 1.2rem 1.3rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); text-decoration: none; }
.cat-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-light); color: var(--primary); margin-bottom: .35rem; }
.cat-title { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.cat-blurb { color: var(--ink-soft); font-size: .87rem; }

.brand-band { background: var(--bg-alt); border-block: 1px solid var(--border); padding-block: 1.4rem; }
.brand-band-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .9rem 1.8rem; }
.brand-band-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-faint); font-weight: 600; }
.brand-chip { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-soft); font-family: var(--font-head); font-weight: 700; font-size: 1rem; opacity: .85; }

.service-card { position: relative; }
.service-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; margin: 1.25rem 1.25rem -0.6rem; border-radius: 13px; background: var(--primary-light); color: var(--primary); }

.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 1.4rem; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: .6rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.8rem 1.6rem 1.6rem; }
.plan-card h3 { margin-bottom: .1rem; }
.plan-hot { border-color: var(--primary); box-shadow: var(--shadow-md); }
.plan-badge { position: absolute; top: -.85rem; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; border-radius: var(--radius-pill); padding: .25em .95em; }
.plan-price { font-family: var(--font-head); font-size: clamp(1.7rem, 2vw, 2.1rem); font-weight: 700; color: var(--ink); margin-bottom: .5rem; }
.plan-price span { font-size: .95rem; font-weight: 500; color: var(--ink-faint); }
.plan-features { flex: 1; margin-bottom: 1.2rem; }
.plan-features ul { list-style: none; padding: 0; display: grid; gap: .45rem; }
.plan-features li::before { content: "✓"; color: var(--primary); font-weight: 700; margin-right: .55em; }

.feature-strip { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.feature-item { display: inline-flex; align-items: center; gap: .45em; background: var(--soft); color: var(--ink-soft); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: .42em 1em; font-size: .86rem; }
.feature-item .icon { color: var(--primary); display: inline-flex; }

.brand-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 1.4rem; }
.brand-card .brand-logo { height: 92px; display: grid; place-items: center; background: var(--surface); border-bottom: 1px solid var(--border); }
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 1rem; margin-top: 1rem; }
.area-tile { display: flex; gap: .75rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.05rem 1.15rem; }
.area-tile .icon { flex: none; margin-top: 2px; color: var(--primary); display: inline-flex; }
.area-tile strong { font-family: var(--font-head); }
.area-tile p { margin: .15rem 0 0; color: var(--ink-soft); font-size: .88rem; }

.prose-page { max-width: 780px; }
.prose-page-wide { max-width: 960px; }

/* ===================== Theme switcher ===================== */
.theme-btn { position: fixed; bottom: 86px; right: 18px; z-index: 110; width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer; background: var(--primary); color: var(--on-primary); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); transition: background .15s, transform .15s; }
.theme-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.theme-btn svg { width: 24px; height: 24px; }
.theme-panel { position: fixed; bottom: 150px; right: 18px; z-index: 120; width: 280px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 16px; display: none; text-align: left; }
.theme-panel.open { display: block; }
.theme-panel h3 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 4px; }
.theme-panel .theme-sub { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 12px; }
.theme-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--soft); border: 2px solid transparent; border-radius: var(--radius); padding: 10px 12px; margin-bottom: 8px; cursor: pointer; font-family: var(--font-body); color: var(--ink); transition: border-color .15s, background .15s; }
.theme-card:hover { background: color-mix(in srgb, var(--soft) 60%, var(--primary-light)); }
.theme-card.active { border-color: var(--primary); background: var(--primary-light); }
.theme-swatches { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.theme-swatches .sw { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.12); }
.theme-card .t-name { font-weight: 700; font-size: 0.9rem; }
.theme-card .t-desc { font-size: 0.75rem; color: var(--ink-soft); line-height: 1.35; }
.theme-note { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 0.72rem; color: var(--ink-faint); line-height: 1.4; }

/* ===================== Detail grid ===================== */
.detail-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(1.6rem, 3.5vw, 3.4rem); align-items: start; }
.detail-grid > div:first-child { min-width: 0; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }

/* ===================== Contact form ===================== */
.contact-form { display: grid; gap: 1.05rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem; }
.contact-form label { font-weight: 600; font-size: 0.88rem; color: var(--ink-soft); }
.contact-form .req { color: var(--primary); }
.contact-form input, .contact-form textarea { width: 100%; padding: 0.7em 0.95em; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--ink); font: inherit; font-size: 0.95rem; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--primary); }
.contact-form textarea { resize: vertical; min-height: 100px; }
.form-hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.86rem; color: var(--ink-soft); }
.form-consent input[type="checkbox"] { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.form-consent a { color: var(--primary); }
.btn-lg { padding: 0.75em 1.6em; font-size: 1rem; }

/* ===================== Area cards ===================== */
.area-card .card-body { gap: 0.6rem; }
.area-card .card-link-label { margin-top: 0.4rem; }

/* ===================== Article layout ===================== */
.article-layout { max-width: 760px; }
.article-body h2 { color: var(--ink); margin-top: 1.6em; }

/* ===================== Legal body ===================== */
.legal-body h2 { color: var(--ink); margin-top: 1.5em; font-size: 1.2rem; }
.legal-body p { color: var(--ink-soft); }

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 0.8rem 1.2rem 1.2rem; box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .nav-link { padding: 0.8rem 0.6rem; font-size: 1rem; }
  .nav-cta { margin: 0.8rem 0 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .detail-hero { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .theme-panel { right: 12px; bottom: 144px; }
  .theme-btn { right: 12px; bottom: 80px; }
  .wa-float { right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto; }
}
