/* ==========================================================================
   matyvanes.cz – ručně psané CSS, žádný framework.
   Tmavě modrý podklad, červené akcenty, IBM Plex (Serif pro titulky,
   Sans pro text, Mono pro popisky a čísla).
   ========================================================================== */

/* ---------- fonty (self-hosted, latin + latin-ext kvůli češtině) ---------- */
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-serif-latin-ext-400-normal.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: "IBM Plex Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-serif-latin-400-normal.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; }
@font-face { font-family: "IBM Plex Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-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: "IBM Plex Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-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; }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-serif-latin-ext-500-normal.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: "IBM Plex Serif"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-serif-latin-500-normal.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; }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-serif-latin-ext-600-normal.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: "IBM Plex Serif"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-serif-latin-600-normal.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; }

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-ext-400-normal.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: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.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; }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-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: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-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; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-ext-500-normal.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: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.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; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-ext-600-normal.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: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.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; }

@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-ext-400-normal.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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.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; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-ext-500-normal.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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.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; }

/* ---------- proměnné ---------- */
:root {
	--bg: #0b1627;
	--bg-2: #101f36;
	--bg-3: #16284a;
	--ink: #ebe6da;
	--ink-2: #a9b1c1;
	--ink-3: #6f7a8e;
	--line: rgba(235, 230, 218, 0.14);
	--line-strong: rgba(235, 230, 218, 0.3);
	--red: #e5484d;
	--red-2: #ff6b6b;
	--red-dim: rgba(229, 72, 77, 0.16);
	--green: #5fbf8a;
	--amber: #e3b341;

	--serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
	--sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--max: 1120px;
	--gutter: clamp(1.25rem, 4vw, 3rem);
	--section-gap: clamp(3rem, 6vw, 5rem);
}

/* ---------- reset (minimální) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 17px/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-feature-settings: "kern" 1, "liga" 1;
}
@media (min-width: 960px) { body { font-size: 18px; } }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -0.005em; text-wrap: balance; }
p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; }
[id] { scroll-margin-top: 5rem; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--red-2); text-decoration-color: currentColor; }
b, strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* ---------- utility ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 0.86em; letter-spacing: 0.005em; }
.muted { color: var(--ink-2); }
.small { font-size: 0.85rem; }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--red); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 0.5rem; }
.ext { font-family: var(--mono); font-size: 0.7em; vertical-align: super; color: var(--red); margin-left: .1em; }

.eyebrow { color: var(--red); margin-bottom: 1rem; }
.eyebrow::before { content: "— "; color: var(--ink-3); }

.link-arrow { font-family: var(--mono); font-size: .95rem; font-weight: 500; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--red); padding-bottom: .15rem; display: inline-block; }
.link-arrow::after { content: " →"; color: var(--red); display: inline-block; transition: transform .2s; }
.link-arrow--down::after { content: " ↓"; }
.link-arrow:hover { color: var(--ink); border-bottom-color: var(--ink); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow--down:hover::after { transform: translateY(3px); }
.link-arrow + .link-arrow { margin-left: 1.75rem; }

.btn { font: 500 .95rem var(--mono); background: var(--red); color: #fff; border: 0; padding: .85rem 1.4rem; border-radius: 2px; cursor: pointer; transition: background .15s, transform .05s; }
.btn:hover { background: #c73a3f; }
.btn:active { transform: translateY(1px); }

.dot { display: inline-block; width: .6em; height: .6em; border-radius: 50%; margin-right: .4em; vertical-align: -.02em; background: var(--amber); box-shadow: 0 0 0 3px rgba(227, 179, 65, .18); }
.dot--free { background: var(--green); box-shadow: 0 0 0 3px rgba(95, 191, 138, .2); animation: pulse 2.4s ease-out infinite; }
.dot--busy { background: var(--red); box-shadow: 0 0 0 3px var(--red-dim); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95, 191, 138, .45); } 70% { box-shadow: 0 0 0 8px rgba(95, 191, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 191, 138, 0); } }

.flash { margin-top: 1.5rem; padding: .9rem 1.1rem; border-left: 2px solid var(--red); background: var(--bg-2); }
.flash--success { border-left-color: var(--green); }
.flash--warning { border-left-color: var(--amber); }

/* ---------- hlavička ---------- */
.site-head { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: rgba(11, 22, 39, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-head__in { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; padding: 1.1rem 0; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.brand::after { content: "."; color: var(--red); }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; font-family: var(--mono); font-size: .86rem; }
.site-nav a { text-decoration: none; color: var(--ink-2); padding-bottom: .15rem; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); border-bottom-color: var(--red); }
.site-nav__cta { color: var(--ink) !important; }
.site-nav__cta span { color: var(--red); }
@media (max-width: 640px) {
	.site-head__in { padding: .9rem 0; }
	.site-nav { gap: .25rem 1.1rem; font-size: .8rem; }
}

/* ---------- úvod (hero) ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero__title { font-size: clamp(2.3rem, 5.6vw, 4.4rem); font-weight: 500; line-height: 1.06; margin-bottom: 1.5rem; max-width: 14ch; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; max-width: 58ch; color: var(--ink); margin-bottom: 1.75rem; }
.hero__lead a { color: var(--ink); }
.hero__status { margin-bottom: 2rem; color: var(--ink); }
.hero__status .muted { margin-left: .5rem; }
.hero__photo { position: relative; margin-top: .5rem; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.92) contrast(1.02); position: relative; z-index: 1; }
.hero__photo::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; aspect-ratio: 4 / 5; transform: translate(12px, 12px); border: 1px solid var(--red); z-index: 0; }
.hero__photo figcaption { margin-top: 1.25rem; }
@media (max-width: 800px) {
	.hero { grid-template-columns: 1fr; }
	.hero__photo { order: -1; max-width: 300px; }
	.hero__title { max-width: none; }
}

/* ---------- sekce ---------- */
.section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); border-top: 1px solid var(--line); padding: var(--section-gap) 0; }
.section__label { color: var(--ink-3); position: sticky; top: 5.5rem; align-self: start; }
.section__num { color: var(--red); margin-right: .5em; }
.section__title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 500; line-height: 1.25; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); max-width: 28ch; }
.section__more { margin-top: 2.25rem; }
@media (max-width: 800px) {
	.section { grid-template-columns: 1fr; gap: 1rem; }
	.section__label { position: static; }
}

/* služby */
.svc { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.svc:first-of-type { border-top: 0; padding-top: 0; }
.svc h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.svc p { max-width: 64ch; }
.svc__tags { color: var(--ink-3); margin-top: .75rem; }

/* projekty */
.project { padding: 1.6rem 0; border-top: 1px solid var(--line); position: relative; }
.project:first-child { border-top: 0; padding-top: 0; }
.project::before { content: ""; position: absolute; left: calc(-1 * clamp(1rem, 2vw, 1.5rem)); top: 1.9rem; width: 0; height: 1.2rem; background: var(--red); transition: width .2s; }
.project:first-child::before { top: .3rem; }
.project:hover::before { width: 3px; }
.project__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1.5rem; margin-bottom: .6rem; }
.project__head h3 { font-size: 1.35rem; }
.project__head h3 a { text-decoration: none; }
.project__head h3 a:hover { color: var(--ink); text-decoration: underline; }
.project__meta { color: var(--ink-3); }
.project p { max-width: 66ch; }
.project__tags { color: var(--ink-3); margin-top: .75rem; }

/* ceník */
.prices { display: block; }
.prices__row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) auto; gap: .35rem 1.75rem; padding: 1.25rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.prices__row:first-child { border-top: 0; padding-top: 0; }
.prices__row dt { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }
.prices__desc { color: var(--ink-2); font-size: .95rem; }
.prices__price { white-space: nowrap; color: var(--ink); text-align: right; }
.prices__cta { white-space: nowrap; text-decoration: none; color: var(--ink-3); margin-left: .4rem; }
.prices__cta:hover { color: var(--red-2); }
.prices__note { margin-top: 1.5rem; font-size: .95rem; max-width: 66ch; }
@media (max-width: 700px) {
	.prices__row { grid-template-columns: 1fr auto; }
	.prices__desc { grid-column: 1 / -1; }
}

/* zápisky – seznam */
.postlist { list-style: none; }
.postlist__item { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: .25rem 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.postlist__item:first-child { border-top: 0; padding-top: 0; }
.postlist__item h2, .postlist__item h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.postlist__item h2 a, .postlist__item h3 a { text-decoration: none; }
.postlist__item h2 a:hover, .postlist__item h3 a:hover { text-decoration: underline; color: var(--ink); }
.postlist__item p { font-size: .98rem; }
.postlist__meta { margin-top: .4rem; }
.postlist__meta a { color: var(--ink-2); }
.postlist--full .postlist__item { padding: 1.75rem 0; }
.postlist--full .postlist__item h2 { font-size: 1.55rem; }
@media (max-width: 640px) {
	.postlist__item { grid-template-columns: 1fr; }
}

.series-nav { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.series-nav a { text-decoration: none; border-bottom: 1px solid transparent; }
.series-nav a:hover, .series-nav a.is-active { border-bottom-color: var(--red); color: var(--ink); }

/* teaser váhy na úvodu */
.weight-teaser { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px dashed var(--line-strong); }
.weight-teaser__nums { display: flex; flex-wrap: wrap; gap: .5rem 2.5rem; margin-top: .5rem; font-size: .95rem; }
.weight-teaser__nums b { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; margin-right: .3rem; }
.weight-teaser__diff.is-down b { color: var(--green); }

/* kontakt */
.contact__mail { margin-bottom: .5rem; }
.contact__mail a { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.2rem); text-decoration-thickness: 1px; }
.contact__phone { margin-bottom: 1rem; }
.contact__facts { display: flex; flex-wrap: wrap; gap: .5rem 2.5rem; margin-top: 2rem; color: var(--ink-2); }
.contact__facts div { display: flex; gap: .6rem; }
.contact__facts dt { color: var(--ink-3); }
.contact__facts dd { margin: 0; }
.contact__facts dd a { color: var(--ink); }

/* ---------- podstránky ---------- */
.page-head { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.1; max-width: 20ch; margin-bottom: 1.25rem; }
.page-head .lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 62ch; color: var(--ink-2); }
.page-head .lead a { color: var(--ink); }
.page-head--center { text-align: center; padding-bottom: var(--section-gap); }
.page-head--center h1, .page-head--center .lead { margin-inline: auto; }
.page-head--center .section__more { margin-top: 2rem; }
/* hlavička podstránky s fotkou vpravo – stejný princip jako úvod (červený odsazený rámeček) */
.page-head--split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 2rem clamp(2rem, 6vw, 5rem); align-items: start; }
.page-head__img { position: relative; margin-top: 1.25rem; }
.page-head__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center; filter: saturate(.9); position: relative; z-index: 1; }
.page-head__img--zdravi img { object-position: 60% center; }
.page-head__img::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; aspect-ratio: 3 / 2; transform: translate(12px, 12px); border: 1px solid var(--red); }
.page-head__img figcaption { margin-top: 1.25rem; }
@media (max-width: 800px) { .page-head--split { grid-template-columns: 1fr; } .page-head__img { max-width: 420px; margin-top: .5rem; } }

/* kroky (služby) */
.steps { list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: .25rem 1rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); color: var(--red); font-size: .95rem; padding-top: .35rem; grid-row: 1 / span 2; }
.steps h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.steps p { max-width: 62ch; color: var(--ink-2); }

/* faq */
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { cursor: pointer; padding: 1.1rem 0; font-family: var(--serif); font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--red); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.25rem; max-width: 64ch; color: var(--ink-2); }

/* textové stránky + článek */
.textpage { max-width: 74ch; }
.textpage__updated { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.post { max-width: 74ch; padding-top: clamp(2.5rem, 6vw, 5rem); }
.post__head { margin-bottom: 2.5rem; }
.post__meta { margin-bottom: 1rem; }
.post__title { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.12; margin-bottom: 1.25rem; }
.post__perex { font-size: 1.2rem; color: var(--ink-2); line-height: 1.55; }
.post__cover { margin: 0 0 2.5rem; }
.post__cover img { width: 100%; }
.post__cover figcaption { margin-top: .6rem; }
.post__foot { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.post__nav-link { text-decoration: none; display: grid; gap: .2rem; font-family: var(--serif); font-size: 1.1rem; }
.post__nav-link--next { text-align: right; grid-column: 2; }
.post__nav-link:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 560px) { .post__nav { grid-template-columns: 1fr; } .post__nav-link--next { grid-column: 1; text-align: left; } }

.prose { font-size: 1.08rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--red); }
.prose blockquote { border-left: 2px solid var(--red); padding: .25rem 0 .25rem 1.25rem; color: var(--ink-2); font-style: italic; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--bg-2); padding: .1em .4em; border-radius: 2px; }
.prose pre { background: var(--bg-2); border-left: 2px solid var(--red); padding: 1rem 1.25rem; overflow-x: auto; font-size: .9rem; line-height: 1.55; }
.prose pre code { background: none; padding: 0; font-size: inherit; }
.prose img { margin: 1.5rem 0; }
.prose hr { width: 3rem; border-top: 2px solid var(--red); margin: 2.5rem 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .5rem .75rem .5rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--mono); font-weight: 500; color: var(--ink-2); font-size: .85rem; }
.prose em { color: var(--ink-2); }
.prose a { color: var(--ink); }
.prose--narrow { font-size: 1.02rem; }
.prose--narrow h2 { font-size: 1.35rem; }
.prose--lead { font-size: inherit; }
.prose--lead > * + * { margin-top: .8em; }

/* ---------- formulář ---------- */
.order { padding-bottom: var(--section-gap); }
.form { max-width: 44rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.5rem; }
.field { display: grid; gap: .45rem; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field__label { color: var(--ink-2); font-size: .82rem; }
.field__input { font: inherit; color: var(--ink); background: rgba(255, 255, 255, .03); border: 1px solid var(--line-strong); border-radius: 2px; padding: .7rem .85rem; width: 100%; transition: border-color .15s, background .15s; }
.field__input:focus { outline: none; border-color: var(--red); background: rgba(255, 255, 255, .05); }
.field__input::placeholder { color: var(--ink-3); }
select.field__input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
select.field__input option { background: var(--bg-2); color: var(--ink); }
textarea.field__input { resize: vertical; min-height: 10rem; line-height: 1.55; }
.field__hint { margin-top: .1rem; }
.field__error { color: var(--red-2); font-size: .88rem; }
.field--hp { position: absolute !important; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.check { display: flex; gap: .75rem; align-items: flex-start; cursor: pointer; font-size: .95rem; }
.check input { margin: .3rem 0 0; width: 1.05rem; height: 1.05rem; accent-color: var(--red); flex: none; }
.form__errors { list-style: none; margin-bottom: 1.5rem; padding: .9rem 1.1rem; border-left: 2px solid var(--red); background: var(--red-dim); }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .5rem; }
.cf-turnstile { min-height: 65px; }
@media (max-width: 600px) { .form__grid { grid-template-columns: 1fr; } }

/* ---------- hubnutí ---------- */
.weight { padding-bottom: var(--section-gap); }
.page-health .weight__stats { margin-bottom: 2rem; }
.weight__stats { display: flex; flex-wrap: wrap; gap: 1.5rem 3.5rem; margin-bottom: 2.5rem; }
.weight__stats dt { margin-bottom: .25rem; }
.weight__stats dd { margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 500; line-height: 1.1; }
.weight__stats .is-down dd { color: var(--green); }
.weight__chart { max-width: 100%; }
.chart { width: 100%; height: auto; aspect-ratio: 720 / 280; overflow: visible; font-family: var(--mono); }
.chart__grid { stroke: var(--line); stroke-width: 1; }
.chart__goal { stroke: var(--green); stroke-width: 1; stroke-dasharray: 4 5; }
.chart__line { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart__dot { fill: var(--bg); stroke: var(--red); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart__dot:hover { fill: var(--red); }
.chart__label { fill: var(--ink-3); font-size: 11px; }
.chart__label--x { text-anchor: middle; }
.chart__label--end { text-anchor: end; fill: var(--green); }
.chart__label--goal { text-anchor: start; fill: var(--green); }
.chart--bars { aspect-ratio: 720 / 220; }
.chart__bar { fill: var(--red); opacity: .85; }
.chart__bar--hit { fill: var(--green); }
.chart__bar--today { opacity: 1; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart__bar--empty { fill: var(--ink-3); opacity: .5; }
.chart__bar:hover { opacity: 1; }
.weight__chart figcaption { margin-top: 1rem; }
@media (max-width: 600px) { .chart { aspect-ratio: 720 / 360; } .chart--bars { aspect-ratio: 720 / 300; } .chart__label { font-size: 14px; } }

/* ---------- patička ---------- */
.site-foot { border-top: 1px solid var(--line); margin-top: var(--section-gap); padding: 3rem 0 2rem; font-size: .95rem; }
.site-foot__in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-foot__name { font-family: var(--serif); font-size: 1.15rem; margin-bottom: .5rem; }
.site-foot__name::after { content: "."; color: var(--red); }
.site-foot__col p + p { margin-top: .6rem; }
.site-foot__links { display: grid; gap: .3rem; }
.site-foot__links a { text-decoration: none; color: var(--ink-2); width: fit-content; }
.site-foot__links a:hover { color: var(--ink); text-decoration: underline; }
.site-foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
@media (max-width: 700px) { .site-foot__in { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ---------- tisk ---------- */
@media print {
	body { background: #fff; color: #000; font-size: 11pt; }
	.site-head, .site-foot, .skip, .link-arrow, .flash { display: none !important; }
	a { color: #000; text-decoration: none; }
	.prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
