/* KS-TEL – veřejný web */
:root {
    --ink: #0e1a2b;
    --ink-2: #1b2b40;
    --text: #2a3646;
    --muted: #5f6b7a;
    --line: #e3e7ec;
    --bg: #ffffff;
    --bg-alt: #f4f6f8;
    --accent: #1374b3;
    --accent-dark: #0d5a8c;
    --accent-soft: #e8f2fa;
    --accent-light: #5aaeea;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(14, 26, 43, .06), 0 8px 24px rgba(14, 26, 43, .06);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-head: "Manrope", var(--font);
    --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 780px; }
.narrow-left { max-width: 780px; margin-bottom: 2rem; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo { height: 54px; width: auto; }
.brand-default .brand-tag { margin: 0; padding-left: 14px; border-left: 1px solid var(--line); font-size: .82rem; line-height: 1.35; max-width: 11em; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: .02em; }
.brand-tag { font-size: .78rem; color: var(--muted); margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem;
    padding: 9px 14px; border-radius: 8px; transition: background .15s, color .15s;
}
.main-nav a:hover { background: var(--bg-alt); color: var(--ink); }
.main-nav a.active { color: var(--accent-dark); }
.main-nav a.nav-cta { background: var(--ink); color: #fff; margin-left: 8px; }
.main-nav a.nav-cta:hover, .main-nav a.nav-cta.active { background: var(--accent); color: #fff; }
.lang-switch { display: flex; align-items: center; gap: 2px; margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line); font-size: .82rem; font-weight: 600; letter-spacing: .04em; }
.main-nav .lang-switch a, .lang-current { padding: 6px 8px; border-radius: 6px; font-size: .82rem; font-weight: 600; }
.main-nav .lang-switch a { color: var(--muted); }
.main-nav .lang-switch a:hover { color: var(--ink); background: var(--bg-alt); }
.lang-current { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font: 600 1rem var(--font); text-decoration: none; cursor: pointer;
    padding: 14px 24px; border-radius: 10px; border: 1.5px solid transparent;
    transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }

/* ---------- Hero ---------- */
.hero, .page-hero {
    position: relative; overflow: hidden;
    background: radial-gradient(1200px 500px at 85% -10%, #24405f 0%, transparent 60%), var(--ink);
    color: #cfd8e3;
}
.hero-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
    mask-image: linear-gradient(180deg, #000 30%, transparent);
    -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.hero h1, .page-hero h1 { color: #fff; }
.hero .eyebrow { color: var(--accent-light); }
.hero .lead, .page-hero .lead { font-size: 1.2rem; color: #b9c5d3; max-width: 36em; }
.eyebrow {
    font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 14px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-art { color: #7f9cbd; }
.hero-art svg { width: 100%; height: auto; }
.hero-art path { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.4s ease forwards; }
.hero-art .d2 { animation-delay: .2s; }
.hero-art .d3 { animation-delay: .5s; }
.hero-art .d4 { animation-delay: .8s; stroke: var(--accent-light); }
.hero-art .d5 { animation-delay: 1.1s; opacity: .45; }
.hero-art .dim { animation-delay: 1.4s; opacity: .6; stroke-dasharray: 4 6; }
.hero-art .node { fill: var(--ink); stroke: var(--accent-light); stroke-width: 2; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-art .dim { animation: none; stroke-dashoffset: 0; }

.page-hero .container { position: relative; padding-top: 72px; padding-bottom: 64px; }
.page-hero .lead { margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 40px; max-width: 640px; }
.section-head h2 { margin: 0; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; flex-wrap: wrap; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }

.intro-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; }
.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 1.4em; font-size: 1.5rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--accent); }
.prose > :first-child { margin-top: 0; }
.prose img { border-radius: var(--radius); margin: 1em 0; }

.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.stats li { display: flex; align-items: baseline; gap: 18px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stats strong { font-family: var(--font-head); font-size: 2.3rem; font-weight: 800; color: var(--ink); min-width: 3.2em; line-height: 1; }
.stats span { color: var(--muted); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 24px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.service { padding: 30px 28px; transition: transform .2s, border-color .2s; }
.service:hover { transform: translateY(-3px); border-color: #a9cbe6; }
.service p { color: var(--muted); margin: 0; font-size: .98rem; }
.service-icon {
    display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px;
    border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark);
}
.service-icon .icon { width: 28px; height: 28px; }

.project { overflow: hidden; display: flex; flex-direction: column; }
.project-media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project:hover .project-media img { transform: scale(1.03); }
.project-placeholder {
    width: 100%; height: 100%; display: grid; place-items: center; color: #9fb0c3;
    background:
        linear-gradient(rgba(14, 26, 43, .06) 1px, transparent 1px) 0 0 / 20px 20px,
        linear-gradient(90deg, rgba(14, 26, 43, .06) 1px, transparent 1px) 0 0 / 20px 20px,
        #eef2f6;
}
.project-placeholder .icon { width: 64px; height: 64px; stroke-width: 1.2; }
.badge {
    position: absolute; left: 14px; top: 14px; font-size: .75rem; font-weight: 600;
    background: rgba(14, 26, 43, .86); color: #fff; padding: 5px 10px; border-radius: 999px;
}
.project-body { padding: 22px 24px 26px; }
.project-body h3 { margin-bottom: .3em; }
.project-body p { font-size: .96rem; }
.project-meta { color: var(--accent-dark); font-weight: 600; font-size: .88rem !important; margin-bottom: .8em; }
.project-client { color: var(--muted); font-size: .88rem !important; margin: 0; }
.project.is-hidden { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter {
    font: 500 .92rem var(--font); padding: 8px 16px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.filter:hover { border-color: var(--ink); }
.filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty { color: var(--muted); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.person { display: grid; grid-template-columns: 180px 1fr; overflow: hidden; }
.person-photo { background: var(--ink-2); min-height: 220px; display: grid; place-items: center; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-initials { font-family: var(--font-head); font-size: 4rem; font-weight: 800; color: var(--accent-light); }
.person-body { padding: 26px 28px; }
.person-body h3 { font-size: 1.3rem; margin-bottom: .2em; }
.person-position { color: var(--accent-dark); font-weight: 600; font-size: .92rem; }
.person-body p { font-size: .97rem; }
.person-contact { list-style: none; padding: 0; margin: 14px 0 0; font-size: .95rem; }
.person-contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-band { background: var(--accent); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; opacity: .92; }
.cta-band .btn-primary { background: var(--ink); }
.cta-band .btn-primary:hover { background: #000; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-list a { font-weight: 600; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--accent-dark); }
.ci { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); flex: none; }
.company-ids { color: var(--muted); font-size: .95rem; border-top: 1px solid var(--line); padding-top: 20px; }
.company-ids strong { color: var(--ink); }

.form-card { padding: 36px; }
.form-card h2 { font-size: 1.5rem; }
.form-row { margin-bottom: 16px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-weight: 500; font-size: .92rem; color: var(--ink); }
.form input, .form textarea {
    display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 1rem; color: var(--text);
    padding: 12px 14px; border: 1px solid #cfd6de; border-radius: 10px; background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(19, 116, 179, .15); }
.form-note { font-size: .82rem; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: .95rem; }
.alert-success { background: #e8f6ee; color: #17663a; border: 1px solid #bfe5cd; }
.alert-error { background: #fdecec; color: #9b1c1c; border: 1px solid #f5c2c2; }

.map iframe { display: block; width: 100%; height: 400px; border: 0; filter: grayscale(.3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9fb0c3; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-top: 64px; padding-bottom: 48px; }
.site-footer h3 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.site-footer a { color: #dbe3ec; text-decoration: none; }
.site-footer a:hover { color: var(--accent-light); }
.brand-footer { color: #fff; margin-bottom: 16px; }
.brand-footer:hover { color: #fff; }
.brand-footer .brand-logo { height: 52px; }
.brand-footer .brand-logo-custom { background: #fff; padding: 8px 12px; border-radius: 10px; height: 68px; }
.footer-about { max-width: 30em; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-list li { display: flex; gap: 10px; align-items: flex-start; }
.footer-list .icon { margin-top: 3px; color: var(--accent-light); }
.footer-company strong { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 22px; padding-bottom: 26px; font-size: .85rem; }

/* ---------- Lišta software ---------- */
.sw-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 0 40px; background: #fff; }
.sw-title { text-align: center; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
.sw-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 56px; }
.sw-list li { display: flex; }
.sw-list a, .sw-list span[title] { display: flex; align-items: center; height: 48px; text-decoration: none; }
.sw-list img { max-height: 44px; max-width: 170px; width: auto; filter: grayscale(1); opacity: .65; transition: filter .2s, opacity .2s; }
.sw-list a:hover img { filter: none; opacity: 1; }
.sw-name { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; color: #8a96a5; transition: color .2s; white-space: nowrap; }
.sw-list a:hover .sw-name { color: var(--ink); }
.page-o-nas .sw-strip { border-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; }
    .hero-art { display: none; }
    .stats { grid-template-columns: repeat(3, 1fr); }
    .stats li { flex-direction: column; align-items: flex-start; gap: 6px; }
    .stats strong { min-width: 0; }
    .intro-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .cards-3 { grid-template-columns: repeat(2, 1fr); }
    .team { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    body { font-size: 16px; }
    .container { padding-left: 16px; padding-right: 16px; }
    .section { padding: 52px 0; }
    .section-head { margin-bottom: 24px; }
    h1 { font-size: 2rem; }
    .eyebrow { font-size: .72rem; margin-bottom: 10px; }

    /* Hlavička a menu */
    .header-inner { height: 64px; }
    .brand-logo { height: 44px; }
    .nav-toggle { display: block; margin-right: -8px; }
    .main-nav {
        position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
        background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 20px; gap: 2px;
        display: none; box-shadow: 0 12px 24px rgba(14, 26, 43, .08);
    }
    .nav-open .main-nav { display: flex; }
    .nav-open .nav-toggle .icon-open { display: none; }
    .nav-open .nav-toggle .icon-close { display: block; }
    .main-nav a { padding: 13px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
    .main-nav a.nav-cta { margin: 12px 0 0; text-align: center; border-radius: 10px; border-bottom: 0; }
    .brand-tag { display: none; }
    .lang-switch { margin: 14px 0 0; padding: 0; border: 0; justify-content: center; gap: 8px; }
    .main-nav .lang-switch a, .lang-current { padding: 8px 16px; border: 1px solid var(--line); border-radius: 8px; font-size: .9rem; }
    .lang-current { background: var(--bg-alt); }

    /* Úvod */
    .hero-inner { padding-top: 44px; padding-bottom: 52px; gap: 0; }
    .hero .lead, .page-hero .lead { font-size: 1.05rem; }
    .hero-actions { margin-top: 24px; gap: 10px; }
    .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
    .hero-art { display: none; }
    .page-hero .container { padding-top: 40px; padding-bottom: 36px; }
    .intro-grid { gap: 28px; }
    .prose { font-size: 1rem; }

    .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .stats li { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 12px; }
    .stats strong { font-size: 1.55rem; min-width: 0; }
    .stats span { font-size: .8rem; line-height: 1.35; }

    /* Karty */
    .cards { gap: 14px; }
    .cards-3 { grid-template-columns: 1fr; }
    .service { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 20px 18px; }
    .service-icon { width: 44px; height: 44px; margin: 0; grid-row: span 2; }
    .service-icon .icon { width: 24px; height: 24px; }
    .service h3 { margin: 2px 0 6px; font-size: 1.05rem; }
    .service p { font-size: .93rem; }
    .project-media { aspect-ratio: 16 / 10; }
    .project-body { padding: 18px 18px 20px; }
    .section-head-row { flex-direction: column; align-items: flex-start; gap: 8px; }

    /* Tým */
    .team { gap: 14px; }
    .person { grid-template-columns: 1fr; }
    .person-photo { min-height: 0; aspect-ratio: auto; background: none; display: block; padding: 22px 20px 0; }
    .person-photo img { width: 88px; height: 88px; border-radius: 50%; }
    .person-initials { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--ink-2); font-size: 2rem; }
    .person-body { padding: 14px 20px 22px; }

    /* Kontakt */
    .contact-grid { gap: 32px; }
    .contact-list { margin: 20px 0; }
    .contact-list a { font-size: 1.02rem; word-break: break-word; }
    .form-row-2 { grid-template-columns: 1fr; gap: 0; }
    .form-card { padding: 22px 18px; }
    .form .btn { width: 100%; justify-content: center; }
    .map iframe { height: 300px; }

    /* Software */
    .sw-strip { padding: 28px 0 30px; }
    .sw-title { margin-bottom: 14px; font-size: .72rem; }
    .sw-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; justify-items: center; }
    .sw-list img { max-height: 36px; max-width: 140px; }
    .sw-name { font-size: 1.1rem; }

    /* CTA a patička */
    .cta-inner { padding-top: 40px; padding-bottom: 44px; gap: 20px; }
    .cta-band h2 { font-size: 1.4rem; }
    .cta-inner .btn { width: 100%; justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; padding-bottom: 32px; }
    .footer-bottom { padding-top: 18px; padding-bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .hero-art path { stroke-dashoffset: 0; }
}
