/* ==========================================================================
   mknop.cz – styly
   Fonty: Plus Jakarta Sans a Inter (SIL Open Font License 1.1), načítané lokálně.
   ========================================================================== */

@font-face {
    font-family: "Jakarta";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
    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: "Jakarta";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
    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;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
    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: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
    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 {
    --brand-1: #c82c20;
    --brand-2: #fb8f23;
    --brand-ink: #b3261c;           /* text v barvě značky – kontrast AA na bílé */
    --grad: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    --grad-text: linear-gradient(110deg, #c82c20 10%, #e8601d 60%, #f07a22 100%);
    --grad-btn: linear-gradient(135deg, #bd291e 0%, #d2461a 55%, #bd291e 100%);

    --bg: #fffbf7;
    --surface: #ffffff;
    --tint: #fff3e8;
    --tint-2: #ffe7d4;
    --ink: #1e1a1d;
    --ink-2: #463f45;
    --muted: #6c646b;
    --line: #f1e3d7;
    --line-strong: #e6d2c2;
    --danger: #b42318;
    --success: #18794e;

    --font-head: "Jakarta", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
    --font-body: "Inter", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --shadow-sm: 0 1px 2px rgb(120 50 20 / 6%), 0 2px 8px rgb(120 50 20 / 5%);
    --shadow: 0 10px 30px -10px rgb(160 60 20 / 18%), 0 2px 6px rgb(120 50 20 / 6%);
    --shadow-lg: 0 30px 60px -20px rgb(170 60 20 / 28%), 0 8px 20px -8px rgb(120 50 20 / 12%);

    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 72px;
    --ease: cubic-bezier(.22, 1, .36, 1);

    color-scheme: light;
}

/* ---------- Základ ---------- */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 1.0625rem/1.65 var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 .5em;
    color: var(--ink);
    text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--brand-ink); text-underline-offset: .2em; }
a:hover { color: var(--brand-1); }
img, svg { display: block; max-width: 100%; }
ul, ol { padding: 0; margin: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; }

:focus-visible {
    outline: 3px solid var(--brand-2);
    outline-offset: 3px;
    border-radius: 6px;
}

::selection { background: var(--tint-2); color: var(--ink); }

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

.skip-link {
    position: absolute;
    left: 16px; top: -100px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-sm);
    transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

main:focus { outline: none; }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container-narrow { max-width: calc(820px + var(--gutter) * 2); }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.muted { color: var(--muted); }
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 62ch; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    margin: 0 0 1rem;
    font: 700 .8125rem/1 var(--font-head);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand-ink);
}
.eyebrow::before {
    content: "";
    width: 24px; height: 2px;
    border-radius: 2px;
    background: var(--grad);
}

/* ---------- Tlačítka ---------- */

.btn {
    --pad-y: .85em;
    --pad-x: 1.5em;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    padding: var(--pad-y) var(--pad-x);
    border: 1.5px solid transparent;
    border-radius: 999px;
    font: 700 1rem/1.2 var(--font-head);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-position .6s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-sm { --pad-y: .6em; --pad-x: 1.1em; font-size: .9375rem; }
.btn-lg { --pad-y: 1em; --pad-x: 1.8em; font-size: 1.0625rem; }

.btn-primary {
    color: #fff;
    background: var(--grad-btn);
    background-size: 200% 100%;
    box-shadow: 0 8px 20px -8px rgb(200 44 32 / 55%);
}
.btn-primary:hover {
    color: #fff;
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -10px rgb(200 44 32 / 60%);
}
.btn-ghost {
    color: var(--ink);
    background: rgb(255 255 255 / 70%);
    border-color: var(--line-strong);
    backdrop-filter: blur(6px);
}
.btn-ghost:hover { color: var(--brand-ink); border-color: var(--brand-2); transform: translateY(-2px); }
.btn-outline { color: var(--ink); background: transparent; border-color: var(--line-strong); }
.btn-outline:hover { color: var(--brand-ink); border-color: var(--brand-1); }
.btn-dark { color: #fff; background: var(--ink); }
.btn-dark:hover { color: #fff; background: #000; }
.btn-light { color: var(--brand-ink); background: #fff; }
.btn-light:hover { color: var(--brand-1); transform: translateY(-2px); box-shadow: var(--shadow); }

.link-button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: .2em;
    cursor: pointer;
}

/* ---------- Hlavička ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-scrolled {
    background: rgb(255 251 247 / 82%);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 1px 0 var(--line), 0 6px 24px -12px rgb(120 50 20 / 15%);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font: 800 1.375rem/1 var(--font-head);
    letter-spacing: -0.03em;
}
.logo:hover { color: var(--ink); }
.logo-mark { width: 40px; height: 40px; transition: transform .5s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo-tld { color: var(--brand-ink); }
.logo-light, .logo-light:hover { color: #fff; }
.logo-light .logo-tld { color: var(--brand-2); }

.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.btn) {
    position: relative;
    display: block;
    padding: 10px 14px;
    color: var(--ink-2);
    font: 600 .96875rem/1 var(--font-head);
    text-decoration: none;
    border-radius: 999px;
    transition: color .2s, background-color .2s;
}
.main-nav a:not(.btn):hover { color: var(--brand-ink); background: var(--tint); }
.main-nav li:last-child { margin-left: 8px; }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 880px) {
    .nav-toggle { display: grid; }
    .main-nav {
        position: absolute;
        top: calc(var(--header-h) - 6px);
        left: var(--gutter);
        right: var(--gutter);
        padding: 12px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px) scale(.98);
        transform-origin: top right;
        transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    }
    .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .main-nav a:not(.btn) { padding: 14px 16px; font-size: 1.0625rem; border-radius: 12px; }
    .main-nav li:last-child { margin: 8px 0 0; }
    .main-nav .btn { width: 100%; }
    .site-header:has(.main-nav.is-open) { background: rgb(255 251 247 / 95%); }
}

/* ---------- Drobečková navigace ---------- */

.breadcrumbs { padding-top: 12px; font-size: .875rem; color: var(--muted); position: relative; z-index: 2; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-ink); text-decoration: underline; }

/* ---------- Pozadí s animovanými skvrnami ---------- */

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    animation: blob-float 22s ease-in-out infinite alternate;
    will-change: transform;
}
.blob-1 { width: 520px; height: 520px; top: -160px; right: -120px; background: radial-gradient(circle, #ffc58a, transparent 70%); }
.blob-2 { width: 460px; height: 460px; bottom: -180px; left: -140px; background: radial-gradient(circle, #ffb3a1, transparent 70%); animation-duration: 26s; animation-delay: -6s; }
.blob-3 { width: 300px; height: 300px; top: 35%; left: 42%; background: radial-gradient(circle, #ffe0b8, transparent 70%); animation-duration: 18s; animation-delay: -3s; }

@keyframes blob-float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.08); }
    100% { transform: translate(-30px, 50px) scale(.95); }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgb(200 44 32 / 6%) 1px, transparent 1px),
        linear-gradient(to bottom, rgb(200 44 32 / 6%) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    margin-top: calc(var(--header-h) * -1);
    padding-top: calc(var(--header-h) + clamp(32px, 6vw, 72px));
    overflow: hidden;
}
.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
    padding-bottom: clamp(40px, 6vw, 72px);
}
.hero h1 { margin-bottom: .35em; }

.hero-rotator {
    margin-bottom: 1.1em;
    font: 700 clamp(1.125rem, 2.2vw, 1.5rem)/1.3 var(--font-head);
    color: var(--ink-2);
}
.rotator {
    display: inline-grid;
    vertical-align: bottom;
    color: var(--brand-ink);
}
.rotator > span {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(.6em);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.rotator:not(.is-ready) > span:first-child,
.rotator > span.is-active { opacity: 1; transform: none; }
.rotator > span.is-leaving { opacity: 0; transform: translateY(-.6em); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-actions-center { justify-content: center; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-2); font-size: .9375rem; font-weight: 500; }
.hero-trust li { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .icon { color: var(--success); width: 1.1em; height: 1.1em; }

/* Orbit se službami – pocta původnímu webu s plovoucími štítky */
.hero-visual { display: grid; place-items: center; }
.orbit {
    --size: min(520px, 42vw);
    position: relative;
    width: var(--size);
    aspect-ratio: 1;
}
.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px dashed rgb(200 44 32 / 22%);
}
.orbit-ring-outer { inset: 4%; animation: spin 90s linear infinite; }
.orbit-ring-inner { inset: 22%; border-style: solid; border-color: rgb(251 143 35 / 25%); }
.orbit-ring-inner::before {
    content: "";
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(251 143 35 / 22%), transparent 70%);
}
.orbit-core {
    position: absolute;
    inset: 38%;
    display: grid;
    place-items: center;
    border-radius: 30%;
    filter: drop-shadow(0 20px 30px rgb(200 44 32 / 35%));
    animation: core-bob 6s ease-in-out infinite;
}
.orbit-core .logo-mark { width: 100%; height: 100%; }
@keyframes core-bob {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-8px) rotate(-3deg); }
}

.orbit-track {
    position: absolute;
    inset: 0;
    animation: spin 70s linear infinite;
}
.orbit-item {
    --r: calc(var(--size) * .46);
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(var(--a) * -1));
}
.orbit-item:nth-child(even) { --r: calc(var(--size) * .3); }
.orbit-item:nth-child(1) { --a: -90deg; }
.orbit-item:nth-child(2) { --a: -45deg; }
.orbit-item:nth-child(3) { --a: 0deg; }
.orbit-item:nth-child(4) { --a: 45deg; }
.orbit-item:nth-child(5) { --a: 90deg; }
.orbit-item:nth-child(6) { --a: 135deg; }
.orbit-item:nth-child(7) { --a: 180deg; }
.orbit-item:nth-child(8) { --a: 225deg; }

.orbit-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px 8px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgb(255 255 255 / 92%);
    box-shadow: var(--shadow);
    font: 700 .8125rem/1 var(--font-head);
    color: var(--ink);
    white-space: nowrap;
    translate: -50% -50%;
    animation: spin 70s linear infinite reverse;
}
.orbit-chip .icon { width: 1.15em; height: 1.15em; color: var(--brand-1); }

@keyframes spin { to { transform: rotate(360deg); } }

/* Pás technologií */
.marquee {
    position: relative;
    z-index: 1;
    padding: 18px 0;
    border-block: 1px solid var(--line);
    background: rgb(255 255 255 / 60%);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 40px; padding-right: 40px; }
.marquee li {
    display: flex;
    align-items: center;
    gap: 40px;
    font: 700 1rem/1 var(--font-head);
    color: var(--muted);
    white-space: nowrap;
}
.marquee li::after { content: "✦"; color: var(--brand-2); font-size: .75rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sekce ---------- */

.section { position: relative; padding-block: clamp(64px, 10vw, 120px); }
.section-compact { padding-block: clamp(40px, 6vw, 72px); }
.section-flush-top { padding-top: 0; }
.section-tint { background: linear-gradient(180deg, var(--tint) 0%, var(--bg) 100%); }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-title-sm { font-size: clamp(1.375rem, 2.4vw, 1.75rem); }

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
}

/* Karty služeb */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.service-card,
.feature,
.service-row {
    --mx: 50%;
    --my: 50%;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(135deg, var(--line), var(--line)) border-box;
    box-shadow: var(--shadow-sm);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.service-card::before,
.feature::before,
.service-row::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(400px circle at var(--mx) var(--my), rgb(251 143 35 / 14%), transparent 45%);
    opacity: 0;
    transition: opacity .4s;
}
.service-card:hover,
.feature:hover,
.service-row:hover {
    transform: translateY(-6px);
    border-color: transparent;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        var(--grad) border-box;
    box-shadow: var(--shadow-lg);
}
.service-card:hover::before,
.feature:hover::before,
.service-row:hover::before { opacity: 1; }

.service-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    color: inherit;
    text-decoration: none;
}
.service-card:hover { color: inherit; }
.service-card h3 { margin: 18px 0 8px; }
.service-card p { color: var(--muted); flex: 1; }

.service-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--tint);
    color: var(--brand-1);
    transition: transform .5s var(--ease), background .3s, color .3s;
}
.service-icon .icon { width: 28px; height: 28px; }
.service-card:hover .service-icon,
.service-row:hover .service-icon {
    background: var(--grad);
    color: #fff;
    transform: rotate(-6deg) scale(1.06);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 700 .9375rem/1 var(--font-head);
    color: var(--brand-ink);
}
.card-link .icon { transition: transform .3s var(--ease); }
.service-card:hover .card-link .icon { transform: translateX(4px); }

/* Výhody a čísla */
.benefits { display: grid; gap: 18px; margin-top: 28px; }
.benefits li { display: flex; gap: 16px; align-items: flex-start; }
.benefits li > span {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--brand-1);
}
.benefits strong { display: block; font-family: var(--font-head); }
.benefits div { color: var(--muted); }
.benefits div strong { color: var(--ink); }

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.stat {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform .45s var(--ease);
}
.stat:nth-child(even) { transform: translateY(24px); }
.stat:hover { transform: translateY(-4px); }
.stat:nth-child(even):hover { transform: translateY(20px); }
.stat strong {
    display: block;
    margin-bottom: 6px;
    font: 800 clamp(2.25rem, 4vw, 3.25rem)/1 var(--font-head);
    letter-spacing: -0.03em;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-variant-numeric: tabular-nums;
}
.stat > span { color: var(--muted); font-size: .9375rem; }

/* Proces */
.process {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    counter-reset: step;
}
.process::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--line-strong);
}
.process::after {
    content: "";
    position: absolute;
    top: 28px;
    left: 10%;
    width: calc(80% * var(--progress, 0));
    height: 2px;
    background: var(--grad);
    transition: width .2s linear;
}
.process-step { position: relative; z-index: 1; text-align: center; }
.process-num {
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--line-strong);
    font: 800 1.25rem/1 var(--font-head);
    color: var(--brand-ink);
    transition: background .4s, color .4s, border-color .4s, transform .4s var(--ease);
}
.process-step.is-visible .process-num {
    background: var(--grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 20px -8px rgb(200 44 32 / 55%);
}
.process-step:hover .process-num { transform: scale(1.1) rotate(-6deg); }
.process-icon { display: none; }
.process-step h3 { font-size: 1.125rem; }
.process-step p { color: var(--muted); font-size: .9375rem; }

/* IoT */
.check-list { display: grid; gap: 10px; margin: 20px 0 28px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { margin-top: .2em; color: var(--success); }

.iot-visual {
    padding: clamp(16px, 3vw, 32px);
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at 50% 50%, var(--surface), var(--tint) 85%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}
.iot-svg { width: 100%; height: auto; overflow: visible; }
.iot-links path { fill: none; stroke: var(--line-strong); stroke-width: 3; }
.iot-pulses path {
    fill: none;
    stroke: var(--brand-1);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-dasharray: 14 400;
    animation: iot-flow 2.6s linear infinite;
}
.iot-pulses path:nth-child(2) { animation-delay: -.7s; stroke: var(--brand-2); }
.iot-pulses path:nth-child(3) { animation-delay: -1.4s; }
.iot-pulses path:nth-child(4) { animation-delay: -2s; stroke: var(--brand-2); }
@keyframes iot-flow {
    from { stroke-dashoffset: 414; }
    to { stroke-dashoffset: 0; }
}
.iot-halo {
    fill: rgb(251 143 35 / 25%);
    transform-origin: 210px 160px;
    animation: halo 2.6s ease-out infinite;
}
@keyframes halo {
    0% { transform: scale(.85); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}
.iot-node rect { fill: var(--surface); stroke: var(--line-strong); stroke-width: 2; }
.iot-node text { font: 800 18px var(--font-head); fill: var(--brand-ink); text-anchor: middle; dominant-baseline: middle; }
.iot-node { animation: node-bob 4s ease-in-out infinite; }
.iot-node:nth-of-type(2) { animation-delay: -1s; }
.iot-node:nth-of-type(3) { animation-delay: -2s; }
.iot-node:nth-of-type(4) { animation-delay: -3s; }
@keyframes node-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: box-shadow .3s, border-color .3s;
}
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    font: 700 1.0625rem/1.4 var(--font-head);
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand-ink); }
.faq-plus {
    position: relative;
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--tint);
    transition: transform .4s var(--ease), background .3s;
}
.faq-plus::before, .faq-plus::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 12px; height: 2px;
    border-radius: 2px;
    background: var(--brand-1);
    translate: -50% -50%;
}
.faq-plus::after { rotate: 90deg; transition: rotate .4s var(--ease); }
.faq-item[open] .faq-plus { transform: rotate(180deg); background: var(--tint-2); }
.faq-item[open] .faq-plus::after { rotate: 0deg; }
.faq-answer { padding: 0 24px 6px; color: var(--ink-2); }
.faq-item[open] .faq-answer { animation: faq-in .4s var(--ease); }
@keyframes faq-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Kontakt ---------- */

.contact-section { background: linear-gradient(180deg, var(--bg), var(--tint)); }
.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}
.contact-list { display: grid; gap: 18px; margin-top: 32px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list small {
    display: block;
    font: 600 .75rem/1.4 var(--font-head);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.contact-list a { font-weight: 600; }
.area-line { display: block; }
.area-line + .area-line { margin-top: 4px; }
.contact-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--grad);
    color: #fff;
}

.contact-card {
    position: relative;
    padding: clamp(20px, 4vw, 40px);
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}
.contact-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background: var(--grad);
    filter: blur(40px);
    opacity: .18;
}

.chips { margin: 0 0 24px; padding: 0; border: 0; }
.chips legend { margin-bottom: 12px; font: 700 1rem/1.4 var(--font-head); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; float: left; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px 8px 10px;
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    font: 600 .875rem/1 var(--font-head);
    color: var(--ink-2);
    background: var(--surface);
    transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
    cursor: pointer;
    user-select: none;
}
.chip span .icon { width: 1.05em; height: 1.05em; color: var(--brand-1); transition: color .25s; }
.chip:hover span { border-color: var(--brand-2); transform: translateY(-1px); }
.chip input:checked + span {
    color: #fff;
    border-color: transparent;
    background: var(--grad-btn);
}
.chip input:checked + span .icon { color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--brand-2); outline-offset: 2px; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font: 600 .9375rem/1.3 var(--font-head); color: var(--ink); }
.req { color: var(--brand-ink); }
.opt { font-weight: 400; color: var(--muted); font-size: .875em; }

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--ink);
    font: 400 1rem/1.4 var(--font-body);
    transition: border-color .2s, box-shadow .2s, background-color .2s;
    appearance: none;
}
.field select {
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c82c20' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #d9bba5; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--brand-2);
    background-color: var(--surface);
    box-shadow: 0 0 0 4px rgb(251 143 35 / 18%);
}
.field [aria-invalid="true"] { border-color: var(--danger); background-color: #fff6f5; }
.field-error {
    margin: 0;
    font-size: .875rem;
    color: var(--danger);
    animation: shake .4s var(--ease);
}
@keyframes shake {
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.form-alert {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: #fff1ef;
    border: 1px solid #f6c7c0;
    color: var(--danger);
    font-weight: 500;
}

/* Honeypot – mimo obrazovku, ne display:none (některé roboty to kontrolují) */
.hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}
.form-note {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    flex: 1 1 260px;
    margin: 0;
    font-size: .875rem;
    color: var(--muted);
}
.form-note .icon { color: var(--success); margin-top: .1em; }

[data-submit][aria-busy="true"] { pointer-events: none; opacity: .85; }
[data-submit][aria-busy="true"] .icon { animation: spin 1s linear infinite; }

.form-success { padding: clamp(24px, 5vw, 48px) 8px; text-align: center; animation: pop-in .6s var(--ease); }
.form-success:focus { outline: none; }
.success-icon {
    display: grid;
    place-items: center;
    width: 72px; height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    box-shadow: 0 16px 30px -10px rgb(200 44 32 / 55%);
}
.success-icon .icon { width: 36px; height: 36px; stroke-width: 2.6; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .3s var(--ease) forwards; }
.success-icon-lg { width: 96px; height: 96px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop-in {
    from { opacity: 0; transform: scale(.94); }
    to { opacity: 1; transform: none; }
}

/* ---------- Podstránky ---------- */

.page-hero {
    position: relative;
    margin-top: -48px;
    padding: clamp(80px, 10vw, 120px) 0 clamp(48px, 7vw, 88px);
    overflow: hidden;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-inner > h1, .page-hero-inner > .lead { max-width: 880px; }
.page-hero-center { text-align: center; }
.page-hero-center .page-hero-inner > * { margin-inline: auto; }
.page-hero-center .hero-actions { justify-content: center; }
.page-hero-icon {
    display: grid;
    place-items: center;
    width: 72px; height: 72px;
    margin-bottom: 24px;
    border-radius: 20px;
    background: var(--grad);
    color: #fff;
    box-shadow: 0 16px 30px -12px rgb(200 44 32 / 55%);
}
.page-hero-icon .icon { width: 36px; height: 36px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag-list li {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgb(255 255 255 / 80%);
    border: 1px solid var(--line-strong);
    font: 600 .875rem/1.3 var(--font-head);
    color: var(--ink-2);
}
.tag-list-sm { margin-top: 12px; }
.tag-list-sm li { padding: 4px 10px; font-size: .8125rem; background: var(--tint); border-color: transparent; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; }
.feature-num {
    display: inline-block;
    margin-bottom: 14px;
    font: 800 .875rem/1 var(--font-head);
    letter-spacing: .1em;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.feature p { margin: 0; color: var(--muted); }

.related { display: flex; flex-wrap: wrap; gap: 10px; }
.related-center { justify-content: center; margin-top: 24px; }
.related a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font: 600 .9375rem/1 var(--font-head);
    text-decoration: none;
    transition: border-color .2s, color .2s, transform .3s var(--ease), box-shadow .3s;
}
.related a .icon { color: var(--brand-1); }
.related a:hover { color: var(--brand-ink); border-color: var(--brand-2); transform: translateY(-2px); box-shadow: var(--shadow); }

.service-list { display: grid; gap: 16px; }
.service-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 24px 28px;
}
.service-row h2 { margin: 0 0 4px; font-size: 1.375rem; }
.service-row h2 a { color: var(--ink); text-decoration: none; }
.service-row h2 a::after { content: ""; position: absolute; inset: 0; }
.service-row p { margin: 0; color: var(--muted); }
.service-row .btn { position: relative; z-index: 1; }

.cta-box {
    position: relative;
    overflow: hidden;
    padding: clamp(32px, 6vw, 64px);
    border-radius: var(--radius-lg);
    background: var(--grad);
    color: #fff;
    text-align: center;
}
.cta-box::before {
    content: "";
    position: absolute;
    width: 400px; height: 400px;
    top: -200px; right: -100px;
    border-radius: 50%;
    background: rgb(255 255 255 / 12%);
    animation: blob-float 16s ease-in-out infinite alternate;
}
.cta-box h2 { color: #fff; }
.cta-box p { max-width: 56ch; margin-inline: auto; color: rgb(255 255 255 / 92%); }
.cta-box .btn { margin-top: 12px; }

.legal-card {
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
}
.legal-card dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0 0 16px; }
.legal-card dt { font: 600 .75rem/1.4 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.legal-card dd { margin: 0; font-weight: 600; }

.big-404 { margin: 0; font: 800 clamp(6rem, 18vw, 11rem)/1 var(--font-head); letter-spacing: -0.05em; }

/* Texty (GDPR, cookies) */
.prose-section { padding-top: clamp(32px, 6vw, 64px); }
.prose h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.prose h2 { margin-top: 1.8em; font-size: 1.375rem; }
.prose ul { padding-left: 1.2em; list-style: disc; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--brand-1); }
.table-wrap { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; background: var(--surface); }
.prose th, .prose td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--tint); font-family: var(--font-head); }
.prose tr:last-child td { border-bottom: 0; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--tint); font-size: .875em; }

/* ---------- Patička ---------- */

.site-footer {
    position: relative;
    padding-top: clamp(56px, 8vw, 88px);
    background: #1e1a1d;
    color: #c9c0c5;
    font-size: .9375rem;
}
.site-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--grad);
}
.site-footer a { color: #f1ebee; text-decoration: none; }
.site-footer a:hover { color: var(--brand-2); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.1fr 1.2fr;
    gap: 40px;
}
.footer-brand p { margin: 18px 0 22px; max-width: 34ch; }
.footer-title {
    margin-bottom: 18px;
    font: 700 .8125rem/1 var(--font-head);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { margin-top: .2em; color: var(--brand-2); }
.footer-social { display: flex !important; flex-wrap: wrap; gap: 14px !important; margin-top: 18px; }
.footer-legal { line-height: 1.7; }
.footer-legal strong { color: #fff; }
.footer-note { margin-top: 12px; font-size: .8125rem; color: #9d9399; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 56px;
    padding-block: 24px;
    border-top: 1px solid rgb(255 255 255 / 10%);
    font-size: .875rem;
    color: #9d9399;
}
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom .link-button { color: #f1ebee; text-decoration: none; }
.footer-bottom .link-button:hover { color: var(--brand-2); }

.gtm-noscript { display: none; visibility: hidden; }

/* ---------- Cookie lišta ---------- */

.consent {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 150;
    width: min(460px, calc(100% - 32px));
    animation: consent-in .6s var(--ease);
}
.consent[hidden] { display: none; }
.consent-inner {
    padding: 22px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 30px 80px -20px rgb(60 20 10 / 35%);
}
.consent-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.consent-head h2 { margin: 0; font-size: 1.0625rem; }
.consent-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--tint); color: var(--brand-1); }
.consent p { margin-bottom: 14px; font-size: .875rem; color: var(--ink-2); }
.consent-options { display: grid; gap: 12px; margin-bottom: 16px; }
.consent-options[hidden] { display: none; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent-actions .btn { flex: 1 1 auto; }
@keyframes consent-in {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

.switch { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui {
    position: relative;
    flex-shrink: 0;
    width: 40px; height: 24px;
    margin-top: 1px;
    border-radius: 999px;
    background: var(--line-strong);
    transition: background .25s;
}
.switch-ui::after {
    content: "";
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgb(0 0 0 / 20%);
    transition: transform .25s var(--ease);
}
.switch input:checked + .switch-ui { background: var(--brand-1); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); }
.switch input:disabled + .switch-ui { opacity: .6; }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--brand-2); outline-offset: 2px; }

/* ---------- Animace při scrollu ---------- */

.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-delay { --d: 150ms; }
.js .stat.reveal.is-visible:nth-child(even) { transform: translateY(24px); }

/* ---------- Responzivita ---------- */

@media (max-width: 1080px) {
    .card-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .process { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
    .process::before, .process::after { display: none; }
}

@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { margin-top: 8px; }
    .orbit { --size: min(400px, 70vw); }
    .split, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    body { font-size: 1rem; }
    .card-grid, .feature-grid, .form-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat { padding: 20px; }
    .stat:nth-child(even), .js .stat.reveal.is-visible:nth-child(even) { transform: none; }
    .process { grid-template-columns: 1fr; text-align: left; }
    .process-step { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; text-align: left; }
    .process-num { grid-row: span 2; margin: 0; }
    .process-step h3 { margin: 6px 0 4px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .service-row { grid-template-columns: auto 1fr; padding: 20px; }
    .service-row .btn { display: none; }
    .hero-actions .btn { flex: 1 1 100%; }
    .orbit-chip { padding: 6px 10px 6px 8px; font-size: .6875rem; }
    .form-footer .btn { width: 100%; }
    .consent { left: 8px; bottom: 8px; width: calc(100% - 16px); }
    .rotator { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .js .reveal { opacity: 1; transform: none; }
    .marquee-track { animation: none; }
}

@media print {
    .site-header, .site-footer, .consent, .hero-bg, .hero-visual, .marquee, .contact-section { display: none !important; }
    body { background: #fff; }
}
