:root {
    color-scheme: light dark;
    --bg: #fafaf9;
    --surface: #ffffff;
    --text: #1c1917;
    --muted: #57534e;
    --border: #e7e5e4;
    --accent: #6d28d9;
    --accent-contrast: #ffffff;
    --accent-soft: #f3eefe;
    --ok: #15803d;
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0c0a09;
        --surface: #1c1917;
        --text: #f5f5f4;
        --muted: #a8a29e;
        --border: #292524;
        --accent: #a78bfa;
        --accent-contrast: #0c0a09;
        --accent-soft: #2a2144;
        --ok: #4ade80;
    }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font: 1rem/1.65 var(--font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--accent-contrast); }

.page {
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
    padding: clamp(2.5rem, 8vw, 5.5rem) 1.25rem 2rem;
    flex: 1;
}

/* Top navigation */
.topnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
    padding: 1rem 1.25rem 0;
    font-size: .875rem;
}

.home {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: color .15s;
}

.home:hover { color: var(--accent); }
.home .icon { transform: rotate(90deg); }

.topnav-end { display: flex; align-items: center; gap: .75rem; margin-left: auto; }

.lang {
    padding: .35rem .2rem;
    color: var(--muted);
    font-weight: 600;
    font-size: .8125rem;
    letter-spacing: .04em;
    text-decoration: none;
    transition: color .15s;
}

.lang:hover { color: var(--accent); }

.menu { position: relative; }

/* Výrazné tlačítko „Služby": gradient, jemná záře a tečka s pulzem, dokud menu návštěvník neotevře */
.menu-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .7rem .45rem .85rem;
    color: #fff;
    font-weight: 650;
    list-style: none;
    background: linear-gradient(135deg, #7c3aed, #c026d3);
    background-size: 160% 160%;
    border-radius: 999px;
    box-shadow: 0 4px 16px -4px color-mix(in srgb, #a21caf 55%, transparent), inset 0 1px 0 rgb(255 255 255 / .2);
    cursor: pointer;
    user-select: none;
    animation: shimmer 6s ease-in-out infinite;
    transition: transform .15s, box-shadow .15s;
}

.menu-btn::-webkit-details-marker { display: none; }
.menu-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -6px color-mix(in srgb, #a21caf 70%, transparent), inset 0 1px 0 rgb(255 255 255 / .2); }
.menu-btn .icon { width: 1rem; height: 1rem; }
.menu-btn .chev { transition: transform .2s; }
.menu[open] .chev { transform: rotate(180deg); }

.ping {
    position: absolute;
    top: -.15rem;
    right: -.15rem;
    width: .65rem;
    height: .65rem;
    background: #facc15;
    border: 2px solid var(--bg);
    border-radius: 50%;
}

.ping::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: #facc15;
    animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}

.menu.seen .ping, .menu[open] .ping { display: none; }

@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.menu ul {
    position: absolute;
    right: 0;
    top: calc(100% + .5rem);
    z-index: 5;
    min-width: 15rem;
    margin: 0;
    padding: .35rem;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: .875rem;
    box-shadow: 0 12px 32px -8px rgb(0 0 0 / .18);
    animation: drop .15s ease-out;
}

@keyframes drop { from { opacity: 0; transform: translateY(-4px); } }

.menu a {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .6rem .75rem;
    color: var(--text);
    text-decoration: none;
    border-radius: .6rem;
}

.menu a .icon { margin-top: .15rem; color: var(--accent); }
.menu a strong { display: block; font-weight: 600; }
.menu a small { display: block; color: var(--muted); font-size: .8125rem; }
.menu a:hover { background: var(--accent-soft); }
.menu a[aria-current="page"] strong { color: var(--accent); }

/* Hero */
.hero {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 4vw, 2rem);
    margin-bottom: clamp(2.5rem, 7vw, 4rem);
}

.avatar {
    flex: none;
    width: clamp(6.5rem, 22vw, 9rem);
    height: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 20%;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--border), 0 0 0 5px var(--bg), 0 0 0 6px var(--border);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .75rem;
    padding: .2rem .7rem;
    font-size: .8125rem;
    font-weight: 500;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent);
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 7vw, 3rem);
    line-height: 1.1;
    letter-spacing: -.03em;
    font-weight: 750;
    text-wrap: balance;
}

.role {
    margin: .5rem 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 2.6vw, 1.1875rem);
}

.role span { color: var(--accent); font-weight: 600; }

/* Sections */
section + section { margin-top: clamp(2rem, 6vw, 3rem); }

h2 {
    margin: 0 0 .9rem;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

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

.lead { font-size: clamp(1.1rem, 2.8vw, 1.3rem); line-height: 1.6; }

/* Chips */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chips li {
    padding: .3rem .85rem;
    font-size: .9rem;
    font-weight: 500;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.chips li:last-child { color: var(--muted); border-style: dashed; background: transparent; }

/* Contact */
.contact { display: flex; flex-direction: column; gap: 1.25rem; }

.mail { display: flex; flex-wrap: wrap; gap: .625rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .7rem 1.2rem;
    font: inherit;
    font-weight: 600;
    font-size: .9375rem;
    line-height: 1.2;
    color: var(--accent-contrast);
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: .75rem;
    text-decoration: none;
    cursor: pointer;
    transition: filter .15s, transform .15s;
}

.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }

.btn-ghost {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
}

.btn-ghost:hover { filter: none; border-color: var(--accent); }
.btn-ghost.done { color: var(--ok); border-color: var(--ok); }

.icon { width: 1.1rem; height: 1.1rem; flex: none; }

.social {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.social a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem 0;
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: color .15s;
}

.social a:hover { color: var(--accent); }

/* Service page */
.intro { margin-bottom: clamp(2.5rem, 7vw, 4rem); }
.intro h1 { margin-bottom: 1rem; }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.card {
    padding: 1rem 1.15rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: .875rem;
}

.card h3 { margin: 0 0 .25rem; font-size: 1rem; }
.card p { margin: 0; color: var(--muted); font-size: .9375rem; }
.card-placeholder { background: transparent; border-style: dashed; }

.steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    position: relative;
    padding: 0 0 1rem 2.6rem;
    counter-increment: step;
}

.steps li:last-child { padding-bottom: 0; }

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    font-size: .8125rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 50%;
}

.steps strong { display: block; }
.steps span { color: var(--muted); }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; margin-bottom: .5rem; }
.price strong { font-size: clamp(1.6rem, 5vw, 2rem); letter-spacing: -.02em; }
.price span { color: var(--muted); }

.ref { display: block; height: 100%; color: inherit; text-decoration: none; transition: border-color .15s; }
a.ref:hover { border-color: var(--accent); }
.ref .shot {
    display: block;
    margin: -.35rem -.4rem .85rem;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: .6rem;
}

.ref .shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform .4s ease;
}

a.ref:hover .shot img { transform: scale(1.04); }

.ref .shot-empty {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 2rem;
    font-weight: 300;
    background: transparent;
    border-style: dashed;
}

.ref .tag { display: inline-block; margin-top: .6rem; font-size: .8125rem; font-weight: 600; color: var(--accent); }

.more { margin-top: .75rem; }

.faq { display: grid; gap: .5rem; }

.faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: .875rem;
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1.15rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.25rem; line-height: 1; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 1.15rem 1rem; color: var(--muted); }

/* Experience */
.timeline { margin: 0; padding: 0; list-style: none; }

.timeline > li {
    position: relative;
    padding: 0 0 1.5rem 1.5rem;
    border-left: 2px solid var(--border);
}

.timeline > li:last-child { padding-bottom: 0; }

.timeline > li::before {
    content: "";
    position: absolute;
    left: -.4rem;
    top: .45rem;
    width: .7rem;
    height: .7rem;
    background: var(--accent);
    border: 2px solid var(--bg);
    border-radius: 50%;
}

.timeline-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 1rem; }
.timeline h3 { margin: 0; font-size: 1.0625rem; }
.timeline h3 span { color: var(--accent); }
.timeline .period { margin: 0; color: var(--muted); font-size: .875rem; }
.timeline ul { margin: .5rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.timeline ul li + li { margin-top: .25rem; }

/* Footer */
.footer {
    padding: 1.5rem 1.25rem 2rem;
    text-align: center;
    font-size: .8125rem;
    color: var(--muted);
}

.footer p { margin: 0; }

/* Accessibility */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: .25rem; }

.skip-link {
    position: absolute;
    left: .75rem;
    top: -4rem;
    z-index: 10;
    padding: .6rem 1rem;
    color: var(--accent-contrast);
    background: var(--accent);
    border-radius: .5rem;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus { top: .75rem; }

.sprite { position: absolute; }

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

@media (max-width: 30rem) {
    .hero { flex-direction: column; align-items: flex-start; }
    .mail .btn { flex: 1 1 100%; }
}

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

@media print {
    body { background: #fff; color: #000; }
    .btn-ghost, .skip-link, .topnav { display: none; }
}
