/* =========================================================
   michal frieb – styly webu
   Breakpointy: desktop ≥ 861 px · tablet 640–860 px · telefon < 640 px
   ========================================================= */

/* ---------- Design tokeny ---------- */
:root {
    --bg: #F5F7F5;
    --bg2: #EAEFEB;
    --card: #FFFFFF;
    --ink: #0C1510;
    --sub: #4B5851;
    --line: #DCE3DE;
    --acc: #0B7F48;
    --accB: #0E9F5A;
    --accInk: #FFFFFF;
    --soft: rgba(14, 159, 90, .09);
    --glow: rgba(14, 159, 90, .16);

    /* tmavé sekce nezávislé na režimu (Brixon, Kontakt) */
    --d-bg: #07100B;
    --d-ink: #EDF3EE;
    --d-sub: #A8B5AD;
    --d-line: #1E2A24;
    --d-input: #0E1612;
    --d-card: #111A15;
    --green: #2BD47E;
    --green-text: #34D88A;
    --green-ink: #05180D;
    --green-sub: #0E3A22;

    --f-sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-serif: 'Instrument Serif', Georgia, serif;
    --f-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

    --ease: cubic-bezier(.2, .8, .2, 1);
    --header-h: 68px;
    --gutter: 24px;
    --edge: 24px;
    --shadow-card: 0 30px 60px -40px rgba(0, 0, 0, .35);
    --shadow-float: 0 20px 40px -16px rgba(0, 0, 0, .45);
    --reveal-y: 36px;

    color-scheme: light;
}

html[data-theme="dark"] {
    --bg: #090F0C;
    --bg2: #0E1612;
    --card: #111A15;
    --ink: #EDF3EE;
    --sub: #98A69E;
    --line: #1E2A24;
    --acc: #34D88A;
    --accB: #2BD47E;
    --accInk: #05180D;
    --soft: rgba(43, 212, 126, .10);
    --glow: rgba(43, 212, 126, .22);
    color-scheme: dark;
}

/* prvky jen pro jeden režim (loga, ikony) */
html:not([data-theme="dark"]) .show-dark,
html[data-theme="dark"] .show-light { display: none !important; }

/* ---------- Ikony (Lucide, vykreslené jako maska v barvě textu) ---------- */
.ico {
    display: inline-block;
    flex: none;
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: var(--i) center / contain no-repeat;
    mask: var(--i) center / contain no-repeat;
}
.ico-moon { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/moon.svg"); }
.ico-sun { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/sun.svg"); }
.ico-menu { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/menu.svg"); }
.ico-x { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/x.svg"); }
.ico-user { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/user.svg"); }
.ico-users { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/users.svg"); }
.ico-chart-line { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/chart-line.svg"); }
.ico-chart-column { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/chart-column.svg"); }
.ico-shopping-bag { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/shopping-bag.svg"); }
.ico-shopping-cart { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/shopping-cart.svg"); }
.ico-drill { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/drill.svg"); }
.ico-building { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/building-2.svg"); }
.ico-help { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/circle-help.svg"); }
.ico-arrow-right { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/arrow-right.svg"); }
.ico-arrow-down { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/arrow-down.svg"); }
.ico-arrow-up-right { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/arrow-up-right.svg"); }
.ico-message { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/message-circle.svg"); }
.ico-banknote { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/banknote.svg"); }
.ico-package-check { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/package-check.svg"); }
.ico-store { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/store.svg"); }
.ico-megaphone { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/megaphone.svg"); }
.ico-truck { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/truck.svg"); }
.ico-factory { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/factory.svg"); }
.ico-tag { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/tag.svg"); }
.ico-globe { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/globe.svg"); }
.ico-compass { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/compass.svg"); }
.ico-trending-up { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/trending-up.svg"); }
.ico-warehouse { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/warehouse.svg"); }
.ico-headset { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/headset.svg"); }
.ico-plus { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/plus.svg"); }
.ico-linkedin { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/linkedin.svg"); }
.ico-instagram { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/instagram.svg"); }
.ico-facebook { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/facebook.svg"); }
.ico-send { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/send.svg"); }
.ico-check { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/check.svg"); }

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--f-sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    transition: background-color .4s, color .4s;
}
html.is-locked, body.is-locked { overflow: hidden; }
/* při otevřeném menu nic nesmí prosvítat přes overlay */
body.is-locked .progress { visibility: hidden; }

img { max-width: 100%; }
a { color: var(--acc); text-decoration: none; }
a:hover { color: var(--ink); }
button { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--accB); color: #fff; }

:focus-visible { outline: 2px solid var(--accB); outline-offset: 3px; }

em {
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--acc);
}

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

.skip-link {
    position: fixed;
    left: 16px; top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--ink);
    color: var(--bg);
    font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--bg); }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Reveal animace při scrollu ---------- */
/* používá vlastnost `translate`, aby se nepralo s hover efekty přes `transform` */
[data-reveal], .stat, .shop, .company {
    --rv: opacity .9s var(--ease) var(--rd, 0ms), translate .9s var(--ease) var(--rd, 0ms);
}
[data-reveal] { transition: var(--rv); }
html.js [data-reveal]:not(.is-shown) {
    opacity: 0;
    translate: 0 var(--reveal-y);
}

/* ---------- Layout ---------- */
.section { padding-inline: var(--gutter); }
.section--edge { padding-inline: var(--edge); }
.wrap { max-width: 1280px; margin-inline: auto; }

.eyebrow {
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: .08em;
    color: var(--sub);
}
.eyebrow--acc { color: var(--acc); }
.eyebrow--green { color: var(--green-text); }

.h2 {
    margin-top: 20px;
    font-size: clamp(38px, 4.6vw, 64px);
    line-height: 1;
    letter-spacing: -.035em;
    font-weight: 600;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}
.section-head__text {
    max-width: 44ch;
    color: var(--sub);
    font-size: 17px;
    line-height: 1.6;
}

.dark-card {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: var(--d-bg);
    color: var(--d-ink);
}
.dark-card a:hover { color: inherit; }

/* ---------- Tlačítka ---------- */
.btn {
    height: 54px;
    padding: 0 26px;
    border-radius: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform .25s var(--ease), background-color .25s, opacity .25s;
}
.btn--green { background: var(--accB); color: var(--accInk); }
.btn--green:hover { color: var(--accInk); transform: translateY(-2px); }
.btn--outline { border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.btn--outline:hover { background: var(--soft); color: var(--ink); }
.btn--green-fixed { height: 52px; padding: 0 24px; border-radius: 12px; background: var(--green); color: var(--green-ink); }
.btn--green-fixed:hover { color: var(--green-ink); opacity: .9; }
.btn--green-fixed .ico { width: 16px; height: 16px; }

.btn-ink {
    height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    background: var(--ink);
    color: var(--bg);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: opacity .2s;
}
.btn-ink:hover { color: var(--bg); opacity: .85; }

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background-color .2s;
}
.icon-btn:hover { background: var(--soft); }

/* ---------- Progress bar ---------- */
.progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 2px;
    z-index: 60;
    pointer-events: none;
}
.progress__bar {
    height: 100%;
    background: var(--accB);
    transform-origin: 0 50%;
    transform: scaleX(0);
}

/* ---------- Hlavička ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid var(--line);
    transition: background-color .35s, border-color .35s;
}
/* nad hero videem: průhledná, vždy světlé prvky (jako tmavý režim) */
.header.is-over-hero {
    --bg: #090F0C;
    --ink: #EDF3EE;
    --sub: #C9D3CD;
    --line: rgba(237, 243, 238, .22);
    --soft: rgba(237, 243, 238, .10);
    background: transparent;
    border-bottom-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.header.is-over-hero .icon-btn { border-color: rgba(237, 243, 238, .22); }
.header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 34px; height: 34px; border-radius: 9px; flex: none; display: block; }
.brand__name { font-weight: 600; font-size: 17px; letter-spacing: -.01em; }

.nav { display: flex; gap: 4px; font-size: 14px; }
.nav a {
    color: var(--sub);
    padding: 8px 12px;
    border-radius: 8px;
    transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--ink); background: var(--soft); }

.header__actions { display: flex; align-items: center; gap: 8px; }

.menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 0;
    background: var(--ink);
    color: var(--bg);
    cursor: pointer;
    place-items: center;
}
.menu-btn .ico { width: 20px; height: 20px; }

/* ---------- Mobilní menu ---------- */
.menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--bg);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-top: env(safe-area-inset-top);
    opacity: 0;
    transition: opacity .3s;
}
.menu.is-open { opacity: 1; }
.menu__glow {
    position: absolute;
    right: -120px;
    top: 30%;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow), transparent 65%);
    pointer-events: none;
}
.menu__top {
    height: var(--header-h);
    flex: none;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.menu__close {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    cursor: pointer;
    display: grid;
    place-items: center;
}
.menu__close .ico { width: 20px; height: 20px; }
.menu__nav {
    position: relative;
    flex: 1;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.menu__nav a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    color: var(--ink);
    opacity: 0;
    transition: opacity .4s calc(40ms + var(--i) * 40ms), background-color .2s;
}
.menu.is-open .menu__nav a { opacity: 1; }
.menu__nav a:hover { background: var(--card); color: var(--ink); }
.menu__icon {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--soft);
    color: var(--acc);
    display: grid;
    place-items: center;
}
.menu__icon .ico { width: 20px; height: 20px; }
.menu__label { flex: 1; font-size: clamp(26px, 7vw, 36px); font-weight: 600; letter-spacing: -.03em; }
.menu__num { font-family: var(--f-mono); font-size: 12px; color: var(--sub); }
.menu__bottom {
    position: relative;
    flex: none;
    padding: 0 20px calc(24px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.menu__cta {
    height: 56px;
    border-radius: 16px;
    background: var(--green);
    color: var(--green-ink);
    font-weight: 600;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.menu__cta:hover { color: var(--green-ink); }
.menu__row { display: flex; gap: 10px; }
.menu__theme {
    flex: 1;
    height: 52px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.menu__social {
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    display: grid;
    place-items: center;
}
.menu__social .ico { width: 20px; height: 20px; }

/* ---------- Hero (video přes celou šířku) ---------- */
.hero {
    position: relative;
    margin-top: calc(-1 * var(--header-h));
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background: #050A07;
    color: #EDF3EE;
}
.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 10, 7, .92) 0%, rgba(5, 10, 7, .72) 42%, rgba(5, 10, 7, .2) 80%),
        linear-gradient(180deg, rgba(5, 10, 7, .55) 0%, rgba(5, 10, 7, 0) 26%, rgba(5, 10, 7, .15) 55%, rgba(5, 10, 7, .94) 100%);
    pointer-events: none;
}
.hero__inner {
    position: relative;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(96px, 14vh, 160px) var(--gutter) clamp(32px, 6vh, 56px);
}
.hero__eyebrow { display: flex; align-items: center; gap: 8px; color: #C9D3CD; }
.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2s infinite;
}
.hero__title {
    margin-top: 22px;
    font-size: clamp(48px, 8.6vw, 124px);
    line-height: 1;
    letter-spacing: -.055em;
    font-weight: 600;
}
/* rotující slovo – vždy je vidět jen aktivní slovo, ostatní jsou skryté (nic nepřečnívá) */
.rot {
    display: inline-block;
    position: relative;
    vertical-align: bottom;
    max-width: 100%;
    margin-top: -.1em;
    padding-right: .08em; /* převis kurzívy */
    overflow: hidden;
}
.rot__track { display: grid; }
.rot__track > span {
    grid-area: 1 / 1;
    padding: .06em 0 .1em;
    line-height: 1.16;
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -.03em;
    color: var(--green-text);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(105%);
    transition: transform .7s cubic-bezier(.7, 0, .2, 1), opacity .45s ease, visibility 0s .7s;
}
.rot__track > span.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: transform .7s cubic-bezier(.7, 0, .2, 1), opacity .45s ease .15s, visibility 0s;
}
.rot__track > span.is-out { transform: translateY(-105%); }
.hero__bottom {
    margin-top: clamp(24px, 4vh, 40px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 28px 48px;
    align-items: end;
}
.hero__lead {
    font-size: clamp(17px, 1.4vw, 19px);
    line-height: 1.55;
    color: #C9D3CD;
    max-width: 44ch;
    text-wrap: pretty;
}
.hero__buttons { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn--hero { background: var(--green); color: var(--green-ink); }
.btn--hero:hover { color: var(--green-ink); transform: translateY(-2px); }
.btn--glass {
    background: rgba(237, 243, 238, .08);
    border: 1px solid rgba(237, 243, 238, .22);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #EDF3EE;
}
.btn--glass:hover { color: #EDF3EE; background: rgba(237, 243, 238, .16); }

.hero__stats {
    justify-self: end;
    width: 100%;
    max-width: 520px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.glass-stat {
    min-width: 0;
    padding: clamp(12px, 1.6vw, 18px);
    border-radius: 20px;
    background: rgba(9, 15, 12, .55);
    border: 1px solid rgba(237, 243, 238, .14);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.2vw, 14px);
}
.glass-stat__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(145deg, #3BE08C, #1FA863);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 18px -8px rgba(43, 212, 126, .8);
    color: var(--green-ink);
    display: grid;
    place-items: center;
}
.glass-stat__icon .ico { width: 20px; height: 20px; }
.glass-stat__num {
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 600;
    letter-spacing: -.045em;
    line-height: 1;
    color: #EDF3EE;
    white-space: nowrap;
}
.glass-stat__label { margin-top: 6px; font-size: 13px; line-height: 1.3; color: #C9D3CD; }

/* ---------- Marquee dovedností ---------- */
.marquee {
    padding: 24px 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee__list { display: flex; gap: 12px; padding-right: 12px; }
.marquee__list li {
    flex: none;
    height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--card);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--sub);
    white-space: nowrap;
}
.marquee__list li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accB);
}

/* ---------- Čísla ---------- */
.stats-section { padding-top: 96px; padding-bottom: 40px; }
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 16px;
}
.stat {
    position: relative;
    border-radius: 28px;
    background: var(--card);
    color: var(--ink);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--rv), transform .35s var(--ease), background-color .4s;
}
.stat:hover { transform: translateY(-6px); }
.stat__blob {
    position: absolute;
    right: -30px;
    top: -30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--soft);
}
.stat__top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stat__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--soft);
    color: var(--acc);
    display: grid;
    place-items: center;
}
.stat__icon .ico { width: 24px; height: 24px; }
.stat__tag { font-family: var(--f-mono); font-size: 12px; color: var(--sub); text-align: right; }
.stat__body { position: relative; }
.stat__num { font-size: clamp(56px, 6vw, 88px); font-weight: 600; letter-spacing: -.05em; line-height: .9; }
.stat__label { margin-top: 12px; font-size: 17px; color: var(--sub); }
.stat--green { background: var(--green); color: var(--green-ink); }
.stat--green .stat__blob,
.stat--green .stat__icon { background: rgba(5, 24, 13, .12); }
.stat--green .stat__icon { color: var(--green-ink); }
.stat--green .stat__tag,
.stat--green .stat__label { color: var(--green-sub); }

/* ---------- 01 O mně ---------- */
.about { padding-top: 100px; padding-bottom: 120px; }
.about__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 64px;
}
.about__title { max-width: 12ch; }
.about__lead { font-size: 20px; line-height: 1.6; text-wrap: pretty; }
.about__text { margin-top: 20px; font-size: 17px; line-height: 1.7; color: var(--sub); text-wrap: pretty; }
.skills {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 10px;
}
.skills li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--card);
    font-size: 15px;
    line-height: 1.3;
    font-weight: 500;
    transition: transform .25s, box-shadow .25s, background-color .4s;
}
.skills li:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .35); }
.skills__icon {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--soft);
    color: var(--acc);
    display: grid;
    place-items: center;
}

/* Na co se zaměřuji – akordeon panelů */
.focus { margin-top: 96px; }
.focus__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.focus__title { font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; letter-spacing: -.03em; }
.focus__hint { font-family: var(--f-mono); font-size: 12px; color: var(--sub); }
.areas { display: flex; gap: 12px; height: 400px; }
.area {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    border-radius: 28px;
    background: var(--card);
    color: var(--ink);
    padding: 28px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    transition: flex .7s var(--ease), background-color .4s, color .4s;
}
.area.is-active { flex: 2.4 1 0; background: var(--green); color: var(--green-ink); }
.area__blob {
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: var(--soft);
    transition: background-color .4s;
}
.area.is-active .area__blob { background: rgba(5, 24, 13, .08); }
.area__top { position: relative; display: flex; justify-content: space-between; align-items: center; }
.area__chip {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: var(--soft);
    display: grid;
    place-items: center;
    transition: background-color .4s;
}
.area.is-active .area__chip { background: rgba(5, 24, 13, .12); }
.area__chip .ico { width: 26px; height: 26px; }
.area__num { font-family: var(--f-mono); font-size: 13px; }
.area__body { position: relative; width: min(420px, 100%); }
.area__title { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.05; font-weight: 600; letter-spacing: -.03em; }
.area__text {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .5s .15s, transform .5s .15s;
}
.area.is-active .area__text { opacity: 1; transform: none; }

/* ---------- 02 Příběh v číslech (pinned graf) ---------- */
.story {
    position: relative;
    height: 320vh;
    background: var(--bg2);
    border-top: 1px solid var(--line);
    transition: background-color .4s;
}
.story__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    display: flex;
    align-items: center;
    padding: 88px var(--gutter) 40px;
    overflow: hidden;
}
.story__grid {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
    gap: 56px;
    align-items: center;
}
.story__year { margin-top: 28px; font-family: var(--f-mono); font-size: 15px; color: var(--sub); }
.story__value {
    margin-top: 4px;
    font-size: clamp(56px, 8vw, 120px);
    font-weight: 600;
    letter-spacing: -.05em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.story__unit { font-size: .36em; letter-spacing: -.02em; color: var(--sub); margin-left: 10px; }
.story__milestone { margin-top: 28px; min-height: 110px; }
.story__title { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.story__desc { margin-top: 10px; max-width: 42ch; color: var(--sub); font-size: 17px; line-height: 1.6; }
.story__bars { margin-top: 24px; display: flex; gap: 6px; }
.story__bars span { height: 4px; flex: 1; border-radius: 2px; background: var(--line); transition: background-color .3s; }
.story__bars span.is-on { background: var(--accB); }

.chart {
    position: relative;
    padding: 28px;
    border-radius: 28px;
    background: var(--card);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: background-color .4s, border-color .4s;
}
.chart__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--sub);
}
.chart__svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart__svg text { font-family: var(--f-mono); fill: var(--sub); transition: fill .3s; }
.chart__svg text.is-current { fill: var(--ink); }
.chart__svg circle { fill: var(--card); stroke: var(--accB); transition: opacity .3s, r .3s; }
.chart__line { fill: none; stroke: var(--accB); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.chart__area { fill: var(--soft); opacity: 0; transition: opacity .4s; }
.chart__grid { stroke: var(--line); stroke-width: 2; }

/* ---------- 03 E-shopy ---------- */
.eshops { padding-top: 140px; padding-bottom: 140px; }
.eshops__grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 16px;
}
.shop {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px;
    border-radius: 24px;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--ink);
    min-height: 360px;
    transition: var(--rv), transform .35s var(--ease), border-color .35s, background-color .4s;
}
.shop:hover { transform: translateY(-8px); border-color: var(--accB); color: var(--ink); }
.shop__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.shop__logo { height: 36px; }
.shop__logo img { height: 30px; width: auto; display: block; }
.shop__arrow {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    transition: background-color .3s, color .3s, border-color .3s;
}
.shop__arrow .ico { width: 16px; height: 16px; }
.shop:hover .shop__arrow { background: var(--accB); border-color: var(--accB); color: var(--accInk); }
.shop__body { margin-top: auto; padding-top: 48px; }
.shop__tag { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--acc); }
.shop__num { margin-top: 10px; font-size: 44px; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.shop__unit { color: var(--sub); font-size: 14px; }
.shop__text { margin-top: 18px; color: var(--sub); line-height: 1.6; }

/* ---------- 04 Brixon ---------- */
.brixon { padding-top: 120px; padding-bottom: 120px; }
.brixon__card { --pad: clamp(24px, 5vw, 56px); padding: var(--pad); }
.brixon__glow {
    position: absolute;
    right: -200px;
    top: -300px;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(43, 212, 126, .14), transparent 60%);
    pointer-events: none;
}
.brixon__head {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: 40px;
    align-items: end;
}
.brixon__logo { margin-top: 24px; height: 40px; width: auto; display: block; }
.brixon__title {
    margin-top: 28px;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.02;
    letter-spacing: -.035em;
    font-weight: 600;
    max-width: 14ch;
}
.brixon__title em, .contact em { color: var(--green-text); }
.brixon__text { color: var(--d-sub); font-size: 17px; line-height: 1.6; max-width: 46ch; }
.pills { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li {
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--d-card);
    display: flex;
    align-items: center;
    font-size: 14px;
}
.gallery {
    position: relative;
    margin: 48px calc(-1 * var(--pad)) 0;
    overflow: hidden;
}
.gallery__track {
    display: flex;
    gap: 16px;
    width: max-content;
    padding: 0 var(--pad);
    transition: transform .15s linear;
    will-change: transform;
}
.gallery figure { width: clamp(240px, 26vw, 340px); flex: none; }
.gallery__img { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--d-card); }
.gallery__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.gallery__img:hover img { transform: scale(1.06); }
.gallery figcaption { margin-top: 12px; font-family: var(--f-mono); font-size: 12px; color: var(--d-sub); }
.brixon__cta { position: relative; margin-top: 28px; }

/* ---------- 05 Zázemí – stacking cards ---------- */
.backstage { padding-top: 40px; padding-bottom: 120px; }
.backstage__title { margin-bottom: 56px; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack__card {
    position: sticky;
    top: var(--top);
    border-radius: 32px;
    min-height: min(62vh, 520px);
    padding: clamp(24px, 4vw, 56px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 40px;
    align-items: stretch;
    transform-origin: 50% 0;
    transition: transform .35s var(--ease), filter .35s, background-color .4s;
    box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, .35);
    overflow: hidden;
    --st-line: var(--line);
    --st-sub: var(--sub);
    border: 1px solid var(--st-line);
}
.stack__card--light { background: var(--card); color: var(--ink); }
.stack__card--green { background: var(--green); color: var(--green-ink); --st-line: rgba(5, 24, 13, .15); --st-sub: var(--green-sub); }
.stack__card--dark { background: var(--d-bg); color: var(--d-ink); --st-line: var(--d-line); --st-sub: var(--d-sub); }
.stack__copy { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.stack__idx { font-family: var(--f-mono); font-size: 13px; color: var(--st-sub); }
.stack__title { font-size: clamp(40px, 5vw, 76px); line-height: .95; letter-spacing: -.045em; font-weight: 600; }
.stack__text { margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--st-sub); max-width: 40ch; }
.stack__art {
    position: relative;
    border-radius: 24px;
    border: 1px solid var(--st-line);
    min-height: 220px;
    overflow: hidden;
    display: grid;
    place-items: center;
}
.stack__art i { position: absolute; border-radius: 10px; background: currentColor; opacity: .08; }
.stack__art i:nth-child(1) { left: 12%; top: 14%; width: 14%; height: 62%; }
.stack__art i:nth-child(2) { left: 30%; top: 14%; width: 48%; height: 18%; }
.stack__art i:nth-child(3) { left: 30%; top: 38%; width: 26%; height: 16%; opacity: .05; }
.stack__art i:nth-child(4) { right: 14%; bottom: 14%; width: 16%; aspect-ratio: 1; border-radius: 50%; opacity: .1; }
.stack__art .ico { position: relative; width: clamp(72px, 9vw, 120px); height: clamp(72px, 9vw, 120px); }

/* ---------- 06 Firmy ---------- */
.companies {
    padding-top: 120px;
    padding-bottom: 120px;
    background: var(--bg2);
    border-top: 1px solid var(--line);
    transition: background-color .4s;
}
.companies__title { max-width: 18ch; }
.companies__grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 16px;
}
.company {
    padding: 40px;
    border-radius: 24px;
    background: var(--card);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: var(--rv), background-color .4s;
}
.company__logo { height: 44px; }
.company__logo img { height: 40px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; display: block; }
.company__name { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.company__tag { margin-top: 6px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--acc); }
.company__text { color: var(--sub); line-height: 1.6; }
.company__meta {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--sub);
}

/* ---------- 07 FAQ ---------- */
.faq { padding-top: 140px; padding-bottom: 140px; }
.faq__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: 64px;
}
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
    width: 100%;
    padding: 26px 0;
    background: none;
    border: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    text-align: left;
    color: var(--ink);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.01em;
}
.faq__plus {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    transition: transform .3s;
}
.faq__plus .ico { width: 16px; height: 16px; }
.faq__item.is-open .faq__plus { transform: rotate(45deg); }
.faq__a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .35s var(--ease);
}
.faq__a > div { overflow: hidden; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a p { padding: 0 60px 28px 0; color: var(--sub); font-size: 17px; line-height: 1.65; }

/* ---------- 08 Kontakt ---------- */
.contact { padding-bottom: 96px; scroll-margin-top: var(--header-h); }
.contact__card {
    padding: clamp(40px, 6vw, 80px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: 56px;
}
.contact__glow {
    position: absolute;
    left: -200px;
    bottom: -300px;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(43, 212, 126, .18), transparent 60%);
    pointer-events: none;
}
.contact__intro, .contact__side { position: relative; min-width: 0; }
.contact__text { margin-top: 20px; max-width: 40ch; color: var(--d-sub); font-size: 17px; line-height: 1.6; }
.socials { margin-top: 40px; display: flex; gap: 10px; }
.socials a {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--d-line);
    color: var(--d-ink);
    display: grid;
    place-items: center;
    transition: background-color .2s;
}
.socials a:hover { background: var(--d-card); }
.socials .ico { width: 20px; height: 20px; }

.form { display: flex; flex-direction: column; gap: 14px; }
.form__types { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__types label { position: relative; cursor: pointer; }
.form__types input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.form__types span {
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--d-line);
    color: var(--d-ink);
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: background-color .2s, border-color .2s, color .2s;
}
.form__types input:checked + span { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.form__types input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 3px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.form input[type="text"],
.form input[type="email"],
.form textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--d-line);
    background: var(--d-input);
    color: var(--d-ink);
    font: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color .2s;
}
.form input[type="text"],
.form input[type="email"] { height: 54px; padding: 0 18px; }
.form textarea { padding: 16px 18px; resize: vertical; min-height: 140px; }
.form input::placeholder, .form textarea::placeholder { color: #7F8F86; }
.form input:focus, .form textarea:focus { border-color: var(--green); }
.form .is-invalid { border-color: #E5484D !important; }
.g-recaptcha { min-height: 78px; }
.form__error { color: #FF8A8E; font-size: 14px; }
.form__submit {
    height: 56px;
    border-radius: 12px;
    border: 0;
    background: var(--green);
    color: var(--green-ink);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity .2s;
}
.form__submit:hover { opacity: .9; }
.form__submit:disabled { opacity: .6; cursor: progress; }
.form__note { font-size: 12px; color: #7F8F86; }
.form__email { font-size: 15px; color: var(--d-sub); }
.form__email a { color: var(--green-text); font-weight: 600; }

.sent {
    min-height: 320px;
    border-radius: 20px;
    border: 1px solid var(--d-line);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 16px;
}
.sent__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--green);
    color: var(--green-ink);
    display: grid;
    place-items: center;
}
.sent__icon .ico { width: 26px; height: 26px; }
.sent__title { font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.sent__text { color: var(--d-sub); line-height: 1.6; }
.sent__text a { color: var(--green-text); font-weight: 600; }
.sent__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.sent__btn {
    height: 48px;
    padding: 0 20px;
    border-radius: 12px;
    border: 1px solid var(--green);
    background: var(--green);
    color: var(--green-ink);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity .2s, background-color .2s;
}
.dark-card .sent__btn:hover { color: var(--green-ink); opacity: .9; }
.sent__btn--ghost { background: transparent; border-color: var(--d-line); color: var(--d-ink); }
.dark-card .sent__btn--ghost:hover { color: var(--d-ink); background: var(--d-card); opacity: 1; }
.sent__back {
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--d-sub);
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.sent__back:hover { color: var(--d-ink); }

/* ---------- Patička ---------- */
.footer { padding: 40px var(--gutter); }
.footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.footer .brand__mark { width: 36px; height: 36px; border-radius: 10px; }
.footer__copy { font-size: 14px; color: var(--sub); }

/* =========================================================
   Tablet a telefon (≤ 860 px)
   ========================================================= */
@media (max-width: 860px) {
    .nav { display: none; }
    .menu-btn { display: grid; }

    .areas { flex-direction: column; height: auto; }
    .area, .area.is-active { flex: 0 0 auto; min-height: 200px; cursor: default; }
    .area__text { opacity: 1; transform: none; }

    .story__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .story__year, .story__milestone { margin-top: 12px; }
    .story__milestone { min-height: 96px; }
}

/* =========================================================
   Telefon (< 640 px)
   ========================================================= */
@media (max-width: 639px) {
    :root { --edge: 10px; }
    /* Kontakt zůstává v hlavičce; přepínač režimu je v menu */
    .header__inner { padding-inline: 16px; gap: 12px; }
    .header__actions { gap: 6px; }
    .header__actions .icon-btn { display: none; }
    .header__cta { padding: 0 14px; }

    .chart { padding: 18px; }

    .stack__card { min-height: 0; }
    .stack__art { min-height: 150px; order: -1; }

    .contact__card { border-radius: 26px; padding: 32px 20px; }
    .faq__a p { padding-right: 0; }
    .sent { padding: 28px; }
}

@media (max-width: 359px) {
    .g-recaptcha { transform: scale(.88); transform-origin: 0 0; }
}

/* =========================================================
   Omezený pohyb (nastavení systému)
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    :root { --reveal-y: 0px; }
    .marquee__track { animation-duration: 120s; }
    .rot__track > span, .gallery__track { transition: none !important; }
}
