/* Bohemia Cloud — veřejný web.
   Ruční CSS, žádný framework. Font se hostuje lokálně (viz fonts.css) — striktní
   CSP nedovolí načítat nic z cizích domén. Barvy jsou odečtené přímo z loga. */

:root {
    /* Značka — #004b8d a #0074d9 jsou skutečné barvy z loga. */
    --brand:        #004b8d;
    --brand-dark:   #003a6e;
    --brand-bright: #0074d9;
    --brand-soft:   #e8f1fa;

    /* Text */
    --ink:      #101a26;
    --ink-mid:  #3d4b5a;
    --ink-soft: #64717f;

    /* Plochy a linky */
    --bg:       #ffffff;
    --bg-tint:  #f7fafd;
    --line:     #e3e9ef;
    --line-soft:#eef2f6;

    --radius:   12px;
    --wrap:     1160px;
    --font: 'IBM Plex Sans', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-mid);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem);   letter-spacing: -.018em; }
h3 { font-size: 1.22rem; letter-spacing: -.01em; }
p  { margin: 0 0 1em; }

a { color: var(--brand); text-decoration-color: rgba(0, 75, 141, .3); text-underline-offset: 3px; }
a:hover { color: var(--brand-bright); text-decoration-color: currentColor; }

img { max-width: 100%; height: auto; }

.wrap  { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.muted { color: var(--ink-soft); font-size: .92rem; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { margin-bottom: .4em; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--brand); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 3px; border-radius: 5px; }

/* ---------------------------------------------------------------- hlavička */
/* Světlá, aby tmavě modré logo vyniklo — na tmavém podkladu splývalo. */

.site-header {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 30;
}

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; padding: .9rem 0; flex-wrap: wrap;
}

.brand { display: inline-flex; line-height: 0; }
.brand img { width: 214px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 2.25rem; }
.site-nav ul { display: flex; gap: 1.85rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a {
    color: var(--ink-mid); text-decoration: none; font-size: .97rem; font-weight: 500;
    padding: .3rem 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
.site-nav a:hover { color: var(--brand); }
.site-nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand-bright); }

/* Segmentovaný přepínač: oba jazyky vidíte najednou, aktivní je vyplněný. */
.lang-switch {
    display: inline-flex; align-items: stretch;
    border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg-tint);
}
.lang-switch a, .lang-switch span {
    padding: .3rem .72rem; font-size: .83rem; font-weight: 600; letter-spacing: .05em;
    text-decoration: none; line-height: 1.5;
}
.lang-switch .is-active { background: var(--brand); color: #fff; }
.lang-switch a { color: var(--ink-soft); }
.lang-switch a:hover { background: var(--brand-soft); color: var(--brand); }

.nav-toggle {
    display: none; width: 42px; height: 38px; cursor: pointer;
    background: none; border: 1px solid var(--line); border-radius: 8px; padding: 10px 9px;
    flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* -------------------------------------------------------------------- hero */

.hero {
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 58%, #0060b4 100%);
    color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; overflow: hidden;
}
/* Jemný světelný nádech vpravo nahoře, aby plocha nebyla plochá. */
.hero::after {
    content: ""; position: absolute; top: -35%; right: -8%; width: 46rem; height: 46rem;
    background: radial-gradient(circle, rgba(0, 116, 217, .38) 0%, transparent 62%);
    pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lead { color: rgba(255, 255, 255, .87); max-width: 58ch; font-size: 1.12rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }

/* Úvod s mapou: text vlevo, mapa vpravo; na úzkém displeji pod sebou. */
.hero-map { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.hero-map h1 { max-width: 15ch; }
.hero-map .lead { max-width: 48ch; }
.hero-visual { min-width: 0; }

/* ------------------------------------------------------------- mapa lokalit */
/* Vše kreslí SVG bez inline stylů (CSP). Barvy jsou laděné na tmavé pozadí hera. */

.dc-map { margin: 0; }
.dc-map-svg { display: block; width: 100%; height: auto; overflow: visible; }

.dc-land     { fill: rgba(255, 255, 255, .09); }
.dc-border   { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 1.7; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dc-grid-dot { fill: rgba(255, 255, 255, .22); }

.dc-country { animation: dc-appear 1.1s ease-out both; }

.dc-packets { animation: dc-fade 1s ease-out .8s both; }
.dc-packet { fill: #d8eeff; }
.dc-packet-burst { fill: #fff; }
.dc-packet-backup { fill: rgba(255, 255, 255, .8); }
.dc-packet-tail { opacity: .45; }
.dc-packet-glow { opacity: .18; }

.dc-nodes { animation: dc-fade .8s ease-out .3s both; }
.dc-halo  { animation: dc-breathe 5s ease-in-out infinite; }
.dc-orbit { fill: none; stroke: rgba(191, 227, 255, .7); stroke-width: 1; stroke-dasharray: 5 9; transform-box: fill-box; transform-origin: center; animation: dc-rotate 15s linear infinite; }
.dc-node:nth-child(even) .dc-orbit { animation-direction: reverse; animation-duration: 18s; }
.dc-dot   { fill: #fff; stroke: #0074d9; stroke-width: 3.5; }
.dc-pulse { fill: none; stroke: #8ccaff; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: dc-pulse 4.3s ease-out infinite; }
.dc-node:nth-child(2) .dc-pulse, .dc-node:nth-child(2) .dc-halo { animation-delay: 1.1s; }
.dc-node:nth-child(3) .dc-pulse, .dc-node:nth-child(3) .dc-halo { animation-delay: 2.2s; }
.dc-node:nth-child(4) .dc-pulse, .dc-node:nth-child(4) .dc-halo { animation-delay: 3.3s; }
/* Záložní lokality: pomalu se otáčející čárkovaný kroužek — „synchronizace“. */
.dc-ring  { fill: rgba(0, 58, 110, .6); stroke: rgba(255, 255, 255, .85); stroke-width: 2; stroke-dasharray: 3 2.4; animation: dc-spin 23s linear infinite; }
.dc-core  { fill: #fff; }
.dc-label { fill: #fff; font-family: var(--font); font-size: 19px; font-weight: 600; letter-spacing: .01em; paint-order: stroke; stroke: rgba(0, 45, 90, .55); stroke-width: 4px; stroke-linejoin: round; }
.dc-node-backup .dc-label { font-size: 14px; font-weight: 500; fill: rgba(255, 255, 255, .85); }

@keyframes dc-pulse {
    0%   { transform: scale(1);   opacity: .9; }
    75%  { transform: scale(3);   opacity: 0; }
    100% { transform: scale(3);   opacity: 0; }
}
@keyframes dc-rotate { to { transform: rotate(360deg); } }
@keyframes dc-fade    { from { opacity: 0; } to { opacity: 1; } }
@keyframes dc-appear  { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes dc-breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes dc-spin    { to { stroke-dashoffset: -54; } }


/* ------------------------------------------------------------ klíčová čísla */

.highlights-head { max-width: 62ch; }
.stat-grid {
    list-style: none; margin: .4rem 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem;
}
.stat {
    border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem;
    background: linear-gradient(180deg, var(--bg-tint), var(--bg));
}
.stat strong {
    display: block; color: var(--brand); font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 600; letter-spacing: -.03em; line-height: 1.05; margin-bottom: .35rem;
}
.stat span { color: var(--ink-mid); font-size: .95rem; line-height: 1.45; display: block; }

/* ------------------------------------------------------- postup spolupráce */

.steps {
    list-style: none; margin: 0; padding: 0; counter-reset: step;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem;
}
.step { position: relative; padding: 1.6rem 0 0; border-top: 2px solid var(--line); }
.step::before {
    content: ""; position: absolute; left: 0; top: -2px; width: 3rem; height: 2px; background: var(--brand-bright);
}
.step-no { display: block; color: var(--brand-bright); font-weight: 600; font-size: .8rem; letter-spacing: .14em; margin-bottom: .6rem; }
.step h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.step p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.process-cta { margin: 2.4rem 0 0; }

.btn {
    display: inline-block; padding: .78rem 1.6rem; border-radius: 9px;
    font-weight: 600; font-size: .98rem; text-decoration: none; border: 1.5px solid transparent;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: #fff; color: var(--brand-dark); }
.btn-primary:hover { background: var(--brand-bright); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .13); color: #fff; border-color: #fff; }

.section .btn-primary, .page-head .btn-primary { background: var(--brand); color: #fff; }
.section .btn-primary:hover, .page-head .btn-primary:hover { background: var(--brand-bright); }
.section .btn-ghost, .page-head .btn-ghost { border-color: var(--line); color: var(--brand); }
.section .btn-ghost:hover, .page-head .btn-ghost:hover { border-color: var(--brand); background: var(--brand-soft); }

/* ----------------------------------------------------------------- sekce */
/* Bílo na bílém, oddělené jen vlasovou linkou — žádné šedé pruhy. */

.section { padding: clamp(3rem, 6.5vw, 5rem) 0; border-top: 1px solid var(--line-soft); }
.section:first-of-type { border-top: 0; }
.section-intro { color: var(--ink-soft); max-width: 62ch; margin-bottom: 2.6rem; font-size: 1.04rem; }

.page-head { padding: clamp(2.8rem, 5.5vw, 4rem) 0 clamp(1.5rem, 3vw, 2rem); }
.page-head .lead { color: var(--ink-soft); max-width: 62ch; font-size: 1.08rem; margin-bottom: 0; }
.eyebrow {
    color: var(--brand-bright); font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; font-size: .78rem; margin-bottom: .4rem;
}

/* ------------------------------------------------------------------ karty */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(292px, 1fr)); gap: 1.4rem; }
/* Čtyři karty vedle sebe na širokém displeji, 2×2 na tabletu. */
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }

.card {
    display: flex; flex-direction: column;
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.9rem 1.75rem;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card:hover {
    border-color: #c4d7e8;
    box-shadow: 0 2px 4px rgba(0, 75, 141, .04), 0 12px 32px rgba(0, 75, 141, .08);
    transform: translateY(-2px);
}
.card-icon {
    width: 44px; height: 44px; margin-bottom: 1.1rem; color: var(--brand-bright);
    background: var(--brand-soft); border-radius: 10px; padding: 9px;
}
.card-icon svg { width: 100%; height: 100%; }
.card-body { color: var(--ink-soft); font-size: .96rem; }

.features { list-style: none; margin: .6rem 0 1.4rem; padding: 0; }
.features li { position: relative; padding-left: 1.6rem; margin-bottom: .5rem; font-size: .96rem; }
.features li::before {
    content: ""; position: absolute; left: .1rem; top: .5em;
    width: .5rem; height: .28rem; border-left: 2px solid var(--brand-bright);
    border-bottom: 2px solid var(--brand-bright); transform: rotate(-45deg);
}

.badge {
    margin: auto 0 0; align-self: flex-start;
    background: var(--brand-soft); color: var(--brand); border-radius: 100px;
    padding: .24rem .85rem; font-size: .8rem; font-weight: 600;
}

/* ---------------------------------------------------------------- slogan */

.tagline {
    background: var(--brand-soft); border-top: 1px solid var(--line-soft); padding: 2.6rem 0;
}
.tagline p { margin: 0; font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 500; color: var(--ink); }
#rotating-phrase {
    color: var(--brand); font-weight: 600; transition: opacity .35s ease; display: inline-block;
}
#rotating-phrase.is-fading { opacity: 0; }

/* ------------------------------------------------------------ technologie */
/* Záměrně bez cizích log (ochranné známky) — jen název a k čemu technologii používáme. */

.tech-grid {
    list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.tech {
    display: flex; align-items: center; gap: 1rem;
    border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; background: var(--bg);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.tech:hover { border-color: #c4d7e8; box-shadow: 0 8px 24px rgba(0, 75, 141, .07); }
.tech img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.tech-mark {
    flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em;
}
.tech-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.tech-text strong { color: var(--ink); font-weight: 600; }
.tech-text small { color: var(--ink-soft); font-size: .86rem; margin-top: .15rem; }
.tech-note { margin: 1.4rem 0 0; font-size: .8rem; }

/* -------------------------------------------------------- tabulka ceníku */

.table-title { margin-top: 3rem; }
.table-title:first-child { margin-top: 0; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

.price-table { width: 100%; border-collapse: collapse; min-width: 620px; background: var(--bg); }
.price-table th {
    background: var(--bg-tint); color: var(--ink); text-align: left; font-weight: 600;
    padding: .85rem 1.1rem; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
    border-bottom: 1px solid var(--line);
}
.price-table td { padding: .85rem 1.1rem; border-top: 1px solid var(--line-soft); vertical-align: top; font-size: .95rem; }
.price-table tbody tr:first-child td { border-top: 0; }
.price-table tbody tr:hover { background: var(--bg-tint); }
.cell-name { font-weight: 600; color: var(--ink); }
.cell-note { display: block; font-weight: 400; color: var(--ink-soft); font-size: .84rem; margin-top: .3rem; }

/* ------------------------------------------------------- kontakt a dokumenty */

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem 1.75rem; }

.detail-list { margin: 0; }
.detail-list dt {
    font-size: .76rem; text-transform: uppercase; letter-spacing: .1em;
    color: var(--ink-soft); margin-top: 1.3rem; font-weight: 600;
}
.detail-list dt:first-child { margin-top: 0; }
.detail-list dd { margin: .2rem 0 0; color: var(--ink); }

.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; max-width: 760px; }
.doc {
    display: flex; align-items: center; gap: 1.2rem; text-decoration: none; color: inherit;
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.5rem;
    transition: border-color .15s ease, background-color .15s ease;
}
.doc:hover { border-color: var(--brand-bright); background: var(--bg-tint); color: inherit; }
.doc-icon { width: 32px; height: 32px; color: var(--brand-bright); flex: none; }
.doc-icon svg { width: 100%; height: 100%; }
.doc-text { flex: 1; }
.doc-text strong { color: var(--ink); font-weight: 600; }
.doc-text small { display: block; color: var(--ink-soft); font-size: .85rem; }
.doc-action { color: var(--brand); font-weight: 600; font-size: .92rem; white-space: nowrap; }

/* ---------------------------------------------------------------- patička */
/* Jediná tmavá plocha kromě hera — používá bílou variantu loga. */

.site-footer { background: #0c1c2c; color: rgba(255, 255, 255, .72); padding-top: 3.5rem; font-size: .95rem; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: .9rem; font-weight: 600; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration-color: rgba(255, 255, 255, .3); }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: rgba(255, 255, 255, .5); }

.footer-brand img { width: 190px; margin-bottom: 1.2rem; }

.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.3rem 0; }
.footer-bottom p { margin: 0; font-size: .86rem; color: rgba(255, 255, 255, .5); }

/* ------------------------------------------------------------- responzivní */

@media (max-width: 980px) {
    .footer-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
}

@media (max-width: 880px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-map h1 { max-width: 17ch; }
    .hero-visual { max-width: 620px; }
    .dc-label { font-size: 20px; }
    .dc-node-backup .dc-label { font-size: 16px; }
    .nav-toggle { display: flex; }
    .site-nav {
        display: none; width: 100%; flex-direction: column; align-items: flex-start;
        gap: 1.1rem; padding: 1.1rem 0 .5rem; border-top: 1px solid var(--line);
    }
    .site-nav.is-open { display: flex; }
    .site-nav ul { flex-direction: column; gap: .1rem; width: 100%; }
    .site-nav a { display: block; padding: .55rem 0; }
    .brand img { width: 186px; }
}

@media (max-width: 480px) {
    .stat-grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
    .stat { padding: 1.1rem 1.1rem; }
    .dc-label { font-size: 24px; }
    .dc-node-backup .dc-label { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    /* Mapa je záměrně vyjmuta — pohyb je malý a pomalý; zbytek webu nastavení respektuje. */
    body :not(.dc-map-svg, .dc-map-svg *),
    body :not(.dc-map-svg, .dc-map-svg *)::before,
    body :not(.dc-map-svg, .dc-map-svg *)::after {
        transition-duration: .01ms !important; animation-duration: .01ms !important;
    }
}

@media print {
    .site-header, .site-footer, .hero-actions, .skip-link, .dc-packets { display: none; }
    body { font-size: 12pt; color: #000; }
    .card, .panel, .table-scroll { border-color: #999; }
}
