/* ══════════════════════════════════════════════════════════════════════════
   Osobní web — RNDr. Jan Břížďala, Ph.D.
   Naportováno z makety Claude Design „Redesign brizdala.cz s osobnostním
   brandingem" (Home.dc.html + SiteHeader/SiteFooter).

   Jazyk designu: teplý papír, ostré hrany, vlasové linky, mono popisky,
   drobná naklonění a jeden akcent. Akcent přebíjí administrace (Vzhled).
   ══════════════════════════════════════════════════════════════════════════ */

:root {
    --paper:      oklch(96.5% 0.008 85);
    --paper-2:    oklch(94.6% 0.011 85);
    --ink:        oklch(17% 0.012 265);
    --ink-70:     oklch(35% 0.018 265);
    --ink-60:     oklch(38% 0.02 265);
    --ink-50:     oklch(46% 0.02 265);
    --ink-40:     oklch(54% 0.02 265);
    --ink-30:     oklch(64% 0.018 265);

    --line:       oklch(88% 0.008 265);
    --line-soft:  oklch(91% 0.008 265);
    --rule:       oklch(78% 0.012 265);

    --accent:     #39546f;              /* přebíjí data/appearance.json */
    --marker:     oklch(88% 0.03 250);  /* zvýrazňovač pod slovem v nadpisu */

    --on-dark:        oklch(95% 0.008 85);
    --on-dark-soft:   oklch(72% 0.014 265);
    --on-dark-faint:  oklch(60% 0.016 265);
    --on-dark-line:   oklch(40% 0.014 265);
    --dark-2:         oklch(24% 0.014 265);

    --wrap:   1440px;
    --pad-x:  44px;

    --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --font-sans:  'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* ── Základ ──────────────────────────────────────────────────────────────── */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: -.014em;
    line-height: 1.1;
    margin: 0 0 .5em;
}
h1 { font-size: clamp(44px, 5.3vw, 78px); line-height: 1; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; }
h3 { font-size: clamp(23px, 2.3vw, 30px); line-height: 1.16; letter-spacing: -.01em; }
p  { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.pad { padding-inline: var(--pad-x); }
.wrap { max-width: var(--wrap); margin-inline: auto; }
.container { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad-x); }
.narrow { max-width: 780px; }

.section { padding-block: clamp(56px, 6vw, 84px); }
.section--alt { background: var(--paper-2); border-top: 1px solid var(--ink); }
.section--tight { padding-block: clamp(44px, 4.5vw, 64px); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: var(--paper); padding: 12px 20px; }
.skip-link:focus { left: 0; }

/* ── Mono popisek se značkou (kicker) ────────────────────────────────────── */

.kicker {
    display: flex; align-items: center; gap: 13px;
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .2em;
    text-transform: uppercase; color: var(--accent); margin: 0 0 22px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.kicker--plain { color: var(--ink-40); }
.kicker--bare::before { display: none; }

.mono { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-40); }
.lead { font-size: 18.5px; line-height: 1.6; color: var(--ink-70); max-width: 52ch; }

.section-head { margin-bottom: 34px; }
.section-head--split { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head h1, .section-head h2 { margin: 0; }
.section-head .lead { margin-top: 18px; }

/* ── Tlačítka a odkazy ───────────────────────────────────────────────────── */

.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 17px 32px; border: 0; border-radius: 0;
    background: var(--ink); color: var(--paper);
    font: inherit; font-size: 14.5px; font-weight: 500; white-space: nowrap; cursor: pointer;
    transition: transform .22s ease, background .22s ease, color .22s ease;
}
.btn:hover { background: var(--accent); color: var(--paper); transform: translateY(-3px) rotate(-.6deg); }
.btn--accent { background: var(--accent); color: var(--paper); }
.btn--accent:hover { background: var(--accent); transform: translateY(-3px) rotate(-.6deg); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--paper); color: var(--ink); transform: translateY(-3px) rotate(-.6deg); }
.btn--sm { padding: 12px 24px; font-size: 13.5px; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 500; white-space: nowrap;
    border-bottom: 1px solid var(--rule); padding-bottom: 4px;
    transition: border-color .2s ease, color .2s ease;
}
.link-arrow:hover { border-bottom-color: var(--accent); color: var(--accent); }
.link-arrow .arr { font-family: var(--font-mono); font-size: 12px; }

/* ── Hlavička ────────────────────────────────────────────────────────────── */

.site-header {
    position: sticky; top: 0; z-index: 60;
    background: oklch(96.5% 0.008 85 / .95);
    backdrop-filter: blur(14px) saturate(1.15);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    border-bottom: 1px solid var(--ink);
}
.site-header__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 22px; }

.brand { display: flex; align-items: center; gap: 13px; white-space: nowrap; }
.brand__mark {
    width: 36px; height: 36px; flex: none; border: 1px solid var(--ink);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-serif); font-size: 14.5px; position: relative;
    transform: rotate(-1.6deg); transition: transform .25s ease;
}
.brand:hover .brand__mark { transform: rotate(2deg); }
.brand__mark::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 7px; height: 7px; background: var(--accent); transform: rotate(12deg); }
.brand__text { display: flex; flex-direction: column; gap: 2px; }
.brand__name { font-family: var(--font-serif); font-size: 18.5px; font-weight: 500; letter-spacing: -.008em; line-height: 1; }
.brand__tag { font-family: var(--font-mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-40); }

/* Popisek pod jménem je editovatelný v administraci, takže může být libovolně
   dlouhý. Bez těchhle pojistek roztáhne hlavičku (kvůli white-space: nowrap)
   a vytlačí tlačítko menu mimo obrazovku — na telefonu pak nejde otevřít
   navigaci a stránka se posouvá do stran. */
.brand { min-width: 0; }
.brand__text { min-width: 0; }
.brand__name, .brand__tag { overflow: hidden; text-overflow: ellipsis; }
.nav-toggle { flex: none; }

@media (max-width: 620px) {
    .site-header__inner { gap: 14px; }
    .brand__tag { display: none; }   /* na telefonu se stejně nedá přečíst */
}

.site-nav { display: none; align-items: center; gap: 26px; }
.site-nav__list { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { font-size: 14px; font-weight: 450; padding: 8px 0; display: inline-block; }
.site-nav__list a span { display: inline-block; padding-bottom: 3px; border-bottom: 1.5px solid transparent; transition: border-color .2s ease, color .2s ease; }
.site-nav__list a:hover span { border-bottom-color: var(--accent); color: var(--accent); }
.site-nav__list a[aria-current] span { font-weight: 600; color: var(--accent); border-bottom-color: var(--accent); }

.nav-sep { width: 1px; height: 22px; background: var(--line); }
.lang-switch { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; display: flex; gap: 6px; align-items: center; }
.lang-switch a { color: var(--ink-40); }
.lang-switch a.is-active { color: var(--ink); border-bottom: 1px solid var(--accent); pointer-events: none; }
.lang-switch .sep { color: var(--rule); }

.nav-toggle {
    width: 44px; height: 40px; flex: none; background: none; border: 1px solid oklch(84% 0.01 265);
    cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0;
}
.nav-toggle span { width: 18px; height: 1px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.nav-mobile { display: none; border-top: 1px solid var(--line-soft); background: var(--paper); padding: 6px var(--pad-x) 22px; }
.nav-mobile.is-open { display: block; }
.nav-mobile a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line-soft); font-size: 17px; }
.nav-mobile .btn { display: flex; justify-content: center; margin-top: 18px; width: 100%; }
.nav-mobile .lang-switch { margin-top: 18px; font-size: 12px; }

@media (min-width: 1180px) {
    .site-nav { display: flex; }
    .nav-toggle { display: none; }
    .nav-mobile { display: none !important; }
}

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

.hero { position: relative; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); align-items: stretch; }
.hero__text { padding: 78px 60px 68px 0; display: flex; flex-direction: column; position: relative; z-index: 2; }
.hero h1 { max-width: 16ch; margin-bottom: 30px; }

/* zvýrazňovač pod slovem v nadpisu */
.mark { display: inline-block; position: relative; }
.mark em { font-style: italic; color: var(--accent); position: relative; z-index: 1; }
.mark::after { content: ""; position: absolute; left: -4px; right: -6px; bottom: .1em; height: .34em; background: var(--marker); z-index: 0; transform: rotate(-.8deg); }

/* brandový claim pod nadpisem — věta, kterou si má člověk zapamatovat */
.hero__claim {
    font-family: var(--font-serif); font-style: italic; font-weight: 400;
    font-size: clamp(19px, 2.1vw, 27px); line-height: 1.35; color: var(--accent);
    margin: -6px 0 26px; max-width: 30ch;
}
.hero__perex { margin-bottom: 40px; }
.hero__actions { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; margin-bottom: 52px; }
.hero__facts { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; border-top: 1px solid var(--ink); padding-top: 20px; }
.hero__facts dt { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-40); margin-bottom: 9px; }
.hero__facts dd { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-70); }

.hero__figure { padding: 78px 0 68px 34px; display: flex; flex-direction: column; justify-content: center; position: relative; }
.portrait { position: relative; transform: rotate(1.4deg); transition: transform .4s ease; }
.portrait:hover { transform: rotate(0deg); }
.portrait__border { position: absolute; inset: -14px 16px 16px -16px; border: 1px solid var(--accent); transform: rotate(-2.2deg); }
.portrait__frame { position: relative; aspect-ratio: 5 / 6; overflow: hidden; background: oklch(90% 0.01 265); }
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.16) contrast(1.05); }
.portrait__shade { position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, oklch(17% 0.012 265 / .6), transparent); }
.portrait__caption { position: absolute; left: 18px; right: 18px; bottom: 15px; display: flex; justify-content: space-between; align-items: end; gap: 12px; color: var(--paper); }
.portrait__caption .name { font-family: var(--font-serif); font-size: 17px; font-weight: 500; }
.portrait__caption .year { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; opacity: .85; }

.note {
    position: absolute; left: -30px; bottom: 52px; z-index: 3; transform: rotate(-6deg);
    background: var(--paper); border: 1px solid var(--ink); padding: 13px 17px; max-width: 210px;
    box-shadow: 5px 5px 0 oklch(17% 0.012 265 / .08);
}
.note__label { font-family: var(--font-mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.note__text { font-family: var(--font-serif); font-style: italic; font-size: 15px; line-height: 1.35; }

/* ── Důkazový pás pod úvodem ─────────────────────────────────────────────── */

.proof { border-top: 1px solid var(--ink); background: var(--paper); }
.proof__list {
    display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 15px 0;
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em;
    text-transform: uppercase; color: var(--ink-50);
}
.proof__list li { display: flex; align-items: center; gap: 22px; }
.proof__list li + li::before { content: "·"; color: var(--accent); font-size: 14px; }

/* ── Rozcestník (teasery) ────────────────────────────────────────────────── */

.teasers { display: grid; grid-template-columns: repeat(3, 1fr); }
.teaser { display: block; padding: 44px 34px 40px 40px; border-right: 1px solid oklch(87% 0.01 265); transition: background .25s ease; }
.teaser:last-child { border-right: 0; }
.teaser:hover { background: oklch(96.6% 0.008 85); color: var(--ink); }
.teaser__kicker { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.teaser h3 { margin: 0 0 14px; max-width: 20ch; }
.teaser p { font-size: 15.5px; line-height: 1.6; color: var(--ink-60); margin: 0 0 22px; max-width: 38ch; }
.teaser__cta { font-size: 13.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 9px; border-bottom: 1px solid oklch(75% 0.012 265); padding-bottom: 3px; }
.teaser__cta .arr { font-family: var(--font-mono); }

/* ── Tmavý pás (citát, výzva) ────────────────────────────────────────────── */

.band { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.band a { color: var(--on-dark); }
.band__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 56px; padding-block: 76px; position: relative; }
.band__aside { display: flex; flex-direction: column; justify-content: end; gap: 16px; align-items: flex-start; }
.band .link-arrow { border-bottom-color: var(--on-dark-line); }
.band .link-arrow:hover { border-bottom-color: var(--accent); color: var(--on-dark); }

.quote { display: flex; gap: 22px; align-items: flex-start; }
.quote__mark { font-family: var(--font-serif); font-size: 66px; line-height: .6; color: var(--accent); transform: rotate(-4deg); flex: none; }
.quote__text {
    font-family: var(--font-serif); font-style: italic; font-weight: 300;
    font-size: clamp(24px, 2.7vw, 36px); line-height: 1.32; margin: 0 0 26px; max-width: 34ch;
}
.quote__name { font-size: 15px; font-weight: 500; margin-bottom: 5px; }
.quote__role { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-faint); }

.quote-slide { display: none; }
.quote-slide.is-active { display: block; }
.quote-nav { display: flex; align-items: center; gap: 10px; margin-top: 26px; }
.quote-dot { width: 7px; height: 7px; padding: 0; border: 0; background: var(--on-dark-line); cursor: pointer; transition: background .2s ease; }
.quote-dot.is-active { background: var(--accent); }
.rot-btn {
    width: 34px; height: 34px; border: 1px solid var(--on-dark-line); background: none; color: var(--on-dark);
    font-family: var(--font-mono); font-size: 12px; cursor: pointer; transition: border-color .2s ease, color .2s ease;
}
.rot-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── Projekty ────────────────────────────────────────────────────────────── */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.grid-3--ruled { border-top: 1px solid var(--ink); padding-top: 34px; }

.project-card { display: block; }
.project-card__media {
    aspect-ratio: 4 / 3; position: relative; overflow: hidden; margin-bottom: 18px;
    border: 1px solid oklch(88% 0.008 265);
    background: repeating-linear-gradient(128deg, oklch(89% 0.009 265) 0px, oklch(89% 0.009 265) 1.5px, oklch(93.6% 0.007 265) 1.5px, oklch(93.6% 0.007 265) 11px);
}
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card__tag {
    position: absolute; right: 10px; top: 10px; font-family: var(--font-mono); font-size: 9px;
    letter-spacing: .14em; text-transform: uppercase; color: var(--paper); background: var(--accent);
    padding: 5px 9px; transform: rotate(2.5deg);
}
.project-card__years { font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; color: var(--ink-40); margin-bottom: 9px; }
.project-card h3 { font-size: 22px; letter-spacing: -.008em; line-height: 1.2; margin: 0 0 10px; }
.project-card p { font-size: 15px; line-height: 1.6; color: var(--ink-60); margin: 0; max-width: 40ch; }

/* mřížka projektů na přehledu a v „další projekty" */

/* dvousloupcové rozvržení podstránek (úvod stránky, detail služby) */
.intro__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 56px); align-items: start; }

.quote-rotator { position: relative; }

/* záložky kategorií + počty (stránka Projekty) */
.tabs { display: flex; justify-content: space-between; align-items: end; gap: 22px; flex-wrap: wrap; border-bottom: 1px solid var(--ink); padding-bottom: 14px; }
.tabs__list { display: flex; gap: 24px; flex-wrap: wrap; }
.tab { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.tab span.label { font-size: 14px; font-weight: 450; color: var(--ink-50); padding-bottom: 5px; border-bottom: 1.5px solid transparent; transition: color .2s ease, border-color .2s ease; }
.tab:hover span.label { color: var(--ink); border-bottom-color: var(--rule); }
.tab.is-active span.label { font-weight: 600; color: var(--accent); border-bottom-color: var(--accent); }
.tab span.count { font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-30); }
.tabs__total { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-40); white-space: nowrap; }

/* řádek projektu */
.p-row { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); gap: 32px; border-bottom: 1px solid oklch(88% 0.008 265); padding: 34px 0; align-items: start; transition: background .22s ease; }
.p-row:hover { background: var(--paper-2); }
.p-row[hidden] { display: none; }
.p-row__media {
    aspect-ratio: 4 / 3; position: relative; overflow: hidden; border: 1px solid oklch(87% 0.01 265);
    background: repeating-linear-gradient(128deg, oklch(89% 0.009 265) 0px, oklch(89% 0.009 265) 1.5px, oklch(93.6% 0.007 265) 1.5px, oklch(93.6% 0.007 265) 11px);
}
.p-row__media img { width: 100%; height: 100%; object-fit: cover; }
.p-row__head { display: flex; gap: 12px; align-items: center; margin-bottom: 13px; flex-wrap: wrap; }
.p-row__cat { font-family: var(--font-mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--paper); background: var(--accent); padding: 5px 10px; transform: rotate(-1.6deg); }
.p-row__years { font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; color: var(--ink-40); }
.p-row h2 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.18; margin: 0 0 12px; max-width: 26ch; }
.p-row p { font-size: 15.5px; line-height: 1.64; color: var(--ink-60); margin: 0 0 16px; max-width: 58ch; }
.p-row__meta { display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-40); }
.p-row__meta span { display: flex; gap: 8px; align-items: center; }
.p-row__meta span::before { content: ""; width: 4px; height: 4px; background: var(--accent); transform: rotate(45deg); }

/* ── Hlavička podstránky (společná všem podstránkám) ─────────────────────── */

.page-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; padding: 66px 0 46px; align-items: end; }
.page-head h1 { font-size: clamp(38px, 4.7vw, 66px); line-height: 1.02; margin: 0; }
.page-head h1 .mark::after { display: none; }        /* na podstránkách jen kurzíva v akcentu, bez zvýrazňovače */
.page-head__aside { padding-bottom: 10px; }
.page-head__aside p { font-size: 17px; line-height: 1.65; color: var(--ink-70); margin: 0; max-width: 46ch; }
.page-head__note { font-family: var(--font-mono); font-size: 11px; line-height: 1.7; letter-spacing: .06em; color: var(--ink-40); margin-top: 16px !important; }

/* ── Služby ──────────────────────────────────────────────────────────────── */

.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.chip {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
    padding: 7px 12px; color: var(--ink-50); background: none; border: 1px solid oklch(84% 0.01 265);
    cursor: pointer; transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--paper); }

/* mono mezinadpis v textovém sloupci („Pro koho je služba určená" apod.) */
.mono-h {
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
    color: var(--accent); margin: 26px 0 12px; font-weight: 400;
}
.diamond-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.diamond-list li { display: flex; gap: 11px; align-items: baseline; font-size: 15px; line-height: 1.5; color: var(--ink-70); }
.diamond-list li::before { content: ""; width: 5px; height: 5px; flex: none; background: var(--accent); transform: translateY(-2px) rotate(45deg); }

/* přehledové karty služeb — mřížka oddělená vlasovými linkami, bez zaoblení */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.card {
    display: flex; flex-direction: column; gap: 12px; padding: 34px 34px 32px;
    border-right: 1px solid oklch(87% 0.01 265); border-bottom: 1px solid oklch(87% 0.01 265);
    text-decoration: none; transition: background .25s ease;
}
.card:nth-child(3n) { border-right: 0; }
.card:hover { background: var(--paper-2); color: var(--ink); }
.card__icon {
    width: 42px; height: 42px; display: grid; place-items: center; color: var(--accent);
    border: 1px solid var(--line); transform: rotate(-1.5deg); transition: border-color .25s ease, transform .25s ease;
}
.card:hover .card__icon { border-color: var(--accent); transform: rotate(1.5deg); }
.card__icon .icon { width: 21px; height: 21px; }
.card h2, .card h3 { font-size: 21px; line-height: 1.25; margin: 6px 0 0; font-family: var(--font-serif); font-weight: 400; letter-spacing: -.01em; }
.card p { font-size: 15px; line-height: 1.6; color: var(--ink-60); margin: 0; }
.card__more {
    margin-top: auto; padding-top: 14px; font-size: 13.5px; font-weight: 500;
    display: inline-flex; gap: 9px; align-items: center; color: var(--accent);
}
.card__more .arr { font-family: var(--font-mono); }

/* rozšířená stránka oblasti */
.svc-detail__body { max-width: 62ch; }
.svc-detail__body p { font-size: 16.5px; line-height: 1.68; color: var(--ink-70); }
.svc-detail__body .mono-h:first-child { margin-top: 0; }

/* přechod na ostatní oblasti pod detailem */
.svc-others { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--ink); margin-top: 18px; }
.svc-others__item {
    display: flex; align-items: center; gap: 14px; padding: 20px 22px 20px 0;
    border-bottom: 1px solid oklch(87% 0.01 265); font-size: 15.5px; line-height: 1.35;
    transition: color .2s ease, padding-left .2s ease;
}
.svc-others__item:hover { color: var(--accent); padding-left: 8px; }
.svc-others__item .card__icon { width: 36px; height: 36px; flex: none; }
.svc-others__item .card__icon .icon { width: 18px; height: 18px; }

/* ── Časová osa (svislá linka s uzly — původní rozvržení v novém jazyce) ─── */

.timeline { position: relative; }
.timeline::before {
    content: ""; position: absolute; top: 12px; bottom: 12px; left: 222px;
    width: 1px; background: var(--line);
}
.tl-item { position: relative; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 0 64px; padding: 26px 0; }
.tl-item::after {
    content: ""; position: absolute; left: 219px; top: 35px;
    width: 7px; height: 7px; border: 1px solid oklch(68% 0.014 265); border-radius: 50%; background: var(--paper);
}
.tl-item--major::after {
    left: 218px; width: 9px; height: 9px; border: 0; border-radius: 0;
    background: var(--accent); transform: rotate(45deg);
}
.tl-period {
    font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--accent); font-variant-numeric: tabular-nums; text-align: right; padding-top: 8px;
}
.tl-body h3 { font-size: 22px; letter-spacing: -.008em; line-height: 1.2; margin: 0 0 6px; }
.tl-org { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-40); margin: 0 0 12px; }
.tl-body p { font-size: 15.5px; line-height: 1.62; color: var(--ink-70); max-width: 62ch; }
.tl-figure { margin: 16px 0 0; max-width: 620px; }
/* Fotka u události nesmí zabrat celou obrazovku — osa se pak nedá procházet. */
.tl-figure img { border: 1px solid var(--line); width: 100%; max-height: 420px; object-fit: cover; }
.tl-figure figcaption { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-40); margin-top: 8px; }

/* ── Fotopás na stránce O mně ────────────────────────────────────────────── */

.figband { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 34px; padding-bottom: 64px; align-items: start; }
.figband__fig { transform: rotate(-.9deg); margin: 0; }
.figband__fig .shot { aspect-ratio: 16 / 10; overflow: hidden; background: oklch(90% 0.01 265); }
.figband__fig img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: grayscale(.18) contrast(1.05); }
.figband__fig figcaption {
    display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; gap: 16px;
    font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-40);
}
.figband__text { padding-top: 14px; }
.figband__text p { font-size: 16.5px; line-height: 1.68; color: var(--ink-70); }
.pillars {
    transform: rotate(1.2deg); border: 1px solid var(--ink); padding: 20px 22px; margin-top: 26px;
    background: var(--paper-2); box-shadow: 6px 6px 0 oklch(17% 0.012 265 / .07);
}
.pillars h2 { font-family: var(--font-mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; font-weight: 400; }
.pillars ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; counter-reset: p; }
.pillars li { display: flex; gap: 12px; align-items: baseline; font-size: 15px; line-height: 1.5; counter-increment: p; }
.pillars li::before { content: "0" counter(p); font-family: var(--font-mono); font-size: 10px; color: var(--ink-40); }
.tl-figure figcaption { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-40); margin-top: 8px; }

/* ── Čísla v kostce ──────────────────────────────────────────────────────── */
/* Mřížka dělená vlasovými linkami. Odsazení zleva je schválně stejné jako
   u rozcestníku pod pásem, aby na sebe obě mřížky navazovaly. Ikona je
   vysazená do pravého horního rohu, takže výšku dlaždice určuje text a
   nezůstává pod číslem prázdné pásmo; místo pro ni drží pravé odsazení. */

.stats { border-top: 1px solid var(--ink); background: var(--paper); }

.stats__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }

.stats__item {
    position: relative;
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    padding: 30px calc(30% + 26px) 30px 40px;
    border-right: 1px solid var(--line-soft);
}
.stats__item:nth-child(3n)  { border-right: 0; }
.stats__item:nth-child(n+4) { border-top: 1px solid var(--line-soft); }

.stats__icon { position: absolute; top: 28px; right: 30px; width: 28%; max-width: 118px; color: var(--accent); }
.stats__icon .icon { width: 100%; height: auto; stroke-width: .82; }

.stats__value {
    font-family: var(--font-serif); font-weight: 400;
    font-size: clamp(32px, 3.3vw, 46px); line-height: 1; letter-spacing: -.02em;
    color: var(--ink); margin-bottom: 11px;
}

.stats__label { font-size: 15px; line-height: 1.5; color: var(--ink-60); }

@media (max-width: 900px) {
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .stats__item { padding: 26px calc(30% + 20px) 26px 28px; }
    .stats__item:nth-child(3n)  { border-right: 1px solid var(--line-soft); }
    .stats__item:nth-child(2n)  { border-right: 0; }
    .stats__item:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
    .stats__icon { top: 24px; right: 24px; max-width: 96px; }
}

@media (max-width: 560px) {
    .stats__grid { grid-template-columns: 1fr; }
    .stats__item,
    .stats__item:nth-child(2n),
    .stats__item:nth-child(3n) { border-right: 0; padding: 24px 100px 24px 0; }
    .stats__item:nth-child(n+2) { border-top: 1px solid var(--line-soft); }
    .stats__icon { top: 22px; right: 0; width: 84px; }
}

/* ── Reference ───────────────────────────────────────────────────────────── */

/* karty referencí */
.reference-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; padding-top: 56px; }
.reference-grid--top { padding-top: 8px; }   /* mřížka je na stránce první, nepotřebuje odstup */
.reference-card {
    display: flex; flex-direction: column;
    border: 1px solid var(--ink); background: var(--paper-2); padding: 30px 32px 26px;
    box-shadow: 7px 7px 0 oklch(17% 0.012 265 / .06); transition: transform .28s ease, box-shadow .28s ease;
}
/* Maketa karty svisle rozhazovala (margin-top). Při různě dlouhých citátech
   to vypadá jako chyba sazby, takže karty začínají na jedné lince a rozdíl
   dělá jen jemné natočení; patička díky flexu drží u spodní hrany. */
.reference-card:nth-child(4n+1) { transform: rotate(-.7deg); }
.reference-card:nth-child(4n+2) { transform: rotate(.7deg); }
.reference-card:nth-child(4n+3) { transform: rotate(.5deg); }
.reference-card:nth-child(4n)   { transform: rotate(-.6deg); }
.reference-card:hover { transform: rotate(0deg) translateY(-3px); box-shadow: 10px 10px 0 oklch(17% 0.012 265 / .09); }
.reference-card__sector { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.reference-card blockquote { font-family: var(--font-serif); font-size: 19.5px; line-height: 1.5; margin: 0 0 22px; color: var(--ink); }
.reference-card__foot { margin-top: auto; border-top: 1px solid oklch(86% 0.01 265); padding-top: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.reference-card__name { font-size: 14.5px; font-weight: 500; }
.reference-card__role { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-40); }
.reference-card img.avatar { width: 42px; height: 42px; object-fit: cover; filter: grayscale(.2); }
.reference-logo { max-height: 28px; width: auto; opacity: .7; }

/* ── Kontakt a formulář ──────────────────────────────────────────────────── */

.contact-split { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); border-top: 1px solid var(--ink); }
.contact-side { padding: 42px 54px 46px 0; border-right: 1px solid oklch(87% 0.01 265); }
.contact-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-40); margin-bottom: 16px; }
.contact-mail { font-family: var(--font-serif); font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.01em; display: inline-block; border-bottom: 1px solid var(--rule); padding-bottom: 4px; margin-bottom: 16px; }
.contact-mail:hover { border-bottom-color: var(--accent); }
.contact-links { display: flex; gap: 18px; align-items: center; margin-bottom: 30px; flex-wrap: wrap; }
.contact-links a { font-size: 14px; border-bottom: 1px solid oklch(84% 0.01 265); padding-bottom: 2px; }
.contact-links a:hover { border-bottom-color: var(--accent); }
.contact-links .langs { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; color: var(--ink-40); }

.contact-note {
    transform: rotate(-1.7deg); border: 1px solid var(--ink); background: var(--paper-2);
    padding: 18px 20px; margin-bottom: 34px; box-shadow: 6px 6px 0 oklch(17% 0.012 265 / .07); max-width: 330px;
}
.contact-note__label { font-family: var(--font-mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.contact-note__text { font-family: var(--font-serif); font-style: italic; font-size: 16.5px; line-height: 1.4; }

.steps { border-top: 1px solid var(--line-soft); padding-top: 22px; }
.steps ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid oklch(92% 0.007 265); counter-increment: s; font-size: 14.5px; line-height: 1.55; color: var(--ink-70); }
.steps li::before { content: "0" counter(s); font-family: var(--font-mono); font-size: 10.5px; color: var(--accent); padding-top: 3px; }

/* formulář — podtržená pole podle makety */
.form { padding: 42px 0 46px 54px; display: flex; flex-direction: column; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-bottom: 32px; }
.field { display: flex; flex-direction: column; gap: 9px; margin-bottom: 30px; }
.form__row .field { margin-bottom: 0; }
.field label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-40); }
.field .req { color: var(--accent); }
.field input, .field textarea {
    border: 0; border-bottom: 1px solid var(--rule); background: none; color: var(--ink);
    font: inherit; font-size: 16.5px; padding: 8px 0 12px; outline: none;
    transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.field textarea { min-height: 120px; resize: vertical; }
.field ::placeholder { color: var(--ink-30); }

.topics { margin-bottom: 30px; }
.topics__label { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-40); margin-bottom: 14px; }
.topics .chips { margin-top: 0; }
.topics .chip { font-family: var(--font-sans); font-size: 12.5px; letter-spacing: 0; text-transform: none; padding: 9px 16px; }
.topics .chip:hover, .topics .chip.is-active { transform: rotate(-1deg); }

.form__submit { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.form__note { font-size: 12.5px; line-height: 1.55; color: var(--ink-40); margin: 0; max-width: 40ch; }

.alert { padding: 14px 18px; margin-bottom: 24px; font-size: 14.5px; border: 1px solid; }
.alert--ok  { border-color: oklch(70% 0.09 150); background: oklch(94% 0.03 150); color: oklch(38% 0.09 150); }
.alert--err { border-color: oklch(70% 0.12 25);  background: oklch(94% 0.04 25);  color: oklch(40% 0.13 25); }

/* ── Patička ─────────────────────────────────────────────────────────────── */

.cta-band h2 { color: var(--on-dark); max-width: 22ch; margin: 0 0 20px; }
.cta-band p { font-size: 16.5px; line-height: 1.62; color: var(--on-dark-soft); max-width: 52ch; margin: 0; }
.cta-band .mail-link {
    font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--on-dark-soft); border-bottom: 1px solid var(--on-dark-line); padding-bottom: 3px;
}
.cta-band .mail-link:hover { color: var(--on-dark); }

.site-footer__name { font-family: var(--font-serif); font-size: 24px; font-weight: 500; margin: 0 0 20px; }
.site-footer__grid {
    display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, .95fr);
    gap: 40px; padding: 50px 0 28px;
}
.site-footer__brand { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.site-footer__brand .brand__mark { width: 34px; height: 34px; font-size: 14px; }
.site-footer__brand span.name { font-family: var(--font-serif); font-size: 17px; }
.site-footer__note { font-size: 14.5px; line-height: 1.65; color: var(--ink-50); max-width: 40ch; margin: 0; }
.site-footer__col { display: flex; flex-direction: column; gap: 11px; }
.site-footer__h { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-40); margin: 0 0 5px; font-weight: 400; }
.site-footer__col a, .site-footer__col span:not(.site-footer__h) { font-size: 14.5px; color: var(--ink); }
.site-footer__col .muted { color: var(--ink-50); }
.site-footer__bar {
    grid-column: 1 / -1; border-top: 1px solid var(--line-soft); margin-top: 16px; padding-top: 20px;
    display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-40);
}
.site-footer__bar .lang-switch { text-transform: none; }

/* ── Cookie lišta ────────────────────────────────────────────────────────── */

.cookiebar {
    position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(150%);
    z-index: 150; width: min(680px, calc(100vw - 32px));
    background: var(--paper); border: 1px solid var(--ink); box-shadow: 6px 6px 0 oklch(17% 0.012 265 / .1);
    padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
    transition: transform .45s ease;
}
.cookiebar.is-visible { transform: translateX(-50%) translateY(0); }
.cookiebar__text { margin: 0; font-size: 13.5px; color: var(--ink-60); flex: 1 1 300px; }
.cookiebar__actions { display: flex; gap: 10px; }

/* ── Animace ─────────────────────────────────────────────────────────────── */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: .07s; }
.reveal--d2 { transition-delay: .14s; }
.reveal--d3 { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .js .reveal { opacity: 1; transform: none; }
    .portrait, .note { transform: none !important; }
}

.error-page { padding-block: clamp(80px, 12vw, 150px); }

/* ── Responzivita ────────────────────────────────────────────────────────── */

@media (max-width: 1179px) {
    :root { --pad-x: 24px; }
    .hero__grid, .teasers, .grid-3, .band__grid, .intro__grid, .page-head, .figband,
    .cards, .p-row, .contact-split, .form__row,
    .reference-grid, .site-footer__grid { grid-template-columns: 1fr !important; }
        .page-head { padding: 44px 0 32px; gap: 24px; }
    .page-head__aside { padding-bottom: 0; }
    .card { padding: 30px 0; border-right: 0 !important; }
    .pillars, .contact-note, .figband__fig,
    .reference-card, .reference-card:hover { transform: none !important; margin-top: 0 !important; }
    /* osa: linka i uzly doleva, období nad text */
    .timeline::before { left: 5px; }
    .tl-item { grid-template-columns: 1fr; gap: 6px; padding-left: 30px; }
    .tl-item::after { left: 2px; top: 32px; }
    .tl-item--major::after { left: 1px; }
    .tl-period { text-align: left; padding-top: 0; }
    .contact-side { padding: 32px 0 34px; border-right: 0; border-bottom: 1px solid oklch(87% 0.01 265); }
    .form { padding: 34px 0 0; }
    .reference-grid { padding-top: 34px; gap: 20px; }
    .hero__text { padding: 48px 0 34px; }
    .hero__figure { padding: 0 0 56px; }
    .portrait { transform: none; }
    .note { display: none; }
    .teaser, .card, .reference-card { border-right: 0; border-bottom: 1px solid oklch(87% 0.01 265); padding-left: 0; padding-right: 0; }
    .cards { border-top: 1px solid var(--ink); }
    .band__grid { gap: 30px; padding-block: 56px; }
    .band__aside { justify-content: start; }
        .tl-item { grid-template-columns: 1fr; gap: 10px; }
    .tl-period { padding-top: 0; }
}

@media (max-width: 640px) {
    .hero__facts { grid-template-columns: 1fr; gap: 16px; }
    .hero__actions { gap: 16px; }
    .btn { width: 100%; justify-content: center; }
    .site-footer__bar { flex-direction: column; gap: 10px; }
}
