/* PRFORM V2 – světlý „protokolový“ vzhled vycházející z černobílé identity prodejny. */

@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
  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: "DM Sans";
  src: url("assets/fonts/dm-sans-ext.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
  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;
}

:root {
  color-scheme: light;
  --paper: #f6f4ee;
  --white: #fffefb;
  --sand: #ebe4d6;
  --ink: #131311;
  --ink-soft: #3b3934;
  --muted: #6d695f;
  --line: #d8d2c5;
  --line-strong: #131311;
  --accent: #a3431b;
  --on-ink: #f6f4ee;
  --on-ink-muted: #b4afa3;
  --line-on-ink: #3a3934;
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4.5vw, 56px);
  --section: clamp(64px, 9vw, 132px);
  --header: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 24px);
  -webkit-text-size-adjust: 100%;
}

html[data-menu-locked] {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
address {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

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

::selection {
  background: var(--ink);
  color: var(--paper);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--on-ink);
}

.skip-link:focus {
  top: 16px;
  color: var(--on-ink);
}

.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Typografie */

h1,
h2,
.display {
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
}

h3 {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

h4 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

h1 em,
h2 em {
  font-style: normal;
  color: var(--muted);
}

.label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}

.label::before {
  content: "";
  flex: none;
  width: 28px;
  height: 1px;
  background: currentColor;
}

.label--plain::before {
  content: none;
}

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose p,
.prose li {
  max-width: 68ch;
  color: var(--ink-soft);
}

.prose h3 {
  margin-top: 2em;
}

.prose h3:first-child {
  margin-top: 0;
}

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

/* Tlačítka */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn::after {
  content: "";
  flex: none;
  width: 18px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  transition: width 0.25s var(--ease);
}

.btn:hover::after {
  width: 30px;
}

.btn--ink {
  background: var(--ink);
  color: var(--on-ink);
}

.btn--ink:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn--line:hover {
  background: var(--ink);
  color: var(--on-ink);
}

.btn--paper {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn--paper:hover {
  background: transparent;
  color: var(--on-ink);
}

.btn--line-light {
  border-color: var(--line-on-ink);
  color: var(--on-ink);
}

.btn--line-light:hover {
  border-color: var(--on-ink);
  color: var(--on-ink);
}

.btn--small {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 0.7rem;
}

.btn--small::after {
  content: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 1px solid currentColor;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* Hlavička */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

/* Rozostření je na pseudoprvku, aby hlavička netvořila kontejner pro fixní mobilní menu. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
}

.site-header[data-scrolled],
.site-header[data-menu-open] {
  border-bottom-color: var(--line);
}

.site-header[data-menu-open]::before {
  background: var(--paper);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header);
}

.brand {
  flex: none;
  display: block;
  margin-right: auto;
}

.brand img {
  width: auto;
  height: 46px;
}

.main-nav-links a {
  text-decoration: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 0 0 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-toggle-icon {
  position: relative;
  width: 26px;
  height: 14px;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}

.menu-toggle-icon::before {
  top: 2px;
}

.menu-toggle-icon::after {
  top: 11px;
}

/* Otevřené menu převezme křížící se linky z loga. */
[data-menu-open] .menu-toggle-icon::before {
  top: 6px;
  transform: rotate(38deg);
}

[data-menu-open] .menu-toggle-icon::after {
  top: 6px;
  transform: rotate(-38deg);
}

@media (max-width: 1099.98px) {
  .main-nav {
    position: fixed;
    inset: var(--header) 0 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 24px var(--gutter) 32px;
    background: var(--paper);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s 0.2s;
  }

  [data-menu-open] .main-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }

  .main-nav-links {
    display: flex;
    flex-direction: column;
    counter-reset: nav;
  }

  .main-nav-links a {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: clamp(1.5rem, 6vw, 2rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.2;
  }

  .main-nav-links a::before {
    counter-increment: nav;
    content: "0" counter(nav);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: var(--muted);
  }

  .main-nav-links a[aria-current="page"] {
    color: var(--accent);
  }

  .main-nav-meta {
    display: grid;
    gap: 20px;
    margin-top: auto;
  }

  .main-nav-meta p {
    font-size: 0.9rem;
    color: var(--muted);
  }
}

@media (max-width: 420px) {
  .menu-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

@media (min-width: 1100px) {
  :root {
    --header: 84px;
  }

  .menu-toggle,
  .main-nav-meta {
    display: none;
  }

  .brand {
    margin-right: 0;
  }

  .brand img {
    height: 52px;
  }

  .main-nav {
    margin-inline: auto;
  }

  .main-nav-links {
    display: flex;
    gap: clamp(18px, 2.2vw, 36px);
  }

  .main-nav-links a {
    position: relative;
    padding: 8px 0;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }

  .main-nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
  }

  .main-nav-links a:hover,
  .main-nav-links a[aria-current="page"] {
    color: var(--ink);
  }

  .main-nav-links a:hover::after,
  .main-nav-links a[aria-current="page"]::after {
    transform: scaleX(1);
  }
}

.header-book[aria-current="page"] {
  background: transparent;
  color: var(--ink);
}

/* Sekce */

.section {
  padding-block: var(--section);
}

.section--white {
  background: var(--white);
}

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

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

.section--ink .label,
.section--ink .lead,
.section--ink .muted {
  color: var(--on-ink-muted);
}

.section--tight {
  padding-block: clamp(48px, 6vw, 80px);
}

.section + .section:not(.section--white, .section--sand, .section--ink) {
  border-top: 1px solid var(--line);
}

.sec-head {
  display: grid;
  gap: 20px 48px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.sec-head .label {
  margin-bottom: 18px;
}

.sec-head .lead {
  align-self: end;
}

@media (min-width: 900px) {
  .sec-head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

.split {
  display: grid;
  gap: 32px 64px;
}

.split > :first-child .label {
  margin-bottom: 18px;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .split > :first-child {
    position: sticky;
    top: calc(var(--header) + 32px);
    align-self: start;
  }

  .split--media {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }

  .split--media > :first-child {
    position: static;
    align-self: center;
  }
}

/* Úvodní stránka – hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(32px, 5vw, 72px) clamp(48px, 7vw, 96px);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-copy .label {
  margin-bottom: 28px;
}

.hero-copy .lead {
  margin-top: 28px;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

.readout {
  position: relative;
  margin: -56px 16px 0;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--ink);
}

.readout-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.readout a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.95rem;
}

.readout a:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.readout strong {
  font-size: 1.15rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.readout small {
  color: var(--muted);
  font-size: 0.8rem;
}

.cross {
  position: absolute;
  pointer-events: none;
  color: var(--line);
}

.hero .cross {
  left: 34%;
  top: -10%;
  width: min(60vw, 760px);
  height: 120%;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(40px, 6vw, 96px);
  }

  .readout {
    position: absolute;
    left: -72px;
    bottom: 36px;
    width: min(340px, 90%);
    margin: 0;
  }
}

/* Pás s fakty */

.facts {
  border-block: 1px solid var(--ink);
  background: var(--white);
}

.facts-inner {
  display: grid;
}

.fact {
  display: grid;
  gap: 6px;
  padding: 22px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.fact:last-child {
  border-bottom: 0;
}

.fact-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact-value {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 760px) {
  .facts-inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .fact {
    padding: 26px 32px;
    border-bottom: 0;
    border-left: 1px solid var(--line);
  }

  .fact:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

/* Mřížka s vlasovými linkami */

.grid-lines {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.grid-lines > * {
  background: var(--paper);
  padding: clamp(24px, 3vw, 40px);
}

.section--white .grid-lines > * {
  background: var(--white);
}

.section--sand .grid-lines {
  background: color-mix(in srgb, var(--ink) 22%, var(--sand));
  border-color: color-mix(in srgb, var(--ink) 22%, var(--sand));
}

.section--sand .grid-lines > * {
  background: var(--sand);
}

@media (min-width: 640px) {
  .grid-lines--2,
  .grid-lines--3,
  .grid-lines--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .grid-lines--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-lines--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.idx {
  display: block;
  margin-bottom: 28px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.cell h3 + p,
.cell h4 + p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Služby */

.service-pair {
  display: grid;
  gap: 24px;
}

.service {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
}

.service-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sand);
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.service:hover .service-media img {
  transform: scale(1.03);
}

.service-media--device {
  background: #fff;
}

.service-media--device img {
  object-fit: contain;
  padding: 24px;
}

.service-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3vw, 40px);
}

.service-body p {
  color: var(--ink-soft);
}

.service-body .actions {
  margin-top: auto;
  padding-top: 12px;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-block: 14px;
  border-block: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.price-line strong {
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 860px) {
  .service-pair {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Přístroje */

.devices {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.device {
  display: flex;
  flex-direction: column;
  background: #fff;
}

.device figure {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 28px;
}

.device img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.device-body {
  flex: 1;
  padding: 24px;
  border-top: 1px solid var(--line);
}

.device-body .idx {
  margin-bottom: 10px;
}

.device-body p {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

@media (min-width: 560px) {
  .devices {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .devices {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Kroky */

.steps {
  counter-reset: step;
  border-top: 1px solid var(--line-strong);
}

.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: clamp(56px, 9vw, 120px) 1fr;
  gap: 8px 16px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.steps > li::before {
  content: "0" counter(step);
  grid-row: span 2;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.steps h3,
.steps strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.steps p {
  grid-column: 2;
  color: var(--ink-soft);
  max-width: 62ch;
}

.section--ink .steps {
  border-top-color: var(--on-ink);
}

.section--ink .steps > li {
  border-bottom-color: var(--line-on-ink);
}

.section--ink .steps > li::before {
  color: var(--on-ink);
}

.section--ink .steps p {
  color: var(--on-ink-muted);
}

/* Časová osa přípravy */

.timeline {
  border-top: 1px solid var(--line-strong);
}

.timeline > li {
  display: grid;
  gap: 6px 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.timeline time,
.timeline .when {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.timeline p {
  color: var(--ink-soft);
  max-width: 62ch;
}

@media (min-width: 700px) {
  .timeline > li {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: baseline;
  }
}

/* Ceny */

.prices {
  display: grid;
  gap: 20px;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  scroll-margin-top: calc(var(--header) + 24px);
}

.price-card--featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
}

.price-card .label {
  margin-bottom: 20px;
}

.price-card--featured .label,
.price-card--featured .price-unit,
.price-card--featured .price-note {
  color: var(--on-ink-muted);
}

.price-card h2,
.price-card h3 {
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid currentColor;
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price-unit {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.price-card > p {
  margin-top: 18px;
}

.price-card .checks {
  margin-top: 22px;
}

.price-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.price-card .btn {
  margin-top: auto;
  align-self: stretch;
}

.price-card .checks + .btn,
.price-card p + .btn {
  margin-top: 28px;
}

.price-card .spacer {
  flex: 1;
  min-height: 12px;
}

.price-card--featured .btn {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.price-card--featured .btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@media (min-width: 960px) {
  .prices {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .price-card + .price-card:not(.price-card--featured) {
    border-left: 0;
  }

  .price-card:has(+ .price-card--featured) {
    border-right: 0;
  }

  .price-card--featured {
    margin-block: -16px;
    padding-block: calc(clamp(26px, 3vw, 40px) + 16px);
  }
}

.checks > li {
  position: relative;
  padding: 9px 0 9px 28px;
  border-top: 1px solid var(--line);
  font-size: 0.97rem;
}

.checks > li:last-child {
  border-bottom: 1px solid var(--line);
}

.checks > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.15em;
  width: 14px;
  height: 1px;
  background: var(--accent);
}

.price-card--featured .checks > li,
.section--ink .checks > li {
  border-color: var(--line-on-ink);
}

.price-card--featured .checks > li::before,
.section--ink .checks > li::before {
  background: var(--on-ink);
}

.checks--plain > li {
  border: 0;
  padding-block: 5px;
}

.checks--plain > li:last-child {
  border: 0;
}

/* Fotografie */

.photo {
  overflow: hidden;
  background: var(--sand);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo--portrait {
  aspect-ratio: 4 / 5;
}

.photo--wide {
  aspect-ratio: 16 / 10;
}

.photo-caption {
  margin-top: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mosaic .photo {
  aspect-ratio: 4 / 5;
}

.mosaic .photo:first-child {
  grid-column: span 2;
  aspect-ratio: 16 / 11;
}

@media (min-width: 760px) {
  .mosaic {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: clamp(150px, 19vw, 280px);
    gap: 14px;
  }

  .mosaic .photo,
  .mosaic .photo:first-child {
    aspect-ratio: auto;
    grid-column: auto;
  }

  .mosaic .photo:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }

}

/* Hlavička podstránek */

.page-head {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--ink);
}

.page-head .cross {
  right: -8%;
  top: -20%;
  width: min(48vw, 560px);
  height: 140%;
}

.page-head-grid {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: end;
}

.page-head .label {
  margin-bottom: 24px;
}

.page-head h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  max-width: 16ch;
}

.page-head .lead {
  margin-top: 24px;
}

.page-head-media {
  background: #fff;
  border: 1px solid var(--line);
}

.page-head-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.page-head-media--device img {
  object-fit: contain;
  padding: clamp(20px, 4vw, 48px);
}

.page-price {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 28px;
  padding: 14px 0;
  border-block: 1px solid var(--ink);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.page-price small {
  font-size: 0.9rem;
  letter-spacing: 0;
  color: var(--muted);
}

@media (min-width: 900px) {
  .page-head-grid--media {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(40px, 6vw, 96px);
  }
}

/* Výklad pojmů */

.terms {
  border-top: 1px solid var(--line-strong);
}

.terms > div {
  display: grid;
  gap: 6px 32px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.terms dt {
  font-weight: 600;
  line-height: 1.35;
}

.terms dd {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

@media (min-width: 700px) {
  .terms > div {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }
}

/* Blok přístroje na stránce diagnostiky */

.device-block {
  display: grid;
  gap: 32px 64px;
  padding-block: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--header);
}

.device-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.device-block:last-of-type {
  padding-bottom: 0;
}

.device-aside .idx {
  margin-bottom: 14px;
}

.device-aside h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
}

.device-aside .sub {
  margin-top: 10px;
  color: var(--muted);
}

.device-aside figure {
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--line);
}

.device-aside img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 28px;
}

@media (min-width: 900px) {
  .device-block {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }

  .device-aside {
    position: sticky;
    top: calc(var(--header) + 32px);
    align-self: start;
  }
}

.subnav {
  position: sticky;
  top: var(--header);
  z-index: 20;
  background: color-mix(in srgb, var(--white) 94%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.subnav-inner {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav-inner::-webkit-scrollbar {
  display: none;
}

.subnav a {
  flex: none;
  padding: 16px 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}

.subnav a:hover {
  color: var(--accent);
}

/* Rozbalovací bloky */

.disclosures {
  border-top: 1px solid var(--line-strong);
}

.disclosure {
  border-bottom: 1px solid var(--line);
}

.disclosure summary {
  position: relative;
  display: block;
  padding: 20px 48px 20px 0;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

.disclosure summary::-webkit-details-marker {
  display: none;
}

.disclosure summary::before,
.disclosure summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}

.disclosure summary::after {
  transform: rotate(90deg);
}

.disclosure[open] summary::after {
  transform: rotate(0deg);
}

.disclosure summary:hover {
  color: var(--accent);
}

.disclosure > :not(summary) {
  padding: 0 48px 22px 0;
  max-width: 70ch;
  color: var(--ink-soft);
}

.disclosure .terms {
  max-width: none;
  padding-right: 0;
  margin-bottom: 22px;
  border-top-color: var(--line);
}

.disclosure .terms > div:last-child {
  border-bottom: 0;
}

/* Poznámka a upozornění */

.note {
  padding: 20px 24px;
  border-left: 2px solid var(--accent);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.97rem;
  max-width: 72ch;
}

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

.note strong {
  color: var(--ink);
}

/* Otevírací doba */

.hours {
  border-top: 1px solid var(--line-strong);
}

.hours > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.15rem;
}

.hours dd {
  font-variant-numeric: tabular-nums;
}

.hours .closed {
  color: var(--muted);
}

.contact-card {
  display: grid;
  gap: 28px;
  padding: clamp(26px, 3vw, 40px);
  background: var(--white);
  border: 1px solid var(--ink);
}

.contact-card address {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.contact-card .actions {
  margin-top: 0;
}

/* Citát / manifest */

.manifest {
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
  max-width: 24ch;
}

.signature {
  margin-top: 28px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.section--ink .signature {
  color: var(--on-ink-muted);
}

/* Výzva k rezervaci */

.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 128px);
  background: var(--ink);
  color: var(--on-ink);
}

.cta .cross {
  right: -6%;
  top: -30%;
  width: min(70vw, 720px);
  height: 160%;
  color: var(--line-on-ink);
}

.cta-inner {
  position: relative;
  display: grid;
  gap: 32px 64px;
  align-items: end;
}

.cta .label {
  margin-bottom: 20px;
  color: var(--on-ink-muted);
}

.cta p:not(.label) {
  margin-top: 20px;
  max-width: 52ch;
  color: var(--on-ink-muted);
}

.cta .actions {
  margin-top: 0;
}

@media (min-width: 900px) {
  .cta-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* Patička */

.site-footer {
  padding-block: clamp(48px, 6vw, 80px) 28px;
  background: var(--ink);
  color: var(--on-ink);
  border-top: 1px solid var(--line-on-ink);
}

.footer-claim {
  margin-bottom: clamp(40px, 6vw, 72px);
  font-size: clamp(2.2rem, 9.4vw, 8.4rem);
  font-weight: 200;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px #5a574f;
}

@supports not (-webkit-text-stroke: 1px black) {
  .footer-claim {
    color: var(--line-on-ink);
  }
}

.footer-columns {
  display: grid;
  gap: 40px;
  padding-bottom: 48px;
}

.brand--light img {
  height: 64px;
}

.footer-brand p {
  margin-top: 20px;
  max-width: 36ch;
  color: var(--on-ink-muted);
  font-size: 0.95rem;
}

.site-footer h2 {
  margin-bottom: 18px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--on-ink-muted);
}

.site-footer li,
.site-footer address {
  padding: 4px 0;
  font-size: 0.97rem;
}

.site-footer address {
  margin-bottom: 8px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--on-ink);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line-on-ink);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
}

@media (min-width: 800px) {
  .footer-columns {
    grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr);
    gap: 64px;
  }
}

/* Dialog poptávky */

.booking-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-y: auto;
}

.booking-dialog::backdrop {
  background: rgb(19 19 17 / 0.62);
  backdrop-filter: blur(3px);
}

.booking-dialog[open] {
  animation: dialog-in 0.25s var(--ease);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.dialog-header .label {
  margin-bottom: 12px;
}

.dialog-header h2 {
  font-size: 2rem;
}

.dialog-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:hover {
  border-color: var(--ink);
}

.booking-dialog > p {
  color: var(--ink-soft);
}

.booking-dialog label {
  display: block;
  margin: 22px 0 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.booking-dialog select,
.booking-dialog textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.booking-dialog textarea {
  resize: vertical;
  line-height: 1.5;
}

.booking-dialog .actions {
  margin-top: 22px;
}

.booking-dialog .actions .btn {
  flex: 1 1 200px;
}

.copy-status {
  min-height: 1.6em;
  margin-top: 12px;
  font-size: 0.9rem;
}

/* Chybová stránka */

.not-found {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 12vw, 180px);
}

.not-found .cross {
  right: 0;
  top: -20%;
  width: min(60vw, 640px);
  height: 140%;
}

.not-found .container {
  position: relative;
}

.not-found .label {
  margin-bottom: 24px;
}

.not-found .lead {
  margin-top: 24px;
}

/* Odkrývání při rolování */

@media (prefers-reduced-motion: no-preference) {
  [data-reveal-ready] [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }

  [data-reveal-ready] [data-reveal][data-revealed] {
    opacity: 1;
    transform: none;
  }

  .hero-copy > *,
  .hero-media {
    animation: rise 0.8s var(--ease) both;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 0.06s;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 0.12s;
  }

  .hero-copy > :nth-child(4) {
    animation-delay: 0.18s;
  }

  .hero-media {
    animation-delay: 0.14s;
  }

  .hero .cross line {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: draw 1.4s 0.1s var(--ease) forwards;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
  }

  @keyframes draw {
    to {
      stroke-dashoffset: 0;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .cta,
  .subnav,
  .booking-dialog {
    display: none;
  }
}

/* Typografický panel služby bez fotografie */

.service-media--type {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 3vw, 36px);
}

.service-media--type .cross {
  inset: 0;
  width: 100%;
  height: 100%;
  color: color-mix(in srgb, var(--ink) 18%, var(--sand));
}

.service-media--type p {
  position: relative;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
}

.service-media--type p span {
  font-size: clamp(5rem, 13vw, 9.5rem);
  font-weight: 200;
  letter-spacing: -0.06em;
}

.service-media--type ul {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.service-media--type li + li::before {
  content: "→";
  margin-right: 20px;
  color: var(--accent);
}

@media (min-width: 760px) {
  .mosaic--pair {
    grid-template-columns: 2fr 1fr 1fr;
    grid-auto-rows: clamp(260px, 34vw, 480px);
  }

  .mosaic--pair .photo:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (min-width: 960px) {
  .prices--two {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .prices--two .price-card--featured {
    margin-block: 0;
    padding-block: clamp(26px, 3vw, 40px);
  }
}

.photo-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 560px) {
  .checks--columns {
    columns: 2;
    column-gap: 40px;
  }

  .checks--columns > li {
    break-inside: avoid;
  }

  .checks--columns > li:last-child {
    border-bottom: 0;
  }
}

/* Doladění */

.idx {
  text-transform: uppercase;
}

.device figure,
.device-aside figure {
  position: relative;
  display: block;
  aspect-ratio: 1;
  padding: 0;
}

.device figure img,
.device-aside figure img {
  position: absolute;
  inset: 28px;
  width: calc(100% - 56px);
  height: calc(100% - 56px);
  padding: 0;
  aspect-ratio: auto;
}

@media (max-width: 899.98px) {
  .hero .cross,
  .page-head .cross {
    display: none;
  }

  .device-aside figure {
    max-width: 320px;
  }

  .page-head-media--device {
    display: none;
  }
}

@media (min-width: 900px) {
  .readout {
    top: 36px;
    bottom: auto;
  }
}
