/* ondrejlukas.com — styly. Jeden soubor, žádné cizí zdroje. Písma: Instrument Sans a Instrument Serif (OFL). */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin-ext-standard-normal.woff2") format("woff2-variations");
  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: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin-standard-normal.woff2") format("woff2-variations");
  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;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-latin-ext-400-italic.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: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-latin-400-italic.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;
}

/* ---------- Základ ---------- */

:root {
  --paper: #f4f1e9;
  --paper-2: #eae5d8;
  --card: #fbf9f4;
  --ink: #121411;
  --ink-2: #3d413a;
  --ink-3: #686c62;
  --line: #d6d0c0;
  --forest: #173f2e;
  --forest-2: #0e2b1f;
  --hi: #f2c450;
  --on-forest: #eef1e4;
  --on-forest-2: #b9c7b4;

  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --gut: clamp(1.25rem, 4vw, 3rem);
  --sec: clamp(4.5rem, 10vw, 9rem);
  --r: 1.25rem;
  --r-lg: clamp(1.25rem, 2.6vw, 2.25rem);
  --hdr: 4.5rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 1rem); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--hi); color: var(--ink); }

.wrap { width: min(77.5rem, 100% - 2 * var(--gut)); margin-inline: auto; }
.skip { position: absolute; left: var(--gut); top: -4rem; z-index: 50; padding: 0.6rem 1rem; background: var(--ink); color: var(--paper); border-radius: 0.5rem; }
.skip:focus { top: 0.75rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nobr { white-space: nowrap; } /* e-shop, e-mail v nadpisu: bez zalomení za „e-“ */

/* ---------- Písmo ---------- */

.display {
  font-size: clamp(2.6rem, 1.15rem + 6.1vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 600;
  font-stretch: 87%;
  text-wrap: balance;
}
.display--sm { font-size: clamp(2.4rem, 1.3rem + 4.6vw, 4.6rem); }
.h2 {
  font-size: clamp(1.9rem, 1.1rem + 3.1vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  font-stretch: 88%;
  text-wrap: balance;
}
.display em, .h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-stretch: normal;
  letter-spacing: -0.015em;
  font-size: 1.06em;
  line-height: 0.9;
}
.lead { font-size: clamp(1.125rem, 1rem + 0.55vw, 1.4rem); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; max-width: 38em; }
p { text-wrap: pretty; }

.label {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.8125rem; line-height: 1.2; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--ink-2);
}
/* tři linky ze značky ONDREJLUKAS: zarovnané vpravo, prostřední nejdelší */
.mark { flex: none; width: 1.15rem; height: 0.8rem; color: var(--forest);
  background:
    linear-gradient(currentColor 0 0) 100% 0 / 68% 2px no-repeat,
    linear-gradient(currentColor 0 0) 100% 50% / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) 100% 100% / 47% 2px no-repeat;
}

/* ---------- Tlačítka a odkazy ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  min-height: 3.25rem; padding: 0.85rem 1.5rem;
  background: var(--forest); color: var(--paper);
  border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: 1.0625rem; line-height: 1.2; text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.1rem; height: 1.1rem; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { min-height: 2.75rem; padding: 0.6rem 1.15rem; font-size: 0.9375rem; }
.btn--hi { background: var(--hi); color: var(--forest-2); }
.btn--hi:hover { background: var(--paper); color: var(--forest-2); }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.3em; }
.link:hover { color: var(--forest); }

/* ---------- Hlavička ---------- */

.hdr { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.hdr[data-scrolled] { border-bottom-color: var(--line); }
.hdr__in { display: flex; align-items: center; gap: 1.5rem; height: var(--hdr); }
.logo { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.logo svg { width: 10.25rem; height: auto; }
.nav { display: none; align-items: center; gap: 0.25rem; }
.nav a { padding: 0.55rem 0.9rem; border-radius: 999px; font-size: 0.975rem; font-weight: 500; text-decoration: none; color: var(--ink-2); transition: background-color 0.2s, color 0.2s; }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current] { color: var(--ink); background: var(--paper-2); }
.hdr__cta { display: none; }
/* přepínač jazyka: na počítači zkratka vedle navigace, na telefonu odkaz v menu */
.lang { display: none; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; margin-inline: -0.75rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-decoration: none; color: var(--ink-2); transition: background-color 0.2s, color 0.2s; }
.lang:hover { color: var(--ink); background: var(--paper-2); }
/* Se dvěma a více dalšími jazyky rozbalovací výběr (<details>, jde i bez JavaScriptu). Seznam je position: absolute
   vůči .langs, ne fixed (backdrop-filter hlavičky by z ní udělal rám), a má vlastní neprůhledné pozadí. */
.langs { display: none; position: relative; margin-inline: -0.75rem; }
.langs__btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem; min-width: 2.75rem; min-height: 2.75rem; padding-inline: 0.75rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-2); list-style: none; cursor: pointer; user-select: none; transition: background-color 0.2s, color 0.2s; }
.langs__btn::-webkit-details-marker { display: none; }
.langs__btn svg { width: 0.75rem; height: 0.75rem; transition: transform 0.2s var(--ease); }
.langs__btn:hover, .langs[open] > .langs__btn { color: var(--ink); background: var(--paper-2); }
.langs__btn:focus-visible { border-radius: 999px; }
.langs[open] > .langs__btn svg { transform: rotate(180deg); }
.langs__list { position: absolute; top: calc(100% + 0.5rem); right: 0; z-index: 31; display: grid; gap: 0.125rem; min-width: 11.5rem; padding: 0.375rem; background: var(--card); border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 1px 0 rgba(18, 20, 17, 0.06), 0 16px 36px -14px rgba(18, 20, 17, 0.3); }
.langs__list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; padding: 0.5rem 0.85rem; border-radius: 0.7rem; font-size: 0.975rem; font-weight: 500; white-space: nowrap; text-decoration: none; color: var(--ink-2); transition: background-color 0.2s, color 0.2s; }
.langs__list a:hover { color: var(--ink); background: var(--paper-2); }
.langs__list a:focus-visible { outline-offset: -2px; border-radius: 0.7rem; }
.langs__list a[aria-current] { color: var(--forest); font-weight: 600; }
.langs__list a[aria-current]::after { content: ""; flex: none; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }
.burger { display: inline-grid; place-content: center; gap: 7px; width: 2.75rem; height: 2.75rem; padding: 0; background: var(--paper-2); border: 0; border-radius: 999px; cursor: pointer; }
.burger span { display: block; width: 1.15rem; height: 2px; background: var(--ink); transition: transform 0.25s var(--ease); }
.hdr[data-open] .burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
.hdr[data-open] .burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* Menu leží v HTML za hlavičkou, ne v ní: hlavička má backdrop-filter, a ten by z ní udělal rám pro position: fixed
   (menu by pak bylo vysoké jen jako hlavička). */
.menu { position: fixed; inset: var(--hdr) 0 0 0; z-index: 29; overflow-y: auto; background: var(--paper); padding: 1.5rem var(--gut) 2.5rem; display: flex; flex-direction: column; gap: 2rem; }
.menu[hidden] { display: none; }
.menu__nav ul { border-top: 1px solid var(--ink); }
.menu__nav li a { display: flex; align-items: baseline; justify-content: space-between; padding: 1.1rem 0; border-bottom: 1px solid var(--line); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; font-stretch: 90%; text-decoration: none; }
.menu__nav li a span { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-3); font-stretch: normal; }
.menu .btn { align-self: flex-start; }
.menu__lang { align-self: flex-start; display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
/* jazyky v menu (dva a více dalších): řada oblých odkazů, aktuální s tmavým okrajem */
.menu__langs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.menu__langs a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.4rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.menu__langs a[aria-current] { color: var(--forest); border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }

@media (min-width: 60rem) {
  .nav { display: flex; }
  .lang { display: inline-flex; }
  .langs { display: block; }
  .hdr__cta { display: inline-flex; }
  .burger, .menu { display: none !important; }
}

/* ---------- Úvod (hero) ---------- */

.hero { display: grid; gap: clamp(2.5rem, 6vw, 4rem); padding-block: clamp(2rem, 5vw, 4.5rem) var(--sec); align-items: end; }
.hero__text { display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); justify-items: start; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 0.5rem; }
.hero__fig { position: relative; width: min(100% - 1rem, 26rem); margin-right: 1rem; }
.hero__fig::before { content: ""; position: absolute; inset: 1rem -1rem -1rem 1rem; background: var(--forest); border-radius: var(--r-lg); }
.hero__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-lg); background: var(--paper-2); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__tag { text-wrap: balance; position: absolute; left: -0.75rem; bottom: 1.75rem; display: flex; align-items: center; gap: 0.7rem; max-width: 15.5rem; padding: 0.8rem 1rem; background: var(--card); border-radius: 0.9rem; box-shadow: 0 1px 0 rgba(18, 20, 17, 0.06), 0 12px 30px -12px rgba(18, 20, 17, 0.28); font-size: 0.875rem; line-height: 1.3; font-weight: 600; }

@media (min-width: 60rem) {
  .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 4.4fr); gap: clamp(3rem, 6vw, 6rem); }
  .hero__fig { width: 100%; justify-self: end; }
  .hero__tag { left: -2.25rem; }
}

/* ---------- Sekce ---------- */

.sec { padding-block: var(--sec); }
.sec--tight { padding-top: 0; }
.sec__head { display: grid; gap: 1.25rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
.sec__head .h2 { max-width: 16em; }
@media (min-width: 60rem) {
  .sec__head { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem; align-items: start; }
  .sec__head .label { padding-top: 0.9rem; }
}

/* Řádky služeb */
.rows { border-top: 1px solid var(--ink); }
.row { position: relative; display: grid; gap: 0.5rem 1.5rem; grid-template-columns: 2.5rem minmax(0, 1fr); padding: 1.5rem 0; border-bottom: 1px solid var(--line); text-decoration: none; isolation: isolate; }
.row::before { content: ""; position: absolute; inset: 0 calc(var(--gut) * -0.5); z-index: -1; background: var(--card); border-radius: var(--r); opacity: 0; transition: opacity 0.25s var(--ease); }
.row:hover::before, .row:focus-visible::before { opacity: 1; }
.row__n { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-3); padding-top: 0.5rem; font-variant-numeric: tabular-nums; }
.row__t { font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.4rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; font-stretch: 90%; text-wrap: balance; }
.row__t::after { content: "\00a0→"; font-weight: 400; color: var(--ink-3); }
.row__d { grid-column: 2; color: var(--ink-2); max-width: 34em; }
/* Kolečko se šipkou jen na širokém okně; na telefonu je šipka za názvem a text má celou šířku. */
.row__go { display: none; justify-self: end; place-items: center; width: 3rem; height: 3rem; border: 1px solid var(--line); border-radius: 999px; transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease); }
.row__go svg { width: 1.1rem; height: 1.1rem; }
.row:hover .row__go { background: var(--forest); border-color: var(--forest); color: var(--paper); transform: rotate(-45deg); }
@media (min-width: 60rem) {
  .row { grid-template-columns: 4rem minmax(0, 5fr) minmax(0, 6fr) 3rem; gap: 2rem; padding: 1.6rem 0; align-items: center; }
  .row__n { padding-top: 0; }
  .row__t::after { content: none; }
  .row__d { grid-column: 3; }
  .row__go { display: grid; grid-column: 4; }
}

/* O mně na úvodní stránce */
.about { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.about__fig { position: relative; width: min(100% - 1rem, 24rem); margin-left: 1rem; }
.about__fig::before { content: ""; position: absolute; inset: 1rem 1rem -1rem -1rem; background: var(--hi); border-radius: var(--r-lg); }
.about__text { display: grid; gap: 1.25rem; justify-items: start; }
.about__text .h2 { margin-bottom: 0.25rem; }
@media (min-width: 60rem) {
  .about { grid-template-columns: minmax(0, 4.2fr) minmax(0, 7fr); gap: clamp(3rem, 7vw, 7rem); }
  .about__fig { width: calc(100% - 1rem); }
}

/* Tmavý pás */
.band { margin-inline: clamp(0.5rem, 1.5vw, 1.5rem); padding-block: var(--sec); background: var(--forest); color: var(--on-forest); border-radius: var(--r-lg); }
.band .label { color: var(--on-forest-2); }
.band .mark { color: var(--hi); }
.band .h2 em { color: var(--hi); }
.band__grid { display: grid; gap: 2rem; }
.band__item { display: grid; gap: 0.6rem; align-content: start; padding-top: 1.25rem; border-top: 1px solid color-mix(in srgb, var(--on-forest) 28%, transparent); }
.band__item h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.band__item p { color: var(--on-forest-2); }
.band__item a { color: var(--on-forest); }
@media (min-width: 60rem) { .band__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }

/* Zkušenosti */
.exp { border-top: 1px solid var(--ink); }
.exp__row { display: grid; gap: 0.35rem 1.5rem; grid-template-columns: 2.5rem minmax(0, 1fr); padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.exp__n { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-3); padding-top: 0.3rem; font-variant-numeric: tabular-nums; }
.exp__t { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem); line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; font-stretch: 92%; }
.exp__d { grid-column: 2; color: var(--ink-2); max-width: 36em; }
@media (min-width: 60rem) {
  .exp__row { grid-template-columns: 4rem minmax(0, 4fr) minmax(0, 7fr); gap: 2rem; align-items: baseline; }
  .exp__d { grid-column: 3; }
}

/* Kroky */
.steps { display: grid; gap: 1.75rem; counter-reset: step; }
.step { display: grid; gap: 0.6rem; align-content: start; padding-top: 1.25rem; border-top: 1px solid var(--ink); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.06em; color: var(--forest); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.step p { color: var(--ink-2); }
@media (min-width: 42rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; } }
@media (min-width: 60rem) { .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sec__more { margin-top: clamp(2rem, 4vw, 3rem); }

/* Výzva na konci */
.cta { padding-block: var(--sec); border-top: 1px solid var(--line); }
.cta__in { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); justify-items: start; }
.cta__mail { font-size: clamp(1.35rem, 0.9rem + 2.3vw, 2.6rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; font-stretch: 90%; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; overflow-wrap: anywhere; }
.cta__mail:hover { color: var(--forest); }
.cta p { color: var(--ink-2); max-width: 34em; }

/* ---------- Patička ---------- */

.ftr { background: var(--ink); color: #e9e7df; padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.ftr a { text-decoration: none; }
.ftr a:hover { text-decoration: underline; }
.ftr__top { display: grid; gap: 2.5rem; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.ftr__logo svg { width: 12rem; height: auto; color: #fff; }
.ftr__claim { margin-top: 1rem; max-width: 22em; color: #a9ab9f; }
.ftr h2 { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: #a9ab9f; margin-bottom: 0.9rem; }
.ftr__list { display: grid; gap: 0.1rem; }
.ftr__list a { display: inline-flex; align-items: center; min-height: 2.25rem; }
/* jazyky (dva a více dalších): řádek nad zákonnými údaji, aktuální zlatě */
.ftr__langs { display: flex; flex-wrap: wrap; gap: 0 1.5rem; padding-bottom: 1rem; }
.ftr__langs a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.ftr__langs a[aria-current] { color: var(--hi); font-weight: 600; }
.ftr__legal { display: grid; gap: 1rem; padding-top: 1.75rem; border-top: 1px solid #33352f; font-size: 0.875rem; line-height: 1.55; color: #a9ab9f; }
.ftr__legal p { max-width: 62em; }
@media (min-width: 60rem) {
  .ftr__top { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 3rem; }
  .ftr__legal { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}

/* ---------- Podstránky ---------- */

.phero { display: grid; gap: clamp(1.1rem, 2.2vw, 1.75rem); padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3rem, 7vw, 6rem); justify-items: start; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-2); }
.crumbs a { text-decoration: none; display: inline-flex; align-items: center; min-height: 1.75rem; }
.crumbs a:hover { text-decoration: underline; }
.phero--photo { align-items: end; }
.phero__fig { position: relative; width: min(100% - 1rem, 22rem); margin: 1rem 1rem 1rem 0; }
.phero__fig::before { content: ""; position: absolute; inset: 1rem -1rem -1rem 1rem; background: var(--forest); border-radius: var(--r-lg); }
.contact__mail { margin-top: 1rem; }
.contact__id .blk__t { margin-bottom: 1rem; }
.phero__text { display: grid; gap: clamp(1.1rem, 2.2vw, 1.75rem); justify-items: start; }
@media (min-width: 60rem) {
  .phero--photo { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(3rem, 6vw, 6rem); }
  .phero__fig { width: 100%; justify-self: end; margin: 0 1rem 1rem 0; }
}

.blk { display: grid; gap: 1.25rem; padding-block: clamp(2.25rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.blk:first-child { border-top-color: var(--ink); }
.blk__t { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 600; font-stretch: 90%; text-wrap: balance; }
.blk__c { display: grid; gap: 1.1rem; min-width: 0; }
.blk__c > p { max-width: 40em; color: var(--ink-2); }
.blk__c > p strong { color: var(--ink); }
.blk__c a { text-decoration: underline; }
.blk__c a:hover { color: var(--forest); }
@media (min-width: 60rem) {
  .blk { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem; }
  .blk__t { position: sticky; top: calc(var(--hdr) + 1.5rem); align-self: start; }
}

/* Číslovaný seznam */
.nlist { counter-reset: n; border-top: 1px solid var(--line); }
.nlist li { counter-increment: n; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; line-height: 1.45; }
.nlist li::before { content: counter(n, decimal-leading-zero); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.06em; color: var(--forest); padding-top: 0.25rem; font-variant-numeric: tabular-nums; }

/* Karty */
.cards { display: grid; gap: 1rem; }
@media (min-width: 42rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: grid; gap: 0.5rem; align-content: start; padding: 1.5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.card h3 { font-size: 1.2rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.card p { color: var(--ink-2); font-size: 1rem; }

/* Vstupní služba s cenou (blok „price“): výrazná karta se stínem v barvě lesa jako rámečky fotek */
.price { display: grid; gap: 1rem; justify-items: start; margin: 0 0.75rem 0.75rem 0; padding: clamp(1.5rem, 3.5vw, 2.25rem); background: var(--card); border: 1px solid var(--forest); border-radius: var(--r-lg); box-shadow: 0.75rem 0.75rem 0 var(--forest); }
.price__name { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; font-stretch: 92%; text-wrap: balance; }
.price__text { color: var(--ink-2); max-width: 40em; }
.price__foot { display: grid; gap: 1.5rem; width: 100%; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.price__sum { display: grid; gap: 0.6rem; }
.price__amount { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem); line-height: 1; letter-spacing: -0.035em; font-weight: 600; font-stretch: 90%; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price__note { color: var(--ink-2); font-size: 0.9375rem; }
/* tlačítko jako ve výzvě dole: bez podtržení a změny barvy, které mají odkazy v textu bloku */
.price .btn { justify-self: start; text-decoration: none; }
.price .btn:hover { color: var(--paper); }
@media (min-width: 42rem) { .price__foot { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }

/* Související obory (blok „related“): řádky oborů jako na úvodu (bez podtržení odkazů v textu bloku), menší nadpis */
.blk__c > .rows .row { text-decoration: none; }
.blk__c > .rows .row:hover { color: inherit; }
.blk__c > .rows .row__t { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem); }

/* Poznámka */
.note { display: grid; gap: 0.6rem; padding: 1.5rem 1.75rem; background: var(--paper-2); border-radius: var(--r); }
.note p { max-width: 40em; }

/* Údaje */
.kv { border-top: 1px solid var(--line); }
.kv div { display: grid; gap: 0.15rem 1.5rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.kv dt { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); padding-top: 0.25rem; }
.kv dd { overflow-wrap: anywhere; }
@media (min-width: 42rem) { .kv div { grid-template-columns: 11rem minmax(0, 1fr); } }

/* Změny */
.log { border-top: 1px solid var(--line); }
.log li { display: grid; gap: 0.25rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.log time { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em; color: var(--forest); padding-top: 0.2rem; font-variant-numeric: tabular-nums; }
@media (min-width: 42rem) { .log li { grid-template-columns: 11rem minmax(0, 1fr); } }

/* Časté otázky (blok „faq“): otázka a odpověď pod sebou, viditelně */
.faq { border-top: 1px solid var(--line); }
.faq__i { display: grid; gap: 0.4rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.faq__i h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; text-wrap: balance; }
.faq__i p { color: var(--ink-2); max-width: 40em; }

/* ---------- Články ---------- */
/* Seznam: řádky jako obory na úvodu; vlevo datum a obor, vpravo nadpis a úvod, na širokém okně kolečko se šipkou */
.posts { border-top: 1px solid var(--ink); }
.post { position: relative; display: grid; gap: 0.6rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); text-decoration: none; isolation: isolate; }
.post::before { content: ""; position: absolute; inset: 0 calc(var(--gut) * -0.5); z-index: -1; background: var(--card); border-radius: var(--r); opacity: 0; transition: opacity 0.25s var(--ease); }
.post:hover::before, .post:focus-visible::before { opacity: 1; }
.post__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.8125rem; line-height: 1.4; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); }
.post__meta time { color: var(--forest); font-variant-numeric: tabular-nums; }
.post__draft { color: var(--ink); background: var(--hi); padding: 0 0.5rem; border-radius: 999px; }
.post__t { font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.4rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; font-stretch: 90%; text-wrap: balance; max-width: 22em; }
.post__t em { font-family: var(--serif); font-style: italic; font-weight: 400; font-stretch: normal; letter-spacing: -0.01em; }
.post__d { color: var(--ink-2); max-width: 40em; }
.post:hover .row__go { background: var(--forest); border-color: var(--forest); color: var(--paper); transform: rotate(-45deg); }
.posts__feed { margin-top: 1.75rem; }
@media (min-width: 60rem) {
  .post { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) 3rem; column-gap: 2rem; padding: 2rem 0; }
  .post__meta { grid-column: 1; grid-row: 1 / span 2; flex-direction: column; align-items: flex-start; padding-top: 0.6rem; }
  .post__t, .post__d { grid-column: 2; }
  .post .row__go { display: grid; grid-column: 3; grid-row: 1 / span 2; align-self: center; }
}

/* Článek: hlavička přes celou šířku, text v jednom sloupci; na širokém okně začíná tam, kde obsah bloků podstránek */
.art { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); padding-block: clamp(2rem, 5vw, 4.5rem) var(--sec); }
.art__head { display: grid; gap: clamp(1.1rem, 2.2vw, 1.5rem); justify-items: start; }
.crumbs__sep { color: var(--ink-3); font-weight: 400; }
.art__draft { padding: 0.45rem 0.9rem; background: var(--hi); color: var(--forest-2); border-radius: 999px; font-size: 0.875rem; font-weight: 600; }
.art__t { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; font-stretch: 88%; text-wrap: balance; max-width: 18em; }
.art__t em, .art__sec h2 em, .art__offer h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; font-stretch: normal; letter-spacing: -0.015em; font-size: 1.06em; line-height: 0.9; }
.byline { display: flex; align-items: center; gap: 0.9rem; }
.byline__pic, .author__pic { flex: none; overflow: hidden; border-radius: 50%; background: var(--paper-2); }
.byline__pic { width: 3.5rem; height: 3.5rem; }
.byline__pic img, .author__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.byline__txt { display: grid; gap: 0.15rem; line-height: 1.35; }
.byline__txt > a { justify-self: start; font-weight: 600; text-decoration: none; }
.byline__txt > a:hover { text-decoration: underline; }
.byline__dates { display: flex; flex-wrap: wrap; gap: 0 1rem; font-size: 0.9375rem; color: var(--ink-3); }
.byline__dates time { font-variant-numeric: tabular-nums; }

.art__body { display: grid; gap: clamp(2rem, 4vw, 2.75rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--ink); }
.art__sec { display: grid; gap: 1rem; max-width: 42rem; min-width: 0; }
.art__sec h2, .art__offer h2 { font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 600; font-stretch: 90%; text-wrap: balance; }
.art__sec > p, .art__list { font-size: 1.125rem; line-height: 1.65; }
.art__sec a { text-decoration: underline; }
.art__sec a:hover { color: var(--forest); }
.art__list { display: grid; gap: 0.6rem; }
.art__list li { position: relative; padding-left: 1.75rem; }
.art__list li::before { content: ""; position: absolute; left: 0.15rem; top: 0.8em; width: 0.75rem; height: 2px; background: var(--forest); }
.art__list--n { counter-reset: n; }
.art__list--n li { counter-increment: n; padding-left: 2.5rem; }
.art__list--n li::before { content: counter(n, decimal-leading-zero); top: 0.3em; width: auto; height: auto; background: none; font-size: 0.875rem; line-height: 1.4; font-weight: 600; letter-spacing: 0.06em; color: var(--forest); font-variant-numeric: tabular-nums; }
.art__note { display: grid; gap: 0.75rem; padding: 1.5rem 1.75rem; background: var(--paper-2); border-radius: var(--r); }
.art__note p { font-size: 1.0625rem; line-height: 1.6; }
.art__table { overflow-x: auto; }
.art__table table { width: 100%; min-width: 30rem; border-collapse: collapse; font-size: 1rem; line-height: 1.45; }
.art__table caption { padding-bottom: 0.75rem; text-align: left; color: var(--ink-2); }
.art__table th, .art__table td { padding: 0.8rem 1rem 0.8rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.art__table thead th { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); border-bottom-color: var(--ink); }
.art__table tbody th { font-weight: 600; }

.art__offer { display: grid; gap: 1.25rem; max-width: 46rem; }
.art__offer > p { max-width: 40em; color: var(--ink-2); font-size: 1.125rem; }
.author { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: start; max-width: 42rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.author__pic { width: 5.5rem; height: 5.5rem; }
.author__txt { display: grid; gap: 0.5rem; justify-items: start; }
.author__name { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.author__name a { text-decoration: none; }
.author__name a:hover { text-decoration: underline; }
.author__txt p:not(.author__name) { color: var(--ink-2); }
.art__origin { max-width: 42rem; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-3); }
@media (min-width: 60rem) {
  .art__body { padding-left: calc((100% - 2rem) / 3 + 2rem); }
  .art__offer, .author, .art__origin { margin-left: calc((100% - 2rem) / 3 + 2rem); }
}

/* ---------- Kontakt a formulář ---------- */

.contact { display: grid; gap: clamp(2.5rem, 6vw, 5rem); padding-bottom: var(--sec); }
.contact__side { display: grid; gap: 2rem; align-content: start; }
.form { display: grid; gap: 1.1rem; padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.875rem; font-weight: 600; }
.field label span { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea, .field select { width: 100%; padding: 0.85rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 0.75rem; transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { min-height: 9.5rem; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; min-width: 0; padding-right: 2.75rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%233d413a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 0.75rem; text-overflow: ellipsis; cursor: pointer; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink-3); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px color-mix(in srgb, var(--forest) 22%, transparent); }
.form__hp { position: absolute; left: -9999px; }
.form__foot { display: grid; gap: 1rem; justify-items: start; margin-top: 0.4rem; }
.form__fine { font-size: 0.875rem; line-height: 1.5; color: var(--ink-3); }
.form__fine a { text-decoration: underline; }
.form__msg { padding: 0.9rem 1rem; border-radius: 0.75rem; background: var(--paper-2); font-weight: 500; }
.form__msg[hidden] { display: none; }
@media (min-width: 60rem) { .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }

/* ---------- 404 ---------- */
.lost { display: grid; gap: 1.5rem; justify-items: start; padding-block: clamp(4rem, 12vw, 10rem); }

/* ---------- Japonština a čínština ---------- */
/* Latinku dál kreslí Instrument Sans, znaky CJK systémová písma (nic se nestahuje). Nadpisy bez zúžení a bez záporného
   prostrkání, s vyšším řádkováním; zvýrazněný konec nadpisu je stejné písmo v barvě, ne patková kurzíva. */
/* Windows: „Yu Gothic UI“ je zúžené písmo pro ovládací prvky a běžný řez Yu Gothic je moc tenký, proto řez Medium. */
/* Windows: běžný řez Yu Gothic je moc tenký a řez Medium nemá tučnou podobu. Proto vlastní rodina ze dvou místních
   řezů: Medium pro běžný text, Bold pro nadpisy a tučné. (Písmo se nestahuje, bere se z počítače návštěvníka.) */
@font-face { font-family: "Yu Gothic W"; src: local("Yu Gothic Medium"), local("YuGothic-Medium"); font-weight: 100 500; }
@font-face { font-family: "Yu Gothic W"; src: local("Yu Gothic Bold"), local("YuGothic-Bold"); font-weight: 600 900; }
:lang(ja) { font-family: "Instrument Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic W", "Yu Gothic", YuGothic, Meiryo, "Noto Sans JP", ui-sans-serif, system-ui, sans-serif; }
:lang(zh) { font-family: "Instrument Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", ui-sans-serif, system-ui, sans-serif; }
:is(:lang(ja), :lang(zh)) :is(.display, .h2, .row__t, .exp__t, .blk__t, .post__t, .art__t, .art__sec h2, .cta__mail, .band__item h3, .step h3, .card h3, .menu__nav li a) { letter-spacing: 0; font-stretch: normal; }
:is(:lang(ja), :lang(zh)) :is(.display, .h2, .row__t, .exp__t, .blk__t) { line-height: 1.25; }
/* Nadpis s určenými frázemi (src/cjk/fraze.mjs) se láme jen mezi nimi (<wbr>); fráze delší než řádek se zlomí kdekoli. */
.kb { word-break: keep-all; overflow-wrap: anywhere; }
/* znaky CJK jsou plné čtverce: velké nadpisy o pětinu menší než v latince */
:is(:lang(ja), :lang(zh)) .display { font-size: clamp(2.2rem, 1rem + 4.8vw, 4.6rem); }
:is(:lang(ja), :lang(zh)) .display--sm { font-size: clamp(2rem, 1rem + 3.8vw, 3.8rem); }
:is(:lang(ja), :lang(zh)) .h2 { font-size: clamp(1.7rem, 1rem + 2.6vw, 3rem); }
:is(:lang(ja), :lang(zh)) em { font-style: normal; }
/* zvýrazněný konec nadpisu drží pohromadě: když se nevejde za první část, přejde na nový řádek celý */
:is(:lang(ja), :lang(zh)) :is(.display, .h2) em { display: inline-block; }
:is(:lang(ja), :lang(zh)) :is(.display, .h2) em { font-family: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; letter-spacing: 0; color: var(--forest); }
:is(:lang(ja), :lang(zh)) .band .h2 em { color: var(--hi); }
:is(:lang(ja), :lang(zh)) :is(.label, .crumbs, .kv dt, .ftr h2) { letter-spacing: 0.04em; }

/* ---------- Pohyb ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Tisk a archivní snímky ---------- */
@media print {
  .hdr { position: static; }
  .burger, .menu, .hdr__cta, .lang, .langs { display: none !important; }
  .band, .ftr { background: none; color: var(--ink); }
  .band .h2 em, .band__item p, .ftr__legal, .ftr__claim { color: var(--ink); }
}
