/* Global Retail – web. Tokeny nahoře, tmavý režim přes prefers-color-scheme. */
:root {
  --bg: #f6f3ee;
  --surface: #ffffff;
  --surface-2: #efebe4;
  --ink: #141414;
  --ink-2: #4a4743;
  --muted: #6b665f;
  --line: #e0dad1;
  --accent: #1e5bd8;
  --accent-ink: #ffffff;
  --ok: #166534;
  --ok-bg: #e7f4ea;
  --err: #b42318;
  --err-bg: #fdecea;
  --soon: #6b665f;
  --soon-bg: #ebe6de;
  --live: #166534;
  --live-bg: #dff1e3;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(20 20 20 / 0.04), 0 8px 24px rgb(20 20 20 / 0.06);
  --font-head: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --surface: #1b1b1b;
    --surface-2: #222120;
    --ink: #f3f0ea;
    --ink-2: #c9c4bb;
    --muted: #a39d93;
    --line: #2f2d2a;
    --accent: #4d86f0;
    --accent-ink: #0b1a33;
    --ok: #86efac;
    --ok-bg: #12301d;
    --err: #fca5a5;
    --err-bg: #3a1513;
    --soon: #c9c4bb;
    --soon-bg: #2a2825;
    --live: #86efac;
    --live-bg: #15301e;
    --shadow: none;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-sm); }
.skip:focus { top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: "Archivo", var(--font-head); font-weight: 700; font-size: 22px; line-height: 1; letter-spacing: -0.02em; }
.wordmark:hover { color: var(--ink); }
.wordmark-mark { width: 32px; height: 32px; flex: none; }
.wordmark-mark .gm-g { fill: var(--accent); }
.wordmark-mark .gm-s { fill: var(--bg); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.site-nav .lang-switch { border: 1px solid var(--line); margin-left: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: ""; }
  .nav-toggle-bars::before { position: absolute; top: -6px; }
  .nav-toggle-bars::after { position: absolute; top: 6px; }
  .site-nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 12px; font-size: 17px; border-radius: 12px; }
  .site-nav .lang-switch { margin: 8px 0 0; text-align: center; }
  html:not(.js) .site-nav { position: static; display: flex; flex-direction: row; flex-wrap: wrap; border: 0; padding: 0; }
  html:not(.js) .header-inner { height: auto; padding-block: 12px; flex-wrap: wrap; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 600 16px/1.2 var(--font-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { color: #fff; filter: brightness(1.1); }
@media (prefers-color-scheme: dark) { .btn-brand { background: var(--brand-dark); color: #111; } .btn-brand:hover { color: #111; } }
.btn-disabled { border-color: var(--line); color: var(--muted); cursor: default; }
.btn-disabled:hover { transform: none; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Hero */
.eyebrow { font: 600 13px/1.4 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.hero { padding: clamp(56px, 10vw, 128px) 0 clamp(40px, 6vw, 72px); }
.hero-title { font-size: clamp(40px, 7.4vw, 92px); font-weight: 700; letter-spacing: -0.035em; max-width: 16ch; }
.hero-lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 60ch; margin: 28px 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 0; }
.hero-index { list-style: none; margin: clamp(48px, 7vw, 88px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); }
.hero-index li + li { border-left: 1px solid var(--line); }
.hero-index a { display: flex; flex-direction: column; gap: 2px; padding: 18px 16px 4px 0; text-decoration: none; }
.hero-index li + li a { padding-left: 16px; }
.hero-index span { font: 600 17px/1.3 var(--font-head); }
.hero-index small { color: var(--muted); font-size: 13px; }
@media (max-width: 860px) {
  .hero-index { grid-template-columns: 1fr 1fr; }
  .hero-index li { border-left: 0 !important; border-bottom: 1px solid var(--line); }
  .hero-index li a { padding: 14px 0 !important; }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding-top: 24px; }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 720px; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-title { font-size: clamp(30px, 4.2vw, 50px); font-weight: 700; }
.section-title.small { font-size: 22px; margin: 0 0 12px; }
.section-title.small:not(:first-child) { margin-top: 32px; }
.section-lead { color: var(--ink-2); font-size: 18px; margin: 14px 0 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.prose { font-size: 18px; color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }
.section-about { border-top: 1px solid var(--line); }
.section-about .prose p:first-child { color: var(--ink); font-size: clamp(20px, 2.3vw, 26px); line-height: 1.45; font-family: var(--font-head); letter-spacing: -0.01em; }

/* Cards */
.cards { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-gastro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-wide { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
@media (max-width: 980px) { .cards-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .cards-3, .cards-gastro { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--brand); }
@media (prefers-color-scheme: dark) { .card::before { background: var(--brand-dark); } }
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 28px; }
.card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; min-height: 48px; }
.card-top .brand { flex: 0 1 auto; min-width: 0; }
.card-title { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.card-link { text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card-text { color: var(--ink-2); font-size: 16px; margin: 12px 0 24px; }
.card-foot { margin: auto 0 0; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; }
.card-domain { color: var(--muted); font-weight: 500; }
.card:hover .card-foot > span:first-child { color: var(--accent); }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-stage-bistro { background: #0f0f0f; color: #f5f5f5; border-color: #0f0f0f; }
.card-stage-bistro .card-text, .card-stage-bistro .card-domain { color: #bdb8b0; }
.card-stage-bistro::before { display: none; }
.card-stage-bistro .badge-live { background: #15301e; color: #86efac; }
.stage-logo { height: 52px; width: auto; }
.card-provos .card-body { justify-content: flex-start; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-icon { width: 44px; height: 44px; border-radius: 11px; }
.brand-name { font: 700 21px/1 var(--font-head); color: var(--brand); letter-spacing: -0.02em; }
@media (prefers-color-scheme: dark) { .brand-name { color: var(--brand-dark); } .invert-dark { filter: invert(1); } }
.brand-lg .brand-icon { width: 64px; height: 64px; border-radius: 15px; }
.brand-lg .brand-name { font-size: 34px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.03em; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-live { background: var(--live-bg); color: var(--live); }
.badge-soon { background: var(--soon-bg); color: var(--soon); }
.badge-soon::before { background: transparent; border: 1.5px solid currentColor; width: 6px; height: 6px; }

/* Principles */
.section-approach { background: var(--ink); color: var(--bg); }
.section-approach .eyebrow { color: color-mix(in srgb, var(--accent) 80%, white); }
@media (prefers-color-scheme: dark) { .section-approach { background: var(--surface-2); color: var(--ink); } }
.principles { list-style: none; counter-reset: p; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.principles li { counter-increment: p; padding: 24px 24px 8px 0; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.principles li + li { padding-left: 24px; border-left: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.principles li::before { content: "0" counter(p); display: block; font: 600 13px/1 var(--font-body); opacity: .6; margin-bottom: 24px; }
.principles h3 { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.principles p { opacity: .78; font-size: 16px; }
@media (max-width: 980px) { .principles { grid-template-columns: 1fr 1fr; } .principles li:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } .principles li { border-left: 0 !important; padding-left: 0 !important; } }

/* Org chart */
.org { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; max-width: 900px; }
.org-node { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.org-parent { border-color: var(--ink); }
.org-node strong { display: block; font: 700 21px/1.2 var(--font-head); }
.org-node > span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.org-line { height: 2px; background: var(--ink); position: relative; }
.org-line::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 8px solid var(--ink); border-right: 0; }
.org-tags { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.org-tags li { font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); }
@media (max-width: 680px) {
  .org { grid-template-columns: 1fr; }
  .org-line { width: 2px; height: 36px; margin-left: 32px; }
  .org-line::after { right: auto; left: -4px; top: auto; bottom: -1px; border: 5px solid transparent; border-top: 8px solid var(--ink); border-bottom: 0; }
}

/* Contact */
.section-contact { border-top: 1px solid var(--line); }
.contact-quick { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.contact-big { font: 600 clamp(24px, 3.4vw, 40px)/1.2 var(--font-head); letter-spacing: -0.02em; text-decoration: none; overflow-wrap: anywhere; }
.contact-quick .btn { margin-top: 16px; }
.page-head { padding: clamp(48px, 8vw, 96px) 0 24px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.facts { margin: 0; display: grid; gap: 0; }
.facts > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 14px; font-weight: 500; padding-top: 2px; }
.facts dd { margin: 0; }
.facts small { color: var(--muted); }
@media (max-width: 480px) { .facts > div { grid-template-columns: 1fr; gap: 4px; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.has-error input, .has-error textarea { border-color: var(--err); }
.has-error label { color: var(--err); }
.field-check { grid-template-columns: 22px 1fr; align-items: start; gap: 10px; }
.field-check input { width: 20px; height: 20px; min-height: 0; margin: 3px 0 0; accent-color: var(--ink); }
.field-check label { font-weight: 400; font-size: 14px; color: var(--ink-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 500; margin: 0 0 18px; }
.alert[hidden] { display: none; }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-err { background: var(--err-bg); color: var(--err); }

/* Project detail */
.project-hero { padding: clamp(32px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); }
.crumb { margin: 0 0 clamp(28px, 5vw, 56px); font-size: 15px; font-weight: 500; }
.crumb a { text-decoration: none; color: var(--muted); }
.crumb a:hover { color: var(--accent); }
.project-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; margin-bottom: 28px; }
.project-logo { height: 56px; width: auto; max-width: 100%; }
.project-title { font-size: clamp(34px, 5.6vw, 68px); font-weight: 700; letter-spacing: -0.03em; max-width: 20ch; }
.project-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; }
.project-gallery picture { border-radius: var(--radius-sm); overflow: hidden; background: #111; }
.project-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.project-gallery .gallery-main img { aspect-ratio: auto; }
@media (max-width: 760px) { .project-gallery { grid-template-columns: 1fr 1fr 1fr; } .project-gallery .gallery-main { grid-column: 1 / -1; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.checks li { position: relative; padding: 16px 0 16px 36px; border-top: 1px solid var(--line); font-size: 18px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 24px; width: 14px; height: 8px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
@media (prefers-color-scheme: dark) { .checks li::before { border-color: var(--brand-dark); } }
.project-nav { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: clamp(48px, 8vw, 96px); }
.project-nav a { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; background: var(--surface); }
.project-nav small { color: var(--muted); font-weight: 500; }
.page-project .project-stage-bistro { }

/* Legal */
.legal { max-width: 760px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; color: var(--ink); }
.legal h2:first-child { margin-top: 0; }

/* Footer */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--line); padding: 56px 0 24px; font-size: 15px; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer-brand { font: 700 19px/1.2 "Archivo", var(--font-head); color: var(--ink); margin-bottom: 12px; }
.footer-title { font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.footer-register { font-size: 13px; color: var(--muted); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-links a { text-decoration: none; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-bottom p { margin: 0; }

/* Barvy projektů (generováno z content/projects.json – CSP nepovoluje inline styly) */
[data-brand="hypomanazer"] { --brand: #0b3d91; --brand-dark: #60a5fa; }
[data-brand="tahakuj"] { --brand: #1f2340; --brand-dark: #ffd23f; }
[data-brand="makeupka"] { --brand: #7a1f4f; --brand-dark: #e8c4b0; }
[data-brand="stage-bistro"] { --brand: #111111; --brand-dark: #f5f5f5; }
[data-brand="aesthetics365"] { --brand: #000000; --brand-dark: #22d692; }
[data-brand="provos"] { --brand: #111111; --brand-dark: #f5f5f5; }

/* Vývoj na zakázku */
.hero-sub { padding-bottom: clamp(32px, 5vw, 56px); }
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.services li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.services h3 { font-size: 21px; font-weight: 600; margin-bottom: 8px; }
.services p { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 680px) { .services { grid-template-columns: 1fr; } }
.cards-refs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .cards-refs { grid-template-columns: 1fr; } }
.ref-card::before { background: var(--accent); }
.ref-media { display: block; aspect-ratio: 608 / 382; overflow: hidden; background: #111; border-bottom: 1px solid var(--line); }
.ref-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s ease; }
.ref-card:hover .ref-media img { transform: scale(1.02); }
.ref-tagline { margin: 4px 0 0; color: var(--muted); font-size: 15px; font-weight: 500; }
.ref-tags { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ref-tags li { font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); }
.ref-card .card-foot a { text-decoration: none; color: var(--accent); }
.section-more { margin: 32px 0 0; }
