/* ═══ BSS — Business Software Solutions · стил ═══════════════════════════════════════════
   Истите бои и фонт се користат во флаерите и објавите за социјални мрежи.  */

:root {
    --navy: #0b1f4d;
    --navy-2: #12306e;
    --primary: #1e46c7;
    --primary-hover: #1838a3;
    --primary-soft: #eaf0ff;
    --amber: #f5a524;
    --amber-soft: #fff4dd;

    --bg: #ffffff;
    --tint: #f5f7fb;
    --surface: #ffffff;
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e4e8f0;
    --line-strong: #cfd6e3;

    --ok: #16a34a;
    --err: #c0352b;
    --primary-text: #1e46c7;
    --brand-ink: #0b1f4d;
    --amber-ink: #8a5a00;
    --pro-soft: #e8ecf4;
    --ok-soft: #e6f6ec;
    --nav-bg: rgba(255, 255, 255, .9);
    --viber: #7360f2;
    --whatsapp: #1fa855;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -14px rgba(15, 23, 42, .16);
    --shadow-lg: 0 2px 4px rgba(11, 31, 77, .04), 0 28px 60px -24px rgba(11, 31, 77, .30);
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
    --max: 1200px;
}

/* ─── Темен режим ────────────────────────────────────────────────────────── */
:root[data-theme="dark"] {
    color-scheme: dark;
    --navy: #142a60;
    --navy-2: #1b3575;
    --primary: #3b62e5;
    --primary-hover: #5277f0;
    --primary-soft: #1b2b57;
    --primary-text: #93adff;
    --amber-soft: #2e2410;
    --amber-ink: #f5c56b;
    --brand-ink: #ffffff;
    --pro-soft: #1e2a45;
    --ok-soft: #12301f;

    --bg: #0a1122;
    --tint: #0e1830;
    --surface: #121d36;
    --ink: #e7ecf6;
    --ink-2: #b4bfd4;
    --muted: #8793ab;
    --line: #233154;
    --line-strong: #34477a;
    --nav-bg: rgba(10, 17, 34, .86);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -14px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 28px 60px -24px rgba(0, 0, 0, .7);
}
:root[data-theme="light"] { color-scheme: light; }
/* Илустрациите остануваат светли (како слики), само малку пригушени */
:root[data-theme="dark"] .svc-art { filter: brightness(.9) saturate(.95); border-bottom-color: transparent; }
:root[data-theme="dark"] .hero-bg { opacity: .45; }
:root[data-theme="dark"] .card-cta,
:root[data-theme="dark"] .section-navy,
:root[data-theme="dark"] .footer,
:root[data-theme="dark"] .topbar { background: #0f1f47; }
:root[data-theme="dark"] .card-cta { border-color: var(--line-strong); }
:root[data-theme="dark"] .logo-bg { fill: #1e46c7; }
:root[data-theme="dark"] #blazor-error-ui { background: #3a2a0e; border-top-color: #6b4e17; color: var(--ink); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16.5px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .6em; letter-spacing: -0.025em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.14rem; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
a { color: var(--primary-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.icon { flex: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }
.container.narrow { max-width: 900px; }
.center { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2.4rem; }
.muted { color: var(--muted); }

.section { padding: clamp(4.2rem, 9vw, 7rem) 0; scroll-margin-top: 80px; }
.section-tint { background: var(--tint); }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.center-head { margin-inline: auto; text-align: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--primary-text); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--amber); }
.center-head .eyebrow::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--amber); }
.lead { font-size: 1.14rem; color: var(--ink-2); }
.prose { color: var(--ink-2); max-width: 62ch; }
.fine { font-size: .85rem; color: var(--muted); margin-top: 1.2rem; }

/* ─── Копчиња ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1.3rem; border-radius: 12px; border: 1px solid transparent;
    font-weight: 700; font-size: .97rem; line-height: 1.2; white-space: nowrap;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-sm { padding: .55rem .95rem; font-size: .9rem; border-radius: 10px; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.02rem; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -10px rgba(30, 70, 199, .7); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--amber-soft); }
.btn-viber { background: var(--viber); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn.wide { width: 100%; }

/* ─── Лого ───────────────────────────────────────────────────────────────── */
.logo { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); }
.logo-mark { flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }
.logo-text small { font-size: .62rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.logo-bg { fill: var(--navy); }
.logo-fg { stroke: #fff; }
.logo-letter { fill: #fff; }
@media (max-width: 430px) { .logo-text small { display: none; } }
.logo-inverse { color: #fff; }
.logo-inverse .logo-bg { fill: #fff !important; }
.logo-inverse .logo-fg { stroke: #0b1f4d; }
.logo-inverse .logo-letter { fill: #0b1f4d; }
.logo-inverse .logo-text small { color: rgba(255, 255, 255, .6); }

/* ─── Горна лента и навигација ───────────────────────────────────────────── */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .78); font-size: .82rem; }
.topbar-inner { display: flex; align-items: center; gap: 1.4rem; height: 38px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: .4rem; }
.topbar-hours { display: none !important; }
.topbar-mail { margin-left: auto; color: rgba(255, 255, 255, .85); display: none !important; }
.topbar-mail:hover { color: #fff; text-decoration: none; }
.topbar-phone { margin-left: auto; color: #fff; font-weight: 700; }
@media (min-width: 900px) { .topbar-mail { display: inline-flex !important; } .topbar-mail + .topbar-phone { margin-left: 0; } }
.topbar-phone:hover { text-decoration: none; color: var(--amber); }
@media (min-width: 720px) { .topbar-hours { display: inline-flex !important; } }

.nav {
    position: sticky; top: 0; z-index: 50;
    background: var(--nav-bg);
    backdrop-filter: saturate(170%) blur(12px);
    -webkit-backdrop-filter: saturate(170%) blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s ease;
}
body.scrolled .nav { box-shadow: 0 6px 24px -16px rgba(15, 23, 42, .25); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand:hover { text-decoration: none; }
.nav-links { display: none; gap: 1.1rem; white-space: nowrap; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: .93rem; position: relative; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--amber); transform: scaleX(0); transition: transform .2s ease; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: .55rem; }
.nav-cta { display: none; }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--tint); }
.lang-switch button { border: 0; background: transparent; color: var(--muted); font-size: .78rem; font-weight: 700; padding: .32rem .62rem; border-radius: 7px; }
.lang-switch button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.theme-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-2); }
.theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); }
.nav-page { display: inline-flex; align-items: center; gap: .35rem; color: var(--primary-text) !important; }
.nav-page.active::after { transform: scaleX(1) !important; }
.nav-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }

@media (max-width: 1179px) {
    .nav.is-open .nav-links {
        display: flex; flex-direction: column; gap: 0;
        position: absolute; left: 0; right: 0; top: 72px;
        background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        padding: .5rem 16px 1rem;
    }
    .nav.is-open .nav-links a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
    .nav.is-open .nav-links a::after { display: none; }
}
@media (min-width: 1180px) {
    .nav-links { display: flex; }
    .nav-toggle { display: none; }
}
@media (min-width: 1360px) { .nav-cta { display: inline-flex; } }

/* ─── Херо ───────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(3rem, 7vw, 5.5rem) 0 3.5rem; overflow: hidden; }
.hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(900px 480px at 85% 10%, rgba(30, 70, 199, .10), transparent 60%),
        radial-gradient(600px 360px at 10% 90%, rgba(245, 165, 36, .10), transparent 60%),
        linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 44px 44px,
        linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 44px 44px;
    -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
    mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
    opacity: .9;
}
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.2fr .8fr; gap: 4rem; } }
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 54ch; font-size: 1.18rem; }
.pill {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .38rem .85rem .38rem .7rem; margin-bottom: 1.5rem;
    border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
    font-size: .84rem; font-weight: 700; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2.1rem 0 1.6rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.hero-trust li { display: inline-flex; align-items: center; gap: .4rem; font-size: .93rem; font-weight: 600; color: var(--ink-2); }
.hero-trust .icon { color: var(--ok); }

.hero-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
    box-shadow: var(--shadow-lg); padding: 1.6rem; position: relative;
}
.hero-card::before { content: ""; position: absolute; left: 1.6rem; right: 1.6rem; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--amber); }
.hero-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.hero-card-label { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero-card-area { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; color: var(--muted); }
.hero-phone, .contact-phone {
    display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem;
    border-radius: 14px; background: var(--navy); color: #fff;
}
.hero-phone:hover, .contact-phone:hover { text-decoration: none; background: var(--navy-2); }
.hero-phone small, .contact-phone small { display: block; font-size: .8rem; color: rgba(255, 255, 255, .7); font-weight: 600; }
.hero-phone strong, .contact-phone strong { display: block; font-size: 1.55rem; font-weight: 800; letter-spacing: -0.01em; }
.hero-phone-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--amber); color: var(--navy); flex: none; }
.hero-messengers { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .7rem 0 1.3rem; }
.hero-card-list { display: grid; gap: .55rem; padding: 1.1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-card-list li { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.hero-card-list .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.hero-card-hours { display: flex; align-items: center; gap: .4rem; margin: 1rem 0 0; font-size: .85rem; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 4rem; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 1.6rem 1.2rem 0 0; }
.stat strong { display: block; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.04em; color: var(--brand-ink); }
.stat strong::after { content: ""; display: block; width: 26px; height: 3px; border-radius: 3px; background: var(--amber); margin: .5rem 0 .55rem; }
.stat span { color: var(--muted); font-size: .92rem; font-weight: 600; }

/* ─── Картички (услуги) ──────────────────────────────────────────────────── */
.card-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid.services { grid-template-columns: repeat(3, 1fr); } }
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.8rem; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { color: var(--ink-2); font-size: .97rem; }
.card-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: var(--primary-soft); color: var(--primary-text); margin-bottom: 1.2rem; }
.card-icon.small { width: 40px; height: 40px; border-radius: 11px; margin: 0; }
.ticks { display: grid; gap: .45rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px dashed var(--line); }
.ticks li { display: flex; align-items: center; gap: .5rem; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.ticks .icon { color: var(--ok); }
.card-cta { background: var(--navy); border-color: var(--navy); color: #fff; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.card-cta::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 36px solid rgba(245, 165, 36, .18); }
.card-cta:hover { border-color: var(--navy); }
.card-cta h3 { color: #fff; font-size: 1.35rem; }
.card-cta p { color: rgba(255, 255, 255, .78); }
.card-cta .btn { align-self: flex-start; margin-top: .4rem; position: relative; z-index: 1; }

/* ─── Услуги со илустрации ───────────────────────────────────────────────── */
.svc-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: -1rem 0 2rem; }
.svc-chip {
    display: inline-flex; align-items: center; gap: .5rem;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
    padding: .55rem .95rem; border-radius: 999px; font-weight: 700; font-size: .92rem;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.svc-chip:hover { border-color: var(--line-strong); }
.svc-chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.svc-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--tint); color: var(--ink-2); font-size: .76rem; font-weight: 800; }
.svc-chip.active .svc-count { background: var(--amber); color: var(--navy); }

.svc-grid { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.svc {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.svc:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.svc-art { aspect-ratio: 16 / 9; background: var(--primary-soft); border-bottom: 1px solid var(--line); }
.svc-art[data-cat="home"] { background: #fff1d6; }
.svc-art[data-cat="dev"]  { background: #e3eafd; }
.svc-art[data-cat="pro"]  { background: #e8ecf4; }
.svc-art svg { display: block; width: 100%; height: 100%; transition: transform .35s ease; }
.svc:hover .svc-art svg { transform: scale(1.035); }
.svc-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.svc-body h3 { margin-bottom: .45em; }
.svc-body p { color: var(--ink-2); font-size: .96rem; }
.svc-body .ticks { margin-top: auto; }
.svc-cat { align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .22rem .6rem; border-radius: 6px; margin-bottom: .8rem; }
.svc-cat[data-cat="home"] { background: var(--amber-soft); color: var(--amber-ink); }
.svc-cat[data-cat="dev"]  { background: var(--primary-soft); color: var(--primary-text); }
.svc-cat[data-cat="pro"]  { background: var(--pro-soft); color: var(--brand-ink); }
.svc-grid .card-cta { min-height: 260px; }

.hero-cat { display: flex; flex-direction: column; line-height: 1.3; }
.hero-cat strong { font-size: .95rem; color: var(--ink); }
.hero-cat small { font-size: .82rem; font-weight: 500; color: var(--muted); }
.hero-card-list li { align-items: flex-start; }
.hero-card-list .dot { margin-top: .5rem; }
.footer-sub { font-size: .85rem; color: rgba(255, 255, 255, .6); }
.footer ul strong { color: #fff; font-weight: 700; }

/* ─── Преземи BSSR ───────────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dl-hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 5rem) 0 1rem; }
.dl-hero h1 { margin-bottom: .4em; }
.dl-hero .lead { max-width: 62ch; }
.dl-section { padding-top: 2rem; }
.dl-grid { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .dl-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.dl-latest {
    display: grid; gap: 1.2rem; align-items: center;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 1.6rem; border-radius: 20px; position: relative;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.dl-latest::before { content: ""; position: absolute; left: 1.6rem; right: 1.6rem; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--amber); }
.dl-latest .dl-btn { grid-column: 1 / -1; }
@media (min-width: 640px) { .dl-latest { grid-template-columns: auto minmax(0, 1fr) auto; } .dl-latest .dl-btn { grid-column: auto; } }
.dl-latest-icon { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--navy); color: #fff; }
.dl-latest h2 { font-size: 1.6rem; margin: .35rem 0 .3rem; }
.dl-badge { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .22rem .6rem; border-radius: 6px; background: var(--ok-soft); color: var(--ok); }
.dl-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: 0; color: var(--muted); font-size: .9rem; font-weight: 600; }
.dl-meta span:first-child { font-family: var(--mono); font-weight: 500; }
.dl-skeleton { min-height: 120px; animation: breathe 1.4s ease-in-out infinite; }
.dl-subtitle { margin: 2.4rem 0 1rem; font-size: 1.15rem; }
.dl-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dl-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .8fr) 120px; gap: .8rem; align-items: center; padding: .85rem 1.2rem; border-bottom: 1px solid var(--line); }
.dl-row:last-child { border-bottom: 0; }
.dl-head { background: var(--tint); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-block: .65rem; }
.dl-ver { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.dl-row span { color: var(--ink-2); font-size: .94rem; }
.dl-action { justify-self: end; }
@media (max-width: 560px) { .dl-action-text { display: none; } .dl-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 48px; } .dl-row > span:nth-child(3) { display: none; } }
.dl-side { display: grid; gap: 1rem; }
.dl-help { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.dl-help p { color: var(--ink-2); font-size: .95rem; }
.dl-help .hero-phone strong { font-size: 1.3rem; }
.dl-mails { display: grid; gap: .5rem; margin-top: 1rem; }
.dl-mails li { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .92rem; }
.dl-mails .icon { color: var(--primary-text); }
.dl-links { display: grid; gap: .5rem; }
.dl-links a { display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 700; color: var(--ink); }
.dl-links a:hover { text-decoration: none; border-color: var(--line-strong); }
.dl-links .icon { color: var(--amber); }

/* ─── Споделување ────────────────────────────────────────────────────────── */
.share-label { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.share-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.share-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .62rem .95rem; border-radius: 10px; border: 1px solid transparent;
    font: inherit; font-size: .9rem; font-weight: 700; color: #fff; cursor: pointer;
    transition: transform .15s ease, filter .15s ease;
}
.share-btn:hover { text-decoration: none; transform: translateY(-1px); filter: brightness(1.08); }
.s-linkedin { background: #0a66c2; }
.s-facebook { background: #1877f2; }
.s-instagram { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.s-email { background: var(--navy); }
.s-viber { background: var(--viber); }
.s-whatsapp { background: var(--whatsapp); }
.s-copy, .s-more { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
:root[data-theme="dark"] .s-email { background: #24407f; }
.share-compact .share-btn span { display: none; }
.share-compact .share-btn { width: 42px; height: 42px; padding: 0; justify-content: center; }
.share-toast { margin: .8rem 0 0; font-size: .88rem; font-weight: 600; color: var(--ok); }

/* ─── Препорака ──────────────────────────────────────────────────────────── */
.refer-home { display: grid; gap: 2.4rem; align-items: center; padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: 22px; background: var(--tint); border: 1px solid var(--line); }
@media (min-width: 1000px) { .refer-home { grid-template-columns: 1.15fr .85fr; } }
.refer-home-cta { display: flex; gap: 1.2rem; align-items: flex-start; }
.refer-home-cta h2 { margin-bottom: .4em; }
.refer-home-cta .lead { font-size: 1.05rem; }
.refer-icon { width: 56px; height: 56px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--amber); color: #0b1f4d; }
@media (max-width: 560px) { .refer-icon { display: none; } }
.refer-home-share { padding: 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.refer-reward { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: 10px; background: var(--amber-soft); color: var(--amber-ink); font-weight: 700; }
.refer-grid { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .refer-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; } }
.refer-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-lg); position: relative; }
.refer-card::before { content: ""; position: absolute; left: 1.6rem; right: 1.6rem; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--amber); }
.refer-card h2 { font-size: 1.6rem; margin-top: .5rem; }
.refer-link { padding: .9rem 1rem; border-radius: 12px; background: var(--tint); border: 1px dashed var(--line-strong); margin: 1rem 0 .8rem; overflow-wrap: anywhere; }
.refer-link code { font-family: var(--mono); font-size: .92rem; color: var(--ink); }
.refer-code { color: var(--ink-2); font-size: .95rem; margin-bottom: 1.4rem; }
.refer-code strong { font-family: var(--mono); color: var(--primary-text); }
.refer-reset { margin-top: 1.4rem; }
.refer-steps { display: grid; gap: 1rem; }
.form-ref { display: flex; align-items: center; gap: .5rem; padding: .6rem .85rem; border-radius: 10px; background: var(--amber-soft); color: var(--amber-ink); font-size: .9rem; font-weight: 600; margin-bottom: 1.2rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.form-actions .btn-primary { flex: 1 1 200px; }
.footer-refer + .footer-download { margin-left: 1rem; }
.dl-share-title { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: .6rem 0 0; }

/* ─── Зошто јас (темна секција) ──────────────────────────────────────────── */
.section-navy { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.section-navy::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(700px 400px at 90% 0%, rgba(30, 70, 199, .55), transparent 60%);
    pointer-events: none;
}
.section-navy .container { position: relative; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .eyebrow { color: var(--amber); }
.why-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why { padding: 1.7rem; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.why p { color: rgba(255, 255, 255, .74); font-size: .96rem; margin: 0; }
.why-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--amber); color: var(--navy); margin-bottom: 1.2rem; }

/* ─── Готови програми ────────────────────────────────────────────────────── */
.product-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; transition: box-shadow .2s ease, transform .2s ease; }
.product:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.product-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.tag { font-size: .74rem; font-weight: 700; color: var(--ink-2); background: var(--tint); border-radius: 999px; padding: .25rem .7rem; }

/* ─── Процес ─────────────────────────────────────────────────────────────── */
.process { display: grid; gap: 1.1rem; counter-reset: step; }
@media (min-width: 720px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .process { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 1.7rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-text); font-weight: 800; margin-bottom: 1.1rem; }
.step p { color: var(--ink-2); font-size: .95rem; margin: 0; }
@media (min-width: 1000px) {
    .step:not(:last-child)::after { content: ""; position: absolute; top: 49px; right: -1.1rem; width: 1.1rem; height: 2px; background: var(--amber); }
}

/* ─── Цени ───────────────────────────────────────────────────────────────── */
.tabs { display: inline-flex; gap: .3rem; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; max-width: 100%; margin-bottom: 1.3rem; scrollbar-width: none; }
.tab { flex: none; border: 0; background: transparent; color: var(--ink-2); padding: .62rem 1.05rem; border-radius: 10px; font-weight: 700; font-size: .92rem; }
.tab.active { background: var(--navy); color: #fff; }
.price-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.price-row { display: flex; align-items: baseline; gap: .8rem; padding: 1.15rem 1.5rem; border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-name { display: flex; flex-direction: column; min-width: 0; }
.price-name span { font-weight: 700; }
.price-name small { color: var(--muted); font-size: .84rem; }
.price-dots { flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-4px); min-width: 1rem; }
.price-value { white-space: nowrap; font-weight: 800; font-size: 1rem; color: var(--brand-ink); }

/* ─── За мене ────────────────────────────────────────────────────────────── */
.about-grid { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .about-grid { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.skills { display: grid; gap: 1.4rem; background: var(--tint); border-radius: var(--radius); padding: 1.8rem; }
.skill-group h3 { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips li { padding: .34rem .75rem; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.chips.small li { font-size: .76rem; padding: .22rem .6rem; font-family: var(--mono); font-weight: 500; background: var(--tint); }

/* ─── Искуство ───────────────────────────────────────────────────────────── */
.timeline { position: relative; display: grid; gap: 1.6rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); }
.timeline-item { position: relative; padding-left: 2.2rem; display: grid; gap: .35rem; }
.timeline-item::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 4px solid var(--primary); }
.timeline-period { font-size: .85rem; font-weight: 800; color: var(--primary-text); }
.timeline-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.timeline-body p { color: var(--ink-2); font-size: .96rem; }
@media (min-width: 720px) {
    .timeline::before { left: 159px; }
    .timeline-item { grid-template-columns: 136px 1fr; gap: 2.6rem; padding-left: 0; }
    .timeline-item::before { left: 152px; }
    .timeline-period { text-align: right; padding-top: .15rem; }
}

/* ─── Проекти ────────────────────────────────────────────────────────────── */
.project-grid { display: grid; gap: 1.1rem; }
@media (min-width: 860px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
.project { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; border-top: 3px solid var(--primary); }
.project h3 { font-size: 1.4rem; }
.project > p { color: var(--ink-2); }
.project-kind { font-size: .74rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .6rem; }
.highlights { display: flex; flex-wrap: wrap; gap: .5rem; margin: .2rem 0 1.3rem; }
.highlights li { font-weight: 700; font-size: .85rem; padding: .3rem .7rem; border-radius: 8px; background: var(--amber-soft); color: var(--amber-ink); }
.project .chips { margin-top: auto; }

/* ─── Контакт ────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.contact-phone { margin-top: 1.8rem; max-width: 380px; }
.contact-list { display: grid; gap: .95rem; margin-top: 1.6rem; }
.contact-list li { display: flex; align-items: center; gap: .8rem; font-weight: 600; color: var(--ink-2); }
.contact-list .icon { color: var(--primary-text); }
.contact-list a { color: var(--ink); }
.contact-mails { align-items: flex-start !important; }
.contact-mails > span { display: flex; flex-direction: column; gap: .25rem; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-lg); }
.field { display: grid; gap: .4rem; margin-bottom: 1.15rem; }
.field > span { font-size: .86rem; font-weight: 700; color: var(--ink-2); }
.field small { font-weight: 500; color: var(--muted); }
.field input, .field textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
    background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: .8rem .95rem; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px var(--primary-soft); }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.topic-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.topic { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); padding: .42rem .85rem; border-radius: 9px; font-size: .86rem; font-weight: 600; }
.topic.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.err { color: var(--err); font-style: normal; font-size: .84rem; }
.err.block { margin-bottom: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done { text-align: center; padding: 2rem 0; }
.form-done .card-icon { margin: 0 auto 1rem; background: var(--ok-soft); color: var(--ok); }

/* ─── Футер ──────────────────────────────────────────────────────────────── */
.footer { background: var(--navy); color: rgba(255, 255, 255, .72); padding: 4rem 0 0; font-size: .93rem; }
.footer-grid { display: grid; gap: 2.4rem; padding-bottom: 3rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand p { max-width: 38ch; margin-top: 1.2rem; }
.footer h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; }
.footer ul { display: grid; gap: .5rem; }
.footer a { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom p { margin: 0; font-size: .85rem; }
.footer-download { display: inline-flex; align-items: center; gap: .4rem; margin-left: auto; font-weight: 700; color: var(--amber) !important; }
.footer-download + a { margin-left: 1rem; }

/* ─── Мобилна лента за повик ─────────────────────────────────────────────── */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1px; background: var(--line); box-shadow: 0 -8px 24px -12px rgba(15, 23, 42, .3); padding-bottom: env(safe-area-inset-bottom); }
.callbar a { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .95rem .4rem; font-weight: 800; font-size: .92rem; color: #fff; }
.callbar a:hover { text-decoration: none; }
.callbar-call { background: var(--primary); }
.callbar-viber { background: var(--viber); }
.callbar-wa { background: var(--whatsapp); }
@media (max-width: 719px) { body { padding-bottom: 58px; } }
@media (min-width: 720px) { .callbar { display: none; } }

/* ─── Разно ──────────────────────────────────────────────────────────────── */
.notfound { text-align: center; }
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 1rem; color: var(--muted); font-family: var(--font); }
.boot-mark { width: 54px; height: 54px; border-radius: 14px; background: #0b1f4d; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.5rem; animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(.92); opacity: .7; } }
#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: #fff4e5; border-top: 1px solid #f0c27b; padding: .8rem 1rem; box-shadow: var(--shadow); }
#blazor-error-ui .dismiss { float: right; cursor: pointer; }
#blazor-error-ui .reload { margin-left: .6rem; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.refer-steps .step::after { display: none; }

/* ─── Избор на јазик (МК / EN / DE / SQ) ─────────────────────────────────── */
.lang-picker { position: relative; display: inline-flex; align-items: center; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--tint); color: var(--ink-2); }
.lang-picker .icon { position: absolute; left: 10px; pointer-events: none; }
.lang-picker select {
    appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--ink);
    font: inherit; font-size: .82rem; font-weight: 800; letter-spacing: .04em;
    height: 100%; padding: 0 26px 0 32px; border-radius: 10px; cursor: pointer;
}
.lang-picker::after { content: ""; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); pointer-events: none; }
.lang-picker select:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.lang-picker option { color: #0f172a; background: #fff; }
