@import url(font.css);
/* ==========================================================================
   AP Development – základní styly (sdílené všemi stránkami)
   Paleta: grafit #14181C, smaragd #0E7A5F, petrolej #0B4F45, signální #2BD18C
   ========================================================================== */

:root {
    --ink: #14181C;
    --ink-2: #262D33;
    --muted: #5A646C;
    --line: #DCE2DF;
    --bg: #F6F7F5;
    --alt: #EDF0EE;
    --surface: #FFFFFF;
    --em: #0E7A5F;
    --em-d: #0B4F45;
    --em-tint: #E2F1EB;
    --sig: #2BD18C;
    --warn: #B4570B;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 1px 2px rgba(20, 24, 28, .06), 0 8px 24px rgba(20, 24, 28, .06);
    --shadow-lg: 0 2px 4px rgba(20, 24, 28, .06), 0 24px 48px rgba(20, 24, 28, .12);
    --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --header: 76px;
    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
}

/* ------------------------------------------------------------------ reset */
html, body { width: 100%; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
body {
    background: var(--bg);
    color: var(--ink);
    font: 400 17px/1.6 var(--font);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
body.lock { overflow: hidden; }
* { box-sizing: border-box; }
*, a, button { cursor: auto; }
a, button, summary, label, [data-open-calendar], input[type=range], select, a *, button * { cursor: pointer!important; }
input[type=text], input[type=email], input[type=tel], textarea { cursor: text; }
h1, h2, h3, h4, p, ul, ol, dl, span, li, cite, b, dd { cursor: default; }
img, video, svg { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
font { font: inherit; color: inherit; }
::selection { background: var(--sig); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sig); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

h1, h2, h3 { font-weight: 700; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.2vw, 60px); }
h2 { font-size: clamp(26px, 3.2vw, 40px); }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; margin-top: 32px; }
.muted { color: var(--muted); font-size: 15px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* nevyplněné údaje před spuštěním */
.todo { outline: 2px dashed #E3A008; outline-offset: 2px; border-radius: 4px; background: rgba(227, 160, 8, .12); padding: 0 4px; }

/* ------------------------------------------------------------------ typografie sekcí */
.eyebrow {
    font: 500 13px/1.4 var(--mono);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--em);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sig); box-shadow: 0 0 0 4px rgba(43, 209, 140, .18); flex: none; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); }
.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head .lead { margin-top: 16px; }
.sec-head h2 + .lead { margin-top: 16px; }

.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec--tight { padding-top: 0; }
.sec--alt { background: var(--alt); }
.sec--dark { background: var(--ink); color: #fff; }
.sec--dark .lead { color: #AEB8B3; }
.sec--dark .eyebrow { color: var(--sig); }

.link { color: var(--em); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.link i { transition: transform .2s ease; font-size: .85em; }
.link:hover i, a:hover > .link i { transform: translateX(4px); }
button.link { padding: 0; }

/* ------------------------------------------------------------------ tlačítka (pilulka + ikona v kroužku) */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 22px;
    min-height: 52px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    isolation: isolate;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn > i {
    width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px; flex: none;
    transition: transform .25s ease, background-color .2s ease, color .2s ease;
}
.btn > span { position: relative; z-index: 1; }
.btn::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.btn:hover::before { transform: scaleX(1); }
.btn:hover > i { transform: rotate(-12deg) scale(1.05); }

.btn--primary { background: var(--em); color: #fff; }
.btn--primary > i { background: #fff; color: var(--em); }
.btn--primary::before { background: var(--em-d); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark > i { background: var(--sig); color: var(--ink); }
.btn--dark::before { background: var(--em-d); }

.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost > i { background: var(--ink); color: #fff; }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: #fff; }
.btn--ghost:hover > i { background: var(--sig); color: var(--ink); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light > i { background: var(--em); color: #fff; }
.btn--light::before { background: var(--sig); }

.btn--ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.btn--ghost-light > i { background: rgba(255, 255, 255, .14); color: #fff; }
.btn--ghost-light::before { background: rgba(255, 255, 255, .12); }

.btn--sm { min-height: 42px; padding: 6px 18px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ------------------------------------------------------------------ hlavička */
header {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center;
    height: var(--header);
    padding: 0 max(var(--gutter), calc((100% - var(--wrap)) / 2));
    background: rgba(246, 247, 245, .88);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, background-color .2s ease;
}
header.scrolled { border-color: var(--line); background: rgba(246, 247, 245, .96); }
header > .top-bar { display: none; }
header > nav { flex: 1; display: flex; align-items: center; min-width: 0; height: 100%; }

.menu { display: flex; align-items: center; gap: 2px; width: 100%; height: 100%; }
.menu > li { display: flex; align-items: center; height: 100%; }
.menu > li.logo { margin-right: auto; }
.menu > li.logo img { height: 40px; width: auto; }
.menu > li > a { display: flex; align-items: center; height: 100%; padding: 0 12px; font-weight: 500; font-size: 15.5px; color: var(--ink); white-space: nowrap; }
.menu > li > a > font { position: relative; }
.menu > li:not(.logo):not(.menu-cta) > a > font::after {
    content: ""; position: absolute; left: 50%; bottom: -12px; width: 6px; height: 6px; margin-left: -3px;
    border-radius: 50%; background: var(--sig); opacity: 0; transform: translateY(4px); transition: .2s ease;
}
.menu > li:hover > a > font::after, .menu > li.active > a > font::after { opacity: 1; transform: none; }
.menu > li.active > a { color: var(--em); }

.menu > li.menu-cta { margin-left: 12px; }
.menu > li.menu-cta > a {
    height: auto; padding: 10px 18px 10px 14px; border-radius: 999px;
    background: var(--em); color: #fff; font-weight: 600; gap: 8px;
}
.menu > li.menu-cta > a:hover { background: var(--em-d); }
.menu > li.menu-cta i { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--em); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }

/* podmenu (Řešení, Pro koho) */
.menu > li[data-submenu] > a { padding-right: 4px; }
.submenu-toggle { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); margin-right: 8px; }
.submenu {
    position: absolute; top: calc(100% - 8px); left: -8px; z-index: 10;
    width: 380px; padding: 10px; border-radius: var(--radius);
    background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s ease;
}
.menu > li[data-submenu]:hover > .submenu, .menu > li[data-submenu]:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.menu > li[data-submenu]:hover > .submenu-toggle i { transform: rotate(180deg); }
.submenu a { display: flex; align-items: flex-start; gap: 14px; padding: 12px; border-radius: 10px; transition: background-color .15s ease; }
.submenu a:hover { background: var(--alt); }
.submenu a > i { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--em-tint); color: var(--em); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.submenu b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.submenu small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; margin-top: 2px; }
.submenu .submenu-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.submenu .submenu-all a { align-items: center; justify-content: space-between; color: var(--em); }

/* jazyky: na desktopu rozbalovací, v mobilním menu řádek */
.language-menu { display: flex; align-items: center; margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line); height: 28px; }
.lang-current { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/1 var(--mono); letter-spacing: .06em; padding: 8px 6px; color: var(--ink); }
.lang-current i { font-size: 9px; color: var(--muted); transition: transform .2s ease; }
.lang-list {
    position: absolute; top: calc(100% + 6px); right: -6px; z-index: 20; display: flex; flex-direction: column; min-width: 120px; padding: 6px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.lang-list::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.language-menu:hover .lang-list, .language-menu:focus-within .lang-list { opacity: 1; visibility: visible; transform: none; }
.language-menu:hover .lang-current i { transform: rotate(180deg); }
.lang-list a { font: 500 13px/1 var(--mono); letter-spacing: .04em; padding: 10px 12px; border-radius: 6px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.lang-list a::after { content: attr(title); font-family: var(--font); letter-spacing: 0; font-size: 13px; }
.lang-list a:hover { color: var(--ink); background: var(--alt); }
.lang-list a.active { color: var(--em); font-weight: 600; }

.responsive-menu { display: none; }

@media (max-width: 1320px) {
    .menu > li > a { padding: 0 8px; font-size: 15px; }
    .menu > li.menu-cta { margin-left: 6px; }
    .language-menu { margin-left: 8px; padding-left: 8px; }
}

@media (max-width: 1180px) {
    :root { --header: 66px; }
    .menu > li.logo img { height: 34px; }
    .responsive-menu {
        display: flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 44px; height: 44px; padding: 10px; margin-left: auto; border-radius: 10px; z-index: 3;
    }
    .responsive-menu span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: .25s ease; }
    body.nav-open .responsive-menu span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    body.nav-open .responsive-menu span:nth-child(2) { opacity: 0; }
    body.nav-open .responsive-menu span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .menu > li:not(.logo) { display: none; }
    body.nav-open header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
    body.nav-open .menu {
        position: fixed; inset: var(--header) 0 0 0; z-index: 2;
        flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
        height: auto; padding: 8px var(--gutter) 120px; overflow-y: auto; background: var(--bg);
    }
    body.nav-open .menu > li { display: flex; flex: none; flex-wrap: wrap; height: auto; border-bottom: 1px solid var(--line); }
    body.nav-open .menu > li.logo { position: fixed; top: 0; left: var(--gutter); height: var(--header); border: 0; }
    body.nav-open .menu > li > a { height: auto; padding: 16px 0; font-size: 19px; font-weight: 600; flex: 1; }
    body.nav-open .menu > li > a > font::after { display: none; }
    body.nav-open .menu > li.menu-cta { border: 0; margin: 20px 0 0; }
    body.nav-open .menu > li.menu-cta > a { flex: 0 1 auto; padding: 14px 22px 14px 16px; font-size: 17px; }
    .submenu-toggle { width: 44px; height: 44px; margin: 0; font-size: 14px; }
    .submenu { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px; display: none; background: transparent; }
    .menu > li.open > .submenu { display: block; }
    .menu > li.open > .submenu-toggle i { transform: rotate(180deg); }
    .submenu a { padding: 10px 0; }

    .language-menu { display: none; }
    body.nav-open .language-menu { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: auto; z-index: 3; margin: 0; padding: 14px var(--gutter) 18px; background: var(--bg); border-top: 1px solid var(--line); }
    body.nav-open .lang-current { display: none; }
    body.nav-open .lang-list { position: static; flex-direction: row; gap: 8px; opacity: 1; visibility: visible; transform: none; background: none; border: 0; box-shadow: none; padding: 0; min-width: 0; }
    body.nav-open .lang-list a { font-size: 15px; padding: 10px 14px; background: var(--surface); border-radius: 8px; color: var(--ink); }
    body.nav-open .lang-list a::after { display: none; }
    body.nav-open .lang-list a.active { background: var(--ink); color: #fff; }
}

/* ------------------------------------------------------------------ karty řešení */
.sol-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.sol-grid > .sol-card { grid-column: span 2; }
.sol-grid > .sol-card:nth-child(-n+2) { grid-column: span 3; }
@media (max-width: 1080px) {
    .sol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sol-grid > .sol-card, .sol-grid > .sol-card:nth-child(-n+2) { grid-column: span 1; }
    .sol-grid > .sol-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .sol-grid { grid-template-columns: 1fr; }
}
.sol-card {
    display: flex; flex-direction: column; gap: 10px; min-height: 280px;
    padding: 28px; border-radius: var(--radius-lg); background: var(--surface);
    border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sol-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.sol-card__num { position: absolute; top: 24px; right: 26px; font: 500 13px var(--mono); color: #A9B3AE; }
.sol-card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--em-tint); color: var(--em); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 10px; transition: .25s ease; }
.sol-card:hover .sol-card__icon { background: var(--em); color: #fff; }
.sol-card h3 { font-size: 21px; }
.sol-card p { color: var(--muted); font-size: 16px; }
.sol-card__quote { font-style: italic; color: var(--ink) !important; border-left: 3px solid var(--sig); padding-left: 12px; }
.sol-card__more { margin-top: auto; padding-top: 8px; color: var(--em); font-weight: 600; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }
.sol-card__more i { transition: transform .2s ease; }
.sol-card:hover .sol-card__more i { transform: translateX(4px); }
.sec--alt .sol-card { border-color: transparent; }

.addons { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 20px 28px; border-radius: var(--radius); border: 1.5px dashed #C2CBC6; }
.addons__title { font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.addons ul { display: flex; flex-wrap: wrap; gap: 8px 22px; flex: 1; }
.addons li { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.addons li i { color: var(--em); font-size: 12px; }

/* ------------------------------------------------------------------ odvětví */
.ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.ind-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: .25s ease; }
.ind-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ind-card > i { font-size: 26px; color: var(--em); margin-bottom: 8px; }
.ind-card p { color: var(--muted); font-size: 16px; }
.ind-card .link { margin-top: auto; }

/* ------------------------------------------------------------------ případové studie */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 20px; }
.case-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case-card__img { aspect-ratio: 16 / 8; overflow: hidden; background: var(--ink); }
.case-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; opacity: .92; }
.case-card:hover .case-card__img img { transform: scale(1.04); }
.case-card__metric { position: absolute; left: 20px; bottom: 20px; display: flex; align-items: baseline; gap: 10px; padding: 10px 16px; border-radius: 12px; background: rgba(20, 24, 28, .86); color: #fff; backdrop-filter: blur(8px); }
.case-card__metric b { font: 600 28px/1 var(--mono); color: var(--sig); }
.case-card__metric small { font-size: 14px; color: #D3DAD6; max-width: 220px; line-height: 1.3; }
.case-card__body { display: flex; flex-direction: column; gap: 12px; padding: 26px 28px 28px; flex: 1; }
.case-card__meta { font: 500 12.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.case-card h3 { font-size: 23px; }
.case-card__body > p:not([class]) { color: var(--muted); }
.case-card__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-card__facts b { display: block; font: 600 20px/1.2 var(--mono); color: var(--ink); }
.case-card__facts span { font-size: 13.5px; color: var(--muted); line-height: 1.3; display: block; }
.case-card__inv { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.case-card__inv i { color: var(--em); }
.case-card .link { margin-top: auto; }

/* ------------------------------------------------------------------ vrstvy „od serveru po fakturu“ */
.layers-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.layers-wrap .sec-head { margin: 0; }
.layers { display: flex; flex-direction: column; gap: 12px; padding-left: 34px; }
.layers::before { content: ""; position: absolute; left: 9px; top: 28px; bottom: 74px; width: 2px; background: linear-gradient(var(--sig), rgba(43, 209, 140, .15)); }
.layers__row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 20px; align-items: center;
    padding: 18px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08);
    transition: background-color .25s ease, transform .25s ease;
}
.layers__row:hover { background: rgba(43, 209, 140, .09); transform: translateX(4px); }
.layers__node { position: absolute; left: -32px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--ink); border: 2px solid var(--sig); }
.layers__node::after { content: ""; position: absolute; left: 14px; top: 5px; width: 18px; height: 2px; background: rgba(43, 209, 140, .5); }
.layers__row:hover .layers__node { background: var(--sig); }
.layers__text h3 { color: #fff; font-size: 18px; }
.layers__text p { color: #9EA9A3; font-size: 15px; }
.layers__tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.layers__tags span { font: 500 12px var(--mono); padding: 5px 9px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: #D6DED9; }
.layers__brand { margin-top: 10px; display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-radius: var(--radius); background: var(--em); color: #fff; font: 600 15px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.layers__brand::before { content: ""; position: absolute; left: -32px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--sig); box-shadow: 0 0 0 6px rgba(43, 209, 140, .2); }

/* ------------------------------------------------------------------ postup a garance */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.process li { padding: 24px 22px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.process li:not(:last-child)::after { content: ""; position: absolute; top: 44px; right: -17px; width: 18px; height: 2px; background: var(--sig); z-index: 1; }
.process__num { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; font: 600 16px var(--mono); background: var(--ink); color: var(--sig); margin-bottom: 16px; }
.process h3 { margin-bottom: 8px; }
.process p { color: var(--muted); font-size: 15.5px; }
.sec--alt .process li { border-color: transparent; }

.guar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.guar__item { padding: 28px 24px; border-radius: var(--radius); background: var(--surface); }
.guar__item > i { font-size: 24px; color: var(--em); margin-bottom: 18px; }
.guar__item h3 { margin-bottom: 8px; }
.guar__item p { color: var(--muted); font-size: 15.5px; }

/* ------------------------------------------------------------------ kdo za tím stojí */
.who__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.who__img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; max-width: 440px; }
.who__img img { width: 100%; height: 100%; object-fit: cover; }
.who__img::after { content: ""; position: absolute; right: 18px; bottom: 18px; width: 18px; height: 18px; border-radius: 50%; background: var(--sig); box-shadow: 0 0 0 7px rgba(43, 209, 140, .25); }
.who__text h2 { margin-bottom: 20px; }
.who__text p:not(.eyebrow) { margin-bottom: 14px; color: var(--ink-2); font-size: 18px; }
.who__text .link { margin-top: 8px; }

/* ------------------------------------------------------------------ statistiky */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats li { padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stats b { display: block; font: 600 clamp(28px, 3vw, 38px)/1.1 var(--mono); color: var(--em); letter-spacing: -.02em; }
.stats span { color: var(--muted); font-size: 15px; line-height: 1.35; display: block; margin-top: 4px; }
.stats--inline { margin: 24px 0; }

/* ------------------------------------------------------------------ kalkulačka */
.calc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.calc__form { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 26px; }
.calc__label { display: block; font-weight: 500; margin-bottom: 10px; }
.calc__ctrl { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 18px; align-items: center; }
.calc output { text-align: right; white-space: nowrap; }
.calc output b { font: 600 22px var(--mono); }
.calc output small { color: var(--muted); font-size: 14px; }
.calc__formula { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; --p: 50%; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--em) var(--p), var(--line) var(--p)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--em); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 2px solid var(--em); box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--em); }
.calc__result { padding: clamp(24px, 4vw, 44px); background: var(--ink); color: #fff; display: flex; flex-direction: column; gap: 10px; }
.calc__rlabel { color: #AEB8B3; }
.calc__total { font: 600 clamp(34px, 4.4vw, 52px)/1.05 var(--mono); color: var(--sig); letter-spacing: -.03em; word-break: break-word; }
.calc__sub { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #C9D2CD; font-size: 15px; padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.calc__sub b { font-family: var(--mono); color: #fff; }
.calc__cta { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.calc__cta p { color: #AEB8B3; font-size: 15.5px; margin-bottom: 8px; }

/* ------------------------------------------------------------------ kontakt a formulář */
.contact-sec__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-sec__side { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.contact-sec__side .sec-head { margin-bottom: 0; }
.direct { display: flex; flex-direction: column; gap: 12px; }
.direct li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.direct i { width: 40px; height: 40px; border-radius: 50%; background: var(--em-tint); color: var(--em); display: flex; align-items: center; justify-content: center; flex: none; }
.direct a:hover { color: var(--em); }

.cform { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.cform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cform__full { grid-column: 1 / -1; }
.cform label > span { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--ink-2); }
.cform input, .cform select, .cform textarea {
    width: 100%; font: inherit; font-size: 16px; color: var(--ink);
    padding: 13px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg);
    transition: border-color .15s ease, background-color .15s ease;
}
.cform textarea { resize: vertical; min-height: 130px; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: 0; border-color: var(--em); background: #fff; }
.cform .invalid { border-color: #C2410C; background: #FFF7F3; }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__consent { font-size: 13.5px; color: var(--muted); margin: 16px 0 0; }
.cform__consent a { text-decoration: underline; }
.cform__msg { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #FFF4ED; color: #9A3412; font-size: 15px; }
.cform__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 20px; }
.cform__note { font-size: 14px; color: var(--muted); flex: 1; min-width: 200px; }
.cform__ok { text-align: center; padding: 40px 10px; }
.cform__ok i { font-size: 48px; color: var(--sig); margin-bottom: 16px; }
.cform__ok h3 { font-size: 24px; margin-bottom: 8px; }
.cform.sent > :not(.cform__ok) { display: none; }
.cform.sending [data-submit] { opacity: .6; pointer-events: none; }

/* ------------------------------------------------------------------ CTA pruh */
.cta-band { background: var(--em-d); color: #fff; padding: clamp(48px, 7vw, 88px) 0; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(43, 209, 140, .28), transparent 45%), url("image/net.svg") right center / 640px auto no-repeat; opacity: .9; }
.cta-band__in { display: grid; grid-template-columns: minmax(0, 7fr) auto; gap: 32px; align-items: center; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: #CDE5DB; max-width: 640px; }
.cta-band__note { margin-top: 14px; font: 500 14px var(--mono); display: flex; gap: 10px; align-items: center; color: var(--sig) !important; }

/* ------------------------------------------------------------------ patička */
footer { background: var(--ink); color: #B6C0BB; padding-top: clamp(48px, 7vw, 80px); }
footer > .content {
    display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-areas: "brand cols" "fmenu cols"; gap: 24px 64px;
    max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) 48px;
}
footer > .content > ul.footer:nth-of-type(1) { grid-area: fmenu; display: flex; flex-wrap: wrap; gap: 8px 18px; align-content: start; }
footer > .content > ul.footer:nth-of-type(1) a { color: #D6DED9; font-size: 15px; }
footer > .content > ul.footer:nth-of-type(1) a:hover { color: var(--sig); }
footer > .content > ul.footer:nth-of-type(1) li.active a { color: var(--sig); }
footer > .content > ul.footer:nth-of-type(2) { grid-area: brand; }
footer > .content > ul.footer:nth-of-type(3) { grid-area: cols; }
footer > .content > ul.footer.social { display: none; }
.f-logo img { height: 40px; width: auto; margin-bottom: 18px; }
.f-brand p { font-size: 15.5px; line-height: 1.6; max-width: 380px; }
.f-tag { margin-top: 14px; font: 500 12.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sig); }
.f-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.f-cols h3 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 14px; letter-spacing: 0; }
.f-cols ul li { margin-bottom: 9px; font-size: 15px; }
.f-cols a:hover { color: var(--sig); }
.f-contact li { display: flex; gap: 10px; align-items: baseline; }
.f-contact i { color: var(--sig); width: 16px; flex: none; font-size: 13px; }
.f-contact .f-legal { display: block; margin-top: 14px; font-size: 13px; color: #8A958F; line-height: 1.5; }
footer > .bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
    max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 20px var(--gutter) 28px;
    border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; color: #8A958F;
}
footer > .bottom .developer { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer > .bottom a:hover, footer > .bottom button:hover { color: #fff; }
footer > .bottom button { font-size: 13.5px; color: #8A958F; }

/* ------------------------------------------------------------------ modální okno a cookies */
.modal { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 24, 28, .62); backdrop-filter: blur(6px); animation: fadeIn .2s ease; }
.modal__box { width: min(880px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: clamp(22px, 4vw, 36px); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); animation: rise .25s ease; }
.modal__box h2 { font-size: 26px; margin-bottom: 6px; padding-right: 48px; }
.modal__box > p { color: var(--muted); }
.modal__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: var(--alt); font-size: 18px; display: flex; align-items: center; justify-content: center; }
.modal__close:hover { background: var(--ink); color: #fff; }
.modal__cal { margin: 18px 0 12px; height: min(620px, 64vh); border-radius: var(--radius); overflow: hidden; background: var(--alt); display: flex; align-items: center; justify-content: center; }
.modal__cal iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.modal__fallback { font-size: 14px; color: var(--muted); }
.modal__fallback a { color: var(--em); font-weight: 600; }

.cookie {
    position: fixed; left: 16px; bottom: 16px; z-index: 400; width: min(520px, calc(100% - 32px));
    padding: 20px 22px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    font-size: 14.5px; line-height: 1.5; animation: rise .3s ease;
}
.cookie a { color: var(--em); text-decoration: underline; }
.cookie__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; justify-content: flex-end; }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* jemné odhalení při scrollu */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ responzivita */
@media (max-width: 1080px) {
    .process { grid-template-columns: repeat(2, 1fr); }
    .process li:not(:last-child)::after { display: none; }
    .guar { grid-template-columns: repeat(2, 1fr); }
    .layers-wrap { grid-template-columns: 1fr; }
    .calc { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    footer > .content { grid-template-columns: 1fr; grid-template-areas: "brand" "cols" "fmenu"; }
}
@media (max-width: 760px) {
    body { font-size: 16px; }
    .who__in, .contact-sec__in { grid-template-columns: 1fr; }
    .who__img { max-width: 320px; }
    .cform__grid { grid-template-columns: 1fr; }
    .cta-band__in { grid-template-columns: 1fr; }
    .f-cols { grid-template-columns: 1fr 1fr; }
    .f-cols > div:last-child { grid-column: 1 / -1; }
    .calc__ctrl { grid-template-columns: minmax(0, 1fr) 120px; gap: 12px; }
    .layers { padding-left: 26px; }
    .layers__node, .layers__brand::before { left: -26px; }
    .layers::before { left: 6px; }
    .layers__row { grid-template-columns: 1fr; }
    .layers__tags { justify-content: flex-start; }
    .case-card__facts b { font-size: 17px; }
    .btn { white-space: normal; }
}
@media (max-width: 520px) {
    .process, .guar { grid-template-columns: 1fr; }
    .addons { flex-direction: column; align-items: flex-start; padding: 18px 20px; }
    .addons ul { flex-direction: column; }
    .actions { flex-direction: column; align-items: stretch; }
    .actions .btn { justify-content: space-between; }
    .case-card__metric { left: 12px; bottom: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

@media print {
    header, footer, .cookie, .modal, .cta-band, .viewbar { display: none !important; }
    body { background: #fff; }
}
