/* =====================================================================
   KSdigital - kreativní varianta webu
   Koncept "K z částic": logo složené z tisíců teček, které se při rolování
   přelévají do dalších tvarů. Tmavé pozadí, velká typografie.
   ===================================================================== */

:root {
    --navy: #071634;
    --navy-dark: #030916;
    --navy-light: #0E2150;
    --brand: #005DFB;
    --brand-deep: #012C8C;
    --cyan: #00C9FC;
    --cyan-bright: #01E6FD;
    --indigo: #393AFC;
    --violet: #A770FB;
    --text: #E8EEFC;
    --muted: #8FA0C9;
    --line: rgba(143, 160, 201, 0.16);
    /* Karty bez rozmazání pozadí (backdrop-filter) - nad pohybujícími se tečkami
       ho prohlížeč přepočítává v každém snímku a animace pak sekala */
    --glass: rgba(9, 20, 48, 0.86);
    --grad-brand: linear-gradient(135deg, #0046DA 0%, #005DFB 45%, #00C9FC 100%);
    --grad-text: linear-gradient(100deg, #005DFB 0%, #00C9FC 55%, #01E6FD 100%);
    --grad-violet: linear-gradient(135deg, #393AFC 0%, #A770FB 100%);
    --font-display: 'Lexend', 'Inter', -apple-system, sans-serif;
    --gutter: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--navy-dark);
    color: var(--text);
    overflow-x: clip; /* ne hidden - to by rozbilo přilepené (sticky) sekce */
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; border: none; cursor: pointer; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
::selection { background: var(--cyan); color: var(--navy-dark); }

/* ---------- Plátno s částicemi (za celou stránkou) ---------- */
#particles {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}
/* Jemné barevné mlhy v pozadí */
.bg-glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 60% 50% at 75% 30%, rgba(0, 93, 251, 0.16), transparent 70%),
        radial-gradient(ellipse 50% 40% at 15% 85%, rgba(167, 112, 251, 0.10), transparent 70%),
        var(--navy-dark);
}
/* Zrno přes celou stránku - filmový dojem */
.grain {
    position: fixed;
    inset: -50%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.05;
    /* zrno stojí - pohyb přes celou obrazovku stál polovinu výkonu */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .site-footer { position: relative; z-index: 2; }
/* Bez pohybu: logo z teček jen v úvodu, neplave přes celou stránku */
.no-motion #particles { position: absolute; height: 100vh; }

/* Vlastní kurzor (kolečko místo šipky) odstraněn - všude klasický kurzor */

/* ---------- Ukazatel postupu ---------- */
.progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    z-index: 1500;
    background: linear-gradient(90deg, #005DFB, #00C9FC 60%, #A770FB);
    transform: scaleX(0);
    transform-origin: 0 50%;
    box-shadow: 0 0 12px rgba(0, 201, 252, 0.7);
}

/* Menu a mobilní menu: kreativni/hlavicka-paticka.css (společné pro celý web) */

/* ---------- Společné prvky ---------- */
.wrap { padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; }
.label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cyan);
}
.label::before { content: ''; width: 28px; height: 1px; background: var(--cyan); }
.label .num { color: var(--muted); }
.display {
    font-size: clamp(2.6rem, 6.4vw, 6.2rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
}
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.outline { color: transparent; -webkit-text-stroke: 1.5px rgba(232, 238, 252, 0.55); }
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 20px 34px;
    border-radius: 100px;
    background: var(--grad-brand);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    overflow: hidden;
    transition: box-shadow 0.4s;
}
.btn:hover { box-shadow: 0 0 50px rgba(0, 150, 252, 0.45); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: none; }
.btn .arrow { display: inline-block; transition: transform 0.4s; }
.btn:hover .arrow { transform: translateX(5px); }
section { position: relative; }

/* ---------- Odhalování (jen s pohybem) ---------- */
.motion [data-reveal] { opacity: 0; transform: translateY(60px); transition: opacity 1.1s cubic-bezier(.2, .7, .2, 1), transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.motion [data-reveal].in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.12em 0.03em 0.12em; margin: -0.12em -0.03em -0.12em; }
.split .w > span { display: inline-block; }
.motion .split .w > span { transform: translateY(115%) rotate(4deg); transition: transform 1s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 60ms); }
.motion .split.in .w > span { transform: none; }
/* Po doběhnutí už ořez není potřeba - jinak by uřízl záři kolem textu */
.split.done .w { overflow: visible; }

/* =====================================================================
   1) ÚVOD - obří K z částic + velký nadpis
   ===================================================================== */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 140px var(--gutter) 48px;
}
.hero h1 {
    font-size: clamp(3rem, 8.6vw, 9.4rem);
    line-height: 0.95;
    letter-spacing: -0.045em;
    max-width: 11ch;
}
.hero h1 .sila {
    display: inline-block;
    font-size: 1.12em;
    background: linear-gradient(100deg, #005DFB 0%, #00C9FC 30%, #01E6FD 50%, #00C9FC 70%, #005DFB 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 40px rgba(0, 201, 252, 0.45));
    animation: shine 6s ease-in-out infinite;
    padding-bottom: 0.06em;
}
@keyframes shine { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}
.hero-bottom p { max-width: 520px; font-size: 1.08rem; line-height: 1.7; color: var(--muted); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.scroll-hint {
    position: absolute;
    right: var(--gutter);
    top: 50%;
    writing-mode: vertical-rl;
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 14px;
}
.scroll-hint::after { content: ''; width: 1px; height: 70px; background: linear-gradient(var(--cyan), transparent); animation: hint 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* =====================================================================
   2) KLÍČOVÁ SLOVA - stojí, na přeskáčku se rozsvěcují
   ===================================================================== */
.keywords {
    margin-top: 12vh;              /* uprostřed mezi úvodem a manifestem */
    padding: 34px var(--gutter);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: transparent;       /* jen ohraničení linkami */
}
.keywords-list {
    display: flex;
    flex-wrap: wrap;               /* když se nevejdou, pokračují na dalším řádku */
    justify-content: center;
    gap: 10px 14px;
    max-width: 1200px;
    margin: 0 auto;
}
.keywords-list li {
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.7vw, 1.45rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    padding: 8px 16px;
    color: rgba(143, 160, 201, 0.45);
    transition: color 0.6s, text-shadow 0.6s, transform 0.6s;
}
/* Rozsvícené slovo (třídu "on" přidává a odebírá JS) */
.keywords-list li.on {
    color: var(--cyan-bright);
    text-shadow: 0 0 22px rgba(0, 201, 252, 0.7);
    transform: scale(1.06);
}
/* Bez pohybu jsou všechna slova normálně čitelná */
.no-motion .keywords-list li { color: var(--text); }

/* =====================================================================
   3) MANIFEST - "Co dělám", klíčová slova rovnou zvýrazněná
   ===================================================================== */
.manifest { padding: 14vh var(--gutter); }
.manifest-text {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4.4vw, 4.4rem);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.025em;
    max-width: 22ch;
    margin-top: 28px;
}
.manifest-text .accent { color: var(--cyan); }

/* =====================================================================
   5) PROBLÉMY - seznam s čísly, po najetí se ukáže řešení
   ===================================================================== */
.problems { padding: 14vh 0; }
/* Na širší obrazovce obsah v levých dvou třetinách - vpravo je místo pro otazník z teček */
@media (min-width: 1101px) {
    .problems .wrap > * { max-width: 64%; }
    .problems .sec-head { grid-template-columns: 1fr; gap: 24px; }
    .problems .sec-head p { justify-self: start; }
}
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 70px; }
.sec-head h2 { margin-top: 22px; }
.sec-head p { font-size: 1.1rem; line-height: 1.75; color: var(--muted); max-width: 46ch; justify-self: end; }
.problem-list { border-top: 1px solid var(--line); }
.problem {
    position: relative;
    display: grid;
    grid-template-columns: 90px 1fr 1fr 60px;
    gap: 30px;
    align-items: center;
    padding: 34px 0;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.problem::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 93, 251, 0.16), rgba(0, 201, 252, 0.06) 60%, transparent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s cubic-bezier(.7, 0, .2, 1);
}
.problem:hover::before { transform: scaleY(1); }
.problem > * { position: relative; }
.problem .p-num { font-family: var(--font-display); font-size: 0.95rem; color: var(--muted); padding-left: 6px; }
.problem h3 { font-size: clamp(1.3rem, 2.2vw, 2rem); font-weight: 600; line-height: 1.2; transition: transform 0.5s cubic-bezier(.2, .8, .2, 1); }
.problem:hover h3 { transform: translateX(14px); }
.problem p { font-size: 0.95rem; line-height: 1.65; color: var(--muted); }
.problem .p-sol { display: block; margin-top: 8px; color: var(--cyan); font-weight: 600; font-size: 0.9rem; }
.problem .p-arrow {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    transition: background 0.4s, border-color 0.4s, transform 0.4s;
}
.problem:hover .p-arrow { background: var(--cyan); border-color: var(--cyan); color: var(--navy-dark); transform: rotate(-45deg); }

/* =====================================================================
   6) SLUŽBY - tři velké panely, částice tvoří sloupcový graf (růst)
   ===================================================================== */
.services { padding: 14vh 0; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
    position: relative;
    padding: 40px 34px 36px;
    border-radius: 28px;
    background: var(--glass);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(.2, .8, .2, 1), border-color 0.4s;
    transform-style: preserve-3d;
}
.pillar::after {
    /* světlo, které sleduje myš (pozice z JS) */
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 201, 252, 0.14), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.pillar:hover::after { opacity: 1; }
.pillar:hover { border-color: rgba(0, 201, 252, 0.4); }
.pillar-num { font-family: var(--font-display); font-size: 5rem; font-weight: 800; line-height: 1; letter-spacing: -0.05em; margin-bottom: 28px; }
.pillar h3 { font-size: 1.55rem; line-height: 1.2; margin-bottom: 14px; }
.pillar > p { font-size: 0.95rem; line-height: 1.7; color: var(--muted); margin-bottom: 24px; }
.pillar ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.pillar li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; font-size: 0.92rem; line-height: 1.55; color: #C9D4EE; }
.pillar li::before { content: ''; width: 7px; height: 7px; margin-top: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.pillar li strong { color: var(--text); font-weight: 600; }
.pillar-fit { margin-top: auto; padding: 16px 18px; border-radius: 16px; background: rgba(143, 160, 201, 0.08); font-size: 0.86rem; line-height: 1.6; color: #C9D4EE; margin-bottom: 22px; }
.pillar-fit b { color: var(--text); }
.pillar-link { font-weight: 600; color: var(--cyan); font-size: 0.92rem; display: inline-flex; gap: 10px; }

/* =====================================================================
   7) UKÁZKY PRÁCE - vodorovná jízda při rolování
   ===================================================================== */
.work { position: relative; }
.work-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: 70px; }
.work-head { padding: 0 var(--gutter); display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: clamp(20px, 4vh, 44px); }
.work-head p { color: var(--muted); max-width: 40ch; line-height: 1.7; }
.work-track { display: flex; gap: 28px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.case {
    flex: 0 0 auto;
    width: min(560px, 80vw);
    border-radius: 28px;
    overflow: hidden;
    background: var(--glass);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}
.case-media { height: clamp(150px, 26vh, 260px); position: relative; overflow: hidden; }
.case-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.case:hover .case-media img { transform: scale(1.02); }
.case-media.stat-media {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px;
    background: radial-gradient(ellipse at 20% 15%, rgba(0, 201, 252, 0.25), transparent 55%), radial-gradient(ellipse at 85% 90%, rgba(167, 112, 251, 0.25), transparent 55%), linear-gradient(135deg, var(--brand-deep), var(--navy));
}
.case-media.stat-media strong { font-family: var(--font-display); font-size: 2.6rem; line-height: 1.1; letter-spacing: -0.03em; }
.case-media.stat-media > span { color: #C9D4EE; }
.case-media.stat-media strong .grad { white-space: nowrap; } /* "11 jazyků" se nesmí rozdělit */
.flow { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; justify-content: center; }
.flow b { padding: 9px 13px; border-radius: 100px; background: rgba(3, 9, 22, 0.5); border: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: clamp(0.72rem, 2.6vw, 0.88rem); white-space: nowrap; }
.flow b.ai { border-color: var(--cyan); box-shadow: 0 0 24px rgba(0, 201, 252, 0.35); }
.flow i { color: var(--cyan); font-style: normal; }
.case-body { padding: 30px 32px 32px; display: flex; flex-direction: column; flex: 1; }
.case-tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.case-body h3 { font-size: 1.45rem; line-height: 1.25; margin-bottom: 12px; }
.case-body > p { font-size: 0.93rem; line-height: 1.7; color: var(--muted); margin-bottom: 18px; }
.case-result { margin-top: auto; padding: 14px 16px; border-radius: 14px; background: rgba(0, 201, 252, 0.08); border: 1px solid rgba(0, 201, 252, 0.18); font-size: 0.9rem; line-height: 1.55; color: #D6E0F5; }
.case-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.case-metrics div { text-align: center; padding: 12px 6px; border-radius: 12px; border: 1px solid var(--line); }
.case-metrics strong { display: block; font-family: var(--font-display); font-size: 1.4rem; }
.case-metrics span { font-size: 0.72rem; color: var(--muted); }
.video-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.video-links a { padding: 7px 14px; border-radius: 100px; border: 1px solid var(--line); font-size: 0.78rem; font-weight: 600; transition: background 0.3s, border-color 0.3s; }
.video-links a:hover { background: var(--cyan); border-color: var(--cyan); color: var(--navy-dark); }
.work-end { flex: 0 0 auto; width: min(420px, 80vw); display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 0 20px; }
.work-end h3 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; }
.work-progress { margin: clamp(16px, 4vh, 40px) var(--gutter) 0; height: 1px; background: var(--line); position: relative; }
.work-progress i { position: absolute; inset: 0; background: var(--grad-text); transform: scaleX(0); transform-origin: 0 50%; }

/* =====================================================================
   8) O MNĚ
   ===================================================================== */
.about { padding: 16vh 0; }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: start; }
/* Fotka začíná na úrovni jména (pod popiskem "O mně") */
.about-photo { position: relative; margin-top: 44px; }
.about-photo img { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0, 93, 251, 0.35)); transition: opacity 0.7s ease-out, filter 0.7s ease-out; }
/* Fotka se nejdřív složí z teček a teprve pak se objeví (třídu photo-in přidá JS) */
.motion .about-photo:not(.photo-in) img { opacity: 0; filter: blur(12px) drop-shadow(0 30px 60px rgba(0, 93, 251, 0)); }
.about-text h2 { margin: 22px 0 8px; }
.about-role { color: var(--cyan); font-weight: 600; margin-bottom: 28px; }
.about-text > p { font-size: 1.05rem; line-height: 1.85; color: #C9D4EE; margin-bottom: 18px; }
.about-text > p strong { color: var(--text); }
.reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 40px 0 34px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.reason { padding: 24px; background: rgba(3, 9, 22, 0.85); }
.reason h3 { font-size: 1.02rem; margin-bottom: 8px; }
.reason p { font-size: 0.88rem; line-height: 1.6; color: var(--muted); }
.skills { display: flex; flex-wrap: wrap; gap: 8px; }
.skills span { padding: 7px 14px; border-radius: 100px; border: 1px solid var(--line); font-size: 0.8rem; color: #C9D4EE; transition: border-color 0.3s, color 0.3s; }
.skills span:hover { border-color: var(--cyan); color: var(--cyan); }

/* =====================================================================
   9) JAK SPOLUPRÁCE PROBÍHÁ
   ===================================================================== */
.process { padding: 14vh 0; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 70px; }
/* Linka vede od středu čísla 1 ke středu čísla 4 a dál nepokračuje
   (sloupce: (100% - 3 mezery po 30px) / 4, střed čísla 34px od levého kraje sloupce) */
.steps-line { position: absolute; top: 34px; left: 34px; right: calc((100% - 90px) / 4 - 34px); height: 1px; background: var(--line); }
.steps-line i { position: absolute; inset: 0; background: linear-gradient(90deg, #005DFB, #00C9FC 60%, #A770FB); box-shadow: 0 0 14px rgba(0, 201, 252, 0.7); transform: scaleX(0); transform-origin: 0 50%; }
.no-motion .steps-line i { transform: none; }
.step { position: relative; }
.step-num {
    width: 68px; height: 68px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--navy-dark);
    border: 1px solid var(--line);
    color: var(--muted);
    margin-bottom: 28px;
    transition: all 0.6s cubic-bezier(.2, .8, .2, 1);
}
.step.lit .step-num, .no-motion .step-num { border-color: var(--cyan); color: #fff; background: var(--brand-deep); box-shadow: 0 0 40px rgba(0, 201, 252, 0.55); transform: scale(1.06); }
.step h3 { font-size: 1.3rem; margin-bottom: 12px; }
.step p { font-size: 0.93rem; line-height: 1.7; color: var(--muted); }
.step-free { display: inline-block; margin-top: 12px; padding: 4px 12px; border-radius: 100px; font-size: 0.72rem; font-weight: 600; background: rgba(0, 201, 252, 0.12); color: var(--cyan); }

/* =====================================================================
   10) ČASTÉ OTÁZKY
   ===================================================================== */
.faq-sec { padding: 12vh 0; }
.faq { margin-top: 60px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 30px 0;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2vw, 1.6rem);
    font-weight: 600;
    transition: color 0.3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--cyan); }
.faq summary::after { content: '+'; font-family: 'Inter'; font-weight: 300; font-size: 2rem; color: var(--cyan); transition: transform 0.4s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 30px; max-width: 70ch; font-size: 1rem; line-height: 1.8; color: #C9D4EE; }
.faq details a { color: var(--cyan); font-weight: 600; }

/* =====================================================================
   11) BLOG
   ===================================================================== */
.blog { padding: 12vh 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 60px; }
/* Ve zdroji může být víc karet (plánované články). Na webu je balíček nechá jen 3, tady se zbytek schová i v náhledu. */
.blog-grid .post:nth-child(n+4) { display: none; }
.post { border-radius: 24px; overflow: hidden; background: var(--glass); border: 1px solid var(--line); transition: border-color 0.4s, transform 0.6s cubic-bezier(.2, .8, .2, 1); display: block; }
.post:hover { border-color: rgba(0, 201, 252, 0.4); transform: translateY(-8px); }
.post-img { height: 190px; position: relative; overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.post:hover .post-img img { transform: scale(1.06); }
.post-body { padding: 26px; }
.post-meta { font-size: 0.75rem; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.post-meta b { color: var(--cyan); font-weight: 600; }
.post h3 { font-size: 1.2rem; line-height: 1.35; margin-bottom: 10px; }
.post p { font-size: 0.9rem; line-height: 1.65; color: var(--muted); }
.blog-more { margin-top: 44px; text-align: center; }

/* =====================================================================
   12) KONTAKT - částice se znovu složí do K
   ===================================================================== */
.contact { padding: 16vh 0 12vh; }
/* Vlevo text a kroky, vpravo kontakty (dole zarovnané s kroky) */
.contact-wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 80px; align-items: end; }
.contact h2 { margin: 22px 0 24px; }
.contact-lead { font-size: 1.1rem; line-height: 1.8; color: #C9D4EE; margin-bottom: 34px; max-width: 46ch; }
.contact-next { display: flex; flex-direction: column; gap: 14px; }
.contact-next li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; color: #C9D4EE; line-height: 1.6; }
.contact-next li span { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--cyan); color: var(--cyan); display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; }
.contact-links a { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.8rem); font-weight: 600; transition: color 0.3s, padding 0.4s; }
.contact-links a:last-child { border-bottom: 1px solid var(--line); }
.contact-links a small { font-family: 'Inter'; font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.contact-links a:hover { color: var(--cyan); padding-left: 12px; }

/* =====================================================================
   13) PATIČKA - obří závěrečný claim
   ===================================================================== */
.site-footer { padding: 14vh 0 12vh; overflow: hidden; }
.footer-claim { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 8vw, 8.6rem); line-height: 0.98; letter-spacing: -0.045em; }
.footer-sub { margin: 30px 0 44px; font-size: 1.15rem; color: var(--muted); }
/* Spodní pruh patičky: kreativni/hlavicka-paticka.css */

/* =====================================================================
   RESPONZIVITA
   ===================================================================== */
@media (max-width: 1100px) {
    .pillars { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 56px; }
    .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
    .about-photo { max-width: 420px; margin-top: 0; }
    .blog-grid { grid-template-columns: 1fr 1fr; }
    .problem { grid-template-columns: 60px 1fr 48px; }
    .problem p { grid-column: 2 / 3; }
    .problem .p-arrow { grid-row: 1; grid-column: 3; }
}
@media (max-width: 768px) {
    .hero { padding-top: 110px; }
    .hero-bottom { flex-direction: column; align-items: flex-start; }
    .keywords { margin-top: 48px; }
    /* Mobil: menší mezery mezi sekcemi */
    .problems, .services, .process, .faq-sec, .blog, .about { padding: 64px 0; }
    .contact { padding: 64px 0 48px; }
    .site-footer { padding: 64px 0 56px; }
    .work-sticky { padding-top: 64px; }
    .sec-head { margin-bottom: 36px; }
    .steps, .stats-grid, .blog-grid, .faq { margin-top: 36px; }
    /* Manifest: kratší rolování a text hned nahoře, ne uprostřed prázdné obrazovky */
    /* Manifest na mobilu rovnou obarvený, bez rozsvěcování při rolování (zdržovalo) */
    .manifest { padding: 64px 20px 0; }
    /* Úvod na mobilu přes celou výšku obrazovky: nadpis hned pod menu, tlačítka dole */
    .hero { min-height: 100vh; min-height: 100svh; justify-content: flex-start; padding-top: 120px; padding-bottom: 40px; }
    .hero h1 { margin-top: 0; font-size: min(16vw, 7.8svh); max-width: none; } /* větší nadpis přes většinu šířky telefonu; na nízkém telefonu menší, ať se úvod vejde */
    /* Text hned pod nadpisem, tlačítka dole u okraje obrazovky */
    .hero-bottom p { font-size: min(7vw, 3.3svh); line-height: 1.5; } /* velký přes šířku; na nízkém telefonu menší, ať se úvod vejde */
    .hero-bottom { flex: 1; gap: 28px; margin-top: 28px; padding-top: 0; border-top: none; }
    .hero-actions { width: 100%; margin-top: auto; }
    .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
    .scroll-hint { display: none; }
    .sec-head { grid-template-columns: 1fr; gap: 24px; }
    .sec-head p { justify-self: start; }
    .problem { grid-template-columns: 1fr 44px; gap: 12px 16px; padding: 26px 0; }
    .problem .p-num { grid-column: 1 / -1; padding: 0; }
    .problem h3 { grid-column: 1; }
    .problem p { grid-column: 1 / -1; }
    .problem .p-arrow { grid-row: 2; grid-column: 2; width: 40px; height: 40px; }
    /* Na mobilu ukázky práce pod sebou - vodorovná jízda by se na dotyk ovládala špatně */
    .work { height: auto !important; }
    .work-sticky { position: static; height: auto; overflow: visible; padding: 12vh 0 0; }
    .work-head { flex-direction: column; align-items: flex-start; }
    .work-track { flex-direction: column; width: auto; transform: none !important; }
    .case, .work-end { width: 100%; }
    .work-progress { display: none; }
    .steps { grid-template-columns: 1fr; gap: 40px; }
    .steps-line { display: none; }
    .reasons { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .case-metrics strong { font-size: 1.15rem; }
    /* Schéma generátoru na mobilu pod sebou - vedle sebe se nevejde */
    .flow { flex-direction: column; gap: 4px; }
    .flow i { transform: rotate(90deg); line-height: 1; }
    .case-media.stat-media { height: auto; padding: 28px 20px; }
    .case-media.stat-media strong { font-size: 1.85rem; }
}

/* Omezit pohyb: žádné animace, žádné zrno, částice jen jako statické logo */
/* Nízký telefon (např. 360 x 640): menší mezery v úvodu, ať se i s tlačítky vejde na jednu obrazovku */
@media (max-width: 768px) and (max-height: 700px) {
    .hero { padding-top: 104px; padding-bottom: 24px; }
    .hero-bottom { margin-top: 20px; gap: 20px; }
    .hero-bottom p { font-size: 2.8svh; }
}
@media (prefers-reduced-motion: reduce) {
    .scroll-hint::after { animation: none; }
    .hero h1 .sila { animation: none; }
}

/* =====================================================================
   PODNABÍDKA SLUŽEB, ÚDAJE O PODNIKATELI, KLIKACÍ BLOKY SLUŽEB
   ===================================================================== */

/* Celý blok služby je klikací (odkaz "Detaily o službě" se roztáhne přes kartu) */
.pillar-link::before { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.pillar:hover .pillar-link { text-decoration: underline; text-underline-offset: 4px; }


/* O mně na mobilu a tabletu (jeden sloupec): fotka až pod nadpisem a rolí, ne nad nimi.
   .about-text se "rozpustí" (display: contents), takže nadpis, fotka a text jsou sourozenci
   ve stejné mřížce a dají se seřadit; na počítači zůstávají dva sloupce beze změny. */
@media (max-width: 1100px) {
    .about-grid { gap: 0; }
    .about-text { display: contents; }
    .about-text > * { order: 3; }
    .about-text > .label, .about-text > h2, .about-text > .about-role { order: 1; }
    .about-photo { order: 2; margin: 0 0 40px; }
}

/* Nadpisky sekcí ("S čím pomáhám", "Služby", "O mně"...) všude stejně. Dřív je pravidla pro
   úvodní odstavce sekcí (.sec-head p, .about-text > p) omylem zvětšovala a měnila jim barvu
   jen v některých sekcích. Vzorem je "S čím pomáhám"; p.label + pořadí na konci souboru
   přebije .sec-head p, .work-head p i .about-text > p. */
p.label {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--muted);
    max-width: none;
    margin-bottom: 0;
}

/* O mně na počítači: text vlevo, fotka vpravo (na mobilu fotka pod nadpisem, viz výše) */
@media (min-width: 1101px) {
    .about-grid { grid-template-columns: 1.1fr 0.9fr; }
    .about-photo { order: 2; }
}

/* Úvod, Co dělám a Ukázky práce začínají na stejné linii jako ostatní sekce (.wrap: pás
   nejvýš 1440 px uprostřed + okraj). Dřív měly jen okraj od kraje obrazovky, takže na
   obrazovkách širších než 1440 px začínaly víc vlevo. Procenta se počítají ze šířky sekce. */
.hero, .manifest, .work-head, .work-track {
    padding-left: max(var(--gutter), calc((100% - 1440px) / 2 + var(--gutter)));
    padding-right: max(var(--gutter), calc((100% - 1440px) / 2 + var(--gutter)));
}
.work-progress {
    margin-left: max(var(--gutter), calc((100% - 1440px) / 2 + var(--gutter)));
    margin-right: max(var(--gutter), calc((100% - 1440px) / 2 + var(--gutter)));
}
.scroll-hint { right: max(var(--gutter), calc((100% - 1440px) / 2 + var(--gutter))); }
