/* Manrope – self-hosted (bez načítání z Google Fonts) */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/manrope-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #111827;
  --ink-2: #374151;
  --muted: #5b6474;
  --bg: #ffffff;
  --soft: #f4f6fb;
  --line: #e3e7ef;
  --accent: #29a3dd;
  --accent-ink: #0a6f9f;
  --accent-soft: #e6f5fc;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 12px 32px -12px rgba(17, 24, 39, .14);
  --wrap: 1180px;
  --header-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 14px 24px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #45b2e6; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1f2937; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 15px; }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { width: 140px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  padding: 8px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 15px; color: var(--ink-2);
  transition: background-color .15s ease, color .15s ease;
}
.nav a:not(.btn):hover { background: var(--soft); color: var(--ink); }
.nav a.active { color: var(--ink); background: var(--soft); }
.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  border-radius: 12px; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.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); }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 20px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px -16px rgba(17, 24, 39, .2);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 14px; font-size: 17px; }
  .nav-cta { margin: 10px 0 0; justify-content: center; padding: 14px; font-size: 16px; }
  html:not(.js) .nav { display: flex; position: static; box-shadow: none; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .header-inner { height: auto; flex-wrap: wrap; padding: 12px 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 120px 0 136px; text-align: center;
  background: radial-gradient(700px 420px at 50% 110%, rgba(41, 163, 221, .14), transparent 70%), var(--soft);
}
.hero-rings { position: absolute; left: 50%; bottom: 0; width: 0; height: 0; z-index: -1; }
.hero-rings span {
  position: absolute; left: 50%; top: 50%; border-radius: 50%;
  border: 1px solid rgba(17, 24, 39, .07); transform: translate(-50%, -50%);
}
.hero-rings span:nth-child(1) { width: 300px; height: 300px; border-color: rgba(41, 163, 221, .35); }
.hero-rings span:nth-child(2) { width: 560px; height: 560px; border-color: rgba(41, 163, 221, .22); }
.hero-rings span:nth-child(3) { width: 820px; height: 820px; }
.hero-rings span:nth-child(4) { width: 1080px; height: 1080px; }
.hero-rings span:nth-child(5) { width: 1340px; height: 1340px; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 28px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { font-size: clamp(40px, 7vw, 84px); font-weight: 800; letter-spacing: -.035em; line-height: 1.18; max-width: 13em; }
.hero h1 em { font-style: normal; color: var(--accent); white-space: nowrap; }
.lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); max-width: 36em; margin: 28px 0 36px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 48px; color: var(--muted); font-size: 14px; font-weight: 600; }
.hero-tags li { display: inline-flex; align-items: center; gap: 8px; }
.hero-tags li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 720px) {
  .hero { padding: 72px 0 88px; }
  .hero-rings span:nth-child(1) { width: 200px; height: 200px; }
  .hero-rings span:nth-child(2) { width: 380px; height: 380px; }
  .hero-rings span:nth-child(3) { width: 560px; height: 560px; }
  .hero-rings span:nth-child(4) { width: 740px; height: 740px; }
  .hero-rings span:nth-child(5) { width: 920px; height: 920px; }
}
@media (max-width: 480px) { .actions .btn { flex: 1 1 auto; justify-content: center; } }

/* ---------- Sekce ---------- */
.section { padding: 112px 0; scroll-margin-top: var(--header-h); }
.section-tight { padding-top: 24px; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: #c4cad6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
.section-head > div:first-child { max-width: 720px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 14px;
}
.kicker::before { content: ""; width: 24px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-dark .kicker { color: var(--accent); }
@media (max-width: 720px) { .section { padding: 80px 0; } .section-tight { padding-top: 8px; } .section-head { margin-bottom: 40px; } }

/* ---------- Kdo jsem ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.about-visual { position: relative; isolation: isolate; margin: 18px 18px 0 0; }
.about-visual::before {
  content: ""; position: absolute; inset: -18px -18px 18px 18px; border-radius: 36px;
  border: 2px solid var(--accent); opacity: .5; z-index: -1;
}
.portrait {
  position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 1;
  box-shadow: 0 30px 60px -24px rgba(17, 24, 39, .35);
}
.portrait::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .06); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-text { font-size: 17.5px; }
.about-quote {
  margin: 28px 0 0; padding: 18px 22px; border-left: 3px solid var(--accent);
  background: var(--soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.5;
}
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 72px; }
.skills li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-weight: 600; color: var(--ink); font-size: 15.5px; line-height: 1.3;
  transition: border-color .15s ease, transform .15s ease;
}
.skills li:hover { border-color: var(--accent); transform: translateY(-2px); }
.skills li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a6f9f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
@media (max-width: 920px) {
  .about-grid { grid-template-columns: 1fr; gap: 64px; }
  .about-visual { max-width: 440px; width: calc(100% - 36px); justify-self: center; }
  .skills { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
}
@media (max-width: 480px) {
  .about-visual { width: calc(100% - 24px); margin: 12px 12px 0 0; }
  .about-visual::before { inset: -12px -12px 12px 12px; }
  .skills { grid-template-columns: 1fr; }
}

/* ---------- Služby ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  padding: 32px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.service:hover { background: rgba(255, 255, 255, .07); border-color: rgba(41, 163, 221, .5); transform: translateY(-3px); }
.service-ico {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  background: rgba(41, 163, 221, .15); color: var(--accent); font-size: 24px; margin-bottom: 24px;
}
.service h3 { margin-bottom: 12px; }
.service p { font-size: 15.5px; line-height: 1.7; }
@media (max-width: 920px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } .service { padding: 26px; } }

/* ---------- Portfolio ---------- */
/* Projekty v jednom řádku; když se nevejdou, posouvají se do stran (carousel). */
.works {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 2); gap: 32px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding: 8px 8px 24px; margin: -8px -8px -24px;
}
.works::-webkit-scrollbar { display: none; }
.works:focus-visible { outline-offset: -2px; }
.work { scroll-snap-align: start; scroll-margin-left: 8px; }
.carousel-nav { display: flex; gap: 10px; flex: none; }
.carousel-nav[hidden] { display: none; }
.carousel-btn {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 20px; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, opacity .15s ease;
}
.carousel-btn:hover:not(:disabled) { border-color: var(--ink); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.work { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .2s ease, transform .2s ease; }
.work:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.work-img { display: block; background: #eef1f6; overflow: hidden; }
.work-img img { width: 100%; aspect-ratio: 900 / 605; object-fit: cover; transition: transform .5s ease; }
.work:hover .work-img img { transform: scale(1.03); }
.work-body { padding: 28px 32px 32px; display: flex; flex-direction: column; flex: 1; }
.work-body h3 { font-size: 26px; margin: 16px 0 12px; }
.work-body p { font-size: 15.5px; color: var(--muted); }
.work-body .link { margin-top: auto; padding-top: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 700; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); text-decoration: none; }
.link .ico { transition: transform .15s ease; }
a.link:hover .ico, a:hover > .link .ico { transform: translate(2px, -2px); }
@media (max-width: 820px) { .works { grid-auto-columns: 86%; gap: 16px; } .work-body { padding: 24px; } .carousel-btn { width: 44px; height: 44px; } }

/* ---------- Hodnoty ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { padding: 32px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.value-num { display: block; font-size: 15px; font-weight: 800; color: var(--accent-ink); margin-bottom: 32px; letter-spacing: .04em; }
.value h3 { margin-bottom: 12px; }
.value p { font-size: 15.5px; color: var(--muted); }
.value-linkedin {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 28px;
  padding: 32px 36px; text-decoration: none; background: var(--ink); border-color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.value-linkedin:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -20px rgba(17, 24, 39, .6); }
.value-linkedin h3 { color: #fff; margin-bottom: 6px; }
.value-linkedin p { color: #c4cad6; max-width: 46em; }
.li-copy { flex: 1; }
.li-logo { width: 44px; height: 44px; fill: var(--accent); flex: none; }
.li-btn { flex: none; }
.value-linkedin:hover .li-btn { background: #45b2e6; }
@media (max-width: 920px) { .values { grid-template-columns: 1fr; } .value-num { margin-bottom: 20px; } }
@media (max-width: 720px) {
  .value-linkedin { flex-direction: column; align-items: flex-start; gap: 18px; padding: 28px; }
  .li-logo { width: 36px; height: 36px; }
}

/* ---------- Loga ---------- */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.logos li {
  display: grid; place-items: center; height: 112px; padding: 24px 32px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
.logos img { max-height: 38px; width: auto; max-width: min(100%, 180px); filter: grayscale(1); opacity: .7; transition: filter .2s ease, opacity .2s ease; }
.logos li:hover img { filter: none; opacity: 1; }
.logos li a { display: grid; place-items: center; width: 100%; height: 100%; }
@media (max-width: 820px) { .logos { grid-template-columns: repeat(2, 1fr); } .logos li { height: 92px; padding: 20px; } .logos img { max-height: 32px; } }

/* ---------- Kontakt ---------- */
.contact {
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
  padding: 56px; border-radius: 32px; color: var(--ink-2);
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(41, 163, 221, .25), transparent 70%),
    var(--accent-soft);
}
.contact h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.contact-links { display: grid; gap: 12px; }
.contact-link {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 24px 16px 16px; border-radius: 18px; background: #fff; text-decoration: none;
  color: var(--ink); font-weight: 700; font-size: 19px; line-height: 1.25;
  box-shadow: 0 1px 2px rgba(17, 24, 39, .05);
  transition: transform .15s ease, box-shadow .15s ease;
}
.contact-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-link small { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.contact-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 20px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; padding: 36px 24px; gap: 28px; border-radius: 24px; } }
@media (max-width: 380px) { .contact-link { font-size: 17px; } }

/* ---------- Patička ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner p { margin: 0; line-height: 1.6; }
.to-top { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); text-decoration: none; }
.to-top:hover { color: var(--accent-ink); }
.footer-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-links a:not(.to-top), .link-btn { color: var(--muted); text-decoration: none; font: inherit; }
.footer-links a:not(.to-top):hover, .link-btn:hover { color: var(--ink); text-decoration: underline; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; }
@media (max-width: 620px) { .footer-inner { flex-direction: column; align-items: flex-start; } }

/* ---------- Podstránky ---------- */
.page-inner { max-width: 760px; }
.page h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; margin-bottom: 32px; }
.page h2 { font-size: 22px; margin: 36px 0 10px; }
.hero-404 { min-height: 70vh; display: grid; place-items: center; }

/* ---------- Cookie lišta ---------- */
.cc { position: fixed; left: 16px; bottom: 16px; z-index: 100; max-width: 440px; }
.cc[hidden] { display: none; }
.cc-box {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px 22px 20px;
  box-shadow: 0 24px 48px -16px rgba(17, 24, 39, .3); font-size: 15px; line-height: 1.55;
}
.cc-title { margin: 0 0 6px; font-weight: 800; color: var(--ink); font-size: 17px; }
.cc-text { margin: 0 0 16px; color: var(--muted); }
.cc-text a { color: var(--accent-ink); font-weight: 600; }
.cc-prefs { display: grid; gap: 8px; margin: 0 0 16px; }
.cc-prefs[hidden] { display: none; }
.cc-opt { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.cc-opt input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent-ink); flex: none; }
.cc-opt strong { display: block; color: var(--ink); font-size: 15px; }
.cc-opt small { display: block; color: var(--muted); font-size: 13.5px; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-actions .btn { flex: 1 1 auto; justify-content: center; }
@media (max-width: 520px) { .cc { left: 8px; right: 8px; bottom: 8px; max-width: none; } }

/* ---------- Animace ----------
   Čistě CSS (scroll-driven). Prohlížeč bez podpory obsah jen zobrazí bez animace. */
@keyframes reveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0s !important; } }
