/* VotH Petrarch's Horace Carolingian Minuscule – SIL OFL 1.1, licence v assets/fonts/ */
@font-face {
  font-family: "Carolingian";
  src: url("assets/fonts/voth-carolingian.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #18110f;
  --bg-alt: #130d0b;
  --ink: #f4e6cf;
  --muted: #bfa88f;
  --line: #3d2e26;
  --hover: #261c17;
  --sweep: #31231b;
  --header: #0f0b09;
  --header-hover: #251b15;
  --accent: #dba957;
  --accent-dark: #c48f3d;

  /* Marcellus: antikva s rozšířenými zakončeními z římských nápisů; Alegreya Sans: humanistické, kaligrafické základy */
  --serif: "Marcellus", "Cormorant Garamond", "Trajan Pro", Georgia, serif;
  --sans: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.2rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
main { flex: 1; position: relative; overflow: hidden; }
main > section { position: relative; z-index: 1; }

/* ---------- Historická písma na pozadí (jemně, jen jako nádech) ---------- */
/* Vrstva přes celou výšku stránky; bloky písmen se střídají vlevo/vpravo
   a jsou rozmístěné po stránce (poloha top v % je inline v HTML). */
.script-bg { position: absolute; inset: 0; will-change: transform; pointer-events: none; z-index: 0; user-select: none; overflow: hidden; }
.sb {
  position: absolute; width: 42%; max-height: 260px; overflow: hidden;
  font-size: clamp(2rem, 4.4vw, 3.8rem); line-height: 1.4; letter-spacing: .4em;
  color: var(--ink); opacity: .035; overflow-wrap: anywhere;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 70%, transparent 100%);
}
.sb-r { font-family: "Noto Sans Runic", serif; }
.sb-g { font-family: "Noto Sans Glagolitic", serif; max-height: 200px; }
/* historická kurzíva vlevo nahoře (Cicero, De oratore) */
.sb-i {
  font-family: "IM Fell English", serif; font-style: italic; letter-spacing: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.9rem); line-height: 1.3; max-height: 190px; opacity: .04;
}
.sb-c { font-family: "Carolingian", "IM Fell English", serif; }
.sb-right { right: 0; text-align: right; }
.sb-left { left: 3%; text-align: left; }
.sb-fraktur {
  position: absolute; left: 4%; bottom: 6px; z-index: -1; white-space: nowrap; pointer-events: none; user-select: none;
  font-family: "UnifrakturMaguntia", serif;
  font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1;
  color: var(--ink); opacity: .03; transform: rotate(-3deg); transform-origin: left center;
}

/* ---------- Motto ---------- */
.motto-author { margin-top: 1.2rem; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.motto-author::before { content: "— "; }
.motto-section { padding: 0 0 clamp(56px, 8vw, 96px); }
.motto { margin: 0; text-align: center; max-width: 44rem; margin-inline: auto; }
.motto-mark { display: block; color: var(--accent); font-size: 1.5rem; margin-bottom: 1rem; opacity: .8; }
.motto blockquote { margin: 0; }
.motto p {
  margin: 0; font-family: "IM Fell English", var(--serif); font-style: italic;
  font-size: clamp(1.45rem, 3.2vw, 2.1rem); line-height: 1.4; color: var(--ink);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 1.1rem;
}

.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header);               /* plná tmavší žlutá, aby menu nesplývalo s písmy na pozadí */
  border-bottom: 1px solid var(--accent);  /* tenká cihlová linka */
  box-shadow: 0 6px 14px -12px rgba(0, 0, 0, .5);
}

.bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; flex-direction: column; gap: .1rem; text-decoration: none; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.4rem; letter-spacing: -.01em; }
.brand-sub { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #bfa88f; white-space: nowrap; }
.brand:hover { color: var(--ink); }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  font-size: 1.02rem; text-decoration: none; color: #e6d4ba;
  padding: .5rem .9rem; border-radius: 3px;
  transition: background-color .18s, color .18s;
}
.nav a:hover, .nav a:focus-visible { background: var(--header-hover); color: var(--ink); }
/* aktuální stránka: jen tmavší text a jemné podtržení, ne pozadí – aby se nepletla s hoverem */
.nav a[aria-current="page"] {
  color: var(--ink); font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px; text-underline-offset: 7px;
}

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 0; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .25s, top .25s; }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-size: 1.05rem; letter-spacing: .03em;
  font-weight: 500;
  border: 1px solid var(--ink);
  border-radius: 2px;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #18110f; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 9vw, 112px) 0 clamp(56px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.1rem, 5.6vw, 4.4rem); line-height: 1.1; letter-spacing: 0;
  white-space: nowrap; margin-bottom: 1.6rem;
}
.hero h1 .h-title { color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2rem; }

.portrait { margin: 0; }
.portrait img, .portrait-ph { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: 2px; }
.portrait-ph {
  background: linear-gradient(160deg, #2a1e18, #1e1511);
  display: grid; place-items: center;
  color: var(--muted); font-family: var(--sans); font-style: italic; font-size: 1.4rem; text-align: center;
}

/* ---------- Rozcestník na úvodní stránce: samostatné zaoblené karty ---------- */
.tiles-section { padding: 0 0 clamp(64px, 9vw, 120px); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.tiles li { display: block; }
.tiles a {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; height: 100%; min-height: 116px;
  padding: 1.6rem 1.8rem; text-decoration: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 14px 30px -20px rgba(0, 0, 0, .65);
  transition: transform .35s cubic-bezier(.22, .7, .2, 1), border-color .3s, box-shadow .35s, background .3s;
}
/* tenká zlatá linka, která se po najetí vysune zleva */
.tiles a::after {
  content: ""; position: absolute; left: 1.8rem; right: 1.8rem; bottom: 0; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.22, .7, .2, 1);
}
.tiles a:hover, .tiles a:focus-visible {
  transform: translateY(-4px); color: var(--ink);
  border-color: rgba(219, 169, 87, .5);
  background: linear-gradient(145deg, rgba(219, 169, 87, .13), rgba(255, 255, 255, .03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 24px 40px -22px rgba(0, 0, 0, .8), 0 0 0 1px rgba(219, 169, 87, .12);
}
.tiles a:hover::after, .tiles a:focus-visible::after { transform: scaleX(1); }
.tiles a:active { transform: translateY(-1px) scale(.985); transition-duration: .1s; }
.t-title { font-family: var(--serif); font-size: 1.75rem; line-height: 1.15; }
@media (prefers-reduced-motion: reduce) { .tiles a, .tiles a::after { transition: none; } .tiles a:hover, .tiles a:focus-visible { transform: none; } }
.aside-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 6vw, 88px); }
.service-group { padding: 2rem 0 2.2rem; border-top: 1px solid var(--line); }
.service-group h3 { font-size: 1.7rem; margin-bottom: 1.4rem; display: flex; align-items: baseline; gap: .9rem; }
.service-group ul { list-style: none; margin: 0; padding: 0; }
.service-group li { margin-bottom: 1.4rem; }
.service-group li:last-child { margin-bottom: 0; }
.service-group h4 { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: .2rem; }
.service-group li p { color: var(--muted); font-size: .98rem; margin: 0; line-height: 1.6; }

.aside-note { margin-top: 2.5rem; color: var(--muted); font-size: .98rem; max-width: 40em; }

/* ---------- Book ---------- */
.book { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(32px, 7vw, 96px); align-items: center; }
.book-cover { margin: 0; max-width: 400px; width: 100%; justify-self: center; }
.book-cover img { width: 100%; height: auto; box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .55); border-radius: 2px; }

.book-text h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.poem { margin: 2rem 0; padding: .2rem 0 .2rem 1.5rem; border-left: 2px solid var(--accent); font-family: "EB Garamond", Georgia, serif; font-style: italic; font-size: 1.4rem; line-height: 1.5; }
.poem p { margin: 0 0 1em; font-size: 1.15rem; }
.poem footer { font-family: var(--sans); font-style: normal; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Prices ---------- */
.prices { list-style: none; margin: 0; padding: 0; max-width: 40em; }
.prices li { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.prices li:last-child { border-bottom: 1px solid var(--line); }
.p-name { font-size: 1.02rem; }
.p-val { font-family: var(--serif); font-size: 1.5rem; white-space: nowrap; }
.p-val small { font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 1.2rem 3rem; margin: 0 0 2rem; }
.facts dt { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 7vw, 96px); }
.about .section-head { margin: 0; }
.about-body { max-width: 40em; }
.about-body p:last-child { margin-bottom: 0; }

/* ---------- CV ---------- */
.cv { display: grid; gap: clamp(40px, 6vw, 72px); }
.cv-block { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 6vw, 96px); }
.cv-block > h3 { font-size: 1.7rem; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1.5rem; padding: 0 0 1.8rem; }
.timeline li:last-child { padding-bottom: 0; }
.when { font-size: .88rem; color: var(--muted); padding-top: .2rem; font-variant-numeric: tabular-nums; }
.timeline h4 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; margin-bottom: .25rem; }
.timeline p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.6; }
.cv-download { margin: 3rem 0 0; }
.cv-download:empty { display: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 7vw, 96px); align-items: end; }
.contact h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1.2rem; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; flex-direction: column; padding: 1rem 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list span { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list b { font-family: var(--serif); font-size: 1.4rem; text-decoration: none; font-weight: 400; line-height: 1.3; }
.contact-list em { font-size: .92rem; color: var(--muted); font-style: normal; margin-top: .2rem; }

/* ---------- Sociální sítě ---------- */
.social { list-style: none; margin: 1.8rem 0 0; padding: 0; display: flex; gap: .7rem; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 50%; color: var(--ink);
  transition: background-color .18s, color .18s, border-color .18s;
}
.social a:hover, .social a:focus-visible { background: var(--hover); color: var(--accent); border-color: var(--accent); }

/* ---------- Kontaktní formulář ---------- */
.contact-grid { align-items: start; }
.contact-form { margin-top: 2.2rem; max-width: 34rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 2px;
  padding: .7rem .85rem; transition: border-color .18s, background-color .18s;
}
.field textarea { resize: vertical; min-height: 9rem; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, .11); }
.field .invalid { border-color: #ff8a7d; }
.btn-small { padding: .5rem 1rem; font-size: .95rem; margin-top: .6rem; }
.interest { margin: 1.6rem 0 0; }
.cf-details { border: 1px solid var(--line); border-radius: 2px; padding: .9rem 1rem 1rem; margin: 0 0 1.2rem; background: rgba(255, 255, 255, .04); }
.cf-details[hidden] { display: none; }
.cf-details legend { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 .4rem; }
.cf-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); font-size: 1rem; line-height: 1.2; transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover span { border-color: var(--accent); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--muted); margin: 0 0 1.2rem; }
.contact-form .btn { cursor: pointer; font-family: inherit; }
.contact-form .btn[disabled] { opacity: .6; cursor: wait; }
.form-status { margin: 1rem 0 0; font-size: .98rem; min-height: 1.5em; }
.form-status.ok { color: #9fd8a8; }
.form-status.err { color: #ff9d92; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .88rem; color: var(--muted); }
.foot { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 32px; }
.foot p { margin: 0; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--header); border-bottom: 1px solid var(--accent);
    padding: .5rem var(--gutter) 1.2rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem .9rem; font-size: 1.05rem; width: 100%; margin: 0 -.9rem; width: calc(100% + 1.8rem); }
  .tiles { grid-template-columns: 1fr 1fr; }

  .hero-grid, .book, .about, .cv-block, .contact-grid, .services { grid-template-columns: 1fr; }
  .portrait { max-width: 380px; order: -1; }
  .hero-grid { gap: 36px; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 3.8rem); }
  .book-cover { max-width: 260px; justify-self: start; }
  .timeline li { grid-template-columns: 1fr; gap: .15rem; }
  .cv-block { gap: 20px; }
}
@media (max-width: 520px) {
  .brand-name { font-size: 1.25rem; }
  .brand-sub { font-size: .6rem; letter-spacing: .1em; }
  .tiles { grid-template-columns: 1fr; }
}

/* mapa v sekci Kontakt */
.map-block { margin-top: clamp(40px, 6vw, 72px); }
.map-frame { position: relative; height: clamp(320px, 48vw, 460px); border: 1px solid var(--line); background: var(--bg-alt); overflow: hidden; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map-link { margin: .8rem 0 0; font-size: .95rem; }
.map-link a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; }
.map-link a:hover { color: var(--accent); text-decoration-color: var(--accent); }.map-title { font-size: 1.7rem; margin-bottom: 1.2rem; }

.field select option { background: #0f0b09; color: var(--ink); }

/* ---------- Patička: IČO, e-mail, telefon ---------- */
.foot-ico::before { content: "·"; margin: 0 .6em; opacity: .6; }
.foot-contact { display: flex; flex-wrap: wrap; gap: 4px 1.6rem; }
.foot-contact a { text-decoration: none; }
.foot-contact a:hover { text-decoration: underline; }

/* ---------- Přepínač jazyků ---------- */
.nav { margin-left: auto; }
.lang { position: relative; margin-left: .7rem; }
.lang-btn {
  display: flex; align-items: center; gap: .55rem; height: 40px; padding: 0 .8rem;
  background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-size: .88rem; letter-spacing: .08em; cursor: pointer;
  transition: background-color .18s, border-color .18s;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: var(--header-hover); border-color: var(--accent); }
.chev { display: inline-block; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(225deg) translate(-1px, -1px); }
.flag { display: inline-block; width: 24px; height: 16px; flex: none; line-height: 0; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }
.flag svg { display: block; width: 100%; height: 100%; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 196px;
  list-style: none; margin: 0; padding: .4rem;
  background: var(--header); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 22px 40px -16px rgba(0, 0, 0, .75);
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  display: flex; align-items: center; gap: .75rem; width: 100%; padding: .55rem .7rem;
  background: transparent; border: 0; border-radius: 9px; color: var(--ink);
  font: inherit; font-size: 1rem; text-align: left; cursor: pointer;
}
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--header-hover); }
.lang-menu button[aria-checked="true"] { color: var(--accent); }
.lang-menu button[aria-checked="true"]::after { content: ""; margin-left: auto; width: 6px; height: 11px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); }
@media (max-width: 860px) {
  .lang { margin-left: auto; margin-right: .2rem; order: 2; }
  .nav-toggle { order: 3; }
}
/* ---------- Střídající se ukázky: obálka + ilustrace z rukopisu ---------- */
.slideshow .slides {
  position: relative; aspect-ratio: 1051 / 1488; background: #fff;
  border-radius: 2px; overflow: hidden; box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .55);
}
.slideshow .slide {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; opacity: 0; transition: opacity 1.1s ease; box-shadow: none; border-radius: 0;
}
.slideshow .slide.ill { object-fit: contain; padding: 9%; }
.slideshow .slide.is-active { opacity: 1; }
.dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: .9rem; }
.dots button {
  width: 22px; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative;
}
.dots button::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%; background: var(--line); transition: background-color .25s, transform .25s;
}
.dots button:hover::before { background: var(--muted); }
.dots button[aria-current="true"]::before { background: var(--accent); transform: scale(1.35); }
@media (prefers-reduced-motion: reduce) { .slideshow .slide { transition: none; } }
/* ---------- Fotografie ---------- */
.motto-author { color: var(--accent); }
.portrait img { object-position: 50% 28%; box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .65); }
.about-photo { margin: 2.2rem 0 0; max-width: 340px; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; border-radius: 2px; box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .65); }
.cv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.cv-photo { margin: 0; flex: none; width: clamp(150px, 18vw, 210px); }
.cv-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 2px; box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .65); }
@media (max-width: 860px) {
  .about-photo { max-width: 260px; }
  .cv-head { flex-direction: column; align-items: flex-start; gap: 1.6rem; }
  .cv-photo { width: 160px; }
}
/* ---------- Fotografie: měkké splynutí s pozadím (přepisuje dřívější pravidla) ---------- */
.photo-fade {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 15%, #000 60%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 15%, #000 60%, transparent 100%);
  mask-composite: intersect;
}
.portrait, .about-photo, .cv-photo { position: relative; isolation: isolate; }
.portrait::before, .about-photo::before, .cv-photo::before {
  content: ""; position: absolute; inset: -8% -12%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(219, 169, 87, .16), transparent 72%);
}
.portrait { justify-self: end; width: 100%; max-width: 460px; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 14%; border-radius: 0; box-shadow: none; }
.hero-grid { grid-template-columns: 1fr 1fr; }

.about-photo { position: sticky; top: 96px; margin: 2.4rem 0 0; max-width: 380px; }
.about-photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; border-radius: 0; box-shadow: none; }

.cv-head { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cv-photo { margin: 0; flex: none; width: clamp(200px, 24vw, 300px); }
.cv-photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 16%; border-radius: 0; box-shadow: none; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { justify-self: start; max-width: 340px; }
  .about-photo { position: relative; top: 0; max-width: 300px; }
  .cv-head { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .cv-photo { width: 240px; }
}
/* ---------- Automatické vyplnění prohlížečem: bez světle modrého/bílého pozadí ---------- */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:active,
.field textarea:-webkit-autofill,
.field select:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px #231a16 inset;
  box-shadow: 0 0 0 1000px #231a16 inset;
  border-color: var(--line);
  transition: background-color 600000s ease-out 0s;
}
.field input:-webkit-autofill:focus,
.field textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px #2b211c inset;
  box-shadow: 0 0 0 1000px #2b211c inset;
  border-color: var(--accent);
}
.field input:autofill { box-shadow: 0 0 0 1000px #231a16 inset; color: var(--ink); }
/* ---------- Kontakt: fotografie nad seznamem kontaktů ---------- */
.contact-side { display: flex; flex-direction: column; gap: 2.2rem; min-width: 0; }
.contact-photo { position: relative; isolation: isolate; margin: 0; width: 100%; max-width: 400px; }
.contact-photo::before { content: ""; position: absolute; inset: -8% -12%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(219, 169, 87, .16), transparent 72%); }
.contact-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; border-radius: 0; box-shadow: none; }
@media (max-width: 860px) { .contact-photo { max-width: 300px; } }
/* ---------- Fotografie: čisté zaoblené orámování se zlatým posunutým rámečkem (přepisuje měkké splynutí) ---------- */
.photo-fade {
  -webkit-mask-image: none; mask-image: none;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 34px 60px -34px rgba(0, 0, 0, .9);
}
.portrait::before, .about-photo::before, .contact-photo::before {
  inset: 0; background: none;
  transform: translate(16px, 16px);
  border: 1px solid rgba(219, 169, 87, .5); border-radius: 24px;
}
.portrait img, .about-photo img, .contact-photo img { border-radius: 24px; }
@media (max-width: 860px) {
  .portrait::before, .about-photo::before, .contact-photo::before { transform: translate(10px, 10px); }
}