/* ============================================================
   AXIS Studios – axis-studio.cz
   Jediný CSS soubor celého webu. Mobile-first.
   Vizuální styl: antracitová + bílá, modrý akcent z loga,
   uppercase titulky (Jost ~ Futura PT), ostré rohy.
   ============================================================ */

:root {
    --brand:       #0078AE;   /* přesná modrá z loga */
    --brand-dark:  #005B85;
    --accent:      #141414;   /* antracitová */
    --ink:         #141414;
    --text:        #4A4A48;
    --muted:       #767674;
    --line:        #E4E4E1;
    --bg:          #FFFFFF;
    --bg-alt:      #F6F6F4;
    --star-empty:  #DCDCD8;
    --error:       #B4232A;
    --error-bg:    #FBEDEE;
    --success:     #2E6B45;
    --success-bg:  #EDF6F0;
    --radius:      0;
    --container:   1360px;
}

/* ── Reset a základ ────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Jost', 'Futura', -apple-system, 'Segoe UI', Arial, sans-serif;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--brand); color: #fff; }

h1, h2, h3 {
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
}

h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); letter-spacing: 0.01em; }
h3 { font-size: 1rem; letter-spacing: 0.06em; font-weight: 500; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--accent); }

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

ul { padding-left: 1.2rem; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 22px;
}
@media (min-width: 900px) {
    .container { padding: 0 40px; }
}

.container-wide {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 22px;
    width: 100%;
}
@media (min-width: 900px) {
    .container-wide { padding: 0 48px; }
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: 10px 18px;
    z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

/* ── Hlavička (tmavá) ──────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #141414;
    transition: background .35s ease, box-shadow .35s ease;
}

/* Nad videem (úvodní hero): žádné pozadí, jen jemná spodní linka.
   Přes světlý závoj videa je text tmavý, se světlým stínem pro čitelnost. */
.site-header.is-over-hero {
    background: transparent;
    box-shadow: inset 0 -1px 0 rgba(20, 20, 20, 0.16);
}
.site-header.is-over-hero .logo,
.site-header.is-over-hero .main-nav > ul > li > a {
    color: var(--ink);
    text-shadow: 0 1px 12px rgba(255, 255, 255, 0.85);
}
.site-header.is-over-hero .logo-dot { color: var(--brand); }
.site-header.is-over-hero .main-nav > ul > li > a.active { color: var(--brand); }
.site-header.is-over-hero .nav-toggle span { background: var(--ink); }
.site-header.is-over-hero .main-nav a[data-cta] {
    color: var(--ink);
    border-color: rgba(20, 20, 20, 0.4);
}
.site-header.is-over-hero .main-nav a[data-cta]:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Jemný nájezd hlavičky shora při načtení stránky */
@keyframes header-in {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: none; }
}
.js .site-header { animation: header-in .5s ease-out both; }

@media (prefers-reduced-motion: reduce) {
    .site-header { transition: none; }
    .js .site-header { animation: none; }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.site-header a { color: #E6E6E3; }
.site-header a:hover { color: #fff; }

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: #fff;
    text-decoration: none;
}
.logo:hover { color: #fff; }
.logo-dot { color: var(--brand); }
.logo-mark { width: 34px; height: 30px; display: block; }

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #141414;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.main-nav.open { display: block; }

.main-nav > ul {
    list-style: none;
    margin: 0;
    padding: 8px 22px 16px;
}
.main-nav a {
    display: block;
    padding: 12px 2px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: #E6E6E3;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.main-nav li:last-child a { border-bottom: none; }
.main-nav a:hover,
.main-nav a.active { color: #fff; }

@media (min-width: 900px) {
    .nav-toggle { display: none; }

    .main-nav {
        display: block;
        position: static;
        background: none;
        border: none;
    }
    .main-nav > ul {
        display: flex;
        align-items: center;
        gap: 30px;
        padding: 0;
    }
    .main-nav a {
        padding: 6px 0;
        border: none;
        position: relative;
    }
    .main-nav a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 1px;
        background: var(--brand);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .25s;
    }
    .main-nav a:hover::after,
    .main-nav a.active::after { transform: scaleX(1); }

    .main-nav a[data-cta] {
        border: 1px solid rgba(255, 255, 255, 0.65);
        padding: 10px 22px;
        color: #fff;
        transition: background .2s, color .2s, border-color .2s;
    }
    .main-nav a[data-cta]::after { display: none; }
    .main-nav a[data-cta]:hover,
    .main-nav a[data-cta].active {
        background: #fff;
        border-color: #fff;
        color: #141414;
    }

    .main-nav li { position: relative; }
    .main-nav li.has-sub { padding: 20px 0; }
    .main-nav li.has-sub > a { display: inline-block; }

    .sub-menu {
        position: absolute;
        top: 100%;
        left: -26px;
        width: max-content;
        min-width: 430px;
        background: #171716;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-top: 2px solid var(--brand);
        list-style: none;
        margin: 0;
        padding: 10px 0;
        z-index: 110;
        opacity: 0;
        transform: translateY(10px);
        pointer-events: none;
        transition: opacity .22s ease, transform .22s ease;
    }
    .main-nav li.has-sub:hover > .sub-menu,
    .main-nav li.has-sub:focus-within > .sub-menu {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
    .sub-menu li { position: static; }
    .sub-menu a {
        display: flex;
        align-items: baseline;
        gap: 16px;
        padding: 13px 26px;
        font-size: 0.72rem;
        letter-spacing: 0.1em;
        white-space: nowrap;
        color: #C9C9C5;
        border: none;
        transition: background .2s, color .2s;
    }
    .sub-menu a::after { display: none; }
    .sub-num {
        font-size: 0.65rem;
        letter-spacing: 0.18em;
        color: #5E5E5A;
        transition: color .2s, transform .2s;
    }
    .sub-name { flex: 1; transition: transform .2s; }
    .sub-arrow {
        color: var(--brand);
        opacity: 0;
        transform: translateX(-8px);
        transition: opacity .2s, transform .2s;
    }
    .sub-menu a:hover {
        background: #1F1F1E;
        color: #fff;
    }
    .sub-menu a:hover .sub-num { color: var(--brand); transform: translateX(7px); }
    .sub-menu a:hover .sub-name { transform: translateX(7px); }
    .sub-menu a:hover .sub-arrow { opacity: 1; transform: none; }
    .sub-all { margin-top: 8px; }
    .sub-all a {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding-top: 16px;
        color: #fff;
        font-weight: 500;
    }
}

@media (max-width: 899px) {
    .sub-menu {
        list-style: none;
        margin: 0;
        padding: 0 0 8px 14px;
    }
    .sub-menu a {
        display: flex;
        gap: 12px;
        align-items: baseline;
        font-size: 0.72rem;
        padding: 9px 2px;
        color: #B9B9B5;
        border-bottom: none;
    }
    .sub-num {
        font-size: 0.65rem;
        letter-spacing: 0.18em;
        color: #6A6A66;
    }
    .sub-name { flex: 1; }
    .sub-arrow { display: none; }
    .sub-all a { color: #fff; }
}

/* ── Tlačítka ──────────────────────────────────────────────── */

.btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.3;
    text-decoration: none;
    text-align: center;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}
.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

.btn-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}
.btn-light:hover {
    background: #fff;
    border-color: #fff;
    color: #141414;
}

/* ── Sekce ─────────────────────────────────────────────────── */

.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin-bottom: 44px; }

.overline {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.lead { font-size: 1.1rem; color: var(--muted); }

@media (min-width: 900px) {
    .section { padding: 100px 0; }
}

/* ── Hero ──────────────────────────────────────────────────── */

.hero {
    position: relative;
    overflow: hidden;
    padding: 84px 0 76px;
    border-bottom: 1px solid var(--line);
}

/* Video na pozadí hero (úvodní stránka) – přehraje se jednou a zůstane
   stát na posledním snímku. Text zůstává čitelný díky přechodovému závoji. */
.hero-video {
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    bottom: -2px;
    width: 100%;
    height: calc(100% + 4px);
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    background: transparent;
}
.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        100deg,
        rgba(255, 255, 255, 0.88) 0%,
        rgba(255, 255, 255, 0.72) 44%,
        rgba(255, 255, 255, 0.5) 74%,
        rgba(255, 255, 255, 0.34) 100%
    );
}
@media (max-width: 899px) {
    .hero-scrim {
        background: rgba(255, 255, 255, 0.66);
    }
}
/* Jemný světlý halo, ať je text čitelný i nad světlými místy videa */
.hero--video .hero-inner p { text-shadow: 0 1px 12px rgba(255, 255, 255, 0.75); }

/* Světlý závoj → tmavý text jako na zbytku webu; ghost nápis viditelnější */
.hero--video .hero-ghost { -webkit-text-stroke-color: rgba(20, 20, 20, 0.32); }
.hero--video { border-bottom: none; }

/* Jemný nadpis na pozadí hero sekce (obrysové písmo) */
.hero-ghost {
    position: absolute;
    right: -0.05em;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(6rem, 17vw, 15rem);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1.5px #ECECE9;
    pointer-events: none;
    user-select: none;
    z-index: 2;
}
@supports not (-webkit-text-stroke: 1px #000) {
    .hero-ghost { color: #F4F4F1; }
}

.hero-inner { position: relative; z-index: 3; max-width: 800px; }

/* Decentní poloprůhledná linka navazující na nadpis – zleva výrazněji,
   doprava se ztrácí a doběhne až k nápisu „Studio." na pozadí. */
.hero-underline {
    display: block;
    height: 2px;
    width: min(48vw, 620px);
    margin: 6px 0 26px;
    background: linear-gradient(90deg,
        rgba(20, 20, 20, 0.5) 0%,
        rgba(20, 20, 20, 0.3) 44%,
        rgba(20, 20, 20, 0.12) 76%,
        rgba(20, 20, 20, 0) 100%);
}
@media (max-width: 899px) {
    .hero-underline { width: min(100%, 420px); }
}

/* Připnutý hero na úvodní stránce – scroll „dopisuje" nadpis na pozadí */
.js .hero-pin { height: calc(100vh + 900px); }
.js .hero-pin .hero {
    position: sticky;
    top: 70px;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}
.js .hero-pin .hero .container { width: 100%; }

/* Verze s videem – hero vyplní celé okno i za (průhlednou) hlavičkou,
   takže video je za hlavičkou vidět hned od načtení stránky.
   Výška hlavičky (--header-h) se dopočítává v JS, ať video přesně dosedne. */
.js .hero-pin--video { margin-top: calc(-1 * var(--header-h, 70px)); }
.js .hero-pin--video .hero {
    top: 0;
    min-height: 100vh;
    padding-top: var(--header-h, 70px);
}

@media (prefers-reduced-motion: reduce) {
    .js .hero-pin { height: auto; }
    .js .hero-pin--video { margin-top: calc(-1 * var(--header-h, 70px)); }
    .js .hero-pin .hero {
        position: static;
        min-height: 0;
        display: block;
        padding: 84px 0 76px;
    }
    .js .hero-pin--video .hero { padding-top: calc(var(--header-h, 70px) + 40px); min-height: 100vh; }
}

.hero-accent {
    display: block;
    width: 52px;
    height: 3px;
    background: var(--brand);
    margin-bottom: 28px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text);
    max-width: 620px;
    margin-bottom: 2.2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

@media (min-width: 900px) {
    .hero { padding: 130px 0 116px; }
}

/* ── Karty ─────────────────────────────────────────────────── */

.card-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
    .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    padding: 32px 26px;
    text-decoration: none;
    color: var(--text);
    transition: border-color .2s;
}
a.card:hover {
    border-color: var(--accent);
    color: var(--text);
}

.card-num {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: #B4B4B0;
    margin-bottom: 16px;
}

.card-icon {
    display: block;
    width: 40px;
    height: 40px;
    color: var(--ink);
    margin-bottom: 14px;
    transition: color .2s;
}
.card-icon .sluzba-ikona { width: 100%; height: 100%; display: block; }
a.card:hover .card-icon { color: var(--brand); }
.card-icon-lg { width: 54px; height: 54px; color: var(--brand); margin-bottom: 20px; }

.card h3 { margin-bottom: 0.6rem; }

.card-more {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
    padding-bottom: 2px;
}
a.card:hover .card-more { color: var(--brand); border-color: var(--brand); }

/* ── Služby jako rýsovací prkno (interaktivní výkres) ──────── */

.draft {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 900px) {
    .draft {
        grid-template-columns: 0.92fr 1.08fr;
        gap: 54px;
        align-items: stretch;
    }
}

/* Levý rejstřík */
.draft-index { list-style: none; margin: 0; padding: 0; }
.draft-index li { border-top: 1px solid var(--line); }
.draft-index li:last-child { border-bottom: 1px solid var(--line); }
.draft-item {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 20px 6px 20px 0;
    text-decoration: none;
    color: var(--ink);
    transition: padding-left .3s ease, color .25s ease;
}
.draft-item::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 2px; height: 0;
    background: var(--brand);
    transform: translateY(-50%);
    transition: height .3s ease;
}
.draft-item-num {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: #B4B4B0;
    min-width: 26px;
    transition: color .25s ease;
}
.draft-item-body { flex: 1; }
.draft-item-name {
    display: block;
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}
.draft-item-desc { display: none; }
.draft-item-arrow {
    color: var(--brand);
    font-size: 1.1rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity .3s ease, transform .3s ease;
}
.draft-item:hover,
.draft-item.is-active { padding-left: 16px; }
.draft-item:hover::before,
.draft-item.is-active::before { height: 60%; }
.draft-item:hover .draft-item-num,
.draft-item.is-active .draft-item-num { color: var(--brand); }
.draft-item:hover .draft-item-arrow,
.draft-item.is-active .draft-item-arrow { opacity: 1; transform: none; }

/* Pravý list výkresu */
.draft-sheet {
    position: relative;
    height: 100%;
    min-height: 500px;
    background: #fff;
    border: 1px solid var(--ink);
    overflow: hidden;
}
/* Registrační značky v rozích */
.draft-reg {
    position: absolute;
    width: 16px; height: 16px;
    pointer-events: none;
    opacity: .5;
}
.draft-reg::before, .draft-reg::after {
    content: ''; position: absolute; background: var(--ink);
}
.draft-reg::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.draft-reg::after { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); }
.draft-reg.tl { left: 14px; top: 14px; }
.draft-reg.br { right: 14px; bottom: 14px; }

/* Nitkový kříž za kurzorem */
.draft-cross-x, .draft-cross-y {
    position: absolute;
    background: rgba(0, 120, 174, 0.28);
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s ease;
    z-index: 4;
}
.draft-cross-x { left: 0; right: 0; height: 1px; top: var(--my, -20px); }
.draft-cross-y { top: 0; bottom: 0; width: 1px; left: var(--mx, -20px); }
.draft-sheet:hover .draft-cross-x,
.draft-sheet:hover .draft-cross-y { opacity: 1; }

/* Jednotlivé výkresy (plates) */
.draft-plate {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 40px 42px 36px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s ease;
    z-index: 1;
}
.draft-plate.is-active { opacity: 1; visibility: visible; z-index: 2; }

.draft-coord {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand);
}

/* Okno výkresu – zde se blueprint přetaví do fotky */
.draft-view {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 0;
    overflow: hidden;
}
.draft-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0s;
}
.draft-plate.is-active .draft-photo {
    clip-path: inset(0 0 0 0);
    transition: clip-path 0.7s cubic-bezier(.5, .15, .25, 1) 0.6s;
}
/* Decentní černé logo pod obrázkem */
/* Pasportizace – stejná velikost jako ostatní (cover), oříznutý spodek */
.draft-plate[data-plate="pasportizace"] .draft-photo { object-position: center top; }

/* Logo v okně – ukáže se, než se odkryje fotka */
.draft-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.draft-icon .draft-logo {
    width: 120px;
    height: auto;
    filter: brightness(0);
    opacity: 0.82;
}

/* Kótovací čára – přes celou šířku obrázku, kousek pod ním */
.draft-dim {
    position: relative;
    height: 1px;
    width: 0;
    margin: 14px 0 20px;
    background: #c9cdd2;
    transition: width 0s;
}
.draft-plate.is-active .draft-dim { width: 100%; transition: width 0.7s cubic-bezier(.5, .15, .25, 1) 0.6s; }
.draft-dim::before, .draft-dim::after {
    content: ''; position: absolute; top: -5px;
    width: 1px; height: 11px; background: #c9cdd2;
}
.draft-dim::before { left: 0; }
.draft-dim::after { right: 0; }
/* Číslo odvětví na kótě */
.draft-dim-num {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 0 10px;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    color: #8a8f96;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0s;
}
.draft-plate.is-active .draft-dim-num { opacity: 1; transition: opacity 0.4s ease 1.3s; }

.draft-cap {
    padding-top: 4px;
    max-width: 64%;
}
.draft-cap h3 { font-size: 1.1rem; margin: 0 0 6px; }
.draft-cap p { font-size: 0.9rem; line-height: 1.5; color: #565656; margin: 0; }

/* Rohové razítko */
.draft-titleblock {
    position: absolute;
    right: 0; bottom: 0;
    display: grid;
    background: #fff;
    border-left: 1px solid var(--ink);
    border-top: 1px solid var(--ink);
    width: 232px;
}
.draft-titleblock span {
    padding: 6px 14px;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6a6f76;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.draft-titleblock .tb-1 { color: var(--ink); font-weight: 500; letter-spacing: 0.18em; }
.draft-titleblock span:last-child { border-bottom: none; }

/* Mobil – sheet skrytý, rejstřík jako karty s popiskem */
@media (max-width: 899px) {
    .draft-sheet { display: none; }
    .draft-item { flex-wrap: wrap; padding-right: 0; }
    .draft-item-desc {
        display: block;
        flex-basis: 100%;
        margin-top: 8px;
        padding-left: 44px;
        font-size: 0.9rem;
        line-height: 1.5;
        color: #565656;
        text-transform: none;
        font-weight: 400;
        letter-spacing: 0;
    }
    .draft-item-name { font-size: 1.2rem; }
    .draft-item-arrow { opacity: 1; transform: none; }
    .draft-item:hover, .draft-item.is-active { padding-left: 0; }
    .draft-item::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .draft-icon .sluzba-ikona path,
    .draft-icon .sluzba-ikona rect,
    .draft-icon .sluzba-ikona circle,
    .draft-icon .sluzba-ikona line { stroke-dasharray: none; stroke-dashoffset: 0; }
    .draft-dim { width: 100%; transition: none; }
    .draft-plate.is-active .draft-photo { clip-path: inset(0 0 0 0); transition: none; }
}

/* ── Služby (detailní sekce) ───────────────────────────────── */

.service-item {
    padding: 44px 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 90px;
}
.service-item:last-of-type { border-bottom: none; }

@media (min-width: 900px) {
    .service-item {
        display: grid;
        grid-template-columns: 110px 1fr;
        gap: 48px;
        padding: 60px 0;
    }
    .service-item .card-num { font-size: 1.5rem; letter-spacing: 0.1em; color: #C9C9C4; }
}

.service-body .btn { margin-top: 10px; }

.service-link { color: var(--ink); text-decoration: none; }
.service-link:hover { color: var(--brand); }

.service-item .card-icon { margin-top: 14px; }

/* ── Proces „Co nás společně čeká" – propojený timeline ────── */

.process {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
}

.pstep {
    position: relative;
    padding-left: 42px;
}
/* Uzel (kolečko) na spojnici */
.pstep-node {
    position: absolute;
    top: 6px;
    left: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--brand);
    z-index: 1;
    transition: background .25s ease, transform .25s ease;
}
/* Spojnice mezi kroky (na mobilu svislá) */
.pstep-line {
    position: absolute;
    left: 7px;
    top: 22px;
    bottom: -34px;
    width: 2px;
    background: var(--line);
}
.pstep:last-child .pstep-line { display: none; }

.pstep-num {
    display: block;
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px #CBD1D8;
    margin-bottom: 8px;
    transition: -webkit-text-stroke-color .25s ease;
}
@supports not (-webkit-text-stroke: 1px #000) {
    .pstep-num { color: #D3D7DE; }
}
.pstep-body h3 { margin-bottom: 0.45rem; }
.pstep-body p { font-size: 0.95rem; color: var(--text); margin: 0; }

.pstep:hover .pstep-node { background: var(--brand); }
.pstep:hover .pstep-num { -webkit-text-stroke-color: var(--brand); }

/* Tablet – 3 sloupce, spojnice vodorovná */
@media (min-width: 640px) {
    .process {
        grid-template-columns: repeat(3, 1fr);
        gap: 56px 34px;
    }
    .pstep { padding-left: 0; padding-top: 40px; }
    .pstep-node { top: 0; left: 0; }
    .pstep-line {
        top: 7px;
        left: 22px;
        right: -34px;
        bottom: auto;
        width: auto;
        height: 2px;
    }
    /* konec každého řádku (3.) bez spojnice */
    .pstep:nth-child(3n) .pstep-line { display: none; }
    .pstep-num { font-size: 2.8rem; }
}

/* Desktop – všech 6 v jedné řadě */
@media (min-width: 1080px) {
    .process { grid-template-columns: repeat(6, 1fr); gap: 0 26px; }
    .pstep:nth-child(3n) .pstep-line { display: block; }
    .pstep:last-child .pstep-line { display: none; }
    .pstep-num { font-size: 3rem; }
}

/* ── Jak fungujeme (karty přístupu) ────────────────────────── */

.value-card {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    position: relative;
}
.value-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 44px;
    height: 2px;
    background: var(--brand);
}
.value-card h3 { margin-bottom: 0.5rem; }
.value-card p { font-size: 0.95rem; margin: 0; color: var(--text); }

/* ── Aktuální zakázky (realizace) ──────────────────────────── */

.worklist {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 860px;
}
.worklist li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px 24px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}
.worklist li:first-child { border-top: 1px solid var(--line); }
.worklist .wl-nazev { color: var(--ink); font-weight: 500; }
.worklist .wl-misto { color: var(--muted); font-size: 0.9rem; }

/* ── Recenze ───────────────────────────────────────────────── */

.stars {
    position: relative;
    display: inline-block;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--star-empty);
    letter-spacing: 3px;
}
.stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: var(--brand);
}
.stars-lg { font-size: 2.1rem; }

.rating-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 18px;
}
.rating-avg {
    font-size: 3.2rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1;
}
.rating-count { color: var(--muted); }

.review-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 18px;
}

.review {
    background: #fff;
    border: 1px solid var(--line);
    padding: 28px 26px;
}
.review-head {
    display: grid;
    grid-template-columns: 1fr auto 92px;
    align-items: center;
    gap: 8px 20px;
    margin-bottom: 10px;
}
.review-head .review-date { justify-self: end; text-align: right; }
@media (max-width: 600px) {
    .review-head {
        grid-template-columns: 1fr auto;
        row-gap: 4px;
    }
    .review-head .review-date { grid-column: 1 / -1; justify-self: start; text-align: left; }
}
.review-name { font-weight: 500; color: var(--ink); }
.review-date { font-size: 0.85rem; color: var(--muted); }
.review p { margin-bottom: 0; }

.hero-cta { margin-top: 30px; margin-bottom: 0; }
.hero-cta .btn { text-decoration: none; }

/* Recenze z Google */
.google-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 40px;
    margin-bottom: 36px;
}
.google-section-head { margin-bottom: 0; }
.google-summary { align-items: center; }
.review-author {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.google-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-alt);
}
.google-more { margin-top: 28px; margin-bottom: 0; }
.google-more a { color: var(--brand); font-weight: 500; text-decoration: none; }
.google-more a:hover { text-decoration: underline; }
.google-cta-text { margin-top: 16px; }
.google-cta-btn { margin-top: 4px; text-decoration: none; }

/* Hvězdičkový vstup ve formuláři (radio → hvězdy) */
.star-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}
.star-input input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.form-group .star-input label,
.star-input label {
    font-size: 2rem;
    line-height: 1;
    color: var(--star-empty);
    cursor: pointer;
    transition: color .15s;
}
.form-group .star-input label:hover,
.form-group .star-input label:hover ~ label,
.form-group .star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label { color: var(--accent); }
.star-input input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ── Formuláře ─────────────────────────────────────────────── */

.form {
    max-width: 640px;
    display: grid;
    gap: 20px;
}

.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) {
    .form-row-2 { grid-template-columns: 1fr 1fr; }
}

.form-group { display: grid; gap: 7px; }

.form-group label {
    font-weight: 500;
    color: var(--ink);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

.req { color: var(--brand); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    padding: 12px 14px;
    border: 1px solid #CFCFC9;
    border-radius: 0;
    background: #fff;
    width: 100%;
    transition: border-color .2s, box-shadow .2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(20, 20, 20, 0.08);
}

textarea { min-height: 140px; resize: vertical; }

input[type="file"] {
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
}
input[type="file"]::file-selector-button {
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 9px 18px;
    margin-right: 12px;
    background: #fff;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 0;
    cursor: pointer;
    transition: background .2s, color .2s;
}
input[type="file"]::file-selector-button:hover {
    background: var(--accent);
    color: #fff;
}

.form-hint { font-size: 0.85rem; color: var(--muted); }
.form-hint-strong {
    font-size: 0.95rem;
    color: var(--ink);
    font-weight: 500;
    margin: 0;
}
.form-error-js {
    color: var(--error);
    font-weight: 500;
    font-size: 0.95rem;
    margin: 6px 0 0;
}

.checkbox-group {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.92rem;
}
.checkbox-group input {
    margin-top: 4px;
    width: 17px;
    height: 17px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

/* Honeypot – skryté pole pro roboty */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.alert {
    padding: 16px 18px;
    border: 1px solid;
}
.alert ul { margin: 0; padding-left: 1.1rem; }
.alert-error {
    background: var(--error-bg);
    border-color: #E5B7BA;
    color: var(--error);
}
.alert-success {
    background: var(--success-bg);
    border-color: #BCDCC8;
    color: var(--success);
}

.file-list { font-size: 0.88rem; color: var(--muted); margin: 6px 0 0; list-style: none; padding: 0; }

/* ── CTA pás (tmavý) ───────────────────────────────────────── */

.cta-band {
    position: relative;
    overflow: hidden;
    background: #141414;
    color: #B9B9B5;
    padding: 72px 0;
}
.cta-band::after {
    content: '';
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 360px;
    height: 312px;
    background: url('/assets/img/logo-white.png') no-repeat center / contain;
    opacity: 0.07;
    pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 560px; }
.cta-band .btn { margin-top: 12px; }


/* ── Realizace ─────────────────────────────────────────────── */

.project-card {
    border: 1px solid var(--line);
    overflow: hidden;
    background: #fff;
    transition: border-color .2s;
}
.project-card:hover { border-color: var(--accent); }
.project-photo {
    aspect-ratio: 4 / 3;
    width: 100%;
    object-fit: cover;
}
.project-meta { padding: 20px 22px; }
.project-meta h3 { margin-bottom: 4px; }
.project-tags {
    font-size: 0.85rem;
    color: var(--muted);
}
.project-tags span + span::before {
    content: '·';
    margin: 0 7px;
    color: var(--brand);
}

.placeholder-box {
    border: 1px dashed #C9C9C4;
    padding: 60px 28px;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.placeholder-box .overline { margin-bottom: 14px; }
.placeholder-box p { max-width: 480px; margin-left: auto; margin-right: auto; }
.placeholder-box .btn { margin-top: 20px; }

/* ── Realizace: slider ─────────────────────────────────────── */
.container-narrow { max-width: 820px; }

.rz-slider { position: relative; }
.rz-slide { display: none; }
.rz-slide.is-active {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    animation: rz-fade .5s ease both;
    border: 1px solid var(--line);
    background: #fff;
}
@keyframes rz-fade { from { opacity: 0; } to { opacity: 1; } }

.rz-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--bg-alt);
    aspect-ratio: 4 / 3;
}
.rz-media img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.rz-media:hover img { transform: scale(1.04); }
.rz-media-hint {
    position: absolute; left: 18px; bottom: 16px;
    background: rgba(20,20,20,.82); color: #fff;
    font-size: .8rem; letter-spacing: .04em;
    padding: 8px 14px; opacity: 0; transform: translateY(6px);
    transition: opacity .3s ease, transform .3s ease;
}
.rz-media:hover .rz-media-hint,
.rz-media:focus-visible .rz-media-hint { opacity: 1; transform: none; }

.rz-info {
    display: flex; flex-direction: column;
    align-items: flex-start; justify-content: center;
    padding: 40px 44px;
}
.rz-typ {
    font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--brand); font-weight: 600; margin-bottom: 14px;
}
.rz-nazev { font-size: 1.9rem; line-height: 1.1; margin: 0 0 14px; }
.rz-perex { color: var(--text); margin: 0 0 26px; }
.rz-info .btn { text-decoration: none; }

.rz-controls {
    display: flex; align-items: center; justify-content: center;
    gap: 22px; margin-top: 26px;
}
.rz-arrow {
    width: 48px; height: 48px; flex: none;
    border: 1px solid var(--line); background: #fff;
    color: var(--ink); font-size: 1.2rem; line-height: 1;
    cursor: pointer; border-radius: 50%;
    transition: background .2s, color .2s, border-color .2s;
}
.rz-arrow:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.rz-dots { display: flex; align-items: center; gap: 10px; }
.rz-dot {
    width: 9px; height: 9px; padding: 0; border: 0; cursor: pointer;
    border-radius: 50%; background: var(--line);
    transition: background .2s, transform .2s;
}
.rz-dot.is-active { background: var(--brand); transform: scale(1.25); }

@media (max-width: 800px) {
    .rz-slide.is-active { grid-template-columns: 1fr; }
    .rz-info { padding: 26px 24px 30px; }
    .rz-nazev { font-size: 1.5rem; }
}

/* ── Realizace: detail ─────────────────────────────────────── */
.rz-detail-meta {
    color: var(--brand); font-weight: 600;
    font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
    margin: 0 0 14px;
}
.rich-text p { color: var(--text); font-size: 1.05rem; line-height: 1.8; margin: 0 0 18px; max-width: 720px; }
.rich-text p:last-child { margin-bottom: 0; }

/* Stav zakázky (např. „probíhá“) – štítek za typem/lokalitou/rokem */
.rz-stav {
    display: inline-block;
    margin-left: 12px;
    padding: 3px 9px 2px;
    border: 1px solid currentColor;
    color: var(--brand);
    font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    line-height: 1.4;
    vertical-align: 1px;
}

/* Rozsah prací na detailu realizace */
.rz-rozsah { margin-top: 48px; }
.rz-rozsah h3 { margin-bottom: 18px; }
.worklist .wl-stav {
    color: var(--brand);
    font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.worklist .wl-stav.is-hotovo { color: var(--muted); }
.worklist .wl-stav.is-hotovo::before { content: '\2713\00a0'; }

/* Soubory ke stažení pod galerií */
.rz-soubory {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
    margin-top: 36px;
}
.rz-soubor-info { opacity: .7; letter-spacing: .06em; }

.rz-photoslider { max-width: 1100px; margin-left: auto; margin-right: auto; }
.rz-ps-stage { text-align: center; line-height: 0; }
.rz-ps-slide {
    position: relative;
    display: none;
    width: auto; max-width: 100%;
    padding: 0; margin: 0 auto; border: 1px solid var(--line); background: #fff;
    cursor: zoom-in;
    animation: rz-fade .45s ease both;
}
.rz-ps-slide.is-active { display: inline-block; }
.rz-ps-slide img { display: block; width: auto; height: auto; max-width: 100%; max-height: 70vh; }
.rz-ps-zoom {
    position: absolute; right: 14px; bottom: 12px;
    background: rgba(20,20,20,.82); color: #fff;
    font-size: .78rem; letter-spacing: .04em; padding: 7px 13px;
    opacity: 0; transform: translateY(6px);
    transition: opacity .3s ease, transform .3s ease;
}
.rz-ps-slide:hover .rz-ps-zoom,
.rz-ps-slide:focus-visible .rz-ps-zoom { opacity: 1; transform: none; }
.rz-ps-counter {
    min-width: 66px; text-align: center;
    color: var(--muted); font-size: .9rem; letter-spacing: .06em;
}
@media (max-width: 600px) { .rz-ps-slide img { max-height: 58vh; } }

/* ── Lightbox ──────────────────────────────────────────────── */
.lightbox {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(15,15,15,.92);
    display: flex; align-items: center; justify-content: center;
    padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lb-btn {
    position: absolute; background: none; border: 0; color: #fff;
    font-size: 2rem; line-height: 1; cursor: pointer; padding: 12px;
    opacity: .85; transition: opacity .2s;
}
.lb-btn:hover { opacity: 1; }
.lb-close { top: 14px; right: 18px; font-size: 2.4rem; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ── Kontakt ───────────────────────────────────────────────── */

.contact-grid {
    display: grid;
    gap: 40px;
}
@media (min-width: 900px) {
    .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-block { margin-bottom: 30px; }
.contact-block:last-child { margin-bottom: 0; }
.contact-block h2 { font-size: 1.05rem; margin-bottom: 0.6rem; letter-spacing: 0.08em; }

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}
.contact-list strong { color: var(--ink); font-weight: 500; }

.map-embed {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
}
.map-note { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }

/* ── Patička (tmavá) ───────────────────────────────────────── */

.site-footer {
    background: #141414;
    color: #A9A9A5;
    font-size: 0.93rem;
    margin-top: 0;
}
.site-footer .logo-dot { color: var(--brand); }

.footer-grid {
    display: grid;
    gap: 32px;
    padding-top: 60px;
    padding-bottom: 52px;
}
@media (min-width: 640px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: #fff;
    margin-bottom: 0.8rem;
}
.footer-logo .logo-mark { width: 30px; height: 26px; }

.footer-heading {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.footer-nav, .footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.site-footer a {
    color: #D6D6D2;
    text-decoration: none;
}
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 20px 0;
    font-size: 0.85rem;
    color: #7E7E7A;
}
.footer-bottom p { margin: 0; }

/* ── Administrace ──────────────────────────────────────────── */

.admin-main { padding: 48px 0 80px; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.93rem;
}
.admin-table th, .admin-table td {
    text-align: left;
    padding: 12px 14px;
    border: 1px solid var(--line);
    vertical-align: top;
}
.admin-table th {
    background: var(--bg-alt);
    color: var(--ink);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
}
.admin-table .actions { white-space: nowrap; }
.admin-table form { display: inline; }

.btn-sm {
    padding: 7px 16px;
    font-size: 0.75rem;
}
.btn-danger {
    background: transparent;
    color: var(--error);
    border-color: var(--error);
}
.btn-danger:hover { background: var(--error); color: #fff; }

.table-wrap { overflow-x: auto; }

/* ── Animace fade-in ───────────────────────────────────────── */

.js .fade-in {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s ease, transform .6s ease;
}
.js .fade-in.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .card, .project-card, .btn, .main-nav a::after, .sub-menu, .sub-menu a, .sub-arrow { transition: none; }
}
