/* =========================================================
   SENET.lv — galvenais stils
   Tokeni :root, tumšais režīms caur prefers-color-scheme un [data-theme]
   ========================================================= */
/* Manrope (variable, lokāli fonts/manrope) */

@font-face {
    font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
    src: url("/fonts/manrope/manrope-latin-ext-wght-normal.woff2") format("woff2-variations"), url("/fonts/manrope/manrope-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
    src: url("/fonts/manrope/manrope-latin-wght-normal.woff2") format("woff2-variations"), url("/fonts/manrope/manrope-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #ffffff;
    --page: #f3f6fb;
    --ink-bg: #0a1a33;
    --ink-bg-2: #0e2447;
    --bg-alt: #e9eff7;
    --surface: #ffffff;
    --surface-2: #eef3fa;
    --text: #0f1b2d;
    --text-2: #3c4a5e;
    --muted: #5d6b80;
    --border: #dde5ef;
    --brand: #0b5fd6;
    --brand-2: #2f8cff;
    --brand-ink: #ffffff;
    --brand-soft: #e7f0ff;
    --accent: #5fae2e;
    --accent-soft: #eaf6e1;
    --danger: #c62828;
    --success: #2e7d32;
    --hero-glow-1: rgba(47, 140, 255, .28);
    --hero-glow-2: rgba(95, 174, 46, .18);
    --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 1px 3px rgba(15, 27, 45, .08);
    --shadow-md: 0 8px 24px -8px rgba(15, 27, 45, .16);
    --shadow-lg: 0 24px 60px -20px rgba(11, 95, 214, .35);
    --radius: 14px;
    --radius-lg: 22px;
    --container: 1200px;
    --gutter: 20px;
    --header-h: 72px;
    --font: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0b1220;
        --page: #0b1220;
        --ink-bg: #070e1b;
        --ink-bg-2: #0c1a33;
        --bg-alt: #0f1829;
        --surface: #121d31;
        --surface-2: #17243c;
        --text: #e8eef8;
        --text-2: #c3cedf;
        --muted: #93a1b8;
        --border: #24324b;
        --brand: #4d9bff;
        --brand-2: #7ab4ff;
        --brand-ink: #06101f;
        --brand-soft: #14284a;
        --accent: #86d155;
        --accent-soft: #1b2e17;
        --danger: #ff7b7b;
        --success: #7fd67f;
        --hero-glow-1: rgba(77, 155, 255, .22);
        --hero-glow-2: rgba(134, 209, 85, .12);
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
        --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, .6);
        --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #0b1220;
    --page: #0b1220;
    --ink-bg: #070e1b;
    --ink-bg-2: #0c1a33;
    --bg-alt: #0f1829;
    --surface: #121d31;
    --surface-2: #17243c;
    --text: #e8eef8;
    --text-2: #c3cedf;
    --muted: #93a1b8;
    --border: #24324b;
    --brand: #4d9bff;
    --brand-2: #7ab4ff;
    --brand-ink: #06101f;
    --brand-soft: #14284a;
    --accent: #86d155;
    --accent-soft: #1b2e17;
    --danger: #ff7b7b;
    --success: #7fd67f;
    --hero-glow-1: rgba(77, 155, 255, .22);
    --hero-glow-2: rgba(134, 209, 85, .12);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, .6);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
}

/* ---------- Pamati ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
.h3 { font-size: 1.45rem; }
.h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }
.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 1000;
    background: var(--brand); color: var(--brand-ink); padding: 10px 16px; border-radius: 10px;
    font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--brand-ink); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Pogas ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    min-height: 46px; padding: 0 1.25em; border-radius: 999px; border: 1.5px solid transparent;
    font-weight: 650; font-size: .97rem; line-height: 1.2; text-decoration: none; cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { min-height: 40px; padding: 0 1em; font-size: .92rem; }
.btn-lg { min-height: 54px; padding: 0 1.6em; font-size: 1.03rem; }
.btn-primary { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; box-shadow: 0 8px 20px -8px rgba(11, 95, 214, .6); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(11, 95, 214, .7); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.btn-light { background: #fff; color: #0b3f8f; }
.btn-light:hover { color: #0b5fd6; transform: translateY(-1px); }
.btn[disabled], .btn.is-loading { opacity: .7; pointer-events: none; }
.icon-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
    background: transparent; border: 1.5px solid var(--border); cursor: pointer; color: var(--text);
    transition: background .2s, border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn svg { width: 20px; height: 20px; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 650; text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.eyebrow {
    display: inline-flex; align-items: center; gap: .45em; margin: 0 0 14px;
    color: var(--brand); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow svg { width: 16px; height: 16px; }

/* ---------- Galvene ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid transparent;
    transition: border-color .25s, box-shadow .25s;
}
/* izpludinājums pseidoelementā: backdrop-filter uz pašas galvenes padarītu mobilās izvēlnes position:fixed relatīvu pret galveni */
.site-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .site-header::before { background: var(--bg); } }
.nav-open .site-header::before { background: var(--bg); }
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; flex-shrink: 0; }
.logo-img { width: auto; height: 38px; }
.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
    display: inline-flex; align-items: center; height: 42px; padding: 0 14px; border-radius: 10px;
    color: var(--text-2); font-weight: 600; font-size: .98rem; text-decoration: none; transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--brand); }
.nav-link[aria-current="page"] { background: var(--brand-soft); }
.sub-toggle {
    display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: -8px;
    border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px;
}
.sub-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }
.sub-menu {
    list-style: none; margin: 0; padding: 10px;
    position: absolute; top: calc(100% + 10px); left: 50%; width: 640px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.is-open .sub-menu {
    opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.has-sub.is-closed .sub-menu { opacity: 0; visibility: hidden; }
.sub-menu a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
    color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; transition: background .15s;
}
.sub-menu a:hover, .sub-menu a[aria-current="page"] { background: var(--surface-2); color: var(--brand); }
.sub-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); flex-shrink: 0; }
.sub-icon svg { width: 19px; height: 19px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 650; text-decoration: none; font-size: .95rem; }
.header-phone svg { width: 18px; height: 18px; color: var(--brand); }
.header-phone:hover { color: var(--brand); }
.nav-toggle { display: none; }
.burger { position: relative; width: 20px; height: 14px; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s, top .25s var(--ease); }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 6px; }
.burger span:nth-child(3) { top: 12px; }
.nav-open .burger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.nav-mobile-extra { display: none; }
@media (max-width: 1100px) {
    .header-phone span { display: none; }
    .header-phone { width: 44px; height: 44px; justify-content: center; border: 1.5px solid var(--border); border-radius: 12px; }
}
@media (max-width: 960px) {
    :root { --header-h: 64px; }
    .site-header .logo-img { height: 30px; }
    .nav-toggle { display: inline-grid; }
    .header-cta, .header-phone { display: none; }
    .header-actions { margin-left: auto; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 0 0; margin: 0; z-index: 99;
        background: var(--bg); padding: 16px var(--gutter) 32px; overflow-y: auto;
        display: flex; flex-direction: column; gap: 24px;
        opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s;
    }
    .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--border); }
    .nav-link { flex: 1; height: 56px; padding: 0 4px; font-size: 1.12rem; color: var(--text); background: none !important; }
    .sub-toggle { width: 48px; height: 48px; margin: 0; }
    .sub-toggle svg { width: 18px; height: 18px; }
    .sub-menu, .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu {
        position: static; width: 100%; transform: none; grid-template-columns: 1fr;
        box-shadow: none; border: 0; padding: 0 0 12px; background: none;
        display: none; opacity: 1; visibility: visible;
    }
    .has-sub.is-open .sub-menu { display: grid; transform: none; }
    .sub-menu::before { display: none; }
    .nav-mobile-extra { display: grid; gap: 10px; }
    .nav-mobile-extra .btn { width: 100%; }
    .nav-mobile-extra svg { width: 18px; height: 18px; }
    body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 110px) 0 clamp(56px, 8vw, 100px); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); }
.b1 { width: 560px; height: 560px; right: -120px; top: -160px; background: var(--hero-glow-1); }
.b2 { width: 420px; height: 420px; left: -160px; bottom: -200px; background: var(--hero-glow-2); }
.grid-lines {
    position: absolute; inset: 0; opacity: .5;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 70%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 14em; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 36em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; color: var(--text-2); font-weight: 550; font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.hero-visual { position: relative; min-height: 380px; }
.mock-window {
    position: absolute; inset: 20px 30px 20px 10px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    overflow: hidden; transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
}
.mock-bar { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-bar em { margin-left: 12px; font-style: normal; font-size: .78rem; color: var(--muted); background: var(--surface); padding: 3px 12px; border-radius: 999px; }
.mock-body { padding: 26px; display: grid; gap: 14px; }
.mock-line { height: 16px; border-radius: 8px; background: linear-gradient(90deg, var(--brand-2), var(--brand)); opacity: .9; }
.mock-line.thin { height: 10px; background: var(--surface-2); opacity: 1; }
.w80 { width: 80%; } .w60 { width: 60%; } .w50 { width: 50%; } .w40 { width: 40%; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0; }
.mock-cards i { height: 86px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.mock-cards i:nth-child(2) { background: var(--brand-soft); }
.float-card {
    position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-md);
    animation: float 6s ease-in-out infinite;
}
.float-card svg { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.float-card b { display: block; font-size: .95rem; }
.float-card small { color: var(--muted); font-size: .8rem; }
.fc1 { left: -12px; bottom: 36px; }
.fc2 { right: 0; top: 0; animation-delay: -3s; }
.fc2 svg { background: var(--accent-soft); color: var(--accent); }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { min-height: 300px; max-width: 520px; width: 100%; }
}
@media (max-width: 560px) {
    .hero-visual { display: none; }
    .hero-actions .btn { width: 100%; }
}

/* ---------- Skaitļi ---------- */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 28px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat b { display: block; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; background: linear-gradient(135deg, var(--brand-2), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat { padding: 18px 20px; }
    .stat + .stat { border-left: 0; border-top: 1px solid var(--border); }
}

/* ---------- Sadaļas ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-title { margin-bottom: 14px; }
.section-lead { color: var(--text-2); font-size: 1.1rem; margin: 0; }

/* ---------- Pakalpojumu kartītes ---------- */
.services-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.service-card {
    position: relative; display: flex; flex-direction: column; padding: 28px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.service-card:focus-within { border-color: var(--brand); }
.service-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); transition: background .25s, color .25s; }
.service-icon svg { width: 26px; height: 26px; }
.service-card:hover .service-icon { background: var(--brand); color: #fff; }
.service-title { margin-bottom: 8px; }
.service-title a { color: var(--text); text-decoration: none; }
.service-title a:focus-visible { outline: none; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service-title a:focus-visible::after { outline: 3px solid var(--brand-2); outline-offset: 3px; border-radius: var(--radius-lg); }
.service-card p { color: var(--muted); font-size: .96rem; margin-bottom: 20px; }
.service-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 650; font-size: .93rem; }
.service-more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.service-card:hover .service-more svg { transform: translateX(4px); }
@media (min-width: 900px) { .services-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.services-grid-compact .service-card { padding: 22px; }
.services-grid-compact .service-card p { display: none; }
.services-grid-compact .service-icon { width: 44px; height: 44px; margin-bottom: 14px; }

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.step-no { display: inline-block; margin-bottom: 18px; font-weight: 800; font-size: .95rem; color: var(--brand); background: var(--brand-soft); padding: 4px 12px; border-radius: 999px; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Par mums ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.about-copy .section-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.promo-card {
    position: relative; padding: 36px; border-radius: var(--radius-lg); color: #fff; overflow: hidden;
    background: radial-gradient(circle at 100% 0, rgba(255, 255, 255, .18), transparent 50%), linear-gradient(140deg, #2f8cff, #0b4fb4 70%);
    box-shadow: var(--shadow-lg);
}
.promo-card h3 { color: #fff; font-size: 1.5rem; }
.promo-card p { color: rgba(255, 255, 255, .88); }
.promo-badge { position: absolute; top: 20px; right: 20px; background: var(--accent); color: #0f2a05; font-weight: 800; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; padding: 5px 12px; border-radius: 999px; }
.promo-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px; border-radius: 16px; background: rgba(255, 255, 255, .16); }
.promo-icon svg { width: 28px; height: 28px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Klienti ---------- */
.clients { padding-bottom: clamp(48px, 7vw, 88px); overflow: hidden; }
.section-head-center { text-align: center; margin-left: auto; margin-right: auto; margin-bottom: 36px; }
/* Josla ir parasts horizontāli ritināms bloks: kustību, vilkšanu ar peli un bultiņas dara senet.js.
   Bez JS to var ritināt ar skārienu / Shift+rulīti. */
.marquee-wrap { position: relative; }
.marquee {
    display: flex; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee::-webkit-scrollbar { display: none; }
.marquee:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.js .marquee { cursor: grab; }
.marquee.is-dragging { cursor: grabbing; -webkit-user-select: none; user-select: none; }
.marquee.is-dragging a { pointer-events: none; }
.marquee-track { display: flex; align-items: center; gap: 16px; flex-shrink: 0; list-style: none; margin: 0; padding: 10px 8px; }
.marquee-track li {
    flex: none; width: 190px; height: 104px; padding: 16px 20px;
    background: #fff; border-radius: 6px; box-shadow: var(--shadow-sm); transition: box-shadow .2s;
}
.marquee-track li > a, .marquee-track li > span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
/* viss logo vienmēr ietilpst laukumā (contain), nekas netiek apgriezts */
.marquee-track img {
    display: block; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none;
    filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s;
}
.marquee-track li:hover { box-shadow: var(--shadow-md); }
.marquee-track li:hover img, .marquee-track a:focus-visible img { filter: none; opacity: 1; }

.marquee-nav {
    position: absolute; top: 50%; z-index: 2; display: none; place-items: center; width: 40px; height: 40px; margin-top: -20px; padding: 0;
    background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 3px; box-shadow: var(--shadow-md);
    cursor: pointer; transition: border-color .15s, color .15s;
}
.js .marquee-wrap.is-looping .marquee-nav { display: grid; }
.marquee-nav:hover { border-color: var(--brand); color: var(--brand); }
.marquee-nav svg { width: 20px; height: 20px; }
.marquee-prev { left: max(12px, calc(50% - var(--container, 1200px) / 2)); }
.marquee-next { right: max(12px, calc(50% - var(--container, 1200px) / 2)); }
.marquee-prev svg { transform: rotate(90deg); }
.marquee-next svg { transform: rotate(-90deg); }
@media (max-width: 640px) {
    .marquee-track li { width: 150px; height: 88px; padding: 12px 14px; }
    .marquee-nav { width: 36px; height: 36px; margin-top: -18px; }
}

/* ---------- CTA josla ---------- */
.cta-band { padding: 0 0 clamp(56px, 8vw, 96px); }
.section-alt + .cta-band { padding-top: clamp(56px, 8vw, 96px); background: var(--bg); }
.cta-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-lg); color: #fff;
    background: radial-gradient(circle at 0 100%, rgba(95, 174, 46, .35), transparent 45%), linear-gradient(135deg, #0b5fd6, #083f8f);
}
.cta-inner h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 8px; }
.cta-inner p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 36em; }
@media (max-width: 760px) { .cta-inner { flex-direction: column; align-items: flex-start; } .cta-inner .btn { width: 100%; } }

/* ---------- Apakšlapas ---------- */
.crumbs-bar { background: var(--bg-alt); padding-top: 22px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0; padding: 0; font-size: .88rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--border); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--text-2); }
.page-hero { background: var(--bg-alt); padding: 20px 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: 18em; margin-bottom: 14px; }
.page-hero .lead, .page-hero .text-2 { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text-2); max-width: 44em; }
.page-hero .lead p:last-child, .page-hero .text-2 p:last-child { margin-bottom: 0; }
.prose { max-width: 760px; color: var(--text-2); }
.prose:empty { display: none; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { list-style: none; padding: 0; }
.prose ul li { position: relative; padding-left: 30px; margin-bottom: .6em; }
.prose ul li::before {
    content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
    background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235fae2e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.prose img { border-radius: var(--radius); height: auto; }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { border-bottom: 1px solid var(--border); padding: 10px 8px; text-align: left; }
.prose + .services-grid { margin-top: 32px; }

/* ---------- Kontakti un forma ---------- */
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); flex-shrink: 0; }
.contact-icon svg { width: 22px; height: 22px; }
.contact-label { display: block; font-size: .82rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.contact-list a { color: var(--text); font-weight: 650; font-size: 1.08rem; text-decoration: none; }
.contact-list a:hover { color: var(--brand); text-decoration: underline; }
.contact-card { padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; gap: 32px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.field.full, .field-hint.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .93rem; }
.req { color: var(--danger); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
    width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
    border: 1.5px solid var(--border); background: var(--bg); color: var(--text);
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 40px; }
.select-wrap svg { position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.field-error { min-height: 1.4em; margin: 4px 0 8px; font-size: .86rem; color: var(--danger); font-weight: 550; }
.field-hint { margin: -2px 0 12px; font-size: .86rem; color: var(--muted); }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; font-size: .93rem !important; color: var(--text-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { margin-top: 6px; }
.form-status { padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; }
.form-status.is-success { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.form-status.is-error { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .contact-form .btn { width: 100%; } }

/* ---------- Kājene ---------- */
.site-footer { background: #0a1426; color: #b9c5d8; padding-top: 64px; }
.site-footer .logo { margin-bottom: 18px; }
.site-footer .logo-img { height: 34px; }
.site-footer a { color: #d7e1f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { max-width: 22em; font-size: .95rem; }
.footer-title { color: #fff; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .95rem; }
.footer-contacts li { display: flex; align-items: center; gap: 10px; }
.footer-contacts svg { width: 18px; height: 18px; color: #6fb0ff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: 6px; }
.to-top svg { width: 14px; height: 14px; transform: rotate(180deg); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; align-items: flex-start; } }

/* ---------- Sīkdatņu piekrišana (templates/html/cookie_consent.htm.inc, jvs/cookie-consent.js) ---------- */
.cc-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 980px; margin: 0 auto;
    background: var(--surface); color: var(--text-2); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    animation: cc-in .35s var(--ease);
}
.cc-banner[hidden], .cc-modal[hidden] { display: none; }
.cc-banner-inner { display: flex; align-items: center; gap: 20px; padding: 20px 22px; }
.cc-icon { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }
.cc-icon svg { width: 26px; height: 26px; }
.cc-banner-text { flex: 1; min-width: 0; }
.cc-title { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 4px; color: var(--text); }
.cc-banner-text p { margin: 0; font-size: .9rem; line-height: 1.55; }
.cc-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
body.has-cookie-notice { padding-bottom: 140px; }
@keyframes cc-in { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 860px) {
    .cc-banner-inner { flex-wrap: wrap; }
    .cc-actions { width: 100%; }
    .cc-actions .btn { flex: 1; }
}
@media (max-width: 520px) {
    .cc-banner { left: 10px; right: 10px; bottom: 10px; }
    .cc-banner-inner { padding: 16px; gap: 12px; }
    .cc-icon { display: none; }
    .cc-actions { flex-wrap: wrap; }
    .cc-actions .cc-customize { order: 3; flex-basis: 100%; }
    body.has-cookie-notice { padding-bottom: 240px; }
}

.cc-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; }
.cc-backdrop { position: absolute; inset: 0; background: rgba(6, 14, 28, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.cc-dialog {
    position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); display: flex; flex-direction: column;
    background: var(--surface); color: var(--text-2); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    animation: cc-in .25s var(--ease);
}
.cc-dialog:focus { outline: none; }
.cc-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px 12px; }
.cc-dialog-head .cc-title { font-size: 1.3rem; margin: 0; }
.cc-close svg { width: 18px; height: 18px; }
.cc-dialog-body { padding: 0 22px 8px; overflow-y: auto; }
.cc-intro { font-size: .92rem; }
.cc-category { padding: 16px 0; border-top: 1px solid var(--border); }
.cc-category-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.cc-category-title { font-weight: 750; color: var(--text); cursor: pointer; }
.cc-category-text { margin: 0; font-size: .88rem; color: var(--muted); }
.cc-always { font-size: .8rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.cc-dialog-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 16px 22px 20px; border-top: 1px solid var(--border); }
@media (max-width: 520px) { .cc-dialog-foot .btn { flex: 1 1 100%; } }
html.cc-modal-open { overflow: hidden; }

/* slēdzis: īsts checkbox ir virsū (neredzams), lai strādā tastatūra un ekrāna lasītāji */
.cc-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.cc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.cc-switch-track { position: absolute; inset: 0; border-radius: 999px; background: var(--border); transition: background .2s; }
.cc-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.cc-switch input:checked + .cc-switch-track { background: var(--brand); }
.cc-switch input:checked + .cc-switch-track::after { transform: translateX(20px); }
.cc-switch input:focus-visible + .cc-switch-track { outline: 3px solid var(--brand-2); outline-offset: 3px; }

.footer-cookie-link { margin-left: auto; margin-right: 20px; }
@media (max-width: 560px) { .footer-cookie-link { margin: 0; } }
html[data-contrast] .cc-switch-track { border: 2px solid var(--hc-fg); }
html[data-contrast] .cc-switch input:checked + .cc-switch-track::after { background: var(--hc-fg) !important; }

/* ---------- Tumšās joslas: sākumlapas hero + skaitļi, apakšlapu virsraksts ----------
   Lapas fons ir viegli tonēts (--page), kartītes baltas; tumšā josla augšā dod kontrastu un ritmu */
.hero, .stats, .crumbs-bar, .page-hero {
    --text: #f2f6fc; --text-2: #c5d3e8; --muted: #9fb0c9; --border: rgba(255, 255, 255, .12);
    --brand: #6fb0ff; --brand-soft: rgba(111, 176, 255, .14);
    color: var(--text);
}
.hero { background: radial-gradient(1200px 500px at 85% -10%, #1b4d9c 0, transparent 60%), linear-gradient(180deg, var(--ink-bg-2), var(--ink-bg)); }
.hero .b1 { background: rgba(47, 140, 255, .35); }
.hero .b2 { background: rgba(95, 174, 46, .22); }
.hero .grid-lines { opacity: .35; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.hero .hero-points svg { background: rgba(134, 209, 85, .18); color: #9ee06f; }
/* makets un peldošās kartītes paliek gaišas, lai izceltos uz tumšā fona */
.hero-visual { color: var(--text); --surface: #ffffff; --surface-2: #eef3fa; --border: #dde5ef; --text: #0f1b2d; --muted: #5d6b80; --brand: #0b5fd6; --brand-soft: #e7f0ff; --accent-soft: #eaf6e1; }
.stats { background: var(--ink-bg); border-color: rgba(255, 255, 255, .08); }
.stats .stat b { background: linear-gradient(135deg, #9ccaff, #4d9bff); -webkit-background-clip: text; background-clip: text; }
.crumbs-bar { background: var(--ink-bg-2); }
.page-hero { border-bottom: 0; background: linear-gradient(180deg, var(--ink-bg-2), var(--ink-bg)); padding-bottom: clamp(44px, 6vw, 72px); }
.breadcrumbs li + li::before { color: rgba(255, 255, 255, .3); }
.section-alt + .cta-band { background: transparent; }

/* ---------- Piekļūstamības panelis ---------- */
.a11y { position: relative; }
.a11y-toggle svg { width: 20px; height: 20px; }
.a11y-toggle[aria-expanded="true"] { border-color: var(--brand); color: var(--brand); }
.a11y-panel {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 120; width: 272px; padding: 14px 16px 12px;
    background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow-md);
}
.a11y-panel[hidden] { display: none; }
.a11y-title { margin: 0 0 6px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.a11y-row { display: flex; gap: 6px; margin-bottom: 14px; }
.a11y-btn {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 8px;
    border: 1px solid var(--border); border-radius: 3px; background: var(--surface); color: var(--text);
    font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.a11y-btn:hover { border-color: var(--brand); color: var(--brand); }
.a11y-btn svg { width: 16px; height: 16px; flex: none; }

/* Fonta izmērs un režīms - segmentēta vadīkla: pogas kopā, izvēlētā aizpildīta */
.a11y-seg { gap: 0; }
.a11y-seg .a11y-btn { border-radius: 0; margin-left: -1px; }
.a11y-seg .a11y-btn:first-child { margin-left: 0; border-radius: 3px 0 0 3px; }
.a11y-seg .a11y-btn:last-child { border-radius: 0 3px 3px 0; }
.a11y-seg .a11y-btn:hover { position: relative; z-index: 1; }
.a11y-seg .a11y-btn[aria-pressed="true"] { position: relative; z-index: 2; background: var(--brand); border-color: var(--brand); color: var(--brand-ink, #fff); }
.a11y-size-a { font-weight: 700; line-height: 1; }

/* Kontrasts - pogas vienmēr savās krāsās (rāda rezultātu), izvēlētā ar zilu kontūru un ķeksīti */
.a11y-c { position: relative; }
.a11y-c svg { width: 24px; height: 14px; }
.a11y-panel .c-default { background: #fff; color: #5d6b80; border-color: #c9d3e0; }
.a11y-panel .c-bw { background: #000; color: #fff; border-color: #000; }
.a11y-panel .c-yb { background: #ffde17; color: #231f20; border-color: #e0c300; }
.a11y-panel .c-by { background: #000; color: #ffde17; border-color: #000; }
.a11y-c:hover { outline: 1px solid var(--brand); outline-offset: 1px; }
.a11y-c[aria-pressed="true"] { outline: 2px solid var(--brand); outline-offset: 2px; }
.a11y-c[aria-pressed="true"]::after {
    content: ""; position: absolute; top: -6px; right: -6px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Atiestatīšana - klusa teksta poga zem atdalītāja */
.a11y-reset {
    display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 2px; padding: 10px 0 2px;
    border: 0; border-top: 1px solid var(--border); background: none; color: var(--muted);
    font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
}
.a11y-reset:hover { color: var(--brand); }
.a11y-reset svg { width: 14px; height: 14px; }

/* Fonta izmērs: teksts ir rem vienībās, tāpēc pietiek palielināt saknes fontu */
html[data-fs="150"] { font-size: 150%; }
html[data-fs="200"] { font-size: 200%; }
html[data-fs] .header-inner { height: auto; min-height: var(--header-h); flex-wrap: wrap; row-gap: 8px; padding-top: 8px; padding-bottom: 8px; }
html[data-fs] .nav-list { flex-wrap: wrap; }
html[data-fs] .btn { white-space: normal; }
html[data-fs] .a11y-panel { width: min(92vw, 420px); }

/* Kontrasta režīmi: visas krāsas → divas (fons + teksts), bez gradientiem un ēnām */
html[data-contrast="black-white"] { --hc-bg: #000; --hc-fg: #fff; }
html[data-contrast="yellow-black"] { --hc-bg: #ffde17; --hc-fg: #000; }
html[data-contrast="black-yellow"] { --hc-bg: #000; --hc-fg: #ffde17; }
html[data-contrast], html[data-contrast] body *:not(.a11y-c):not(.a11y-c *) {
    --bg: var(--hc-bg); --page: var(--hc-bg); --bg-alt: var(--hc-bg); --surface: var(--hc-bg); --surface-2: var(--hc-bg);
    --ink-bg: var(--hc-bg); --ink-bg-2: var(--hc-bg);
    --text: var(--hc-fg); --text-2: var(--hc-fg); --muted: var(--hc-fg); --border: var(--hc-fg);
    --brand: var(--hc-fg); --brand-2: var(--hc-fg); --brand-soft: var(--hc-bg); --brand-ink: var(--hc-bg);
    --accent: var(--hc-fg); --accent-soft: var(--hc-bg); --danger: var(--hc-fg); --success: var(--hc-fg);
    --shadow-sm: none; --shadow-md: none; --shadow-lg: none;
}
html[data-contrast] body,
html[data-contrast] body *:not(.a11y-c):not(.a11y-c *):not(img) {
    background-image: none !important; background-color: var(--hc-bg) !important; color: var(--hc-fg) !important;
    box-shadow: none !important; text-shadow: none !important; -webkit-text-fill-color: currentColor;
}
html[data-contrast] .site-header::before { background: var(--hc-bg) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-contrast] a { text-decoration: underline !important; }
html[data-contrast] .btn, html[data-contrast] .icon-btn, html[data-contrast] .service-card, html[data-contrast] .step,
html[data-contrast] .contact-card, html[data-contrast] .cta-inner, html[data-contrast] .promo-card, html[data-contrast] .stat,
html[data-contrast] .field input, html[data-contrast] .field select, html[data-contrast] .field textarea { border: 2px solid var(--hc-fg) !important; }
html[data-contrast] .hero-bg, html[data-contrast] .hero-visual, html[data-contrast] .blob { display: none !important; }
html[data-contrast] .hero-inner { grid-template-columns: 1fr; }
html[data-contrast] .marquee-track li, html[data-contrast] .marquee-track li > * { background: #fff !important; }
html[data-contrast] .marquee-track img { filter: none; opacity: 1; }
html[data-contrast] .logo-img { background: #fff !important; padding: 4px 8px; border-radius: 6px; }
html[data-contrast] :focus-visible { outline-color: var(--hc-fg); }
html[data-contrast] .a11y-seg .a11y-btn[aria-pressed="true"] { background-color: var(--hc-fg) !important; color: var(--hc-bg) !important; }
html[data-contrast] .a11y-seg .a11y-btn[aria-pressed="true"] * { background-color: transparent !important; color: inherit !important; }

/* ---------- Animācijas ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}
@media print {
    .site-header, .site-footer, .cc-banner, .cc-modal, .cta-band, .hero-visual { display: none !important; }
    body { color: #000; background: #fff; }
}
