/*
  Masáže Hana Kolínská – design system and presentation site.

  1. Fonts            5. Components (buttons, cards, forms, notices, badges, tables)
  2. Tokens           6. Site chrome (skip link, header, nav, footer)
  3. Base             7. Home page sections
  4. Layout           8. Prose, error pages, utilities, motion, print

  Colours were sampled from the Instagram screenshots in design/. Text pairs are
  WCAG AA (ratios noted next to the tokens). Gold is decorative only – never text on cream.
  The calendar UI reuses the primitives in sections 4–5 (see class names there).
*/

/* 1. Fonts (self-hosted, SIL OFL – licences in static/fonts/) ---------------- */
/* Fraunces: variable, axes opsz 9–144 and wght; large headings use opsz 144 (thin, high contrast). */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext.a04d353989ad.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/fraunces-latin.069cb90e11a3.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: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/marcellus-latin-ext.9d007c152868.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/marcellus-latin.d8d78c8d074b.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: "Jost";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/jost-latin-ext.7f44f6fd229b.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/jost-latin.928f4210aa48.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;
}

/* 2. Tokens ------------------------------------------------------------------ */
:root {
  color-scheme: light;

  /* Brand (sampled) */
  --color-olive: #666245;        /* Instagram tiles; white text on it 6.18:1 */
  --color-olive-600: #57533a;    /* hover */
  --color-olive-700: #4a4632;    /* active, footer; cream text 7.84:1 */
  --color-olive-dark: #524d3b;   /* headings/links on cream 6.99:1 */
  --color-ink: #3b3828;          /* body text on cream 9.73:1 */
  --color-muted: #625e4c;        /* secondary text: cream 5.38, paper 5.88, sand 4.75 */
  --color-cream: #efe9db;        /* page background (price-list screenshot) */
  --color-paper: #f7f3ea;        /* cards, light bands */
  --color-sand: #e2dccb;         /* alternate bands */
  --color-sand-dark: #d9d2bf;
  --color-line: #cfc7b2;         /* decorative dividers (not for essential UI) */
  --color-border: #8a8570;       /* form control borders: 3.06 on cream, 3.7 on white */
  --color-white: #fffef9;
  --color-gold: #c9b06a;         /* decorative accent only */
  --color-on-olive: var(--color-white);
  --color-on-olive-muted: var(--color-cream); /* 5.11:1 on olive */

  /* Feedback (text on its own background ≥ 6:1) */
  --color-info-bg: #eceee4;
  --color-info-border: #8a8570;
  --color-info-text: #3b3828;
  --color-success-bg: #eaf1e3;
  --color-success-border: #6f9a63;
  --color-success-text: #2f5a2a;
  --color-warning-bg: #fbf2dc;
  --color-warning-border: #c9a14a;
  --color-warning-text: #7a5208;
  --color-error-bg: #fbeee9;
  --color-error-border: #c7614f;
  --color-error-text: #9b2c1f;
  --color-danger: #9b2c1f;       /* white text 7.57:1 */
  --color-danger-700: #7f2418;

  /* Calendar states (for calendar.css) */
  --state-free-bg: #f1f5ea;      /* text 7.26:1 */
  --state-free-text: #2f5a2a;
  --state-free-border: #4f7a45;  /* 4.13:1 on cream */
  --state-busy-bg: #d9d2bf;      /* ink 7.81:1 */
  --state-busy-text: #3b3828;
  --state-busy-border: #8a8570;
  --state-closed-bg: #e7e2d6;    /* muted 5.04:1 */
  --state-closed-text: #625e4c;

  /* Context-dependent colours (overridden on olive bands and inside cards) */
  --link-color: var(--color-olive-dark);
  --heading-color: var(--color-olive-dark);
  --focus-color: var(--color-ink);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-caps: "Marcellus", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  /* Shape and space */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(59 56 40 / 0.08);
  --shadow: 0 8px 28px rgb(59 56 40 / 0.1);
  --gutter: 1rem;
  --container: 70rem;
  --container-narrow: 44rem;
  --header-offset: 7rem;         /* sticky header height + breathing room */
  --touch: 2.75rem;              /* 44 px minimum touch target */
  --touch-lg: 3.5rem;            /* 56 px large touch target */
}

@media (min-width: 64rem) {
  :root {
    --gutter: 2rem;
    --header-offset: 5.5rem;
  }
}

/* 3. Base -------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-cream);
  overflow-wrap: break-word;
  -webkit-tap-highlight-color: transparent;
}

main {
  flex: 1 0 auto;
}

main:focus {
  outline: none;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--heading-color);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 1.7rem + 3.5vw, 4rem);
  font-weight: 300;
  line-height: 1.08;
}

/* Large display text: thin, high-contrast optical size (like the Instagram posts). */
h1,
.heading__main,
.brand__top,
.contact__phone {
  font-variation-settings: "opsz" 144;
}

/* Smaller headings: a middle optical size keeps them light but sturdy. */
h2,
h3,
h4,
.price-list__name {
  font-variation-settings: "opsz" 60;
}

h2 {
  font-size: clamp(1.9rem, 1.5rem + 2vw, 2.75rem);
}

h3 {
  font-size: clamp(1.4rem, 1.25rem + 0.6vw, 1.7rem);
}

p,
ul,
ol,
dl {
  margin: 0 0 1em;
}

strong {
  font-weight: 600;
}

a {
  color: var(--link-color);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--color-olive);
  color: var(--color-white);
}

hr {
  border: 0;
  border-top: 1px solid var(--color-line);
  margin: 2rem 0;
}

/* 4. Layout primitives ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(var(--container-narrow) + 2 * var(--gutter));
}

.section {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.section--paper {
  background: var(--color-paper);
}

.section--sand {
  background: var(--color-sand);
}

.section--olive,
.card--olive,
.site-footer {
  --link-color: var(--color-white);
  --heading-color: var(--color-cream);
  --focus-color: var(--color-white);
  color: var(--color-on-olive);
}

.section--olive {
  background: var(--color-olive);
}

/* Vertical rhythm: children spaced by --stack (default 1rem). */
.stack > * {
  margin-block: 0;
}

.stack > * + * {
  margin-block-start: var(--stack, 1rem);
}

/* Horizontal group that wraps: buttons, badges, links. */
.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.cluster--center {
  justify-content: center;
}

.cluster--between {
  justify-content: space-between;
}

/* Responsive card grid: as many ≥ 18rem columns as fit. */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 5. Components -------------------------------------------------------------- */

/* Eyebrow: small spaced capitals above a heading. */
.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-caps);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Wide capitals like "CENÍK" in the price-list post. */
.title-caps {
  font-family: var(--font-caps);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Two-part section heading: "PRVNÍ" + "návštěva". */
.heading {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  margin: 0 0 2rem;
}

.heading__eyebrow {
  font-family: var(--font-caps);
  font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.heading__main {
  font-size: clamp(2.2rem, 1.6rem + 2.8vw, 3.4rem);
  font-weight: 300;
  line-height: 1.05;
}

.heading--center {
  align-items: center;
  text-align: center;
}

.lead {
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3rem);
  line-height: 1.6;
}

.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: currentColor;
}

/* Buttons: <a class="btn btn--primary"> or <button class="btn btn--primary">.
   Variants: --primary --outline --light --outline-light --ghost --danger.
   Sizes: --sm (still 44 px tall) --lg (56 px) --block (full width). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: var(--touch);
  padding: 0.6rem 1.35rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--color-olive);
  border-color: var(--color-olive);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-olive-600);
  border-color: var(--color-olive-600);
}

.btn--primary:active {
  background: var(--color-olive-700);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-olive);
  color: var(--color-olive-dark);
}

.btn--outline:hover {
  background: var(--color-sand);
}

/* For olive backgrounds. */
.btn--light {
  background: var(--color-cream);
  border-color: var(--color-cream);
  color: var(--color-olive-dark);
}

.btn--light:hover {
  background: var(--color-white);
}

.btn--outline-light {
  background: transparent;
  border-color: var(--color-cream);
  color: var(--color-white);
}

.btn--outline-light:hover {
  background: rgb(255 254 249 / 0.12);
}

.btn--ghost {
  background: transparent;
  color: var(--color-olive-dark);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.btn--ghost:hover {
  background: rgb(102 98 69 / 0.08);
  text-decoration: underline;
}

.btn--danger {
  background: var(--color-danger);
  border-color: var(--color-danger);
  color: #fff;
}

.btn--danger:hover {
  background: var(--color-danger-700);
  border-color: var(--color-danger-700);
}

.btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
}

.btn--lg {
  min-height: var(--touch-lg);
  padding: 0.85rem 1.75rem;
  font-size: 1.125rem;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Icon-only on narrow screens; the .btn__label stays for screen readers. */
@media (max-width: 29.99rem) {
  .btn--icon-narrow {
    min-width: var(--touch);
    padding-inline: 0.6rem;
  }

  .btn--icon-narrow .btn__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* Cards */
.card {
  --link-color: var(--color-olive-dark);
  --heading-color: var(--color-olive-dark);
  --focus-color: var(--color-ink);
  padding: clamp(1.25rem, 1rem + 1.2vw, 2rem);
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  color: var(--color-ink);
}

.card > :last-child {
  margin-bottom: 0;
}

.card--olive {
  --link-color: var(--color-white);
  --heading-color: var(--color-cream);
  --focus-color: var(--color-white);
  background: var(--color-olive);
  border-color: var(--color-olive);
  color: var(--color-on-olive);
}

.card--outline {
  background: transparent;
  box-shadow: none;
}

.card__title {
  margin-bottom: 0.4em;
  font-size: clamp(1.5rem, 1.35rem + 0.5vw, 1.75rem);
}

/* Forms. Use .form around Django fields (as_div works) or the explicit classes:
   .field > .field__label + .input + .field__hint + .field__error */
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form {
  display: grid;
  gap: 1.25rem;
  max-width: 36rem;
}

/* :where() keeps this at zero specificity so .form-actions etc. still win. */
:where(.form > div),
.field {
  display: grid;
  gap: 0.4rem;
}

.field__label,
.form label {
  font-weight: 500;
  color: var(--color-ink);
}

.field__hint,
.form .helptext {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.field__error,
.errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 500;
  color: var(--color-error-text);
}

.errorlist.nonfield {
  padding: 0.85rem 1rem;
  background: var(--color-error-bg);
  border: 1px solid var(--color-error-border);
  border-left-width: 6px;
  border-radius: var(--radius);
}

.input,
.form input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="hidden"]),
.form select,
.form textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.9rem;
  font: inherit;
  font-size: 1.0625rem; /* ≥ 16 px: no zoom on iOS */
  color: var(--color-ink);
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.input:hover,
.form input:hover,
.form select:hover,
.form textarea:hover {
  border-color: var(--color-olive);
}

.input:focus-visible,
.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
  border-color: var(--color-olive-dark);
  outline-offset: 1px;
}

textarea.input,
.form textarea {
  min-height: 6rem;
  resize: vertical;
}

.input[aria-invalid="true"],
.form [aria-invalid="true"],
.is-invalid {
  border-color: var(--color-error-border);
  box-shadow: inset 0 0 0 1px var(--color-error-border);
}

.input:disabled,
.form :disabled {
  background: var(--color-paper);
  color: var(--color-muted);
  cursor: not-allowed;
}

::placeholder {
  color: #7d7862;
  opacity: 1;
}

/* Big radio/checkbox tiles, e.g. picking a service:
   <div class="choice-group"><label class="choice"><input type="radio" …>
   <span class="choice__text">Ruční lymfodrenáž <span class="choice__meta">60 min</span></span></label></div> */
.choice-group {
  display: grid;
  gap: 0.6rem;
}

.choice-group--grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: var(--touch-lg);
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
}

.choice:hover {
  border-color: var(--color-olive);
}

.choice input {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  margin: 0;
  accent-color: var(--color-olive);
}

.choice:has(input:checked) {
  background: #f1efe4;
  border-color: var(--color-olive);
  box-shadow: inset 0 0 0 1.5px var(--color-olive);
}

.choice:has(input:focus-visible) {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}

.choice input:focus-visible {
  outline: none;
}

.choice__text {
  display: grid;
}

.choice__meta {
  font-size: 0.925rem;
  font-weight: 400;
  color: var(--color-muted);
}

/* Single checkbox with a large hit area: <label class="checkbox"><input type="checkbox"> Otevřeno</label> */
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: var(--touch);
  font-weight: 500;
  cursor: pointer;
}

.checkbox input {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  margin: 0;
  accent-color: var(--color-olive);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* On phones the buttons fill the width (primary first in the markup). */
@media (max-width: 29.99rem) {
  .form-actions--stack .btn {
    flex: 1 1 100%;
  }
}

/* Notices / alerts: <div class="notice notice--warning" role="status">…</div>.
   Django messages: <ul class="messages"><li class="notice notice--{{ message.tags }}">…</li></ul> */
.notice {
  --notice-bg: var(--color-info-bg);
  --notice-border: var(--color-info-border);
  --notice-text: var(--color-info-text);
  --link-color: var(--notice-text);
  --heading-color: var(--notice-text);
  --focus-color: var(--color-ink);
  padding: 1rem 1.25rem;
  background: var(--notice-bg);
  border: 1px solid var(--notice-border);
  border-left-width: 6px;
  border-radius: var(--radius);
  color: var(--notice-text);
}

.notice > :last-child {
  margin-bottom: 0;
}

.notice--success {
  --notice-bg: var(--color-success-bg);
  --notice-border: var(--color-success-border);
  --notice-text: var(--color-success-text);
}

.notice--warning {
  --notice-bg: var(--color-warning-bg);
  --notice-border: var(--color-warning-border);
  --notice-text: var(--color-warning-text);
}

.notice--error {
  --notice-bg: var(--color-error-bg);
  --notice-border: var(--color-error-border);
  --notice-text: var(--color-error-text);
}

.notice__title {
  margin: 0 0 0.25rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
}

.messages {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.7rem;
  background: var(--color-sand);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-ink);
  white-space: nowrap;
}

.badge--olive {
  background: var(--color-olive);
  border-color: var(--color-olive);
  color: var(--color-white);
}

.badge--free {
  background: var(--state-free-bg);
  border-color: var(--state-free-border);
  color: var(--state-free-text);
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: middle;
}

.table th {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
}

/* Photos (replaceable placeholders, 4:5) */
.photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--color-sand);
}

.photo--arch {
  border-radius: 50% 50% var(--radius) var(--radius) / 40% 40% var(--radius) var(--radius);
}

/* 6. Site chrome ------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: 0.5rem;
  left: var(--gutter);
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--color-ink);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(239 233 219 / 0.97);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand actions"
    "nav nav";
  align-items: center;
  column-gap: 0.5rem;
  padding-top: 0.5rem;
}

.brand {
  grid-area: brand;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: var(--touch);
  color: var(--color-olive-dark);
  text-decoration: none;
}

.brand__mark {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
}

.brand__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.brand__top {
  margin-right: -0.14em; /* optically centre the tracked capitals */
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 300;
  letter-spacing: 0.14em;
}

.brand__bottom {
  margin-top: 0.25rem;
  margin-right: -0.2em;
  font-family: var(--font-caps);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
}

.site-header__actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav {
  grid-area: nav;
  margin-top: 0.5rem;
  border-top: 1px solid var(--color-line);
}

.site-nav__list {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0 0.35rem;
  font-family: var(--font-caps);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-olive-dark);
}

.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.4em;
}

@media (min-width: 30rem) {
  .site-nav__list {
    justify-content: center;
    gap: 1.5rem;
  }
}

@media (min-width: 64rem) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav actions";
    column-gap: 2rem;
    padding-block: 0.6rem;
  }

  .brand__mark {
    width: 2.75rem;
    height: 2.75rem;
  }

  .site-nav {
    margin-top: 0;
    border-top: 0;
  }

  .site-nav__list {
    gap: 2.25rem;
  }
}

.site-footer {
  padding-block: 2.5rem 1.5rem;
  background: var(--color-olive-700);
  font-size: 0.975rem;
}

.site-footer__inner {
  display: grid;
  gap: 1.5rem;
}

.site-footer p {
  margin: 0 0 0.35rem;
}

.site-footer__brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-self: start;
  line-height: 1;
  color: var(--color-cream);
}

.site-footer__copy {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(239 233 219 / 0.25);
  font-size: 0.875rem;
  color: #d6cfb8; /* 6.09:1 on the footer */
}

@media (min-width: 48rem) {
  .site-footer__inner {
    grid-template-columns: 1fr 1.3fr 1.3fr;
    align-items: start;
  }
}

/* 7. Home page sections ------------------------------------------------------ */
.hero {
  padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(3rem, 2rem + 4vw, 5.5rem);
  background:
    radial-gradient(ellipse 70% 60% at 90% 0%, var(--color-paper), transparent 70%),
    var(--color-cream);
}

.hero__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero__title {
  margin-bottom: 1.25rem;
  font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.5rem);
}

.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.highlights li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
}

.highlights li::before {
  content: "";
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-gold);
}

.hero__note {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.hero__media,
.about__media {
  justify-self: center;
  width: min(100%, 19rem);
}

.about__media {
  width: min(100%, 16rem);
}

@media (min-width: 52rem) {
  .hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }

  .hero__media {
    width: min(100%, 27rem);
  }
}

.about {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 52rem) {
  .about {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
  }

  .about__media {
    width: min(100%, 24rem);
  }
}

.about__text {
  max-width: 38rem;
}

.service-card::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  margin-bottom: 1.1rem;
  background: var(--color-gold);
}

.service-card p {
  color: var(--color-on-olive-muted);
}

/* Price list: matches the "CENÍK" post. */
.price-card {
  padding: clamp(1.25rem, 0.5rem + 3.5vw, 3rem);
  background: var(--color-cream);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.price-card__title {
  margin-bottom: 1rem;
  font-size: clamp(2.3rem, 1.7rem + 3vw, 3.4rem);
  text-align: center;
}

.price-card__group {
  margin: 2rem 0 0.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-gold);
  font-family: var(--font-caps);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.price-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-list__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 1rem;
  row-gap: 0.1rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--color-line);
}

.price-list__item:last-child {
  border-bottom: 0;
}

.price-list__name {
  grid-column: 1;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-olive-dark);
}

.price-list__meta {
  grid-column: 1;
  grid-row: 2;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.price-list__price {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 1.125rem;
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}

.price-list__desc {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.price-card__note {
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
  text-align: center;
  color: var(--color-muted);
}

.price-card__sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
  line-height: 1;
  color: var(--color-olive-dark);
}

.price-card__sign img {
  width: 4.5rem;
  height: auto;
  margin-bottom: 0.25rem;
}

/* Numbered steps (První návštěva). */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps__item {
  counter-increment: step;
  padding: 1.5rem;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
}

.steps__item::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: var(--color-olive);
  font-family: var(--font-caps);
  font-size: 1.1rem;
  color: var(--color-white);
}

.steps__item > :last-child {
  margin-bottom: 0;
}

.steps__title {
  margin-bottom: 0.4rem;
  font-size: 1.5rem;
}

/* Contact (olive band). */
.contact {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 52rem) {
  .contact {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 4rem;
  }
}

.contact__list {
  display: grid;
  gap: 1.5rem;
  margin: 0;
}

.contact__list dt {
  font-family: var(--font-caps);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-on-olive-muted);
}

.contact__list dd {
  margin: 0.25rem 0 0;
}

.contact__phone {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem);
  font-weight: 300;
  line-height: 1.1;
  text-decoration: none;
}

.contact__phone:hover {
  text-decoration: underline;
}

/* 8. Prose, error pages, utilities ------------------------------------------- */
.prose {
  max-width: 44rem;
}

.prose h1 {
  margin-bottom: 1rem;
}

.prose h2 {
  margin-top: 2.25rem;
  font-size: clamp(1.6rem, 1.4rem + 1vw, 2rem);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose--center {
  margin-inline: auto;
  text-align: center;
}

.error-mark {
  display: block;
  width: 5.5rem;
  margin: 0 auto 1.5rem;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Swap a long label for a short one on phones (only one is ever displayed). */
.u-wide-only {
  display: none;
}

@media (min-width: 30rem) {
  .u-wide-only {
    display: inline;
  }

  .u-narrow-only {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-header {
    position: static;
  }

  .skip-link,
  .site-nav,
  .site-header__actions {
    display: none;
  }
}
